rk-web-core 0.15.3 → 0.15.5

Sign up to get free protection for your applications and to get access to all the features.
package/rk-web-core.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],s=0,a=[];s<i.length;s++)r=i[s],Object.prototype.hasOwnProperty.call(L,r)&&L[r]&&a.push(L[r][0]),L[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);a.length;)a.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!x[t])return;for(var n in x[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="ec1392f8eb95f70d25ca",s={},a=[],c=[];function l(t){var e=P[t];if(!e)return R;var n=function(n){return e.hot.active?(P[n]?-1===P[n].parents.indexOf(t)&&P[n].parents.push(t):(a=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===d&&f("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===d&&(b[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function u(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":(m={})[e]=t[e],f("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:M,apply:E,status:function(t){if(!t)return d;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:s[e]};return r=void 0,n}var h=[],d="idle";function f(t){d=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,b={},x={},w={};function S(t){return+t+""===t?+t:t}function M(t){if("idle"!==d)throw new Error("check() is only allowed in idle status");return i=t,f("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return f(T()?"ready":"idle"),null;x={},b={},w=t.c,g=t.h,f("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},L)A(n);return"prepare"===d&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(x[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):b[t]=!0}function C(){f("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(S(n));t.resolve(e)}}function E(e){if("ready"!==d)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,l,u,h;function d(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,s=i.chain;if((u=P[o])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:o};if(u.hot._main)return{type:"unaccepted",chain:s,moduleId:o};for(var a=0;a<u.parents.length;a++){var c=u.parents[a],l=P[c];if(l){if(l.hot._declinedDependencies[o])return{type:"declined",chain:s.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],b={},x=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var A;h=S(M),A=m[M]?d(h):{type:"disposed",moduleId:M};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return f("abort"),Promise.reject(C);if(E)for(h in b[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),b[h]=x)}var B,k=[];for(c=0;c<_.length;c++)h=_[c],P[h]&&P[h].hot._selfAccepted&&b[h]!==x&&!P[h].hot._selfInvalidated&&k.push({module:h,parents:P[h].parents.slice(),errorHandler:P[h].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete L[t]}(t)}));var D,F,N=_.slice();for(;N.length>0;)if(h=N.pop(),u=P[h]){var j={},U=u.hot._disposeHandlers;for(l=0;l<U.length;l++)(i=U[l])(j);for(s[h]=j,u.hot.active=!1,delete P[h],delete y[h],l=0;l<u.children.length;l++){var z=P[u.children[l]];z&&((B=z.parents.indexOf(h))>=0&&z.parents.splice(B,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h]))for(F=y[h],l=0;l<F.length;l++)D=F[l],(B=u.children.indexOf(D))>=0&&u.children.splice(B,1);f("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,b)Object.prototype.hasOwnProperty.call(b,h)&&(t[h]=b[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=u.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<k.length;c++){var W=k[c];h=W.module,a=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return f("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return f("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var P={},L={0:0};function R(e){if(P[e])return P[e].exports;var n=P[e]={i:e,l:!1,exports:{},hot:u(e),parents:(c=a,a=[],c),children:[]};return t[e].call(n.exports,n,n.exports,l(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=L[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=L[t]=[e,r]}));e.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,R.nc&&s.setAttribute("nonce",R.nc),s.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var a=new Error;i=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=L[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,n[1](a)}L[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(e)},R.m=t,R.c=P,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],B=O.push.bind(O);O.push=e,O=O.slice();for(var k=0;k<O.length;k++)e(O[k]);var D=B;return l(122)(R.s=122)}([function(t,e,n){"use strict";(function(t){var r=n(85);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),t=>{const e=i.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),l=t=>e=>typeof e===t,{isArray:u}=Array,h=l("undefined");const d=c("ArrayBuffer");const f=l("string"),p=l("function"),m=l("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=c("Date"),_=c("File"),b=c("Blob"),x=c("FileList"),w=c("URLSearchParams");function S(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function M(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,C=t=>!h(t)&&t!==A;const E=(T="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>T&&t instanceof T);var T;const I=c("HTMLFormElement"),P=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),L=c("RegExp"),R=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};S(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},O="abcdefghijklmnopqrstuvwxyz",B={DIGIT:"0123456789",ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+"0123456789"};const k=c("AsyncFunction");e.a={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=s(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:f,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:h,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:w,isTypedArray:E,isFileList:x,forEach:S,merge:function t(){const{caseless:e}=C(this)&&this||{},n={},r=(r,i)=>{const o=e&&M(n,i)||i;v(n[o])&&v(r)?n[o]=t(n[o],r):v(r)?n[o]=t({},r):u(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(S(e,(e,i)=>{n&&p(e)?t[i]=Object(r.a)(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:t=>{R(t,(e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:M,global:A,isContextDefined:C,ALPHABET:B,generateString:(t=16,e=B.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=u(t)?[]:{};return S(t,(t,e)=>{const o=n(t,r+1);!h(o)&&(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:k,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,n(10))},function(t,e,n){"use strict";var r=n(0);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{const l=Object.create(o);return r.a.toFlatObject(t,l,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),i.call(l,t.message,e,n,s,a),l.cause=t,l.name=t.name,c&&Object.assign(l,c),l},e.a=i},function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(270)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},l=c.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),h=a.enc={},d=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*c,o);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),a.algo={});return a}(Math),r)}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=e.isOverManyTarget=e.getAllChildren=e.treeMenuFindPath=e.treeFindPath=e.prefixCls=void 0;var r,i=n(53),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.children){var h=t(u.children,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.treeMenuFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.childMenuList){var h=t(u.childMenuList,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.isOverManyTarget=function(t,e){if(t===e)return!1;var n=parseInt(t.style.left),r=parseInt(t.style.top),i=n+parseInt(t.style.width),o=r+parseInt(t.style.height),s=parseInt(e.style.left),a=parseInt(e.style.top),c=s+parseInt(e.style.width),l=a+parseInt(e.style.height),u=Math.min(i,c)-Math.max(n,s),h=Math.min(o,l)-Math.max(r,a),d=(u>0?u:0)*(h>0?h:0),f=parseInt(t.style.width)*parseInt(t.style.height);return d>f/2&&d<=f?t:null},e.getWidth=function(t){var e=t&&"function"==typeof t.getBoundingClientRect&&t.getBoundingClientRect().width;return e&&(e=+e.toFixed(6)),e||0}},function(t,e,n){(function(t,n){var r="[object Map]",i="[object Set]",o=/^\[object .+?Constructor\]$/,s="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,c=s||a||Function("return this")(),l=e&&!e.nodeType&&e,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,h=u&&u.exports===l;var d,f,p,m=Function.prototype,g=Object.prototype,v=c["__core-js_shared__"],y=(d=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h?c.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=(f=Object.keys,p=Object,function(t){return f(p(t))}),E=j(c,"DataView"),T=j(c,"Map"),I=j(c,"Promise"),P=j(c,"Set"),L=j(c,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:o).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&"[object DataView]"!=U(new E(new ArrayBuffer(1)))||T&&U(new T)!=r||I&&"[object Promise]"!=U(I.resolve())||P&&U(new P)!=i||L&&"[object WeakMap]"!=U(new L))&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,o=n?z(n):void 0;if(o)switch(o){case O:return"[object DataView]";case B:return r;case k:return"[object Promise]";case D:return i;case F:return"[object WeakMap]"}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==i)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.cookieStore=e.localStore=e.sessionStore=void 0;var r=l(n(152)),i=l(n(47)),o=l(n(153)),s=l(n(155)),a=l(n(154)),c=l(n(249));function l(t){return t&&t.__esModule?t:{default:t}}var u=r.default.createStore(s.default,c.default),h=r.default.createStore(o.default,c.default),d=r.default.createStore(a.default,c.default);e.sessionStore=u,e.localStore=h,e.cookieStore=d,e.storage=i.default},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));function r(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function o(t,e){return t|e}function s(t,e){return t^e}function a(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function l(t){for(var e=0;0!=t;)t&=t-1,++e;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeCache=e.setCache=e.getCache=e.sessionEngine=e.localEngine=void 0;var r=n(5),i=n(136),o=e.localEngine="localStorage";e.sessionEngine="sessionStorage",e.getCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.get(t):r.sessionStore.get(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.get(n+"_"+t):r.sessionStore.get(n+"_"+t)}return e===o?r.localStore.get(t):r.sessionStore.get(t)},e.setCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(i.version.includes("0.12"))return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var s=window.__RK_WEB_CORE_APPID__;return n===o?r.localStore.set(s+"_"+t,e):r.sessionStore.set(s+"_"+t,e)}return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e)},e.removeCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.remove(t):r.sessionStore.remove(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.remove(n+"_"+t):r.sessionStore.remove(n+"_"+t)}return e===o?r.localStore.remove(t):r.sessionStore.remove(t)}},function(t,e,n){var r=n(15),i=n(6),o=n(26),s=n(27),a=n(36),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=f?i:i[e]||(i[e]={}),_=y.prototype,b=f?r:p?r[e]:(r[e]||{}).prototype;for(l in f&&(n=e),n)(u=!d&&b&&void 0!==b[l])&&a(y,l)||(h=u?b[l]:n[l],y[l]=f&&"function"!=typeof b[l]?n[l]:g&&u?o(h,r):v&&b[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&_&&!_[l]&&s(_,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r,i,o,s,a,c,l,u,h,d,f,p,m,g,v,y,_,b,x;t.exports=(r=n(2),n(29),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,h=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=f.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(i.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=a.random(8)),i)o=h.create({keySize:e+n,hasher:i}).compute(t,r);else var o=h.create({keySize:e+n}).compute(t,r);var s=a.create(o.words.slice(e),4*n);return o.sigBytes=4*e,v.create({key:o,iv:s,salt:r})}},x=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appTracking=e.getPk=e.getTimestamp=e.UpPassword=e.BoundWx=e.UnboundWx=e.CheckPhone=e.UpUserPhone=e.UserMsgAuth=e.SendMsg=e.UpUserName=e.getQueryHistory=e.getLatelyVersion=e.iamRedirect=e.getBelongList=e.getRegionDataInfo=e.postConsumer=e.getByCuser=e.getUserInfo=e.refreshToken=e.getQrcode=e.boundWxgzh=e.getBySysCodes=e.getToken=e.Api=void 0;var r=l(n(41)),i=l(n(233)),o=l(n(17)),s=n(5),a=l(n(4)),c=l(n(135));l(n(116));function l(t){return t&&t.__esModule?t:{default:t}}var u=e.Api={refreshToken:"/iam/v1/sys/oauth/refreshToken",token:"/iam/v1/sys/oauth/token",info:"/iam/v1/sys/user/info",getByCuser:"/iam/v1/sys/system/getByCuser",postConsumer:"/iam/v1/sys/user/exchange/consumer",getRegionDataInfo:"https://gateway-bmg-out.rockontrol.com/bmg/v1/apply/weather/{areaCode}",appTracking:"/bmg/v1/apply/tracking",getBelongList:"/iam/v1/sys/consumer/belongBySysList",iamRedirect:"/iam/v1/sys/authorize/redirect",getBySysCodes:"/iam/v1/sys/system/getBySysCodes",latelyVersion:"/iam/v1/sys/version/latelyVersion",queryHistory:"/iam/v1/sys/version/queryHistory",upUserName:"/iam/v1/sys/user/upUserName",sendMsg:"/iam/v1/sys/send/msg",userMsgAuth:"/iam/v1/sys/user/userMsgAuth",upUserPhone:"/iam/v1/sys/user/userPhone",checkPhone:"/iam/v1/sys/user/check/phone",unboundWx:"/iam/v1/sys/user/unboundWx",boundWx:"/iam/v1/sys/user/boundWx/{code}",getQrcode:"/iam/v1/sys/oauth/wx/getQrcode",boundWxgzh:"/iam/v1/sys/user/boundWxgzh/{code}",upPassword:"/iam/v1/sys/update/password",pk:"/iam/v1/sys/pk",timestamp:"/iam/v1/sys/timestamp"},h=new i.default;e.getToken=function(t){return(0,a.default)(h)?(h.set("code",t.code),o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t)):h.has("code")&&h.get("code")!==t.code?o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t):new r.default((function(t){t()}))},e.getBySysCodes=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.getBySysCodes,t)},e.boundWxgzh=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWxgzh,t)},e.getQrcode=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getQrcode,t)},e.refreshToken=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.refreshToken,t)},e.getUserInfo=function(t,e){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.info,t,e)},e.getByCuser=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getByCuser,t)},e.postConsumer=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.postConsumer+"/"+t)},e.getRegionDataInfo=function(t){return o.default.get(u.getRegionDataInfo,t)},e.getBelongList=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getBelongList,t)},e.iamRedirect=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.iamRedirect,t)},e.getLatelyVersion=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.latelyVersion,t)},e.getQueryHistory=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.queryHistory,t)},e.UpUserName=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserName,t)},e.SendMsg=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.sendMsg,t)},e.UserMsgAuth=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.userMsgAuth,t)},e.UpUserPhone=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserPhone,t)},e.CheckPhone=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.checkPhone,t)},e.UnboundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.unboundWx,t)},e.BoundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWx,t)},e.UpPassword=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upPassword,t)},e.getTimestamp=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.timestamp,t)},e.getPk=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.pk+"/"+t.code,t)},e.appTracking=function(t){var e=s.sessionStore.get("BURYINGPOINT_URL"),n="";return n=(0,a.default)(e)?window.location.protocol+"//srv-bmg-gateway---bmg.jiahuayun-huanbao-dev.rocktl.com":e,o.default.post(""+(n+u.appTracking),(0,c.default)(t,["productId","productName","resourceId","resourceName","resourceType","resourceDetails"]))}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(195),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r;
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],s=0,a=[];s<i.length;s++)r=i[s],Object.prototype.hasOwnProperty.call(L,r)&&L[r]&&a.push(L[r][0]),L[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);a.length;)a.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!x[t])return;for(var n in x[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="19aae5a73ccb8e8a51e0",s={},a=[],c=[];function l(t){var e=P[t];if(!e)return R;var n=function(n){return e.hot.active?(P[n]?-1===P[n].parents.indexOf(t)&&P[n].parents.push(t):(a=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===d&&f("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===d&&(b[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function u(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":(m={})[e]=t[e],f("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:M,apply:E,status:function(t){if(!t)return d;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:s[e]};return r=void 0,n}var h=[],d="idle";function f(t){d=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,b={},x={},w={};function S(t){return+t+""===t?+t:t}function M(t){if("idle"!==d)throw new Error("check() is only allowed in idle status");return i=t,f("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return f(T()?"ready":"idle"),null;x={},b={},w=t.c,g=t.h,f("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},L)A(n);return"prepare"===d&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(x[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):b[t]=!0}function C(){f("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(S(n));t.resolve(e)}}function E(e){if("ready"!==d)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,l,u,h;function d(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,s=i.chain;if((u=P[o])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:o};if(u.hot._main)return{type:"unaccepted",chain:s,moduleId:o};for(var a=0;a<u.parents.length;a++){var c=u.parents[a],l=P[c];if(l){if(l.hot._declinedDependencies[o])return{type:"declined",chain:s.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],b={},x=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var A;h=S(M),A=m[M]?d(h):{type:"disposed",moduleId:M};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return f("abort"),Promise.reject(C);if(E)for(h in b[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),b[h]=x)}var B,k=[];for(c=0;c<_.length;c++)h=_[c],P[h]&&P[h].hot._selfAccepted&&b[h]!==x&&!P[h].hot._selfInvalidated&&k.push({module:h,parents:P[h].parents.slice(),errorHandler:P[h].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete L[t]}(t)}));var D,F,N=_.slice();for(;N.length>0;)if(h=N.pop(),u=P[h]){var j={},U=u.hot._disposeHandlers;for(l=0;l<U.length;l++)(i=U[l])(j);for(s[h]=j,u.hot.active=!1,delete P[h],delete y[h],l=0;l<u.children.length;l++){var z=P[u.children[l]];z&&((B=z.parents.indexOf(h))>=0&&z.parents.splice(B,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h]))for(F=y[h],l=0;l<F.length;l++)D=F[l],(B=u.children.indexOf(D))>=0&&u.children.splice(B,1);f("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,b)Object.prototype.hasOwnProperty.call(b,h)&&(t[h]=b[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=u.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<k.length;c++){var W=k[c];h=W.module,a=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return f("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return f("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var P={},L={0:0};function R(e){if(P[e])return P[e].exports;var n=P[e]={i:e,l:!1,exports:{},hot:u(e),parents:(c=a,a=[],c),children:[]};return t[e].call(n.exports,n,n.exports,l(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=L[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=L[t]=[e,r]}));e.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,R.nc&&s.setAttribute("nonce",R.nc),s.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var a=new Error;i=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=L[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,n[1](a)}L[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(e)},R.m=t,R.c=P,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],B=O.push.bind(O);O.push=e,O=O.slice();for(var k=0;k<O.length;k++)e(O[k]);var D=B;return l(122)(R.s=122)}([function(t,e,n){"use strict";(function(t){var r=n(85);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),t=>{const e=i.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),l=t=>e=>typeof e===t,{isArray:u}=Array,h=l("undefined");const d=c("ArrayBuffer");const f=l("string"),p=l("function"),m=l("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=c("Date"),_=c("File"),b=c("Blob"),x=c("FileList"),w=c("URLSearchParams");function S(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function M(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,C=t=>!h(t)&&t!==A;const E=(T="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>T&&t instanceof T);var T;const I=c("HTMLFormElement"),P=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),L=c("RegExp"),R=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};S(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},O="abcdefghijklmnopqrstuvwxyz",B={DIGIT:"0123456789",ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+"0123456789"};const k=c("AsyncFunction");e.a={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=s(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:f,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:h,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:w,isTypedArray:E,isFileList:x,forEach:S,merge:function t(){const{caseless:e}=C(this)&&this||{},n={},r=(r,i)=>{const o=e&&M(n,i)||i;v(n[o])&&v(r)?n[o]=t(n[o],r):v(r)?n[o]=t({},r):u(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(S(e,(e,i)=>{n&&p(e)?t[i]=Object(r.a)(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:t=>{R(t,(e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:M,global:A,isContextDefined:C,ALPHABET:B,generateString:(t=16,e=B.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=u(t)?[]:{};return S(t,(t,e)=>{const o=n(t,r+1);!h(o)&&(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:k,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,n(10))},function(t,e,n){"use strict";var r=n(0);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{const l=Object.create(o);return r.a.toFlatObject(t,l,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),i.call(l,t.message,e,n,s,a),l.cause=t,l.name=t.name,c&&Object.assign(l,c),l},e.a=i},function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(270)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},l=c.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),h=a.enc={},d=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*c,o);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),a.algo={});return a}(Math),r)}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=e.isOverManyTarget=e.getAllChildren=e.treeMenuFindPath=e.treeFindPath=e.prefixCls=void 0;var r,i=n(53),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.children){var h=t(u.children,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.treeMenuFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.childMenuList){var h=t(u.childMenuList,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.isOverManyTarget=function(t,e){if(t===e)return!1;var n=parseInt(t.style.left),r=parseInt(t.style.top),i=n+parseInt(t.style.width),o=r+parseInt(t.style.height),s=parseInt(e.style.left),a=parseInt(e.style.top),c=s+parseInt(e.style.width),l=a+parseInt(e.style.height),u=Math.min(i,c)-Math.max(n,s),h=Math.min(o,l)-Math.max(r,a),d=(u>0?u:0)*(h>0?h:0),f=parseInt(t.style.width)*parseInt(t.style.height);return d>f/2&&d<=f?t:null},e.getWidth=function(t){var e=t&&"function"==typeof t.getBoundingClientRect&&t.getBoundingClientRect().width;return e&&(e=+e.toFixed(6)),e||0}},function(t,e,n){(function(t,n){var r="[object Map]",i="[object Set]",o=/^\[object .+?Constructor\]$/,s="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,c=s||a||Function("return this")(),l=e&&!e.nodeType&&e,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,h=u&&u.exports===l;var d,f,p,m=Function.prototype,g=Object.prototype,v=c["__core-js_shared__"],y=(d=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h?c.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=(f=Object.keys,p=Object,function(t){return f(p(t))}),E=j(c,"DataView"),T=j(c,"Map"),I=j(c,"Promise"),P=j(c,"Set"),L=j(c,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:o).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&"[object DataView]"!=U(new E(new ArrayBuffer(1)))||T&&U(new T)!=r||I&&"[object Promise]"!=U(I.resolve())||P&&U(new P)!=i||L&&"[object WeakMap]"!=U(new L))&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,o=n?z(n):void 0;if(o)switch(o){case O:return"[object DataView]";case B:return r;case k:return"[object Promise]";case D:return i;case F:return"[object WeakMap]"}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==i)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.cookieStore=e.localStore=e.sessionStore=void 0;var r=l(n(152)),i=l(n(47)),o=l(n(153)),s=l(n(155)),a=l(n(154)),c=l(n(249));function l(t){return t&&t.__esModule?t:{default:t}}var u=r.default.createStore(s.default,c.default),h=r.default.createStore(o.default,c.default),d=r.default.createStore(a.default,c.default);e.sessionStore=u,e.localStore=h,e.cookieStore=d,e.storage=i.default},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));function r(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function o(t,e){return t|e}function s(t,e){return t^e}function a(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function l(t){for(var e=0;0!=t;)t&=t-1,++e;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeCache=e.setCache=e.getCache=e.sessionEngine=e.localEngine=void 0;var r=n(5),i=n(136),o=e.localEngine="localStorage";e.sessionEngine="sessionStorage",e.getCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.get(t):r.sessionStore.get(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.get(n+"_"+t):r.sessionStore.get(n+"_"+t)}return e===o?r.localStore.get(t):r.sessionStore.get(t)},e.setCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(i.version.includes("0.12"))return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var s=window.__RK_WEB_CORE_APPID__;return n===o?r.localStore.set(s+"_"+t,e):r.sessionStore.set(s+"_"+t,e)}return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e)},e.removeCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.remove(t):r.sessionStore.remove(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.remove(n+"_"+t):r.sessionStore.remove(n+"_"+t)}return e===o?r.localStore.remove(t):r.sessionStore.remove(t)}},function(t,e,n){var r=n(15),i=n(6),o=n(26),s=n(27),a=n(36),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=f?i:i[e]||(i[e]={}),_=y.prototype,b=f?r:p?r[e]:(r[e]||{}).prototype;for(l in f&&(n=e),n)(u=!d&&b&&void 0!==b[l])&&a(y,l)||(h=u?b[l]:n[l],y[l]=f&&"function"!=typeof b[l]?n[l]:g&&u?o(h,r):v&&b[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&_&&!_[l]&&s(_,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r,i,o,s,a,c,l,u,h,d,f,p,m,g,v,y,_,b,x;t.exports=(r=n(2),n(29),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,h=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=f.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(i.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=a.random(8)),i)o=h.create({keySize:e+n,hasher:i}).compute(t,r);else var o=h.create({keySize:e+n}).compute(t,r);var s=a.create(o.words.slice(e),4*n);return o.sigBytes=4*e,v.create({key:o,iv:s,salt:r})}},x=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appTracking=e.getPk=e.getTimestamp=e.UpPassword=e.BoundWx=e.UnboundWx=e.CheckPhone=e.UpUserPhone=e.UserMsgAuth=e.SendMsg=e.UpUserName=e.getQueryHistory=e.getLatelyVersion=e.iamRedirect=e.getBelongList=e.getRegionDataInfo=e.postConsumer=e.getByCuser=e.getUserInfo=e.refreshToken=e.getQrcode=e.boundWxgzh=e.getBySysCodes=e.getToken=e.Api=void 0;var r=l(n(41)),i=l(n(233)),o=l(n(17)),s=n(5),a=l(n(4)),c=l(n(135));l(n(116));function l(t){return t&&t.__esModule?t:{default:t}}var u=e.Api={refreshToken:"/iam/v1/sys/oauth/refreshToken",token:"/iam/v1/sys/oauth/token",info:"/iam/v1/sys/user/info",getByCuser:"/iam/v1/sys/system/getByCuser",postConsumer:"/iam/v1/sys/user/exchange/consumer",getRegionDataInfo:"https://gateway-bmg-out.rockontrol.com/bmg/v1/apply/weather/{areaCode}",appTracking:"/bmg/v1/apply/tracking",getBelongList:"/iam/v1/sys/consumer/belongBySysList",iamRedirect:"/iam/v1/sys/authorize/redirect",getBySysCodes:"/iam/v1/sys/system/getBySysCodes",latelyVersion:"/iam/v1/sys/version/latelyVersion",queryHistory:"/iam/v1/sys/version/queryHistory",upUserName:"/iam/v1/sys/user/upUserName",sendMsg:"/iam/v1/sys/send/msg",userMsgAuth:"/iam/v1/sys/user/userMsgAuth",upUserPhone:"/iam/v1/sys/user/userPhone",checkPhone:"/iam/v1/sys/user/check/phone",unboundWx:"/iam/v1/sys/user/unboundWx",boundWx:"/iam/v1/sys/user/boundWx/{code}",getQrcode:"/iam/v1/sys/oauth/wx/getQrcode",boundWxgzh:"/iam/v1/sys/user/boundWxgzh/{code}",upPassword:"/iam/v1/sys/update/password",pk:"/iam/v1/sys/pk",timestamp:"/iam/v1/sys/timestamp"},h=new i.default;e.getToken=function(t){return(0,a.default)(h)?(h.set("code",t.code),o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t)):h.has("code")&&h.get("code")!==t.code?o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t):new r.default((function(t){t()}))},e.getBySysCodes=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.getBySysCodes,t)},e.boundWxgzh=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWxgzh,t)},e.getQrcode=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getQrcode,t)},e.refreshToken=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.refreshToken,t)},e.getUserInfo=function(t,e){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.info,t,e)},e.getByCuser=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getByCuser,t)},e.postConsumer=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.postConsumer+"/"+t)},e.getRegionDataInfo=function(t){return o.default.get(u.getRegionDataInfo,t)},e.getBelongList=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getBelongList,t)},e.iamRedirect=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.iamRedirect,t)},e.getLatelyVersion=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.latelyVersion,t)},e.getQueryHistory=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.queryHistory,t)},e.UpUserName=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserName,t)},e.SendMsg=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.sendMsg,t)},e.UserMsgAuth=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.userMsgAuth,t)},e.UpUserPhone=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserPhone,t)},e.CheckPhone=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.checkPhone,t)},e.UnboundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.unboundWx,t)},e.BoundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWx,t)},e.UpPassword=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upPassword,t)},e.getTimestamp=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.timestamp,t)},e.getPk=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.pk+"/"+t.code,t)},e.appTracking=function(t){var e=s.sessionStore.get("BURYINGPOINT_URL"),n="";return n=(0,a.default)(e)?window.location.protocol+"//srv-bmg-gateway---bmg.jiahuayun-huanbao-dev.rocktl.com":e,o.default.post(""+(n+u.appTracking),(0,c.default)(t,["productId","productName","resourceId","resourceName","resourceType","resourceDetails"]))}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(195),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r;
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
@@ -10,7 +10,11 @@
10
10
  * Released under the MIT License.
11
11
  */
12
12
  var i=Object.freeze({}),o=Array.isArray;function s(t){return null==t}function a(t){return null!=t}function c(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}var d=Object.prototype.toString;function f(t){return"[object Object]"===d.call(t)}function p(t){return"[object RegExp]"===d.call(t)}function m(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===d?JSON.stringify(t,y,2):String(t)}function y(t,e){return e&&e.__v_isRef?e.value:e}function _(t){var e=parseFloat(t);return isNaN(e)?t:e}function b(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var x=b("slot,component",!0),w=b("key,ref,slot,slot-scope,is");function S(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var M=Object.prototype.hasOwnProperty;function A(t,e){return M.call(t,e)}function C(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var E=/-(\w)/g,T=C((function(t){return t.replace(E,(function(t,e){return e?e.toUpperCase():""}))})),I=C((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),P=/\B([A-Z])/g,L=C((function(t){return t.replace(P,"-$1").toLowerCase()}));var R=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function B(t,e){for(var n in e)t[n]=e[n];return t}function k(t){for(var e={},n=0;n<t.length;n++)t[n]&&B(e,t[n]);return e}function D(t,e,n){}var F=function(t,e,n){return!1},N=function(t){return t};function j(t,e){if(t===e)return!0;var n=h(t),r=h(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return j(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return j(t[n],e[n])}))}catch(t){return!1}}function U(t,e){for(var n=0;n<t.length;n++)if(j(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function G(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var H=["component","directive","filter"],W=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:D,parsePlatformTagName:N,mustUseProp:F,async:!0,_lifecycleHooks:W},Z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Q(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function X(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Y=new RegExp("[^".concat(Z.source,".$_\\d]"));var J="__proto__"in{},q="undefined"!=typeof window,K=q&&window.navigator.userAgent.toLowerCase(),$=K&&/msie|trident/.test(K),tt=K&&K.indexOf("msie 9.0")>0,et=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");var nt=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);var rt,it=K&&K.match(/firefox\/(\d+)/),ot={}.watch,st=!1;if(q)try{var at={};Object.defineProperty(at,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,at)}catch(t){}var ct=function(){return void 0===rt&&(rt=!q&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),rt},lt=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"==typeof t&&/native code/.test(t.toString())}var ht,dt="undefined"!=typeof Symbol&&ut(Symbol)&&"undefined"!=typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!=typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=null;function pt(){return ft&&{proxy:ft}}function mt(t){void 0===t&&(t=null),t||ft&&ft._scope.off(),ft=t,t&&t._scope.on()}var gt=function(){function t(t,e,n,r,i,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),vt=function(t){void 0===t&&(t="");var e=new gt;return e.text=t,e.isComment=!0,e};function yt(t){return new gt(void 0,void 0,void 0,String(t))}function _t(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"==typeof SuppressedError&&SuppressedError;var bt=0,xt=[],wt=function(){function t(){this._pending=!1,this.id=bt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,xt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,r=e.length;n<r;n++){0,e[n].update()}},t}();wt.target=null;var St=[];function Mt(t){St.push(t),wt.target=t}function At(){St.pop(),wt.target=St[St.length-1]}var Ct=Array.prototype,Et=Object.create(Ct);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=Ct[t];X(Et,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&s.observeArray(i),s.dep.notify(),o}))}));var Tt=Object.getOwnPropertyNames(Et),It={},Pt=!0;function Lt(t){Pt=t}var Rt={notify:D,depend:D,addSub:D,removeSub:D},Ot=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Rt:new wt,this.vmCount=0,X(t,"__ob__",this),o(t)){if(!n)if(J)t.__proto__=Et;else for(var r=0,i=Tt.length;r<i;r++){X(t,a=Tt[r],Et[a])}e||this.observeArray(t)}else{var s=Object.keys(t);for(r=0;r<s.length;r++){var a;kt(t,a=s[r],It,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Bt(t[e],!1,this.mock)},t}();function Bt(t,e,n){return t&&A(t,"__ob__")&&t.__ob__ instanceof Ot?t.__ob__:!Pt||!n&&ct()||!o(t)&&!f(t)||!Object.isExtensible(t)||t.__v_skip||Xt(t)||t instanceof gt?void 0:new Ot(t,e,n)}function kt(t,e,n,r,i,s,a){void 0===a&&(a=!1);var c=new wt,l=Object.getOwnPropertyDescriptor(t,e);if(!l||!1!==l.configurable){var u=l&&l.get,h=l&&l.set;u&&!h||n!==It&&2!==arguments.length||(n=t[e]);var d=i?n&&n.__ob__:Bt(n,!1,s);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return wt.target&&(c.depend(),d&&(d.dep.depend(),o(e)&&Nt(e))),Xt(e)&&!i?e.value:e},set:function(e){var r=u?u.call(t):n;if(G(r,e)){if(h)h.call(t,e);else{if(u)return;if(!i&&Xt(r)&&!Xt(e))return void(r.value=e);n=e}d=i?e&&e.__ob__:Bt(e,!1,s),c.notify()}}}),c}}function Dt(t,e,n){if(!Wt(t)){var r=t.__ob__;return o(t)&&m(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&Bt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(kt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function Ft(t,e){if(o(t)&&m(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||Wt(t)||A(t,e)&&(delete t[e],n&&n.dep.notify())}}function Nt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),o(e)&&Nt(e)}function jt(t){return zt(t,!1),t}function Ut(t){return zt(t,!0),X(t,"__v_isShallow",!0),t}function zt(t,e){if(!Wt(t)){Bt(t,e,ct());0}}function Gt(t){return Wt(t)?Gt(t.__v_raw):!(!t||!t.__ob__)}function Ht(t){return!(!t||!t.__v_isShallow)}function Wt(t){return!(!t||!t.__v_isReadonly)}function Vt(t){return Gt(t)||Wt(t)}function Zt(t){var e=t&&t.__v_raw;return e?Zt(e):t}function Qt(t){return Object.isExtensible(t)&&X(t,"__v_skip",!0),t}function Xt(t){return!(!t||!0!==t.__v_isRef)}function Yt(t){return qt(t,!1)}function Jt(t){return qt(t,!0)}function qt(t,e){if(Xt(t))return t;var n={};return X(n,"__v_isRef",!0),X(n,"__v_isShallow",e),X(n,"dep",kt(n,"value",t,null,e,ct())),n}function Kt(t){t.dep&&t.dep.notify()}function $t(t){return Xt(t)?t.value:t}function te(t){if(Gt(t))return t;for(var e={},n=Object.keys(t),r=0;r<n.length;r++)ee(e,t,n[r]);return e}function ee(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Xt(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];Xt(r)&&!Xt(t)?r.value=t:e[n]=t}})}function ne(t){var e=new wt,n=t((function(){e.depend()}),(function(){e.notify()})),r=n.get,i=n.set,o={get value(){return r()},set value(t){i(t)}};return X(o,"__v_isRef",!0),o}function re(t){var e=o(t)?new Array(t.length):{};for(var n in t)e[n]=ie(t,n);return e}function ie(t,e,n){var r=t[e];if(Xt(r))return r;var i={get value(){var r=t[e];return void 0===r?n:r},set value(n){t[e]=n}};return X(i,"__v_isRef",!0),i}function oe(t){return se(t,!1)}function se(t,e){if(!f(t))return t;if(Wt(t))return t;var n=e?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=t[n];if(r)return r;var i=Object.create(Object.getPrototypeOf(t));X(t,n,i),X(i,"__v_isReadonly",!0),X(i,"__v_raw",t),Xt(t)&&X(i,"__v_isRef",!0),(e||Ht(t))&&X(i,"__v_isShallow",!0);for(var o=Object.keys(t),s=0;s<o.length;s++)ae(i,t,o[s],e);return i}function ae(t,e,n,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];return r||!f(t)?t:oe(t)},set:function(){}})}function ce(t){return se(t,!0)}function le(t,e){var n,r,i=u(t);i?(n=t,r=D):(n=t.get,r=t.set);var o=ct()?null:new br(ft,n,D,{lazy:!0});var s={effect:o,get value(){return o?(o.dirty&&o.evaluate(),wt.target&&o.depend(),o.value):n()},set value(t){r(t)}};return X(s,"__v_isRef",!0),X(s,"__v_isReadonly",i),s}var ue=C((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function he(t,e){function n(){var t=n.fns;if(!o(t))return jn(t,null,arguments,e,"v-on handler");for(var r=t.slice(),i=0;i<r.length;i++)jn(r[i],null,arguments,e,"v-on handler")}return n.fns=t,n}function de(t,e,n,r,i,o){var a,l,u,h;for(a in t)l=t[a],u=e[a],h=ue(a),s(l)||(s(u)?(s(l.fns)&&(l=t[a]=he(l,o)),c(h.once)&&(l=t[a]=i(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==u&&(u.fns=l,t[a]=u));for(a in e)s(t[a])&&r((h=ue(a)).name,e[a],h.capture)}function fe(t,e,n){var r;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function o(){n.apply(this,arguments),S(r.fns,o)}s(i)?r=he([o]):a(i.fns)&&c(i.merged)?(r=i).fns.push(o):r=he([i,o]),r.merged=!0,t[e]=r}function pe(t,e,n,r,i){if(a(e)){if(A(e,n))return t[n]=e[n],i||delete e[n],!0;if(A(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function me(t){return l(t)?[yt(t)]:o(t)?function t(e,n){var r,i,u,h,d=[];for(r=0;r<e.length;r++)s(i=e[r])||"boolean"==typeof i||(u=d.length-1,h=d[u],o(i)?i.length>0&&(ge((i=t(i,"".concat(n||"","_").concat(r)))[0])&&ge(h)&&(d[u]=yt(h.text+i[0].text),i.shift()),d.push.apply(d,i)):l(i)?ge(h)?d[u]=yt(h.text+i):""!==i&&d.push(yt(i)):ge(i)&&ge(h)?d[u]=yt(h.text+i.text):(c(e._isVList)&&a(i.tag)&&s(i.key)&&a(n)&&(i.key="__vlist".concat(n,"_").concat(r,"__")),d.push(i)));return d}(t):void 0}function ge(t){return a(t)&&a(t.text)&&!1===t.isComment}function ve(t,e,n,r,i,d){return(o(n)||l(n))&&(i=r,r=n,n=void 0),c(d)&&(i=2),function(t,e,n,r,i){if(a(n)&&a(n.__ob__))return vt();a(n)&&a(n.is)&&(e=n.is);if(!e)return vt();0;o(r)&&u(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===i?r=me(r):1===i&&(r=function(t){for(var e=0;e<t.length;e++)if(o(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var l,d;if("string"==typeof e){var f=void 0;d=t.$vnode&&t.$vnode.ns||V.getTagNamespace(e),l=V.isReservedTag(e)?new gt(V.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!a(f=Xr(t.$options,"components",e))?new gt(e,n,r,void 0,void 0,t):Nr(f,n,t,r,e)}else l=Nr(e,n,t,r);return o(l)?l:a(l)?(a(d)&&function t(e,n,r){e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0);if(a(e.children))for(var i=0,o=e.children.length;i<o;i++){var l=e.children[i];a(l.tag)&&(s(l.ns)||c(r)&&"svg"!==l.tag)&&t(l,n,r)}}(l,d),a(n)&&function(t){h(t.style)&&yr(t.style);h(t.class)&&yr(t.class)}(n),l):vt()}(t,e,n,r,i)}function ye(t,e){var n,r,i,s,c=null;if(o(t)||"string"==typeof t)for(c=new Array(t.length),n=0,r=t.length;n<r;n++)c[n]=e(t[n],n);else if("number"==typeof t)for(c=new Array(t),n=0;n<t;n++)c[n]=e(n+1,n);else if(h(t))if(dt&&t[Symbol.iterator]){c=[];for(var l=t[Symbol.iterator](),u=l.next();!u.done;)c.push(e(u.value,c.length)),u=l.next()}else for(i=Object.keys(t),c=new Array(i.length),n=0,r=i.length;n<r;n++)s=i[n],c[n]=e(t[s],s,n);return a(c)||(c=[]),c._isVList=!0,c}function _e(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=B(B({},r),n)),i=o(n)||(u(e)?e():e)):i=this.$slots[t]||(u(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function be(t){return Xr(this.$options,"filters",t,!0)||N}function xe(t,e){return o(t)?-1===t.indexOf(e):t!==e}function we(t,e,n,r,i){var o=V.keyCodes[e]||n;return i&&r&&!V.keyCodes[e]?xe(i,r):o?xe(o,t):r?L(r)!==e:void 0===t}function Se(t,e,n,r,i){if(n)if(h(n)){o(n)&&(n=k(n));var s=void 0,a=function(o){if("class"===o||"style"===o||w(o))s=t;else{var a=t.attrs&&t.attrs.type;s=r||V.mustUseProp(e,a,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=T(o),l=L(o);c in s||l in s||(s[o]=n[o],i&&((t.on||(t.on={}))["update:".concat(o)]=function(t){n[o]=t}))};for(var c in n)a(c)}else;return t}function Me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Ce(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function Ae(t,e,n){return Ce(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function Ce(t,e,n){if(o(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Ee(t[r],"".concat(e,"_").concat(r),n);else Ee(t,e,n)}function Ee(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Te(t,e){if(e)if(f(e)){var n=t.on=t.on?B({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ie(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var s=t[i];o(s)?Ie(s,e,n):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return r&&(e.$key=r),e}function Pe(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Le(t,e){return"string"==typeof t?e+t:t}function Re(t){t._o=Ae,t._n=_,t._s=v,t._l=ye,t._t=_e,t._q=j,t._i=U,t._m=Me,t._f=be,t._k=we,t._b=Se,t._v=yt,t._e=vt,t._u=Ie,t._g=Te,t._d=Pe,t._p=Le}function Oe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(Be)&&delete n[l];return n}function Be(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ke(t){return t.isComment&&t.asyncFactory}function De(t,e,n,r){var o,s=Object.keys(n).length>0,a=e?!!e.$stable:!s,c=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==i&&c===r.$key&&!s&&!r.$hasNormal)return r;for(var l in o={},e)e[l]&&"$"!==l[0]&&(o[l]=Fe(t,n,l,e[l]))}else o={};for(var u in n)u in o||(o[u]=Ne(n,u));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",a),X(o,"$key",c),X(o,"$hasNormal",s),o}function Fe(t,e,n,r){var i=function(){var e=ft;mt(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:me(n))&&n[0];return mt(e),n&&(!i||1===n.length&&i.isComment&&!ke(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function Ne(t,e){return function(){return t[e]}}function je(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};X(e,"_v_attr_proxy",!0),Ue(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||Ue(t._listenersProxy={},t.$listeners,i,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||Ge(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:R(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return ee(t,e,n)}))}}}function Ue(t,e,n,r,i){var o=!1;for(var s in e)s in t?e[s]!==n[s]&&(o=!0):(o=!0,ze(t,s,r,i));for(var s in t)s in e||(o=!0,delete t[s]);return o}function ze(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function Ge(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function He(){return Ze().slots}function We(){return Ze().attrs}function Ve(){return Ze().listeners}function Ze(){var t=ft;return t._setupContext||(t._setupContext=je(t))}function Qe(t,e){var n=o(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var r in e){var i=n[r];i?o(i)||u(i)?n[r]={type:i,default:e[r]}:i.default=e[r]:null===i&&(n[r]={default:e[r]})}return n}var Xe,Ye,Je=null;function qe(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function Ke(t){if(o(t))for(var e=0;e<t.length;e++){var n=t[e];if(a(n)&&(a(n.componentOptions)||ke(n)))return n}}function $e(t,e){Xe.$on(t,e)}function tn(t,e){Xe.$off(t,e)}function en(t,e){var n=Xe;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function nn(t,e,n){Xe=t,de(e,n||{},$e,tn,en,t),Xe=void 0}var rn=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=Ye;try{return Ye=this,t()}finally{Ye=e}}else 0},t.prototype.on=function(){Ye=this},t.prototype.off=function(){Ye=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();function on(t){return new rn(t)}function sn(){return Ye}function an(t){Ye&&Ye.cleanups.push(t)}var cn=null;function ln(t){var e=cn;return cn=t,function(){cn=e}}function un(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function hn(t,e){if(e){if(t._directInactive=!1,un(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)hn(t.$children[n]);dn(t,"activated")}}function dn(t,e,n,r){void 0===r&&(r=!0),Mt();var i=ft,o=sn();r&&mt(t);var s=t.$options[e],a="".concat(e," hook");if(s)for(var c=0,l=s.length;c<l;c++)jn(s[c],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&(mt(i),o&&o.on()),At()}var fn=[],pn=[],mn={},gn=!1,vn=!1,yn=0;var _n=0,bn=Date.now;if(q&&!$){var xn=window.performance;xn&&"function"==typeof xn.now&&bn()>document.createEvent("Event").timeStamp&&(bn=function(){return xn.now()})}var wn=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Sn(){var t,e;for(_n=bn(),vn=!0,fn.sort(wn),yn=0;yn<fn.length;yn++)(t=fn[yn]).before&&t.before(),e=t.id,mn[e]=null,t.run();var n=pn.slice(),r=fn.slice();yn=fn.length=pn.length=0,mn={},gn=vn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,hn(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&dn(r,"updated")}}(r),function(){for(var t=0;t<xt.length;t++){var e=xt[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}xt.length=0}(),lt&&V.devtools&&lt.emit("flush")}function Mn(t){var e=t.id;if(null==mn[e]&&(t!==wt.target||!t.noRecurse)){if(mn[e]=!0,vn){for(var n=fn.length-1;n>yn&&fn[n].id>t.id;)n--;fn.splice(n+1,0,t)}else fn.push(t);gn||(gn=!0,qn(Sn))}}var An="".concat("watcher"," callback"),Cn="".concat("watcher"," getter"),En="".concat("watcher"," cleanup");function Tn(t,e){return On(t,null,e)}function In(t,e){return On(t,null,{flush:"post"})}function Pn(t,e){return On(t,null,{flush:"sync"})}var Ln={};function Rn(t,e,n){return On(t,e,n)}function On(t,e,n){var r=void 0===n?i:n,s=r.immediate,a=r.deep,c=r.flush,l=void 0===c?"pre":c;r.onTrack,r.onTrigger;var h,d,f=ft,p=function(t,e,n){void 0===n&&(n=null);var r=jn(t,null,n,f,e);return a&&r&&r.__ob__&&r.__ob__.dep.depend(),r},m=!1,g=!1;if(Xt(t)?(h=function(){return t.value},m=Ht(t)):Gt(t)?(h=function(){return t.__ob__.dep.depend(),t},a=!0):o(t)?(g=!0,m=t.some((function(t){return Gt(t)||Ht(t)})),h=function(){return t.map((function(t){return Xt(t)?t.value:Gt(t)?(t.__ob__.dep.depend(),yr(t)):u(t)?p(t,Cn):void 0}))}):h=u(t)?e?function(){return p(t,Cn)}:function(){if(!f||!f._isDestroyed)return d&&d(),p(t,"watcher",[y])}:D,e&&a){var v=h;h=function(){return yr(v())}}var y=function(t){d=_.onStop=function(){p(t,En)}};if(ct())return y=D,e?s&&p(e,An,[h(),g?[]:void 0,y]):h(),D;var _=new br(ft,h,D,{lazy:!0});_.noRecurse=!e;var b=g?[]:Ln;return _.run=function(){if(_.active)if(e){var t=_.get();(a||m||(g?t.some((function(t,e){return G(t,b[e])})):G(t,b)))&&(d&&d(),p(e,An,[t,b===Ln?void 0:b,y]),b=t)}else _.get()},"sync"===l?_.update=_.run:"post"===l?(_.post=!0,_.update=function(){return Mn(_)}):_.update=function(){if(f&&f===ft&&!f._isMounted){var t=f._preWatchers||(f._preWatchers=[]);t.indexOf(_)<0&&t.push(_)}else Mn(_)},e?s?_.run():b=_.get():"post"===l&&f?f.$once("hook:mounted",(function(){return _.get()})):_.get(),function(){_.teardown()}}function Bn(t,e){ft&&(kn(ft)[t]=e)}function kn(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function Dn(t,e,n){void 0===n&&(n=!1);var r=ft;if(r){var i=r.$parent&&r.$parent._provided;if(i&&t in i)return i[t];if(arguments.length>1)return n&&u(e)?e.call(r):e}else 0}function Fn(t,e,n){return ve(ft,t,e,n,2,!0)}function Nn(t,e,n){Mt();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Un(t,r,"errorCaptured hook")}}Un(t,e,n)}finally{At()}}function jn(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(t){return Nn(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Nn(t,r,i)}return o}function Un(t,e,n){if(V.errorHandler)try{return V.errorHandler.call(null,t,e,n)}catch(e){e!==t&&zn(e,null,"config.errorHandler")}zn(t,e,n)}function zn(t,e,n){if(!q||"undefined"==typeof console)throw t;console.error(t)}var Gn,Hn=!1,Wn=[],Vn=!1;function Zn(){Vn=!1;var t=Wn.slice(0);Wn.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ut(Promise)){var Qn=Promise.resolve();Gn=function(){Qn.then(Zn),nt&&setTimeout(D)},Hn=!0}else if($||"undefined"==typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Gn=void 0!==r&&ut(r)?function(){r(Zn)}:function(){setTimeout(Zn,0)};else{var Xn=1,Yn=new MutationObserver(Zn),Jn=document.createTextNode(String(Xn));Yn.observe(Jn,{characterData:!0}),Gn=function(){Xn=(Xn+1)%2,Jn.data=String(Xn)},Hn=!0}function qn(t,e){var n;if(Wn.push((function(){if(t)try{t.call(e)}catch(t){Nn(t,e,"nextTick")}else n&&n(e)})),Vn||(Vn=!0,Gn()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function Kn(t){if(void 0===t&&(t="$style"),!ft)return i;var e=ft[t];return e||i}function $n(t){if(q){var e=ft;e&&In((function(){var n=e.$el,r=t(e,e._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}}function tr(t){u(t)&&(t={loader:t});var e=t.loader,n=t.loadingComponent,r=t.errorComponent,i=t.delay,o=void 0===i?200:i,s=t.timeout,a=(t.suspensible,t.onError);var c=null,l=0,h=function(){var t;return c||(t=c=e().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise((function(e,n){a(t,(function(){return e((l++,c=null,h()))}),(function(){return n(t)}),l+1)}));throw t})).then((function(e){return t!==c&&c?c:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e)})))};return function(){return{component:h(),delay:o,timeout:s,error:r,loading:n}}}function er(t){return function(e,n){if(void 0===n&&(n=ft),n)return function(t,e,n){var r=t.$options;r[e]=Wr(r[e],n)}(n,t,e)}}var nr=er("beforeMount"),rr=er("mounted"),ir=er("beforeUpdate"),or=er("updated"),sr=er("beforeDestroy"),ar=er("destroyed"),cr=er("activated"),lr=er("deactivated"),ur=er("serverPrefetch"),hr=er("renderTracked"),dr=er("renderTriggered"),fr=er("errorCaptured");function pr(t,e){void 0===e&&(e=ft),fr(t,e)}var mr="2.7.16";function gr(t){return t}var vr=new ht;function yr(t){return function t(e,n){var r,i,s=o(e);if(!s&&!h(e)||e.__v_skip||Object.isFrozen(e)||e instanceof gt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(s)for(r=e.length;r--;)t(e[r],n);else if(Xt(e))t(e.value,n);else for(i=Object.keys(e),r=i.length;r--;)t(e[i[r]],n)}(t,vr),vr.clear(),t}var _r=0,br=function(){function t(t,e,n,r,i){var o,s;o=this,void 0===(s=Ye&&!Ye._vm?Ye:t?t._scope:void 0)&&(s=Ye),s&&s.active&&s.effects.push(o),(this.vm=t)&&i&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++_r,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="",u(e)?this.getter=e:(this.getter=function(t){if(!Y.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;Mt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Nn(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&yr(t),At(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Mn(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');jn(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&S(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),xr={enumerable:!0,configurable:!0,get:D,set:D};function wr(t,e,n){xr.get=function(){return this[e][n]},xr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,xr)}function Sr(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Ut({}),i=t.$options._propKeys=[];t.$parent&&Lt(!1);var o=function(o){i.push(o);var s=Yr(o,e,n,t);kt(r,o,s,void 0,!0),o in t||wr(t,"_props",o)};for(var s in e)o(s);Lt(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=je(t);mt(t),Mt();var i=jn(n,null,[t._props||Ut({}),r],t,"setup");if(At(),mt(),u(i))e.render=i;else if(h(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var s in i)"__sfc"!==s&&ee(o,i,s)}else for(var s in i)Q(s)||ee(t,i,s);else 0}}(t),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:R(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;f(e=t._data=u(e)?function(t,e){Mt();try{return t.call(e,e)}catch(t){return Nn(t,e,"data()"),{}}finally{At()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&A(r,o)||Q(o)||wr(t,"_data",o)}var s=Bt(e);s&&s.vmCount++}(t);else{var n=Bt(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var i in e){var o=e[i],s=u(o)?o:o.get;0,r||(n[i]=new br(t,s||D,D,Mr)),i in t||Ar(t,i,o)}}(t,e.computed),e.watch&&e.watch!==ot&&function(t,e){for(var n in e){var r=e[n];if(o(r))for(var i=0;i<r.length;i++)Tr(t,n,r[i]);else Tr(t,n,r)}}(t,e.watch)}var Mr={lazy:!0};function Ar(t,e,n){var r=!ct();u(n)?(xr.get=r?Cr(e):Er(n),xr.set=D):(xr.get=n.get?r&&!1!==n.cache?Cr(e):Er(n.get):D,xr.set=n.set||D),Object.defineProperty(t,e,xr)}function Cr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),wt.target&&e.depend(),e.value}}function Er(t){return function(){return t.call(this,this)}}function Tr(t,e,n,r){return f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function Ir(t,e){if(t){for(var n=Object.create(null),r=dt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var s=t[o].from;if(s in e._provided)n[o]=e._provided[s];else if("default"in t[o]){var a=t[o].default;n[o]=u(a)?a.call(e):a}else 0}}return n}}var Pr=0;function Lr(t){var e=t.options;if(t.super){var n=Lr(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&B(t.extendOptions,r),(e=t.options=Qr(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Rr(t,e,n,r,s){var a,l=this,u=s.options;A(r,"_uid")?(a=Object.create(r))._original=r:(a=r,r=r._original);var h=c(u._compiled),d=!h;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=Ir(u.inject,r),this.slots=function(){return l.$slots||De(r,t.scopedSlots,l.$slots=Oe(n,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return De(r,t.scopedSlots,this.slots())}}),h&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=De(r,t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,i){var s=ve(a,t,e,n,i,d);return s&&!o(s)&&(s.fnScopeId=u._scopeId,s.fnContext=r),s}:this._c=function(t,e,n,r){return ve(a,t,e,n,r,d)}}function Or(t,e,n,r,i){var o=_t(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Br(t,e){for(var n in e)t[T(n)]=e[n]}function kr(t){return t.name||t.__name||t._componentTag}Re(Rr.prototype);var Dr={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Dr.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,cn)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,c=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),l=!!(o||t.$options._renderChildren||c),u=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var h=r.data.attrs||i;t._attrsProxy&&Ue(t._attrsProxy,h,u.data&&u.data.attrs||i,t,"$attrs")&&(l=!0),t.$attrs=h,n=n||i;var d=t.$options._parentListeners;if(t._listenersProxy&&Ue(t._listenersProxy,n,d||i,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,nn(t,n,d),e&&t.$options.props){Lt(!1);for(var f=t._props,p=t.$options._propKeys||[],m=0;m<p.length;m++){var g=p[m],v=t.$options.props;f[g]=Yr(g,v,e,t)}Lt(!0),t.$options.propsData=e}l&&(t.$slots=Oe(o,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,dn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,pn.push(e)):hn(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,un(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);dn(e,"deactivated")}}(e,!0):e.$destroy())}},Fr=Object.keys(Dr);function Nr(t,e,n,r,l){if(!s(t)){var u=n.$options._base;if(h(t)&&(t=u.extend(t)),"function"==typeof t){var d;if(s(t.cid)&&void 0===(t=function(t,e){if(c(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=Je;if(n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),c(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var r=t.owners=[n],i=!0,o=null,l=null;n.$on("hook:destroyed",(function(){return S(r,n)}));var u=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==l&&(clearTimeout(l),l=null))},d=z((function(n){t.resolved=qe(n,e),i?r.length=0:u(!0)})),f=z((function(e){a(t.errorComp)&&(t.error=!0,u(!0))})),p=t(d,f);return h(p)&&(g(p)?s(t.resolved)&&p.then(d,f):g(p.component)&&(p.component.then(d,f),a(p.error)&&(t.errorComp=qe(p.error,e)),a(p.loading)&&(t.loadingComp=qe(p.loading,e),0===p.delay?t.loading=!0:o=setTimeout((function(){o=null,s(t.resolved)&&s(t.error)&&(t.loading=!0,u(!1))}),p.delay||200)),a(p.timeout)&&(l=setTimeout((function(){l=null,s(t.resolved)&&f(null)}),p.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(d=t,u)))return function(t,e,n,r,i){var o=vt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(d,e,n,r,l);e=e||{},Lr(t),a(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),s=i[r],c=e.model.callback;a(s)?(o(s)?-1===s.indexOf(c):s!==c)&&(i[r]=[c].concat(s)):i[r]=c}(t.options,e);var f=function(t,e,n){var r=e.options.props;if(!s(r)){var i={},o=t.attrs,c=t.props;if(a(o)||a(c))for(var l in r){var u=L(l);pe(i,c,l,u,!0)||pe(i,o,l,u,!1)}return i}}(e,t);if(c(t.options.functional))return function(t,e,n,r,s){var c=t.options,l={},u=c.props;if(a(u))for(var h in u)l[h]=Yr(h,u,e||i);else a(n.attrs)&&Br(l,n.attrs),a(n.props)&&Br(l,n.props);var d=new Rr(n,l,s,r,t),f=c.render.call(null,d._c,d);if(f instanceof gt)return Or(f,n,d.parent,c,d);if(o(f)){for(var p=me(f)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=Or(p[g],n,d.parent,c,d);return m}}(t,f,e,n,r);var p=e.on;if(e.on=e.nativeOn,c(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Fr.length;n++){var r=Fr[n],i=e[r],o=Dr[r];i===o||i&&i._merged||(e[r]=i?jr(o,i):o)}}(e);var v=kr(t.options)||l;return new gt("vue-component-".concat(t.cid).concat(v?"-".concat(v):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:p,tag:l,children:r},d)}}}function jr(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var Ur=D,zr=V.optionMergeStrategies;function Gr(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,i,o,s=dt?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(r=s[a])&&(i=t[r],o=e[r],n&&A(t,r)?i!==o&&f(i)&&f(o)&&Gr(i,o):Dt(t,r,o));return t}function Hr(t,e,n){return n?function(){var r=u(e)?e.call(n,n):e,i=u(t)?t.call(n,n):t;return r?Gr(r,i):i}:e?t?function(){return Gr(u(e)?e.call(this,this):e,u(t)?t.call(this,this):t)}:e:t}function Wr(t,e){var n=e?t?t.concat(e):o(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Vr(t,e,n,r){var i=Object.create(t||null);return e?B(i,e):i}zr.data=function(t,e,n){return n?Hr(t,e,n):e&&"function"!=typeof e?t:Hr(t,e)},W.forEach((function(t){zr[t]=Wr})),H.forEach((function(t){zr[t+"s"]=Vr})),zr.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var s in B(i,t),e){var a=i[s],c=e[s];a&&!o(a)&&(a=[a]),i[s]=a?a.concat(c):o(c)?c:[c]}return i},zr.props=zr.methods=zr.inject=zr.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return B(i,t),e&&B(i,e),i},zr.provide=function(t,e){return t?function(){var n=Object.create(null);return Gr(n,u(t)?t.call(this):t),e&&Gr(n,u(e)?e.call(this):e,!1),n}:e};var Zr=function(t,e){return void 0===e?t:e};function Qr(t,e,n){if(u(e)&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,s={};if(o(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(s[T(i)]={type:null});else if(f(n))for(var a in n)i=n[a],s[T(a)]=f(i)?i:{type:i};else 0;t.props=s}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(o(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(f(n))for(var s in n){var a=n[s];r[s]=f(a)?B({from:s},a):{from:a}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];u(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Qr(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Qr(t,e.mixins[r],n);var s,a={};for(s in t)c(s);for(s in e)A(t,s)||c(s);function c(r){var i=zr[r]||Zr;a[r]=i(t[r],e[r],n,r)}return a}function Xr(t,e,n,r){if("string"==typeof n){var i=t[e];if(A(i,n))return i[n];var o=T(n);if(A(i,o))return i[o];var s=I(o);return A(i,s)?i[s]:i[n]||i[o]||i[s]}}function Yr(t,e,n,r){var i=e[t],o=!A(n,t),s=n[t],a=$r(Boolean,i.type);if(a>-1)if(o&&!A(i,"default"))s=!1;else if(""===s||s===L(t)){var c=$r(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(!A(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return u(r)&&"Function"!==qr(e.type)?r.call(t):r}(r,i,t);var l=Pt;Lt(!0),Bt(s),Lt(l)}return s}var Jr=/^\s*function (\w+)/;function qr(t){var e=t&&t.toString().match(Jr);return e?e[1]:""}function Kr(t,e){return qr(t)===qr(e)}function $r(t,e){if(!o(e))return Kr(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Kr(e[n],t))return n;return-1}function ti(t){this._init(t)}function ei(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=kr(t)||kr(n.options);var s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Qr(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)wr(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)Ar(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,H.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=B({},s.options),i[r]=s,s}}function ni(t){return t&&(kr(t.Ctor.options)||t.tag)}function ri(t,e){return o(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function ii(t,e){var n=t.cache,r=t.keys,i=t._vnode,o=t.$vnode;for(var s in n){var a=n[s];if(a){var c=a.name;c&&!e(c)&&oi(n,s,r,i)}}o.componentOptions.children=void 0}function oi(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,S(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Pr++,e._isVue=!0,e.__v_skip=!0,e._scope=new rn(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Qr(Lr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&nn(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Oe(e._renderChildren,r),t.$scopedSlots=n?De(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,r,i){return ve(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return ve(t,e,n,r,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||i,null,!0),kt(t,"$listeners",e._parentListeners||i,null,!0)}(e),dn(e,"beforeCreate",void 0,!1),function(t){var e=Ir(t.$options.inject,t);e&&(Lt(!1),Object.keys(e).forEach((function(n){kt(t,n,e[n])})),Lt(!0))}(e),Sr(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!h(n))return;for(var r=kn(t),i=dt?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var s=i[o];Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(n,s))}}}(e),dn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(ti),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=Ft,t.prototype.$watch=function(t,e,n){if(f(e))return Tr(this,t,e,n);(n=n||{}).user=!0;var r=new br(this,t,e,n);if(n.immediate){var i='callback for immediate watcher "'.concat(r.expression,'"');Mt(),jn(e,this,[r.value],this,i),At()}return function(){r.teardown()}}}(ti),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(o(t))for(var i=0,s=t.length;i<s;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var s,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var c=a.length;c--;)if((s=a[c])===e||s.fn===e){a.splice(c,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'.concat(t,'"'),o=0,s=n.length;o<s;o++)jn(n[o],e,r,e,i)}return e}}(ti),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=ln(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var s=n;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){dn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||S(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),dn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(ti),function(t){Re(t.prototype),t.prototype.$nextTick=function(t){return qn(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e._parentVnode;r&&t._isMounted&&(t.$scopedSlots=De(t.$parent,r.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Ge(t._slotsProxy,t.$scopedSlots)),t.$vnode=r;var i,s=ft,a=Je;try{mt(t),Je=t,i=n.call(t._renderProxy,t.$createElement)}catch(e){Nn(e,t,"render"),i=t._vnode}finally{Je=a,mt(s)}return o(i)&&1===i.length&&(i=i[0]),i instanceof gt||(i=vt()),i.parent=r,i}}(ti);var si=[String,RegExp,Array],ai={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:si,exclude:si,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var i=n.tag,o=n.componentInstance,s=n.componentOptions;t[r]={name:ni(s),tag:i,componentInstance:o},e.push(r),this.max&&e.length>parseInt(this.max)&&oi(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)oi(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){ii(t,(function(t){return ri(e,t)}))})),this.$watch("exclude",(function(e){ii(t,(function(t){return!ri(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ke(t),n=e&&e.componentOptions;if(n){var r=ni(n),i=this.include,o=this.exclude;if(i&&(!r||!ri(i,r))||o&&r&&ri(o,r))return e;var s=this.cache,a=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,S(a,c),a.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return V}};Object.defineProperty(t,"config",e),t.util={warn:Ur,extend:B,mergeOptions:Qr,defineReactive:kt},t.set=Dt,t.delete=Ft,t.nextTick=qn,t.observable=function(t){return Bt(t),t},t.options=Object.create(null),H.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,B(t.options.components,ai),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Qr(this.options,t),this}}(t),ei(t),function(t){H.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ti),Object.defineProperty(ti.prototype,"$isServer",{get:ct}),Object.defineProperty(ti.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ti,"FunctionalRenderContext",{value:Rr}),ti.version=mr;var ci=b("style,class"),li=b("input,textarea,option,select,progress"),ui=function(t,e,n){return"value"===n&&li(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},hi=b("contenteditable,draggable,spellcheck"),di=b("events,caret,typing,plaintext-only"),fi=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),pi="http://www.w3.org/1999/xlink",mi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},gi=function(t){return mi(t)?t.slice(6,t.length):""},vi=function(t){return null==t||!1===t};function yi(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=_i(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=_i(e,n.data));return function(t,e){if(a(t)||a(e))return bi(t,xi(e));return""}(e.staticClass,e.class)}function _i(t,e){return{staticClass:bi(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function bi(t,e){return t?e?t+" "+e:t:e||""}function xi(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)a(e=xi(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):h(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var wi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Si=b("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Mi=b("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ai=function(t){return Si(t)||Mi(t)};function Ci(t){return Mi(t)?"svg":"math"===t?"math":void 0}var Ei=Object.create(null);var Ti=b("text,number,password,search,email,tel,url");function Ii(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var Pi=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(wi[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Li={create:function(t,e){Ri(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ri(t,!0),Ri(e))},destroy:function(t){Ri(t,!0)}};function Ri(t,e){var n=t.data.ref;if(a(n)){var r=t.context,i=t.componentInstance||t.elm,s=e?null:i,c=e?void 0:i;if(u(n))jn(n,r,[s],r,"template ref function");else{var l=t.data.refInFor,h="string"==typeof n||"number"==typeof n,d=Xt(n),f=r.$refs;if(h||d)if(l){var p=h?f[n]:n.value;e?o(p)&&S(p,i):o(p)?p.includes(i)||p.push(i):h?(f[n]=[i],Oi(r,n,f[n])):n.value=[i]}else if(h){if(e&&f[n]!==i)return;f[n]=c,Oi(r,n,s)}else if(d){if(e&&n.value!==i)return;n.value=s}else 0}}}function Oi(t,e,n){var r=t._setupState;r&&A(r,e)&&(Xt(r[e])?r[e].value=n:r[e]=n)}var Bi=new gt("",{},[]),ki=["create","activate","update","remove","destroy"];function Di(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=a(n=t.data)&&a(n=n.attrs)&&n.type,i=a(n=e.data)&&a(n=n.attrs)&&n.type;return r===i||Ti(r)&&Ti(i)}(t,e)||c(t.isAsyncPlaceholder)&&s(e.asyncFactory.error))}function Fi(t,e,n){var r,i,o={};for(r=e;r<=n;++r)a(i=t[r].key)&&(o[i]=r);return o}var Ni={create:ji,update:ji,destroy:function(t){ji(t,Bi)}};function ji(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Bi,s=e===Bi,a=zi(t.data.directives,t.context),c=zi(e.data.directives,e.context),l=[],u=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Hi(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(Hi(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)Hi(l[n],"inserted",e,t)};o?fe(e,"insert",h):h()}u.length&&fe(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Hi(u[n],"componentUpdated",e,t)}));if(!o)for(n in a)c[n]||Hi(a[n],"unbind",t,t,s)}(t,e)}var Ui=Object.create(null);function zi(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=Ui),i[Gi(r)]=r,e._setupState&&e._setupState.__sfc){var o=r.def||Xr(e,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||Xr(e.$options,"directives",r.name)}return i}function Gi(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Hi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Nn(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Wi=[Li,Ni];function Vi(t,e){var n=e.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||s(t.data.attrs)&&s(e.data.attrs))){var r,i,o=e.elm,l=t.data.attrs||{},u=e.data.attrs||{};for(r in(a(u.__ob__)||c(u._v_attr_proxy))&&(u=e.data.attrs=B({},u)),u)i=u[r],l[r]!==i&&Zi(o,r,i,e.data.pre);for(r in($||et)&&u.value!==l.value&&Zi(o,"value",u.value),l)s(u[r])&&(mi(r)?o.removeAttributeNS(pi,gi(r)):hi(r)||o.removeAttribute(r))}}function Zi(t,e,n,r){r||t.tagName.indexOf("-")>-1?Qi(t,e,n):fi(e)?vi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):hi(e)?t.setAttribute(e,function(t,e){return vi(e)||"false"===e?"false":"contenteditable"===t&&di(e)?e:"true"}(e,n)):mi(e)?vi(n)?t.removeAttributeNS(pi,gi(e)):t.setAttributeNS(pi,e,n):Qi(t,e,n)}function Qi(t,e,n){if(vi(n))t.removeAttribute(e);else{if($&&!tt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Xi={create:Vi,update:Vi};function Yi(t,e){var n=e.elm,r=e.data,i=t.data;if(!(s(r.staticClass)&&s(r.class)&&(s(i)||s(i.staticClass)&&s(i.class)))){var o=yi(e),c=n._transitionClasses;a(c)&&(o=bi(o,xi(c))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Ji,qi,Ki,$i,to,eo,no={create:Yi,update:Yi},ro=/[\w).+\-_$\]]/;function io(t){var e,n,r,i,o,s=!1,a=!1,c=!1,l=!1,u=0,h=0,d=0,f=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),s)39===e&&92!==n&&(s=!1);else if(a)34===e&&92!==n&&(a=!1);else if(c)96===e&&92!==n&&(c=!1);else if(l)47===e&&92!==n&&(l=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||u||h||d){switch(e){case 34:a=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--}if(47===e){for(var p=r-1,m=void 0;p>=0&&" "===(m=t.charAt(p));p--);m&&ro.test(m)||(l=!0)}}else void 0===i?(f=r+1,i=t.slice(0,r).trim()):g();function g(){(o||(o=[])).push(t.slice(f,r).trim()),f=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==f&&g(),o)for(r=0;r<o.length;r++)i=oo(i,o[r]);return i}function oo(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var r=e.slice(0,n),i=e.slice(n+1);return'_f("'.concat(r,'")(').concat(t).concat(")"!==i?","+i:i)}function so(t,e){console.error("[Vue compiler]: ".concat(t))}function ao(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function co(t,e,n,r,i){(t.props||(t.props=[])).push(yo({name:e,value:n,dynamic:i},r)),t.plain=!1}function lo(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(yo({name:e,value:n,dynamic:i},r)),t.plain=!1}function uo(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(yo({name:e,value:n},r))}function ho(t,e,n,r,i,o,s,a){(t.directives||(t.directives=[])).push(yo({name:e,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:s},a)),t.plain=!1}function fo(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function po(t,e,n,r,o,s,a,c){var l;(r=r||i).right?c?e="(".concat(e,")==='click'?'contextmenu':(").concat(e,")"):"click"===e&&(e="contextmenu",delete r.right):r.middle&&(c?e="(".concat(e,")==='click'?'mouseup':(").concat(e,")"):"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=fo("!",e,c)),r.once&&(delete r.once,e=fo("~",e,c)),r.passive&&(delete r.passive,e=fo("&",e,c)),r.native?(delete r.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});var u=yo({value:n.trim(),dynamic:c},a);r!==i&&(u.modifiers=r);var h=l[e];Array.isArray(h)?o?h.unshift(u):h.push(u):l[e]=h?o?[u,h]:[h,u]:u,t.plain=!1}function mo(t,e,n){var r=go(t,":"+e)||go(t,"v-bind:"+e);if(null!=r)return io(r);if(!1!==n){var i=go(t,e);if(null!=i)return JSON.stringify(i)}}function go(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var i=t.attrsList,o=0,s=i.length;o<s;o++)if(i[o].name===e){i.splice(o,1);break}return n&&delete t.attrsMap[e],r}function vo(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}function yo(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function _o(t,e,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),i&&(o="_n(".concat(o,")"));var s=bo(e,o);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat("$$v",") {").concat(s,"}")}}function bo(t,e){var n=function(t){if(t=t.trim(),Ji=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<Ji-1)return($i=t.lastIndexOf("."))>-1?{exp:t.slice(0,$i),key:'"'+t.slice($i+1)+'"'}:{exp:t,key:null};qi=t,$i=to=eo=0;for(;!wo();)So(Ki=xo())?Ao(Ki):91===Ki&&Mo(Ki);return{exp:t.slice(0,to),key:t.slice(to+1,eo)}}(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function xo(){return qi.charCodeAt(++$i)}function wo(){return $i>=Ji}function So(t){return 34===t||39===t}function Mo(t){var e=1;for(to=$i;!wo();)if(So(t=xo()))Ao(t);else if(91===t&&e++,93===t&&e--,0===e){eo=$i;break}}function Ao(t){for(var e=t;!wo()&&(t=xo())!==e;);}var Co;function Eo(t,e,n){var r=Co;return function i(){var o=e.apply(null,arguments);null!==o&&Po(t,i,n,r)}}var To=Hn&&!(it&&Number(it[1])<=53);function Io(t,e,n,r){if(To){var i=_n,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Co.addEventListener(t,e,st?{capture:n,passive:r}:n)}function Po(t,e,n,r){(r||Co).removeEventListener(t,e._wrapper||e,n)}function Lo(t,e){if(!s(t.data.on)||!s(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Co=e.elm||t.elm,function(t){if(a(t.__r)){var e=$?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),de(n,r,Io,Po,Eo,e.context),Co=void 0}}var Ro,Oo={create:Lo,update:Lo,destroy:function(t){return Lo(t,Bi)}};function Bo(t,e){if(!s(t.data.domProps)||!s(e.data.domProps)){var n,r,i=e.elm,o=t.data.domProps||{},l=e.data.domProps||{};for(n in(a(l.__ob__)||c(l._v_attr_proxy))&&(l=e.data.domProps=B({},l)),o)n in l||(i[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var u=s(r)?"":String(r);ko(i,u)&&(i.value=u)}else if("innerHTML"===n&&Mi(i.tagName)&&s(i.innerHTML)){(Ro=Ro||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var h=Ro.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;h.firstChild;)i.appendChild(h.firstChild)}else if(r!==o[n])try{i[n]=r}catch(t){}}}}function ko(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return _(n)!==_(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Do={create:Bo,update:Bo},Fo=C((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function No(t){var e=jo(t.style);return t.staticStyle?B(t.staticStyle,e):e}function jo(t){return Array.isArray(t)?k(t):"string"==typeof t?Fo(t):t}var Uo,zo=/^--/,Go=/\s*!important$/,Ho=function(t,e,n){if(zo.test(e))t.style.setProperty(e,n);else if(Go.test(n))t.style.setProperty(L(e),n.replace(Go,""),"important");else{var r=Vo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Wo=["Webkit","Moz","ms"],Vo=C((function(t){if(Uo=Uo||document.createElement("div").style,"filter"!==(t=T(t))&&t in Uo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Wo.length;n++){var r=Wo[n]+e;if(r in Uo)return r}}));function Zo(t,e){var n=e.data,r=t.data;if(!(s(n.staticStyle)&&s(n.style)&&s(r.staticStyle)&&s(r.style))){var i,o,c=e.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},h=l||u,d=jo(e.data.style)||{};e.data.normalizedStyle=a(d.__ob__)?B({},d):d;var f=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=No(i.data))&&B(r,n);(n=No(t.data))&&B(r,n);for(var o=t;o=o.parent;)o.data&&(n=No(o.data))&&B(r,n);return r}(e,!0);for(o in h)s(f[o])&&Ho(c,o,"");for(o in f)i=f[o],Ho(c,o,null==i?"":i)}}var Qo={create:Zo,update:Zo},Xo=/\s+/;function Yo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Jo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function qo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&B(e,Ko(t.name||"v")),B(e,t),e}return"string"==typeof t?Ko(t):void 0}}var Ko=C((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),$o=q&&!tt,ts="transition",es="transitionend",ns="animation",rs="animationend";$o&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ts="WebkitTransition",es="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ns="WebkitAnimation",rs="webkitAnimationEnd"));var is=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function os(t){is((function(){is(t)}))}function ss(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Yo(t,e))}function as(t,e){t._transitionClasses&&S(t._transitionClasses,e),Jo(t,e)}function cs(t,e,n){var r=us(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a="transition"===i?es:rs,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=s&&l()};setTimeout((function(){c<s&&l()}),o+1),t.addEventListener(a,u)}var ls=/\b(transform|all)(,|$)/;function us(t,e){var n,r=window.getComputedStyle(t),i=(r[ts+"Delay"]||"").split(", "),o=(r[ts+"Duration"]||"").split(", "),s=hs(i,o),a=(r[ns+"Delay"]||"").split(", "),c=(r[ns+"Duration"]||"").split(", "),l=hs(a,c),u=0,h=0;return"transition"===e?s>0&&(n="transition",u=s,h=o.length):"animation"===e?l>0&&(n="animation",u=l,h=c.length):h=(n=(u=Math.max(s,l))>0?s>l?"transition":"animation":null)?"transition"===n?o.length:c.length:0,{type:n,timeout:u,propCount:h,hasTransform:"transition"===n&&ls.test(r[ts+"Property"])}}function hs(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return ds(e)+ds(t[n])})))}function ds(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function fs(t,e){var n=t.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=qo(t.data.transition);if(!s(r)&&!a(n._enterCb)&&1===n.nodeType){for(var i=r.css,o=r.type,c=r.enterClass,l=r.enterToClass,d=r.enterActiveClass,f=r.appearClass,p=r.appearToClass,m=r.appearActiveClass,g=r.beforeEnter,v=r.enter,y=r.afterEnter,b=r.enterCancelled,x=r.beforeAppear,w=r.appear,S=r.afterAppear,M=r.appearCancelled,A=r.duration,C=cn,E=cn.$vnode;E&&E.parent;)C=E.context,E=E.parent;var T=!C._isMounted||!t.isRootInsert;if(!T||w||""===w){var I=T&&f?f:c,P=T&&m?m:d,L=T&&p?p:l,R=T&&x||g,O=T&&u(w)?w:v,B=T&&S||y,k=T&&M||b,D=_(h(A)?A.enter:A);0;var F=!1!==i&&!tt,N=gs(O),j=n._enterCb=z((function(){F&&(as(n,L),as(n,P)),j.cancelled?(F&&as(n,I),k&&k(n)):B&&B(n),n._enterCb=null}));t.data.show||fe(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,j)})),R&&R(n),F&&(ss(n,I),ss(n,P),os((function(){as(n,I),j.cancelled||(ss(n,L),N||(ms(D)?setTimeout(j,D):cs(n,o,j)))}))),t.data.show&&(e&&e(),O&&O(n,j)),F||N||j()}}}function ps(t,e){var n=t.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=qo(t.data.transition);if(s(r)||1!==n.nodeType)return e();if(!a(n._leaveCb)){var i=r.css,o=r.type,c=r.leaveClass,l=r.leaveToClass,u=r.leaveActiveClass,d=r.beforeLeave,f=r.leave,p=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,v=r.duration,y=!1!==i&&!tt,b=gs(f),x=_(h(v)?v.leave:v);0;var w=n._leaveCb=z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(as(n,l),as(n,u)),w.cancelled?(y&&as(n,c),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null}));g?g(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(ss(n,c),ss(n,u),os((function(){as(n,c),w.cancelled||(ss(n,l),b||(ms(x)?setTimeout(w,x):cs(n,o,w)))}))),f&&f(n,w),y||b||w())}}function ms(t){return"number"==typeof t&&!isNaN(t)}function gs(t){if(s(t))return!1;var e=t.fns;return a(e)?gs(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function vs(t,e){!0!==e.data.show&&fs(e)}var ys=function(t){var e,n,r={},i=t.modules,u=t.nodeOps;for(e=0;e<ki.length;++e)for(r[ki[e]]=[],n=0;n<i.length;++n)a(i[n][ki[e]])&&r[ki[e]].push(i[n][ki[e]]);function h(t){var e=u.parentNode(t);a(e)&&u.removeChild(e,t)}function d(t,e,n,i,o,s,l){if(a(t.elm)&&a(s)&&(t=s[l]=_t(t)),t.isRootInsert=!o,!function(t,e,n,i){var o=t.data;if(a(o)){var s=a(t.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(t,!1),a(t.componentInstance))return f(t,e),p(n,t.elm,i),c(s)&&function(t,e,n,i){var o,s=t;for(;s.componentInstance;)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Bi,s);e.push(s);break}p(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,d=t.children,g=t.tag;a(g)?(t.elm=t.ns?u.createElementNS(t.ns,g):u.createElement(g,t),y(t),m(t,d,e),a(h)&&v(t,e),p(n,t.elm,i)):c(t.isComment)?(t.elm=u.createComment(t.text),p(n,t.elm,i)):(t.elm=u.createTextNode(t.text),p(n,t.elm,i))}}function f(t,e){a(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(v(t,e),y(t)):(Ri(t),e.push(t))}function p(t,e,n){a(t)&&(a(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function m(t,e,n){if(o(e)){0;for(var r=0;r<e.length;++r)d(e[r],n,t.elm,null,!0,e,r)}else l(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return a(t.tag)}function v(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Bi,t);a(e=t.data.hook)&&(a(e.create)&&e.create(Bi,t),a(e.insert)&&n.push(t))}function y(t){var e;if(a(e=t.fnScopeId))u.setStyleScope(t.elm,e);else for(var n=t;n;)a(e=n.context)&&a(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent;a(e=cn)&&e!==t.context&&e!==t.fnContext&&a(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function _(t,e,n,r,i,o){for(;r<=i;++r)d(n[r],o,t,e,!1,n,r)}function x(t){var e,n,i=t.data;if(a(i))for(a(e=i.hook)&&a(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(a(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function w(t,e,n){for(;e<=n;++e){var r=t[e];a(r)&&(a(r.tag)?(S(r),x(r)):h(r.elm))}}function S(t,e){if(a(e)||a(t.data)){var n,i=r.remove.length+1;for(a(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&h(t)}return n.listeners=e,n}(t.elm,i),a(n=t.componentInstance)&&a(n=n._vnode)&&a(n.data)&&S(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);a(n=t.data.hook)&&a(n=n.remove)?n(t,e):e()}else h(t.elm)}function M(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(a(o)&&Di(t,o))return i}}function A(t,e,n,i,o,l){if(t!==e){a(e.elm)&&a(i)&&(e=i[o]=_t(e));var h=e.elm=t.elm;if(c(t.isAsyncPlaceholder))a(e.asyncFactory.resolved)?T(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(c(e.isStatic)&&c(t.isStatic)&&e.key===t.key&&(c(e.isCloned)||c(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;a(p)&&a(f=p.hook)&&a(f=f.prepatch)&&f(t,e);var m=t.children,v=e.children;if(a(p)&&g(e)){for(f=0;f<r.update.length;++f)r.update[f](t,e);a(f=p.hook)&&a(f=f.update)&&f(t,e)}s(e.text)?a(m)&&a(v)?m!==v&&function(t,e,n,r,i){var o,c,l,h=0,f=0,p=e.length-1,m=e[0],g=e[p],v=n.length-1,y=n[0],b=n[v],x=!i;for(0;h<=p&&f<=v;)s(m)?m=e[++h]:s(g)?g=e[--p]:Di(m,y)?(A(m,y,r,n,f),m=e[++h],y=n[++f]):Di(g,b)?(A(g,b,r,n,v),g=e[--p],b=n[--v]):Di(m,b)?(A(m,b,r,n,v),x&&u.insertBefore(t,m.elm,u.nextSibling(g.elm)),m=e[++h],b=n[--v]):Di(g,y)?(A(g,y,r,n,f),x&&u.insertBefore(t,g.elm,m.elm),g=e[--p],y=n[++f]):(s(o)&&(o=Fi(e,h,p)),s(c=a(y.key)?o[y.key]:M(y,e,h,p))?d(y,r,t,m.elm,!1,n,f):Di(l=e[c],y)?(A(l,y,r,n,f),e[c]=void 0,x&&u.insertBefore(t,l.elm,m.elm)):d(y,r,t,m.elm,!1,n,f),y=n[++f]);h>p?_(t,s(n[v+1])?null:n[v+1].elm,n,f,v,r):f>v&&w(e,h,p)}(h,m,v,n,l):a(v)?(a(t.text)&&u.setTextContent(h,""),_(h,null,v,0,v.length-1,n)):a(m)?w(m,0,m.length-1):a(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),a(p)&&a(f=p.hook)&&a(f=f.postpatch)&&f(t,e)}}}function C(t,e,n){if(c(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var E=b("attrs,class,staticClass,staticStyle,key");function T(t,e,n,r){var i,o=e.tag,s=e.data,l=e.children;if(r=r||s&&s.pre,e.elm=t,c(e.isComment)&&a(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(a(s)&&(a(i=s.hook)&&a(i=i.init)&&i(e,!0),a(i=e.componentInstance)))return f(e,n),!0;if(a(o)){if(a(l))if(t.hasChildNodes())if(a(i=s)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!T(h,l[d],n,r)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else m(e,l,n);if(a(s)){var p=!1;for(var g in s)if(!E(g)){p=!0,v(e,n);break}!p&&s.class&&yr(s.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!s(e)){var o,l=!1,h=[];if(s(t))l=!0,d(e,h);else{var f=a(t.nodeType);if(!f&&Di(t,e))A(t,e,h,null,null,i);else{if(f){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),n=!0),c(n)&&T(t,e,h))return C(e,h,!0),t;o=t,t=new gt(u.tagName(o).toLowerCase(),{},[],void 0,o)}var p=t.elm,m=u.parentNode(p);if(d(e,h,p._leaveCb?null:m,u.nextSibling(p)),a(e.parent))for(var v=e.parent,y=g(e);v;){for(var _=0;_<r.destroy.length;++_)r.destroy[_](v);if(v.elm=e.elm,y){for(var b=0;b<r.create.length;++b)r.create[b](Bi,v);var S=v.data.hook.insert;if(S.merged)for(var M=S.fns.slice(1),E=0;E<M.length;E++)M[E]()}else Ri(v);v=v.parent}a(m)?w([t],0,0):a(t.tag)&&x(t)}}return C(e,h,l),e.elm}a(t)&&x(t)}}({nodeOps:Pi,modules:[Xi,no,Oo,Do,Qo,q?{create:vs,activate:vs,remove:function(t,e){!0!==t.data.show?ps(t,e):e()}}:{}].concat(Wi)});tt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Cs(t,"input")}));var _s={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?fe(n,"postpatch",(function(){_s.componentUpdated(t,e,n)})):bs(t,e,n.context),t._vOptions=[].map.call(t.options,Ss)):("textarea"===n.tag||Ti(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ms),t.addEventListener("compositionend",As),t.addEventListener("change",As),tt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){bs(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Ss);if(i.some((function(t,e){return!j(t,r[e])})))(t.multiple?e.value.some((function(t){return ws(t,i)})):e.value!==e.oldValue&&ws(e.value,i))&&Cs(t,"change")}}};function bs(t,e,n){xs(t,e,n),($||et)&&setTimeout((function(){xs(t,e,n)}),0)}function xs(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=t.options.length;a<c;a++)if(s=t.options[a],i)o=U(r,Ss(s))>-1,s.selected!==o&&(s.selected=o);else if(j(Ss(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function ws(t,e){return e.every((function(e){return!j(e,t)}))}function Ss(t){return"_value"in t?t._value:t.value}function Ms(t){t.target.composing=!0}function As(t){t.target.composing&&(t.target.composing=!1,Cs(t.target,"input"))}function Cs(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Es(t){return!t.componentInstance||t.data&&t.data.transition?t:Es(t.componentInstance._vnode)}var Ts={model:_s,show:{bind:function(t,e,n){var r=e.value,i=(n=Es(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,fs(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Es(n)).data&&n.data.transition?(n.data.show=!0,r?fs(n,(function(){t.style.display=t.__vOriginalDisplay})):ps(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Is={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ps(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ps(Ke(e.children)):t}function Ls(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[T(r)]=i[r];return e}function Rs(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Os=function(t){return t.tag||ke(t)},Bs=function(t){return"show"===t.name},ks={name:"transition",props:Is,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Os)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ps(i);if(!o)return i;if(this._leaving)return Rs(t,i);var s="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?s+"comment":s+o.tag:l(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=Ls(this),c=this._vnode,u=Ps(c);if(o.data.directives&&o.data.directives.some(Bs)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!ke(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=B({},a);if("out-in"===r)return this._leaving=!0,fe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Rs(t,i);if("in-out"===r){if(ke(o))return c;var d,f=function(){d()};fe(a,"afterEnter",f),fe(a,"enterCancelled",f),fe(h,"delayLeave",(function(t){d=t}))}}return i}}},Ds=B({tag:String,moveClass:String},Is);function Fs(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ns(t){t.data.newPos=t.elm.getBoundingClientRect()}function js(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}delete Ds.mode;var Us={Transition:ks,TransitionGroup:{props:Ds,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=ln(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=Ls(this),a=0;a<i.length;a++){if((u=i[a]).tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=s;else;}if(r){var c=[],l=[];for(a=0;a<r.length;a++){var u;(u=r[a]).data.transition=s,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?c.push(u):l.push(u)}this.kept=t(e,null,c),this.removed=l}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Fs),t.forEach(Ns),t.forEach(js),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;ss(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(es,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(es,t),n._moveCb=null,as(n,e))})}})))},methods:{hasMove:function(t,e){if(!$o)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Jo(n,t)})),Yo(n,e),n.style.display="none",this.$el.appendChild(n);var r=us(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};ti.config.mustUseProp=ui,ti.config.isReservedTag=Ai,ti.config.isReservedAttr=ci,ti.config.getTagNamespace=Ci,ti.config.isUnknownElement=function(t){if(!q)return!0;if(Ai(t))return!1;if(t=t.toLowerCase(),null!=Ei[t])return Ei[t];var e=document.createElement(t);return t.indexOf("-")>-1?Ei[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ei[t]=/HTMLUnknownElement/.test(e.toString())},B(ti.options.directives,Ts),B(ti.options.components,Us),ti.prototype.__patch__=q?ys:D,ti.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=vt),dn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new br(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&dn(t,"beforeUpdate")}},!0),n=!1;var i=t._preWatchers;if(i)for(var o=0;o<i.length;o++)i[o].run();return null==t.$vnode&&(t._isMounted=!0,dn(t,"mounted")),t}(this,t=t&&q?Ii(t):void 0,e)},q&&setTimeout((function(){V.devtools&&lt&&lt.emit("init",ti)}),0);var zs=/\{\{((?:.|\r?\n)+?)\}\}/g,Gs=/[-.*+?^${}()|[\]\/\\]/g,Hs=C((function(t){var e=t[0].replace(Gs,"\\$&"),n=t[1].replace(Gs,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var Ws={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=go(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=mo(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}};var Vs,Zs={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=go(t,"style");n&&(t.staticStyle=JSON.stringify(Fo(n)));var r=mo(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}},Qs=function(t){return(Vs=Vs||document.createElement("div")).innerHTML=t,Vs.textContent},Xs=b("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ys=b("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Js=b("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),qs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ks=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,$s="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(Z.source,"]*"),ta="((?:".concat($s,"\\:)?").concat($s,")"),ea=new RegExp("^<".concat(ta)),na=/^\s*(\/?)>/,ra=new RegExp("^<\\/".concat(ta,"[^>]*>")),ia=/^<!DOCTYPE [^>]+>/i,oa=/^<!\--/,sa=/^<!\[/,aa=b("script,style,textarea",!0),ca={},la={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},ua=/&(?:lt|gt|quot|amp|#39);/g,ha=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,da=b("pre,textarea",!0),fa=function(t,e){return t&&da(t)&&"\n"===e[0]};function pa(t,e){var n=e?ha:ua;return t.replace(n,(function(t){return la[t]}))}function ma(t,e){for(var n,r,i=[],o=e.expectHTML,s=e.isUnaryTag||F,a=e.canBeLeftOpenTag||F,c=0,l=function(){if(n=t,r&&aa(r)){var l=0,d=r.toLowerCase(),f=ca[d]||(ca[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i"));w=t.replace(f,(function(t,n,r){return l=r.length,aa(d)||"noscript"===d||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),fa(d,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-w.length,t=w,h(d,c-l,c)}else{var p=t.indexOf("<");if(0===p){if(oa.test(t)){var m=t.indexOf("--\x3e");if(m>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,m),c,c+m+3),u(m+3),"continue"}if(sa.test(t)){var g=t.indexOf("]>");if(g>=0)return u(g+2),"continue"}var v=t.match(ia);if(v)return u(v[0].length),"continue";var y=t.match(ra);if(y){var _=c;return u(y[0].length),h(y[1],_,c),"continue"}var b=function(){var e=t.match(ea);if(e){var n={tagName:e[1],attrs:[],start:c};u(e[0].length);for(var r=void 0,i=void 0;!(r=t.match(na))&&(i=t.match(Ks)||t.match(qs));)i.start=c,u(i[0].length),i.end=c,n.attrs.push(i);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=c,n}}();if(b)return function(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&Js(n)&&h(r),a(n)&&r===n&&h(n));for(var l=s(n)||!!c,u=t.attrs.length,d=new Array(u),f=0;f<u;f++){var p=t.attrs[f],m=p[3]||p[4]||p[5]||"",g="a"===n&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[f]={name:p[1],value:pa(m,g)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:t.start,end:t.end}),r=n);e.start&&e.start(n,d,l,t.start,t.end)}(b),fa(b.tagName,t)&&u(1),"continue"}var x=void 0,w=void 0,S=void 0;if(p>=0){for(w=t.slice(p);!(ra.test(w)||ea.test(w)||oa.test(w)||sa.test(w)||(S=w.indexOf("<",1))<0);)p+=S,w=t.slice(p);x=t.substring(0,p)}p<0&&(x=t),x&&u(x.length),e.chars&&x&&e.chars(x,c-x.length,c)}if(t===n)return e.chars&&e.chars(t),"break"};t;){if("break"===l())break}function u(e){c+=e,t=t.substring(e)}function h(t,n,o){var s,a;if(null==n&&(n=c),null==o&&(o=c),t)for(a=t.toLowerCase(),s=i.length-1;s>=0&&i[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var l=i.length-1;l>=s;l--)e.end&&e.end(i[l].tag,n,o);i.length=s,r=s&&i[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,o):"p"===a&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}h()}var ga,va,ya,_a,ba,xa,wa,Sa,Ma=/^@|^v-on:/,Aa=/^v-|^@|^:|^#/,Ca=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ea=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ta=/^\(|\)$/g,Ia=/^\[.*\]$/,Pa=/:(.*)$/,La=/^:|^\.|^v-bind:/,Ra=/\.[^.\]]+(?=[^\]]*$)/g,Oa=/^v-slot(:|$)|^#/,Ba=/[\r\n]/,ka=/[ \f\t\r\n]+/g,Da=C(Qs);function Fa(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:Wa(e),rawAttrsMap:{},parent:n,children:[]}}function Na(t,e){ga=e.warn||so,xa=e.isPreTag||F,wa=e.mustUseProp||F,Sa=e.getTagNamespace||F;var n=e.isReservedTag||F;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?n(t.attrsMap.is):n(t.tag)))}),ya=ao(e.modules,"transformNode"),_a=ao(e.modules,"preTransformNode"),ba=ao(e.modules,"postTransformNode"),va=e.delimiters;var r,i,o=[],s=!1!==e.preserveWhitespace,a=e.whitespace,c=!1,l=!1;function u(t){if(h(t),c||t.processed||(t=ja(t,e)),o.length||t===r||r.if&&(t.elseif||t.else)&&za(r,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)s=t,(a=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(i.children))&&a.if&&za(a,{exp:s.elseif,block:s});else{if(t.slotScope){var n=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=t}i.children.push(t),t.parent=i}var s,a;t.children=t.children.filter((function(t){return!t.slotScope})),h(t),t.pre&&(c=!1),xa(t.tag)&&(l=!1);for(var u=0;u<ba.length;u++)ba[u](t,e)}function h(t){if(!l)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return ma(t,{warn:ga,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,s,a,h){var d=i&&i.ns||Sa(t);$&&"svg"===d&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Va.test(r.name)||(r.name=r.name.replace(Za,""),e.push(r))}return e}(n));var f,p=Fa(t,n,i);d&&(p.ns=d),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||ct()||(p.forbidden=!0);for(var m=0;m<_a.length;m++)p=_a[m](p,e)||p;c||(!function(t){null!=go(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(c=!0)),xa(p.tag)&&(l=!0),c?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(p):p.processed||(Ua(p),function(t){var e=go(t,"v-if");if(e)t.if=e,za(t,{exp:e,block:t});else{null!=go(t,"v-else")&&(t.else=!0);var n=go(t,"v-else-if");n&&(t.elseif=n)}}(p),function(t){null!=go(t,"v-once")&&(t.once=!0)}(p)),r||(r=p),s?u(p):(i=p,o.push(p))},end:function(t,e,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],u(r)},chars:function(t,e,n){if(i&&(!$||"textarea"!==i.tag||i.attrsMap.placeholder!==t)){var r,o=i.children;if(t=l||t.trim()?"script"===(r=i).tag||"style"===r.tag?t:Da(t):o.length?a?"condense"===a&&Ba.test(t)?"":" ":s?" ":"":""){l||"condense"!==a||(t=t.replace(ka," "));var u=void 0,h=void 0;!c&&" "!==t&&(u=function(t,e){var n=e?Hs(e):zs;if(n.test(t)){for(var r,i,o,s=[],a=[],c=n.lastIndex=0;r=n.exec(t);){(i=r.index)>c&&(a.push(o=t.slice(c,i)),s.push(JSON.stringify(o)));var l=io(r[1].trim());s.push("_s(".concat(l,")")),a.push({"@binding":l}),c=i+r[0].length}return c<t.length&&(a.push(o=t.slice(c)),s.push(JSON.stringify(o))),{expression:s.join("+"),tokens:a}}}(t,va))?h={type:2,expression:u.expression,tokens:u.tokens,text:t}:" "===t&&o.length&&" "===o[o.length-1].text||(h={type:3,text:t}),h&&o.push(h)}}},comment:function(t,e,n){if(i){var r={type:3,text:t,isComment:!0};0,i.children.push(r)}}}),r}function ja(t,e){var n;!function(t){var e=mo(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=mo(t,"ref");e&&(t.ref=e,t.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=go(t,"scope"),t.slotScope=e||go(t,"slot-scope")):(e=go(t,"slot-scope"))&&(t.slotScope=e);var n=mo(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||lo(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){if(s=vo(t,Oa)){0;var r=Ga(s),i=r.name,o=r.dynamic;t.slotTarget=i,t.slotTargetDynamic=o,t.slotScope=s.value||"_empty_"}}else{var s;if(s=vo(t,Oa)){0;var a=t.scopedSlots||(t.scopedSlots={}),c=Ga(s),l=c.name,u=(o=c.dynamic,a[l]=Fa("template",[],t));u.slotTarget=l,u.slotTargetDynamic=o,u.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=u,!0})),u.slotScope=s.value||"_empty_",t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=mo(n,"name")),function(t){var e;(e=mo(t,"is"))&&(t.component=e);null!=go(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r<ya.length;r++)t=ya[r](t,e)||t;return function(t){var e,n,r,i,o,s,a,c,l=t.attrsList;for(e=0,n=l.length;e<n;e++){if(r=i=l[e].name,o=l[e].value,Aa.test(r))if(t.hasBindings=!0,(s=Ha(r.replace(Aa,"")))&&(r=r.replace(Ra,"")),La.test(r))r=r.replace(La,""),o=io(o),(c=Ia.test(r))&&(r=r.slice(1,-1)),s&&(s.prop&&!c&&"innerHtml"===(r=T(r))&&(r="innerHTML"),s.camel&&!c&&(r=T(r)),s.sync&&(a=bo(o,"$event"),c?po(t,'"update:"+('.concat(r,")"),a,null,!1,0,l[e],!0):(po(t,"update:".concat(T(r)),a,null,!1,0,l[e]),L(r)!==T(r)&&po(t,"update:".concat(L(r)),a,null,!1,0,l[e])))),s&&s.prop||!t.component&&wa(t.tag,t.attrsMap.type,r)?co(t,r,o,l[e],c):lo(t,r,o,l[e],c);else if(Ma.test(r))r=r.replace(Ma,""),(c=Ia.test(r))&&(r=r.slice(1,-1)),po(t,r,o,s,!1,0,l[e],c);else{var u=(r=r.replace(Aa,"")).match(Pa),h=u&&u[1];c=!1,h&&(r=r.slice(0,-(h.length+1)),Ia.test(h)&&(h=h.slice(1,-1),c=!0)),ho(t,r,i,o,h,c,s,l[e])}else lo(t,r,JSON.stringify(o),l[e]),!t.component&&"muted"===r&&wa(t.tag,t.attrsMap.type,r)&&co(t,r,"true",l[e])}}(t),t}function Ua(t){var e;if(e=go(t,"v-for")){var n=function(t){var e=t.match(Ca);if(!e)return;var n={};n.for=e[2].trim();var r=e[1].trim().replace(Ta,""),i=r.match(Ea);i?(n.alias=r.replace(Ea,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(e);n&&B(t,n)}}function za(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Ga(t){var e=t.name.replace(Oa,"");return e||"#"!==t.name[0]&&(e="default"),Ia.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function Ha(t){var e=t.match(Ra);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function Wa(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}var Va=/^xmlns:NS\d+/,Za=/^NS\d+:/;function Qa(t){return Fa(t.tag,t.attrsList.slice(),t.parent)}var Xa=[Ws,Zs,{preTransformNode:function(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=mo(t,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=go(t,"v-if",!0),o=i?"&&(".concat(i,")"):"",s=null!=go(t,"v-else",!0),a=go(t,"v-else-if",!0),c=Qa(t);Ua(c),uo(c,"type","checkbox"),ja(c,e),c.processed=!0,c.if="(".concat(r,")==='checkbox'")+o,za(c,{exp:c.if,block:c});var l=Qa(t);go(l,"v-for",!0),uo(l,"type","radio"),ja(l,e),za(c,{exp:"(".concat(r,")==='radio'")+o,block:l});var u=Qa(t);return go(u,"v-for",!0),uo(u,":type",r),ja(u,e),za(c,{exp:i,block:u}),s?c.else=!0:a&&(c.elseif=a),c}}}}];var Ya,Ja,qa={expectHTML:!0,modules:Xa,directives:{model:function(t,e,n){n;var r=e.value,i=e.modifiers,o=t.tag,s=t.attrsMap.type;if(t.component)return _o(t,r,i),!1;if("select"===o)!function(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),o="var $$selectedVal = ".concat(i,";");o="".concat(o," ").concat(bo(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),po(t,"change",o,null,!0)}(t,r,i);else if("input"===o&&"checkbox"===s)!function(t,e,n){var r=n&&n.number,i=mo(t,"value")||"null",o=mo(t,"true-value")||"true",s=mo(t,"false-value")||"false";co(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(i,")>-1")+("true"===o?":(".concat(e,")"):":_q(".concat(e,",").concat(o,")"))),po(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(s,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(bo(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(bo(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(bo(e,"$$c"),"}"),null,!0)}(t,r,i);else if("input"===o&&"radio"===s)!function(t,e,n){var r=n&&n.number,i=mo(t,"value")||"null";i=r?"_n(".concat(i,")"):i,co(t,"checked","_q(".concat(e,",").concat(i,")")),po(t,"change",bo(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type;0;var i=n||{},o=i.lazy,s=i.number,a=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?"__r":"input",u="$event.target.value";a&&(u="$event.target.value.trim()");s&&(u="_n(".concat(u,")"));var h=bo(e,u);c&&(h="if($event.target.composing)return;".concat(h));co(t,"value","(".concat(e,")")),po(t,l,h,null,!0),(a||s)&&po(t,"blur","$forceUpdate()")}(t,r,i);else{if(!V.isReservedTag(o))return _o(t,r,i),!1}return!0},text:function(t,e){e.value&&co(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&co(t,"innerHTML","_s(".concat(e.value,")"),e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Xs,mustUseProp:ui,canBeLeftOpenTag:Ys,isReservedTag:Ai,getTagNamespace:Ci,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(Xa)},Ka=C((function(t){return b("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function $a(t,e){t&&(Ya=Ka(e.staticKeys||""),Ja=e.isReservedTag||F,function t(e){if(e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||x(t.tag)||!Ja(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ya)))}(e),1===e.type){if(!Ja(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(n=1,r=e.ifConditions.length;n<r;n++){var o=e.ifConditions[n].block;t(o),o.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(r=1,i=e.ifConditions.length;r<i;r++)t(e.ifConditions[r].block,n)}}(t,!1))}var tc=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ec=/\([^)]*?\);*$/,nc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,rc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ic={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},oc=function(t){return"if(".concat(t,")return null;")},sc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:oc("$event.target !== $event.currentTarget"),ctrl:oc("!$event.ctrlKey"),shift:oc("!$event.shiftKey"),alt:oc("!$event.altKey"),meta:oc("!$event.metaKey"),left:oc("'button' in $event && $event.button !== 0"),middle:oc("'button' in $event && $event.button !== 1"),right:oc("'button' in $event && $event.button !== 2")};function ac(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var s=cc(t[o]);t[o]&&t[o].dynamic?i+="".concat(o,",").concat(s,","):r+='"'.concat(o,'":').concat(s,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function cc(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map((function(t){return cc(t)})).join(","),"]");var e=nc.test(t.value),n=tc.test(t.value),r=nc.test(t.value.replace(ec,""));if(t.modifiers){var i="",o="",s=[],a=function(e){if(sc[e])o+=sc[e],rc[e]&&s.push(e);else if("exact"===e){var n=t.modifiers;o+=oc(["ctrl","shift","alt","meta"].filter((function(t){return!n[t]})).map((function(t){return"$event.".concat(t,"Key")})).join("||"))}else s.push(e)};for(var c in t.modifiers)a(c);s.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(lc).join("&&"),")return null;")}(s)),o&&(i+=o);var l=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):r?"return ".concat(t.value):t.value;return"function($event){".concat(i).concat(l,"}")}return e||n?t.value:"function($event){".concat(r?"return ".concat(t.value):t.value,"}")}function lc(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=rc[t],r=ic[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var uc={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:D},hc=function(t){this.options=t,this.warn=t.warn||so,this.transforms=ao(t.modules,"transformCode"),this.dataGenFns=ao(t.modules,"genData"),this.directives=B(B({},uc),t.directives);var e=t.isReservedTag||F;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function dc(t,e){var n=new hc(e),r=t?"script"===t.tag?"null":fc(t,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function fc(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return pc(t,e);if(t.once&&!t.onceProcessed)return mc(t,e);if(t.for&&!t.forProcessed)return vc(t,e);if(t.if&&!t.ifProcessed)return gc(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=xc(t,e),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=t.attrs||t.dynamicAttrs?Mc((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:T(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];!o&&!s||r||(i+=",null");o&&(i+=",".concat(o));s&&(i+="".concat(o?"":",null",",").concat(s));return i+")"}(t,e);var n=void 0;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:xc(e,n,!0);return"_c(".concat(t,",").concat(yc(e,n)).concat(r?",".concat(r):"",")")}(t.component,t,e);else{var r=void 0,i=e.maybeComponent(t);(!t.plain||t.pre&&i)&&(r=yc(t,e));var o=void 0,s=e.options.bindings;i&&s&&!1!==s.__isScriptSetup&&(o=function(t,e){var n=T(e),r=I(n),i=function(i){return t[e]===i?e:t[n]===i?n:t[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var s=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");if(s)return s}(s,t.tag)),o||(o="'".concat(t.tag,"'"));var a=t.inlineTemplate?null:xc(t,e,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(a?",".concat(a):"",")")}for(var c=0;c<e.transforms.length;c++)n=e.transforms[c](t,n);return n}return xc(t,e)||"void 0"}function pc(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(fc(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function mc(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return gc(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(fc(t,e),",").concat(e.onceId++,",").concat(n,")"):fc(t,e)}return pc(t,e)}function gc(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"(".concat(o.exp,")?").concat(s(o.block),":").concat(t(e,n,r,i)):"".concat(s(o.block));function s(t){return r?r(t,n):t.once?mc(t,n):fc(t,n)}}(t.ifConditions.slice(),e,n,r)}function vc(t,e,n,r){var i=t.for,o=t.alias,s=t.iterator1?",".concat(t.iterator1):"",a=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(o).concat(s).concat(a,"){")+"return ".concat((n||fc)(t,e))+"})"}function yc(t,e){var n="{",r=function(t,e){var n=t.directives;if(!n)return;var r,i,o,s,a="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],s=!0;var l=e.directives[o.name];l&&(s=!!l(t,o,e.warn)),s&&(c=!0,a+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}if(c)return a.slice(0,-1)+"]"}(t,e);r&&(n+=r+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:".concat(Mc(t.attrs),",")),t.props&&(n+="domProps:".concat(Mc(t.props),",")),t.events&&(n+="".concat(ac(t.events,!1),",")),t.nativeEvents&&(n+="".concat(ac(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(function(t,e,n){var r=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||_c(n)})),i=!!t.if;if(!r)for(var o=t.parent;o;){if(o.slotScope&&"_empty_"!==o.slotScope||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var s=Object.keys(e).map((function(t){return bc(e[t],n)})).join(",");return"scopedSlots:_u([".concat(s,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(s)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var o=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var r=dc(n,e.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(t){return"function(){".concat(t,"}")})).join(","),"]}")}}(t,e);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(Mc(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function _c(t){return 1===t.type&&("slot"===t.tag||t.children.some(_c))}function bc(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return gc(t,e,bc,"null");if(t.for&&!t.forProcessed)return vc(t,e,bc);var r="_empty_"===t.slotScope?"":String(t.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(xc(t,e)||"undefined",":undefined"):xc(t,e)||"undefined":fc(t,e),"}"),o=r?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function xc(t,e,n,r,i){var o=t.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return"".concat((r||fc)(s,e)).concat(a)}var c=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(wc(i)||i.ifConditions&&i.ifConditions.some((function(t){return wc(t.block)}))){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(o,e.maybeComponent):0,l=i||Sc;return"[".concat(o.map((function(t){return l(t,e)})).join(","),"]").concat(c?",".concat(c):"")}}function wc(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Sc(t,e){return 1===t.type?fc(t,e):3===t.type&&t.isComment?function(t){return"_e(".concat(JSON.stringify(t.text),")")}(t):function(t){return"_v(".concat(2===t.type?t.expression:Ac(JSON.stringify(t.text)),")")}(t)}function Mc(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],o=Ac(i.value);i.dynamic?n+="".concat(i.name,",").concat(o,","):e+='"'.concat(i.name,'":').concat(o,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function Ac(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Cc(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),D}}function Ec(t){var e=Object.create(null);return function(n,r,i){(r=B({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var s=t(n,r);var a={},c=[];return a.render=Cc(s.render,c),a.staticRenderFns=s.staticRenderFns.map((function(t){return Cc(t,c)})),e[o]=a}}var Tc,Ic,Pc=(Tc=function(t,e){var n=Na(t.trim(),e);!1!==e.optimize&&$a(n,e);var r=dc(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),i=[],o=[];if(n)for(var s in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=B(Object.create(t.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(r[s]=n[s]);r.warn=function(t,e,n){(n?o:i).push(t)};var a=Tc(e.trim(),r);return a.errors=i,a.tips=o,a}return{compile:e,compileToFunctions:Ec(e)}})(qa).compileToFunctions;function Lc(t){return(Ic=Ic||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',Ic.innerHTML.indexOf("&#10;")>0}var Rc=!!q&&Lc(!1),Oc=!!q&&Lc(!0),Bc=C((function(t){var e=Ii(t);return e&&e.innerHTML})),kc=ti.prototype.$mount;ti.prototype.$mount=function(t,e){if((t=t&&Ii(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Bc(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){0;var i=Pc(r,{outputSourceRange:!1,shouldDecodeNewlines:Rc,shouldDecodeNewlinesForHref:Oc,delimiters:n.delimiters,comments:n.comments},this),o=i.render,s=i.staticRenderFns;n.render=o,n.staticRenderFns=s}}return kc.call(this,t,e)},ti.compile=Pc}.call(this,n(10),n(165).setImmediate)},function(t,e,n){"use strict";var r=n(219),i=n(232),o=n(103);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){t.exports={default:n(199),__esModule:!0}},function(t,e,n){var r=n(20);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(23)),i=a(n(28)),o=a(n(170)),s=n(312);function a(t){return t&&t.__esModule?t:{default:t}}var c={get any(){return(0,s.toType)("any",{type:null})},get func(){return(0,s.toType)("function",{type:Function}).def(l.func)},get bool(){return(0,s.toType)("boolean",{type:Boolean}).def(l.bool)},get string(){return(0,s.toType)("string",{type:String}).def(l.string)},get number(){return(0,s.toType)("number",{type:Number}).def(l.number)},get array(){return(0,s.toType)("array",{type:Array}).def(l.array)},get object(){return(0,s.toType)("object",{type:Object}).def(l.object)},get integer(){return(0,s.toType)("integer",{type:Number,validator:function(t){return(0,s.isInteger)(t)}}).def(l.integer)},get symbol(){return(0,s.toType)("symbol",{type:null,validator:function(t){return"symbol"===(void 0===t?"undefined":(0,i.default)(t))}})},custom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return(0,s.toType)(t.name||"<<anonymous function>>",{validator:function(){var n=t.apply(void 0,arguments);return n||(0,s.warn)(this._vueTypes_name+" - "+e),n}})},oneOf:function(t){if(!(0,s.isArray)(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e='oneOf - value should be one of "'+t.join('", "')+'"',n=t.reduce((function(t,e){return null!=e&&-1===t.indexOf(e.constructor)&&t.push(e.constructor),t}),[]);return(0,s.toType)("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==t.indexOf(n);return r||(0,s.warn)(e),r}})},instanceOf:function(t){return(0,s.toType)("instanceOf",{type:t})},oneOfType:function(t){if(!(0,s.isArray)(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e=!1,n=t.reduce((function(t,n){if((0,o.default)(n)){if("oneOf"===n._vueTypes_name)return t.concat(n.type||[]);if(n.type&&!(0,s.isFunction)(n.validator)){if((0,s.isArray)(n.type))return t.concat(n.type);t.push(n.type)}else(0,s.isFunction)(n.validator)&&(e=!0);return t}return t.push(n),t}),[]);if(!e)return(0,s.toType)("oneOfType",{type:n}).def(void 0);var r=t.map((function(t){return t&&(0,s.isArray)(t.type)?t.type.map(s.getType):(0,s.getType)(t)})).reduce((function(t,e){return t.concat((0,s.isArray)(e)?e:[e])}),[]).join('", "');return this.custom((function(e){var n=t.some((function(t){return"oneOf"===t._vueTypes_name?!t.type||(0,s.validateType)(t.type,e,!0):(0,s.validateType)(t,e,!0)}));return n||(0,s.warn)('oneOfType - value type should be one of "'+r+'"'),n})).def(void 0)},arrayOf:function(t){return(0,s.toType)("arrayOf",{type:Array,validator:function(e){var n=e.every((function(e){return(0,s.validateType)(t,e)}));return n||(0,s.warn)('arrayOf - value must be an array of "'+(0,s.getType)(t)+'"'),n}})},objectOf:function(t){return(0,s.toType)("objectOf",{type:Object,validator:function(e){var n=(0,r.default)(e).every((function(n){return(0,s.validateType)(t,e[n])}));return n||(0,s.warn)('objectOf - value must be an object of "'+(0,s.getType)(t)+'"'),n}})},shape:function(t){var e=(0,r.default)(t),n=e.filter((function(e){return t[e]&&!0===t[e].required})),i=(0,s.toType)("shape",{type:Object,validator:function(i){var a=this;if(!(0,o.default)(i))return!1;var c=(0,r.default)(i);return n.length>0&&n.some((function(t){return-1===c.indexOf(t)}))?((0,s.warn)('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):c.every((function(n){if(-1===e.indexOf(n))return!0===a._vueTypes_isLoose||((0,s.warn)('shape - object is missing "'+n+'" property'),!1);var r=t[n];return(0,s.validateType)(r,i[n])}))}});return Object.defineProperty(i,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),i}},l={func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0};Object.defineProperty(c,"sensibleDefaults",{enumerable:!1,set:function(t){!1===t?l={}:!0===t?l={func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0}:(0,o.default)(t)&&(l=t)},get:function(){return l}}),e.default=c},function(t,e,n){var r=n(57);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(19),i=n(58);t.exports=n(18)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";e.__esModule=!0;var r=s(n(259)),i=s(n(261)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function s(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),n(162),n(109),i=(r=u).lib,o=i.Base,s=i.WordArray,a=r.algo,c=a.MD5,l=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,r=this.cfg,i=r.hasher.create(),o=s.create(),a=o.words,c=r.keySize,l=r.iterations;a.length<c;){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*c,o}}),r.EvpKDF=function(t,e,n){return l.create(n).compute(t,e)},u.EvpKDF)},function(t,e,n){t.exports=n(334)},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(41),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default((function(t,n){return function r(i,s){try{var a=e[i](s),c=a.value}catch(t){return void n(t)}if(!a.done)return o.default.resolve(c).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(c)}("next")}))}}},function(t,e,n){"use strict";(function(t){var r=n(0),i=n(1),o=n(86);function s(t){return r.a.isPlainObject(t)||r.a.isArray(t)}function a(t){return r.a.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,n){return t?t.concat(e).map((function(t,e){return t=a(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const l=r.a.toFlatObject(r.a,{},null,(function(t){return/^is[A-Z]/.test(t)}));e.a=function(e,n,u){if(!r.a.isObject(e))throw new TypeError("target must be an object");n=n||new(o.a||FormData);const h=(u=r.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.a.isUndefined(e[t])}))).metaTokens,d=u.visitor||v,f=u.dots,p=u.indexes,m=(u.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(d))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(r.a.isDate(e))return e.toISOString();if(!m&&r.a.isBlob(e))throw new i.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(e)||r.a.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):t.from(e):e}function v(t,e,i){let o=t;if(t&&!i&&"object"==typeof t)if(r.a.endsWith(e,"{}"))e=h?e:e.slice(0,-2),t=JSON.stringify(t);else if(r.a.isArray(t)&&function(t){return r.a.isArray(t)&&!t.some(s)}(t)||(r.a.isFileList(t)||r.a.endsWith(e,"[]"))&&(o=r.a.toArray(t)))return e=a(e),o.forEach((function(t,i){!r.a.isUndefined(t)&&null!==t&&n.append(!0===p?c([e],i,f):null===p?e:e+"[]",g(t))})),!1;return!!s(t)||(n.append(c(i,e,f),g(t)),!1)}const y=[],_=Object.assign(l,{defaultVisitor:v,convertValue:g,isVisitable:s});if(!r.a.isObject(e))throw new TypeError("data must be an object");return function t(e,i){if(!r.a.isUndefined(e)){if(-1!==y.indexOf(e))throw Error("Circular reference detected in "+i.join("."));y.push(e),r.a.forEach(e,(function(e,o){!0===(!(r.a.isUndefined(e)||null===e)&&d.call(n,e,r.a.isString(o)?o.trim():o,i,_))&&t(e,i?i.concat(o):[o])})),y.pop()}}(e),n}}).call(this,n(215).Buffer)},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n(7),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function o(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=i.charAt(n>>6)+i.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=i.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=i.charAt(n>>2)+i.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function s(t){var e,n="",o=0,s=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=i.indexOf(t.charAt(e));a<0||(0==o?(n+=Object(r.b)(a>>2),s=3&a,o=1):1==o?(n+=Object(r.b)(s<<2|a>>4),s=15&a,o=2):2==o?(n+=Object(r.b)(s),n+=Object(r.b)(a>>2),s=3&a,o=3):(n+=Object(r.b)(s<<2|a>>4),n+=Object(r.b)(15&a),o=0))}return 1==o&&(n+=Object(r.b)(s<<2)),n}},function(t,e,n){"use strict";var r=n(188)(!0);n(89)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(93),i=n(88);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(88);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(133),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(206),__esModule:!0}},function(t,e,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var c=function(){throw new o},l=a?function(){try{return c}catch(t){try{return a(arguments,"callee").get}catch(t){return c}}}():c,u=n(221)(),h=n(223)(),d=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),f={},p="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&d?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(d)try{null.error}catch(t){var g=d(d(t));m["%Error.prototype%"]=g}var v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(102),_=n(225),b=y.call(Function.call,Array.prototype.concat),x=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),S=y.call(Function.call,String.prototype.slice),M=y.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,E=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return w(t,A,(function(t,e,n,r){i[i.length]=n?w(r,C,"$1"):e||t})),i},T=function(t,e){var n,i=t;if(_(v,i)&&(i="%"+(n=v[i])[0]+"%"),_(m,i)){var a=m[i];if(a===f&&(a=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return m[e]=n,n}(i)),void 0===a&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(t),i=n.length>0?n[0]:"",s=T("%"+i+"%",e),c=s.name,l=s.value,u=!1,h=s.alias;h&&(i=h[0],x(n,b([0,1],h)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],g=S(p,0,1),v=S(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),_(m,c="%"+(i+="."+p)+"%"))l=m[c];else if(null!=l){if(!(p in l)){if(!e)throw new o("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&d+1>=n.length){var y=a(l,p);l=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[p]}else f=_(l,p),l=l[p];f&&!u&&(m[c]=l)}}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDomain=e.iamGoToPage=e.isFunction=e.settingRouter=e.appRouter=e.redirectRouter=e.noAllowRouter=e.notFoundRouter=e.loadView=e.routerOrigin=e.toWord=e.getUrlParam=e.hasOwn=void 0;var r=d(n(13)),i=d(n(156)),o=d(n(53)),s=d(n(158));e.mergeProps=function(){var t=[].slice.call(arguments,0),e={};return t.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0,c=!1,l=void 0;try{for(var u,h=(0,o.default)((0,i.default)(t));!(n=(u=h.next()).done);n=!0){var d=u.value,f=(0,s.default)(d,2),p=f[0],m=f[1];e[p]=e[p]||{},(0,a.default)(m)?(0,r.default)(e[p],m):e[p]=m}}catch(t){c=!0,l=t}finally{try{!n&&h.return&&h.return()}finally{if(c)throw l}}})),e};var a=d(n(159)),c=n(12),l=n(8),u=n(5),h=d(n(54));function d(t){return t&&t.__esModule?t:{default:t}}var f=Object.prototype,p=f.toString;e.hasOwn=f.hasOwnProperty,e.getUrlParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.split("?")[1]?window.location.search.split("?")[1].match(e):null;return null!=n?decodeURI(n[2]):null},e.toWord=function(t){return t.match(/(?:[a-zA-Z][a-zA-Z0-9]*)/g).map((function(t){return t.replace(/(^|_)(\w)/g,(function(t,e,n){return n.toUpperCase()}))})).join("")},e.routerOrigin=function(){var t=window.location,e=t.origin,n=t.pathname;return""+e+("/"===n?"":n)},e.loadView=function(t,e,r){return function(r){n.e(1).then(function(){var i=[n(416)("./"+e+t+".vue")];r.apply(null,i)}.bind(this)).catch(n.oe)}},e.notFoundRouter={path:"*",redirect:"/404",hidden:!0},e.noAllowRouter={path:"/noAllow",hidden:!0},e.redirectRouter={path:"*",redirect:"/"},e.appRouter=function(t){return{path:"/",redirect:t}},e.settingRouter={path:"/rkWebCoreSetting",hidden:!0};e.isFunction=function(t){return"[object Function]"===p.call(t)},e.iamGoToPage=function(t,e){var n=u.localStore.get("IAM_OATH_TYPE"),i={redirectUri:t,clientId:e,scope:"all",state:"hello"};return n&&"idp"===n&&(i=(0,r.default)(i,{oauthType:n})),(0,c.iamRedirect)(i)},e.getDomain=function(){try{var t=h.default.decrypt((0,l.getCache)("APP_PROJECT"));return JSON.parse(t).domain}catch(t){return window.origin}}},function(t,e,n){var r,i,o;t.exports=(o=n(2),i=(r=o).lib.WordArray,r.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return function(t,e,n){for(var r=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,c=n[t.charCodeAt(s)]>>>6-s%4*2,l=a|c;r[o>>>2]|=l<<24-o%4*8,o++}return i.create(r,o)}(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(t,e,n){var r;t.exports=(r=n(2),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],c=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],y=t[e+7],_=t[e+8],b=t[e+9],x=t[e+10],w=t[e+11],S=t[e+12],M=t[e+13],A=t[e+14],C=t[e+15],E=o[0],T=o[1],I=o[2],P=o[3];E=l(E,T,I,P,s,7,a[0]),P=l(P,E,T,I,c,12,a[1]),I=l(I,P,E,T,f,17,a[2]),T=l(T,I,P,E,p,22,a[3]),E=l(E,T,I,P,m,7,a[4]),P=l(P,E,T,I,g,12,a[5]),I=l(I,P,E,T,v,17,a[6]),T=l(T,I,P,E,y,22,a[7]),E=l(E,T,I,P,_,7,a[8]),P=l(P,E,T,I,b,12,a[9]),I=l(I,P,E,T,x,17,a[10]),T=l(T,I,P,E,w,22,a[11]),E=l(E,T,I,P,S,7,a[12]),P=l(P,E,T,I,M,12,a[13]),I=l(I,P,E,T,A,17,a[14]),E=u(E,T=l(T,I,P,E,C,22,a[15]),I,P,c,5,a[16]),P=u(P,E,T,I,v,9,a[17]),I=u(I,P,E,T,w,14,a[18]),T=u(T,I,P,E,s,20,a[19]),E=u(E,T,I,P,g,5,a[20]),P=u(P,E,T,I,x,9,a[21]),I=u(I,P,E,T,C,14,a[22]),T=u(T,I,P,E,m,20,a[23]),E=u(E,T,I,P,b,5,a[24]),P=u(P,E,T,I,A,9,a[25]),I=u(I,P,E,T,p,14,a[26]),T=u(T,I,P,E,_,20,a[27]),E=u(E,T,I,P,M,5,a[28]),P=u(P,E,T,I,f,9,a[29]),I=u(I,P,E,T,y,14,a[30]),E=h(E,T=u(T,I,P,E,S,20,a[31]),I,P,g,4,a[32]),P=h(P,E,T,I,_,11,a[33]),I=h(I,P,E,T,w,16,a[34]),T=h(T,I,P,E,A,23,a[35]),E=h(E,T,I,P,c,4,a[36]),P=h(P,E,T,I,m,11,a[37]),I=h(I,P,E,T,y,16,a[38]),T=h(T,I,P,E,x,23,a[39]),E=h(E,T,I,P,M,4,a[40]),P=h(P,E,T,I,s,11,a[41]),I=h(I,P,E,T,p,16,a[42]),T=h(T,I,P,E,v,23,a[43]),E=h(E,T,I,P,b,4,a[44]),P=h(P,E,T,I,S,11,a[45]),I=h(I,P,E,T,C,16,a[46]),E=d(E,T=h(T,I,P,E,f,23,a[47]),I,P,s,6,a[48]),P=d(P,E,T,I,y,10,a[49]),I=d(I,P,E,T,A,15,a[50]),T=d(T,I,P,E,g,21,a[51]),E=d(E,T,I,P,S,6,a[52]),P=d(P,E,T,I,p,10,a[53]),I=d(I,P,E,T,x,15,a[54]),T=d(T,I,P,E,c,21,a[55]),E=d(E,T,I,P,_,6,a[56]),P=d(P,E,T,I,C,10,a[57]),I=d(I,P,E,T,v,15,a[58]),T=d(T,I,P,E,M,21,a[59]),E=d(E,T,I,P,m,6,a[60]),P=d(P,E,T,I,w,10,a[61]),I=d(I,P,E,T,f,15,a[62]),T=d(T,I,P,E,b,21,a[63]),o[0]=o[0]+E|0,o[1]=o[1]+T|0,o[2]=o[2]+I|0,o[3]=o[3]+P|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,r,i,o,s){var a=t+(e&n|~e&r)+i+s;return(a<<o|a>>>32-o)+e}function u(t,e,n,r,i,o,s){var a=t+(e&r|n&~r)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,n,r,i,o,s){var a=t+(e^n^r)+i+s;return(a<<o|a>>>32-o)+e}function d(t,e,n,r,i,o,s){var a=t+(n^(e|~r))+i+s;return(a<<o|a>>>32-o)+e}e.MD5=o._createHelper(c),e.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/^\s+|\s+$/g,d=/\\(\\)?/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[r]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y[i]=y["[object Number]"]=y[o]=y["[object RegExp]"]=y[s]=y["[object String]"]=y["[object WeakMap]"]=!1;var _=parseInt,b="object"==typeof t&&t&&t.Object===Object&&t,x="object"==typeof self&&self&&self.Object===Object&&self,w=b||x||Function("return this")(),S=e&&!e.nodeType&&e,M=S&&"object"==typeof n&&n&&!n.nodeType&&n,A=M&&M.exports===S&&b.process,C=function(){try{return A&&A.binding("util")}catch(t){}}(),E=C&&C.isTypedArray;function T(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function I(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function P(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var R,O,B,k=Array.prototype,D=Function.prototype,F=Object.prototype,N=w["__core-js_shared__"],j=(R=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",U=D.toString,z=F.hasOwnProperty,G=F.toString,H=RegExp("^"+U.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=w.Symbol,V=w.Uint8Array,Z=F.propertyIsEnumerable,Q=k.splice,X=(O=Object.keys,B=Object,function(t){return O(B(t))}),Y=Math.max,J=Ct(w,"DataView"),q=Ct(w,"Map"),K=Ct(w,"Promise"),$=Ct(w,"Set"),tt=Ct(w,"WeakMap"),et=Ct(Object,"create"),nt=Bt(J),rt=Bt(q),it=Bt(K),ot=Bt($),st=Bt(tt),at=W?W.prototype:void 0,ct=at?at.valueOf:void 0,lt=at?at.toString:void 0;function ut(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ht(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ft(t){var e=-1,n=t?t.length:0;for(this.__data__=new dt;++e<n;)this.add(t[e])}function pt(t){this.__data__=new ht(t)}function mt(t,e){var n=Ut(t)||jt(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!z.call(t,o)||i&&("length"==o||Tt(o,r))||n.push(o);return n}function gt(t,e){for(var n=t.length;n--;)if(Nt(t[n][0],e))return n;return-1}function vt(t,e){for(var n=0,r=(e=It(e,t)?[e]:St(e)).length;null!=t&&n<r;)t=t[Ot(e[n++])];return n&&n==r?t:void 0}function yt(t,e){return null!=t&&e in Object(t)}function _t(t,e,n,a,c){return t===e||(null==t||null==e||!Wt(t)&&!Vt(e)?t!=t&&e!=e:function(t,e,n,a,c,l){var u=Ut(t),h=Ut(e),d="[object Array]",f="[object Array]";u||(d=(d=Et(t))==r?o:d);h||(f=(f=Et(e))==r?o:f);var p=d==o&&!I(t),m=f==o&&!I(e),g=d==f;if(g&&!p)return l||(l=new pt),u||Qt(t)?Mt(t,e,n,a,c,l):function(t,e,n,r,o,a,c){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new V(t),new V(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case i:var l=P;case s:var u=2&a;if(l||(l=L),t.size!=e.size&&!u)return!1;var h=c.get(t);if(h)return h==e;a|=1,c.set(t,e);var d=Mt(l(t),l(e),r,o,a,c);return c.delete(t),d;case"[object Symbol]":if(ct)return ct.call(t)==ct.call(e)}return!1}(t,e,d,n,a,c,l);if(!(2&c)){var v=p&&z.call(t,"__wrapped__"),y=m&&z.call(e,"__wrapped__");if(v||y){var _=v?t.value():t,b=y?e.value():e;return l||(l=new pt),n(_,b,a,c,l)}}if(!g)return!1;return l||(l=new pt),function(t,e,n,r,i,o){var s=2&i,a=Xt(t),c=a.length,l=Xt(e).length;if(c!=l&&!s)return!1;var u=c;for(;u--;){var h=a[u];if(!(s?h in e:z.call(e,h)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var f=!0;o.set(t,e),o.set(e,t);var p=s;for(;++u<c;){h=a[u];var m=t[h],g=e[h];if(r)var v=s?r(g,m,h,e,t,o):r(m,g,h,t,e,o);if(!(void 0===v?m===g||n(m,g,r,i,o):v)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=t.constructor,_=e.constructor;y==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,a,c,l)}(t,e,_t,n,a,c))}function bt(t){return!(!Wt(t)||function(t){return!!j&&j in t}(t))&&(Gt(t)||I(t)?H:m).test(Bt(t))}function xt(t){return"function"==typeof t?t:null==t?Yt:"object"==typeof t?Ut(t)?function(t,e){if(It(t)&&Pt(e))return Lt(Ot(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:vt(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=It(e,t)?[e]:St(e);var r,i=-1,o=e.length;for(;++i<o;){var s=Ot(e[i]);if(!(r=null!=t&&n(t,s)))break;t=t[s]}if(r)return r;return!!(o=t?t.length:0)&&Ht(o)&&Tt(s,o)&&(Ut(t)||jt(t))}(t,e,yt)}(n,t):_t(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Xt(t),n=e.length;for(;n--;){var r=e[n],i=t[r];e[n]=[r,i,Pt(i)]}return e}(t);if(1==e.length&&e[0][2])return Lt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=n[i])[0],l=t[c],u=a[1];if(s&&a[2]){if(void 0===l&&!(c in t))return!1}else{var h=new pt;if(r)var d=r(l,u,c,t,e,h);if(!(void 0===d?_t(u,l,r,3,h):d))return!1}}return!0}(n,t,e)}}(t):It(e=t)?(n=Ot(e),function(t){return null==t?void 0:t[n]}):function(t){return function(e){return vt(e,t)}}(e);var e,n}function wt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||F,e!==r)return X(t);var e,n,r,i=[];for(var o in Object(t))z.call(t,o)&&"constructor"!=o&&i.push(o);return i}function St(t){return Ut(t)?t:Rt(t)}function Mt(t,e,n,r,i,o){var s=2&i,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var u=-1,h=!0,d=1&i?new ft:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var f=t[u],p=e[u];if(r)var m=s?r(p,f,u,e,t,o):r(f,p,u,t,e,o);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!T(e,(function(t,e){if(!d.has(e)&&(f===t||n(f,t,r,i,o)))return d.add(e)}))){h=!1;break}}else if(f!==p&&!n(f,p,r,i,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function At(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Ct(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return bt(n)?n:void 0}ut.prototype.clear=function(){this.__data__=et?et(null):{}},ut.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ut.prototype.get=function(t){var e=this.__data__;if(et){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return z.call(e,t)?e[t]:void 0},ut.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:z.call(e,t)},ut.prototype.set=function(t,e){return this.__data__[t]=et&&void 0===e?"__lodash_hash_undefined__":e,this},ht.prototype.clear=function(){this.__data__=[]},ht.prototype.delete=function(t){var e=this.__data__,n=gt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Q.call(e,n,1),!0)},ht.prototype.get=function(t){var e=this.__data__,n=gt(e,t);return n<0?void 0:e[n][1]},ht.prototype.has=function(t){return gt(this.__data__,t)>-1},ht.prototype.set=function(t,e){var n=this.__data__,r=gt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},dt.prototype.clear=function(){this.__data__={hash:new ut,map:new(q||ht),string:new ut}},dt.prototype.delete=function(t){return At(this,t).delete(t)},dt.prototype.get=function(t){return At(this,t).get(t)},dt.prototype.has=function(t){return At(this,t).has(t)},dt.prototype.set=function(t,e){return At(this,t).set(t,e),this},ft.prototype.add=ft.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ft.prototype.has=function(t){return this.__data__.has(t)},pt.prototype.clear=function(){this.__data__=new ht},pt.prototype.delete=function(t){return this.__data__.delete(t)},pt.prototype.get=function(t){return this.__data__.get(t)},pt.prototype.has=function(t){return this.__data__.has(t)},pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ht){var r=n.__data__;if(!q||r.length<199)return r.push([t,e]),this;n=this.__data__=new dt(r)}return n.set(t,e),this};var Et=function(t){return G.call(t)};function Tt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||v.test(t))&&t>-1&&t%1==0&&t<e}function It(t,e){if(Ut(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Zt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Pt(t){return t==t&&!Wt(t)}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(J&&"[object DataView]"!=Et(new J(new ArrayBuffer(1)))||q&&Et(new q)!=i||K&&"[object Promise]"!=Et(K.resolve())||$&&Et(new $)!=s||tt&&"[object WeakMap]"!=Et(new tt))&&(Et=function(t){var e=G.call(t),n=e==o?t.constructor:void 0,r=n?Bt(n):void 0;if(r)switch(r){case nt:return"[object DataView]";case rt:return i;case it:return"[object Promise]";case ot:return s;case st:return"[object WeakMap]"}return e});var Rt=Ft((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(Zt(t))return lt?lt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return l.test(t)&&n.push(""),t.replace(u,(function(t,e,r,i){n.push(r?i.replace(d,"$1"):e||t)})),n}));function Ot(t){if("string"==typeof t||Zt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bt(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var kt,Dt=(kt=function(t,e,n){var r=t?t.length:0;if(!r)return-1;var i,o,s=null==n?0:(i=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(Zt(t))return NaN;if(Wt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(h,"");var n=p.test(t);return n||g.test(t)?_(t.slice(2),n?2:8):f.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}(n),o=i%1,i==i?o?i-o:i:0);return s<0&&(s=Y(r+s,0)),function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}(t,xt(e),s)},function(t,e,n){var r=Object(t);if(!zt(t)){var i=xt(e);t=Xt(t),e=function(t){return i(r[t],t,r)}}var o=kt(t,e,n);return o>-1?r[i?t[o]:o]:void 0});function Ft(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(Ft.Cache||dt),n}function Nt(t,e){return t===e||t!=t&&e!=e}function jt(t){return function(t){return Vt(t)&&zt(t)}(t)&&z.call(t,"callee")&&(!Z.call(t,"callee")||G.call(t)==r)}Ft.Cache=dt;var Ut=Array.isArray;function zt(t){return null!=t&&Ht(t.length)&&!Gt(t)}function Gt(t){var e=Wt(t)?G.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Vt(t){return!!t&&"object"==typeof t}function Zt(t){return"symbol"==typeof t||Vt(t)&&"[object Symbol]"==G.call(t)}var Qt=E?function(t){return function(e){return t(e)}}(E):function(t){return Vt(t)&&Ht(t.length)&&!!y[G.call(t)]};function Xt(t){return zt(t)?mt(t):wt(t)}function Yt(t){return t}n.exports=Dt}).call(this,n(10),n(73)(t))},function(t,e,n){var r=n(152),i=n(243),o=[n(247)];t.exports=r.createStore(i,o)},function(t,e){t.exports={}},function(t,e,n){var r=n(126),i=n(96);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,c=i.Symbol,l=c?c.toStringTag:void 0;function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=s.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var i=a.call(t);r&&(e?t[l]=n:delete t[l]);return i}(t):function(t){return a.call(t)}(t)}t.exports=function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=u(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}).call(this,n(10))},function(t,e,n){n(207);for(var r=n(15),i=n(27),o=n(48),s=n(16)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var l=a[c],u=r[l],h=u&&u.prototype;h&&!h[s]&&i(h,s,l),o[l]=o.Array}},function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)a(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=s(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var a=s(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(a))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function s(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){c(t,(function(t,n){return e(t,n),!1}))}function c(t,e){if(l(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function l(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:s,each:a,map:function(t,e){var n=l(t)?[]:{};return c(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:c,isList:l,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n(10))},function(t,e,n){t.exports={default:n(253),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(160)),i=s(n(28)),o=s(n(269));function s(t){return t&&t.__esModule?t:{default:t}}e.default={encrypt:function(t){var e=t;"object"===(void 0===t?"undefined":(0,i.default)(t))&&(e=(0,r.default)(e));var n=o.default.enc.Utf8.parse("rockontrol688051");return e=o.default.enc.Utf8.parse(e),o.default.AES.encrypt(e,n,{mode:o.default.mode.ECB,padding:o.default.pad.Pkcs7}).toString()},decrypt:function(t){if(!t)return"";var e=o.default.enc.Utf8.parse("rockontrol688051"),n=o.default.AES.decrypt(t,e,{mode:o.default.mode.ECB,padding:o.default.pad.Pkcs7});return o.default.enc.Utf8.stringify(n).toString()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(13)),i=h(n(23)),o=h(n(41)),s=h(n(4)),a=h(n(46)),c=n(12),l=n(8),u=n(5);function h(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c=arguments[4],l=arguments[5],u=arguments[6];return new o.default((function(o,h){var f=t.$route.meta;if(r)if((0,s.default)(f)||(0,s.default)(u))h({success:!1,msg:"当前路由在iam并未配置埋点"});else{var p=(0,a.default)(u,(function(t){return(0,i.default)(t).includes(c)||(0,i.default)(t).includes(l)}));if(!(0,s.default)(n)&&!(0,s.default)(p)&&1!==p[c]&&1!==p[l]){var m=!(0,s.default)(p.iamTreePathList)&&p.iamTreePathList.length>1?p.iamTreePathList.slice(1,p.iamTreePathList.length).map((function(t){return t.name})).join(">"):p.iamTreePathList.map((function(t){return t.name})).toString();n.addEventListener("click",(function(){d({id:p.iamId,name:p.iamName,type:p.iamType,parentName:f.parentName,treePath:m},o,h,e)}))}}else d(f,o,h,e)}))};var d=function(t,e,n,i){var o=u.localStore.get("currentProject");!(0,s.default)(t)&&!(0,s.default)(o)&&o.id&&o.name?(0,c.appTracking)((0,r.default)({productId:(0,l.getCache)("CLIENT_ID",l.sessionEngine),productName:(0,l.getCache)("SYS_PROJECT_NAME",l.sessionEngine),resourceId:t.id,resourceName:t.name,resourceType:t.type,resourceDetails:(0,s.default)(t.sysMenuVOList)?t.treePath:!(0,s.default)(t.sysMenuVOList)&&t.sysMenuVOList.length>1?t.sysMenuVOList.slice(1,t.sysMenuVOList.length).map((function(t){return t.name})).join(">"):t.sysMenuVOList.map((function(t){return t.name})).toString()},i)).then((function(t){e({success:!0,msg:"埋点成功"})})):n({success:!1,msg:"当前路由在iam并未配置埋点"})}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(19).f,i=n(36),o=n(16)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(26),i=n(129),o=n(130),s=n(24),a=n(70),c=n(97),l={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,m,g,v=d?function(){return t}:c(t),y=r(n,h,e?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=a(t.length);f>_;_++)if((g=e?y(s(p=t[_])[0],p[1]):y(t[_]))===l||g===u)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=i(m,y,p.value,e))===l||g===u)return g}).BREAK=l,e.RETURN=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(317),o=(r=i)&&r.__esModule?r:{default:r};o.default.install=function(t){t.component(o.default.name,o.default)},e.default=o.default},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,s,a,c;for(s in e)if(i=t[s],o=e[s],i&&n.test(s))if("class"===s&&("string"==typeof i&&(c=i,t[s]=i={},i[c]=!0),"string"==typeof o&&(c=o,e[s]=o={},o[c]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=r(i[a],o[a]);else if(Array.isArray(i))t[s]=i.concat(o);else if(Array.isArray(o))t[s]=[i].concat(o);else for(a in o)i[a]=o[a];else t[s]=e[s];return t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAsyncRoutes=e.businessSystemToTree=e.getDeepChild=e.getAsyncRoutes=void 0;var r=m(n(53)),i=m(n(346)),o=m(n(123)),s=m(n(69)),a=m(n(352)),c=m(n(13)),l=n(43),u=m(n(353)),h=m(n(4)),d=m(n(376)),f=m(n(377)),p=m(n(22));function m(t){return t&&t.__esModule?t:{default:t}}var g=e.getAsyncRoutes=function t(e,n,r,i,o){var s=window.__MICRO_APP_BASE_ROUTE__||"";return(0,d.default)(e.map((function(e){var a=e.data.path,d=a,f={};if(!(0,h.default)(a)&&a.includes("?")){var m=a.split("?");d=(0,h.default)(m)?"":m[0],f=(0,h.default)(m)||(0,h.default)(m[1])?{}:p.default.parse(m[1])}if(!(0,h.default)(a)&&a.includes("/:")){var g=a.split("/:");d=(0,h.default)(g)?"":g[0],f={}}var v={path:e.data.path,name:e.data.id,layout:e.data.layout,routerIamName:e.data.name,routerSubType:e.data.subType,meta:(0,c.default)({iamQuery:f,parentLayout:n?n.layout:"",parentSubType:n?n.routerSubType:"",parentName:n?n.routerIamName:"",require:!0,title:e.data.name,groupName:n?n.name:null},e.data),type:e.data.type};if(!(0,h.default)(e.data.layout)&&u.default[e.data.layout]?v.component=window.__MICRO_APP_BASE_ROUTE__?u.default.MicroLayout:u.default[e.data.layout]:1!==e.data.type&&3!==e.data.type||2===e.data.chainType||1===e.data.chainType||(v.component=o.loadView?o.loadView(d):(0,l.loadView)(e.data.path,o.routerPathPrefix,o.routerContext)),v.props={router:r,store:i},(0,h.default)(v.path)||v.path.startsWith("http")||(v.path=(""+s+v.path).replace("//","/")),e.children&&e.children.length){var y=e.children.findIndex((function(t){return 1===t.data.type}));if(y>-1&&e.children[y].data.path&&(v.redirect=""+e.children[y].data.path),"CustomWrapper"===e.data.layout){var _=e.children.findIndex((function(t){return 3===t.data.type}));_>-1&&e.children[_].data.path&&(v.redirect=""+e.children[_].data.path)}if(e.children.some((function(t){return!(0,h.default)(t.data)&&!(0,h.default)(t.data.subType)&&t.data.subType.includes("intoRouter")}))){var b=e.children.findIndex((function(t){return!(0,h.default)(t.data)&&!(0,h.default)(t.data.subType)&&t.data.subType.includes("intoRouter")}));b>-1&&e.children[b].data.path&&(v.redirect=""+e.children[b].data.path)}v.children=t(e.children,v,r,i,o)}if(!(0,h.default)(v.path))return v})))},v=(e.getDeepChild=function t(e){var n=[];if((0,h.default)(e))return n;for(var r=0;r<e.length;r++){var c=e[r];2===c.type&&n.push((0,a.default)({iamId:c.id,iamType:c.type,iamName:c.name,iamTreePathList:c.sysMenuVOList,iamTreePath:c.detailName},c.tag,c.functionType)),c.childMenuList&&(n=[].concat((0,s.default)(n),(0,s.default)(t(c.childMenuList))))}return(0,o.default)(new i.default(n))},function t(e,n){return e.filter((function(e){return!(!e.path&&!e.tag)&&(e.keys=n+1,e.childMenuList&&(e.childMenuList=t(e.childMenuList,e.keys)),!0)}))}),y=(e.businessSystemToTree=function(t){var e=v(t,0),n=e.length>1?[{id:1,childMenuList:e}]:e,r=new f.default;return function t(e,n){e.forEach((function(e){r.add(e,n,r.traverseBF),e.childMenuList&&t(e.childMenuList,e)}))}(n),r},function(t,e){for(var n=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var o=!0,s=!1,a=void 0;try{for(var c,l=(0,r.default)(e);!(o=(c=l.next()).done);o=!0){var u=c.value;if(i.push(u),n(u))return i;if(u.childMenuList){var h=t(u.childMenuList,n,i);if(h.length)return h}i.pop()}}catch(t){s=!0,a=t}finally{try{!o&&l.return&&l.return()}finally{if(s)throw a}}return[]}(t,(function(t){return t.id===e.id})),i=0;i<=n.length;i++){if(n[i+1]&&1===n[i+1].type)return n[i+1];if(1===n[i].type)return n[i]}});e.setAsyncRoutes=function(t,e,n,r,i){var o=function(t){var e=new f.default;try{!function t(n,r){n.forEach((function(n){e.add(n,r,e.traverseBF),n.childMenuList&&t(n.childMenuList,n)}))}(t);return function n(r,i){try{r.forEach((function(r){if(r.subType&&!(0,h.default)(r.subType)){var o=y(t,r);r.subType.includes("fullPage")&&(e.traverseDF((function(t){3===r.type&&3===i.type?t.data.id===o.id&&e.add(r,t.data,e.traverseBF):i&&t.data.id===i.parentId&&e.add(r,t.data,e.traverseBF)})),i&&1===i.type&&e.remove(r,i,e.traverseBF)),r.subType.includes("intoRouter")&&e.traverseDF((function(t){t.data.id===r.parentId&&e.add(r,t.data,e.traverseBF)}))}r.childMenuList&&n(r.childMenuList,r)}))}catch(r){console.warn(r)}}(t),e}catch(t){return e}}(v(n,0))._root;if(o&&o.data&&"BlankLayout"===o.data.layout&&o.children.length&&o.children.length>0){var s=o.children.map((function(n){var r=g([n],null,t,e,i)[0];return{path:r.path,redirect:r.children[0].path,children:r.children,component:r.component?r.component:u.default.BlankLayout,props:{router:t,store:e}}})),a=[{path:window.__MICRO_APP_BASE_ROUTE__||"/",redirect:s[0].path,children:s,component:u.default.BlankLayout,props:{router:t,store:e}}];t.addRoutes([].concat(a,[l.redirectRouter,l.noAllowRouter])),e.commit("user/SET_ROUTERS",[a[0].children[0]]),e.commit("user/SET_APP_ROUTERS",a)}else{var c=g(o.children,null,t,e,i);if((0,h.default)(c)){var d=[{path:window.__MICRO_APP_BASE_ROUTE__||"/",redirect:"/404",children:[],component:u.default.BlankLayout,props:{router:t,store:e}}];t.addRoutes([].concat(d,[l.redirectRouter,l.noAllowRouter])),e.commit("user/SET_ROUTERS",d),e.commit("user/SET_APP_ROUTERS",d)}else{var p=c[0].redirect||c[0].path;!(0,h.default)(i.routesWhiteList)&&i.routesWhiteListFirstIsRedirect&&(p=i.routesWhiteList[0]);var m=[{path:window.__MICRO_APP_BASE_ROUTE__||"/",redirect:p,children:c,component:o.data.layout&&u.default[o.data.layout]?window.__MICRO_APP_BASE_ROUTE__?u.default.BlankLayout:u.default[o.data.layout]:u.default.BlankLayout,props:{router:t,store:e}}];m.push(l.notFoundRouter),t.addRoutes([].concat(m,[l.redirectRouter,l.noAllowRouter])),e.commit("user/SET_ROUTERS",m),e.commit("user/SET_APP_ROUTERS",m)}}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(21),o=(r=i)&&r.__esModule?r:{default:r};e.default=new o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(23)),i=h(n(171)),o=n(3),s=n(12),a=h(n(172)),c=h(n(173)),l=h(n(174)),u=n(5);function h(t){return t&&t.__esModule?t:{default:t}}var d={"东北⻛":[22.5,67.5],"东⻛":[67.5,112.5],"东南⻛":[112.5,157.5],"南⻛":[157.5,202.5],"⻄南⻛":[202.5,247.5],"⻄⻛":[247.5,292.5],"⻄北⻛":[292.5,337.5]},f={"0级":[0,.2],"1级":[.2,1.5],"2级":[1.5,3.3],"3级":[3.3,5.4],"4级":[5.4,7.9],"5级":[7.9,10.7],"6级":[10.7,13.8],"7级":[13.8,17.1],"8级":[17.1,20.7],"9级":[20.7,24.4],"10级":[24.4,28.4],"11级":[28.4,32.6]};e.default={name:"HeaderInfoGroup",inject:["propsList"],props:{theme:{type:String,default:"light"}},data:function(){return{ymd:"00-00-00",hms:"--:--:--",regionDataInfo:{temperature:0,time:void 0,url:void 0,value:0,windDirection:0,windSpeed:0,iconDay:void 0,iconNight:void 0,weather:"晴",windDegrees:180,windLevel:2},isDay:!0,visible:!1}},mounted:function(){var t=this;this.propsList.datetime&&(this.timer=setInterval((function(){t.initDateTime()}),1e3)),this.getRealDate()},methods:{handleClose:function(){this.visible=!1},handleChange:function(t){this.handleClose()},handleSkin:function(){this.visible=!0},calcWindDirection:function(t){return{transform:"rotateZ("+t+"deg)"}},calcWind:function(t){var e=(0,i.default)(d).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(d)[e]||"北风")},calcWindLevel:function(t){if(0===t)return"0级";var e=(0,i.default)(f).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(f)[e]||"12级")},initDateTime:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),i=(new Date).getHours(),o=(new Date).getMinutes(),s=(new Date).getSeconds();this.ymd=e+"-"+this.addZero(n)+"-"+this.addZero(r),this.isDay=i>6&&i<=18,this.hms=this.addZero(i)+":"+this.addZero(o)+":"+this.addZero(s)},addZero:function(t){return t<10?"0"+t:t},getRealDate:function(){var t=this,e=u.localStore.get("consumer").regionId;(0,s.getRegionDataInfo)({areaCode:e}).then((function(e){t.regionDataInfo=e.data.live}))}},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},render:function(){var t=this,e=arguments[0];return e("div",{class:[o.prefixCls+"-header-info-group",o.prefixCls+"-header-info-group-"+this.theme]},[this.propsList.skin?e("div",{class:[o.prefixCls+"-header-info-group-skin"],on:{click:function(){return t.handleSkin()}}},[e(c.default)]):null,this.propsList.datetime?e("div",{class:[o.prefixCls+"-header-info-group-time",o.prefixCls+"-header-info-group-item"]},[e("span",[this.hms]),e("small",[this.ymd])]):null,this.propsList.weather?e("div",{class:[o.prefixCls+"-header-info-group-weather",o.prefixCls+"-header-info-group-item"]},[e("img",{attrs:{src:this.regionDataInfo.icon,alt:""}}),e("span",[this.regionDataInfo.temperature,"℃"])]):null,this.propsList.wind?e("div",{class:[o.prefixCls+"-header-info-group-wind",o.prefixCls+"-header-info-group-item"]},[e("div",{class:o.prefixCls+"-header-info-group-wind-img"},[e(a.default,{style:this.calcWindDirection(this.regionDataInfo.windDegrees)})]),e("div",{class:o.prefixCls+"-header-info-group-wind-info"},[e("span",[this.regionDataInfo.windLevel,"级"]),e("span",[this.regionDataInfo.windDirection])])]):null,e(l.default,{attrs:{visible:this.visible},on:{close:this.handleClose,change:this.handleChange}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=u(n(30)),o=u(n(31)),s=n(3),a=(u(n(47)),u(n(22)),n(8),n(5)),c=n(17),l=u(n(50));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppUser",props:{theme:{type:String,default:"light"},logout:{type:Function},userName:!1,userAvatar:!1},inject:["slotsList","propsList"],computed:{currentUser:function(){return this.userName?this.userName:a.localStore.get("userName")},avaImg:function(){return this.userAvatar?this.userAvatar:a.localStore.get("userAllInfo").userExt&&a.localStore.get("userAllInfo").userExt.weChatAvatar?a.localStore.get("userAllInfo").userExt.weChatAvatar:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/default_avatar.png"}},data:function(){return{}},mounted:function(){},methods:{changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,l.default)(this.$props.logout)){t.next=2;break}return t.abrupt("return",this.$props.logout());case 2:if(!(0,l.default)(this.propsList.logout)){t.next=4;break}return t.abrupt("return",this.propsList.logout());case 4:(0,c.logOut)();case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)}),changePath:function(){"/rkWebCoreSetting"!==this.$route.path&&this.$router.push({path:"/rkWebCoreSetting?path="+this.$route.path,query:this.$route.query})}},render:function(){var t=this,e=arguments[0];return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[s.prefixCls+"-app-external-link",s.prefixCls+"-app-external-link-"+this.theme]},[this.avaImg&&e("img",{class:s.prefixCls+"-app-user-avatar",attrs:{src:this.avaImg,alt:""}}),e("span",{class:s.prefixCls+"-app-external-link-title"},[this.currentUser]),e("a-icon",{attrs:{type:"caret-down"}})]),e("div",{slot:"overlay",class:s.prefixCls+"-app-external-wrapper"},[e("div",{class:s.prefixCls+"-app-external-btn-group"},[this.slotsList&&this.slotsList.dropdownExtend,this.propsList.customPersonCenter?null:e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:this.changePath}},[e("span",["个人设置"])]),e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:function(){return t.changeBtn(2)}}},[e("span",["退出登录"])])])])])}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(123),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){var r=n(87),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(59),i=n(16)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e,n){var r,i,o,s,a,c;t.exports=(c=n(2),i=(r=c).lib,o=i.Base,s=i.WordArray,(a=r.x64={}).Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return s.create(n,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),c)},function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var r=i(n(28));function i(t){return t&&t.__esModule?t:{default:t}}e.hasClass=d,e.addClass=function(t,e){if(!t)return;for(var n=t.className,r=(e||"").split(" "),i=0,o=r.length;i<o;i++){var s=r[i];s&&(t.classList?t.classList.add(s):d(t,s)||(n+=" "+s))}t.classList||t.setAttribute("class",n)},e.removeClass=function(t,e){if(!t||!e)return;for(var n=e.split(" "),r=" "+t.className+" ",i=0,o=n.length;i<o;i++){var s=n[i];s&&(t.classList?t.classList.remove(s):d(t,s)&&(r=r.replace(" "+s+" "," ")))}t.classList||t.setAttribute("class",(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))},e.setStyle=function t(e,n,i){if(!e||!n)return;if("object"===(void 0===n?"undefined":(0,r.default)(n)))for(var o in n)n.hasOwnProperty(o)&&t(e,o,n[o]);else"opacity"===(n=l(n))&&c<9?e.style.filter=isNaN(i)?"":"alpha(opacity="+100*i+")":e.style[n]=i};var o=i(n(21)).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,a=/^moz([A-Z])/,c=o?0:Number(document.documentMode),l=function(t){return t.replace(s,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(a,"Moz$1")},u=e.on=!o&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)},h=e.off=!o&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)};e.once=function(t,e,n){u(t,e,(function r(){n&&n.apply(this,arguments),h(t,e,r)}))};function d(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}var f=e.getStyle=c<9?function(t,e){if(!o){if(!t||!e)return null;"float"===(e=l(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!o){if(!t||!e)return null;"float"===(e=l(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var p=e.isScroll=function(t,e){if(!o)return f(t,null!=e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!o){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(p(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(o||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=f(n(64)),i=n(3),o=f(n(4)),s=f(n(46)),a=f(n(366)),c=f(n(14)),l=f(n(63)),u=(f(n(367)),f(n(369))),h=f(n(370)),d=f(n(55));function f(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Sidebar",inject:["slotsList","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters},openSidebar:function(){return this.$store.state.user.openSidebar},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},props:{theme:{type:String,default:"light"},sidebarList:{type:Array,default:function(){return[]}}},data:function(){return{currentSelect:[],cacheOpenKeys:[],openKeys:[],currentOpen:[],isOpenSideBar:!0,collapsed:!1,menuWidth:0}},watch:{$route:{handler:function(t){t.path&&this.highMenu(t)},immediate:!0},openSidebar:{handler:function(t){this.isOpenSideBar=t},deep:!0},sidebarCollapsed:{handler:function(t){this.collapsed=t,t&&(this.openKeys=[])},immediate:!0}},methods:{toggleCollapsed:function(){this.collapsed=!this.collapsed,this.collapsed?this.openKeys=[]:this.openKeys=(0,a.default)(this.cacheOpenKeys),this.$emit("collapsed",this.collapsed),this.$store.commit("user/SET_SIDEBAR_COLLAPSED",this.collapsed)},findParent:function(t,e){var n=[];return function e(r,i){for(var o=0;o<r.length;o++){var s=r[o];if(s.name===i){n.push(s),e(t,s.meta.parentId);break}s.children&&e(s.children,i)}}(t,e),n},highMenu:function(t){try{var e=this.findParent(this.nav[0].children,t.name),n=(0,s.default)(e,{type:1});this.currentSelect=[n.name];var r=e.map((function(t){return t.name}));this.cacheOpenKeys=(0,a.default)(r),this.collapsed||(this.openKeys=r),(0,o.default)(t.meta.subType)||(0,o.default)(t.meta.parentSubType)||!t.meta.parentSubType.includes("fullPage")?!(0,o.default)(t.meta.subType)&&(0,o.default)(t.meta.parentSubType)&&t.meta.subType.includes("fullPage")?this.flagSlideBar(t.meta.subType):(0,o.default)(t.meta.subType)&&!(0,o.default)(t.meta.parentSubType)&&t.meta.parentSubType.includes("fullPage")?this.flagSlideBar(t.meta.parentSubType):(0,o.default)(t.meta.subType)||(0,o.default)(t.meta.parentSubType)||t.meta.parentSubType.includes("fullPage")||t.meta.subType.includes("fullPage")?this.isOpenSideBar=!0:this.isOpenSideBar=!1:this.flagSlideBar(t.meta.parentSubType),this.$emit("change",this.isOpenSideBar),this.$store.commit("user/SET_OPEN_SIDEBAR",this.isOpenSideBar),this.$store.commit("user/SET_MENI_EVENT",{item:n,key:n.name,keyPath:n.path,vNodes:n,methods:"frame",list:e})}catch(t){console.warn(t)}},flagSlideBar:function(t){if(!(0,o.default)(t)){var e=JSON.parse(t);e&&"1"===e.fullPage?this.isOpenSideBar=!1:this.isOpenSideBar=!0}},findCurrentNodes:function(t,e,n){var r=this;return t.forEach((function(t){t.name===e?n.push(t):t.children&&r.findCurrentNodes(t.children,e,n)})),n},handleOpenChange:function(t){this.openKeys=t,this.cacheOpenKeys=(0,a.default)(t)},handleTitleClick:function(t){var e=this.findParent(this.nav[0].children,t);this.openKeys=e.map((function(t){return t.name}))},handleNav:function(t){var e=this,n=(t.item,t.key);t.keyPath;if(!n)return!1;var r=[];if(this.findCurrentNodes(this.nav[0].children,n,r),!(0,o.default)(r))if(1===r[0].meta.chainType){var i=r[0].meta.path.indexOf("http")>-1?r[0].meta.path:"http://"+r[0].meta.path;window.open(i,"_blank"),1!==r[0].meta.functionType&&(0,d.default)(this,{},null,!1)}else this.currentSelect=[n],this.$router.push({name:n}).then((function(t){1!==r[0].meta.functionType&&(0,d.default)(e,{},null,!1)}))},renderIcon:function(t){var e=this.$createElement;if(this.propsList.menuIconTargetCustom||(0,o.default)(t))return e("i",{class:(0,c.default)(["icon","iconfont",t,i.prefixCls+"-normal-icon"])});var n=(0,c.default)(["icon","iconfont",t,i.prefixCls+"-normal-icon",i.prefixCls+"-normal-iep-icon"]),r=document.documentElement.style.fontSize?parseFloat(document.documentElement.style.fontSize)/100:1;return e("a-iep-icon",{attrs:{type:t,"font-size":this.propsList.sidebarMenuSize*(this.propsList.sidebarMenuAutoSize?r:1)},class:n})},getChildrenType1:function(t){return t.children.every((function(t){return 3===t.type}))},renderMenu:function(){var t=this,e=this.$createElement,n=this.sidebarList&&!(0,o.default)(this.sidebarList)?this.sidebarList.map((function(n){return n.meta&&n.meta.subType?null:!n.children||t.getChildrenType1(n)?e("a-menu-item",{key:n.name},[t.renderIcon(n.meta.icon),e("span",[n.meta.title])]):function n(r){if(r){if(t.getChildrenType1(r)&&"CustomWrapper"!==r.layout)return e("a-menu-item",{key:r.name},[t.renderIcon(r.meta.icon),e("span",{style:{"--left":r.meta.icon?"":"16px"}},[r.meta.title])]);var i=r.children.map((function(r){return r.children?n(r):1===r.type?e("a-menu-item",{key:r.name},[t.renderIcon(r.meta.icon),e("span",{style:{"--left":r.meta.icon?"":"16px"}},[r.meta.title])]):null}));return"CustomWrapper"!==r.layout?e("a-sub-menu",{key:r.name,on:{titleClick:t.handleTitleClick}},[e("template",{slot:"title"},[t.renderIcon(r.meta.icon),e("span",[r.meta.title])]),i]):null}return[]}(n)})):null,r={props:{mode:"inline",inlineIndent:this.propsList.menuInlineIndent,forceSubMenuRender:!0,theme:this.theme,inlineCollapsed:this.collapsed,selectedKeys:this.currentSelect,openKeys:this.openKeys},on:{click:this.handleNav,openChange:this.handleOpenChange}};return e("a-menu",r,[n])}},render:function(){var t=arguments[0],e=document.documentElement.style.fontSize?parseFloat(document.documentElement.style.fontSize)/100:1;this.isOpenSideBar?this.collapsed?this.menuWidth=e*this.propsList.menuCollapsedWidth:this.menuWidth=e*this.propsList.menuWidth:this.menuWidth=0;var n=t("div",{class:i.prefixCls+"-slider-inner-footer"},[t("span",{on:{click:this.toggleCollapsed}},[this.collapsed?t(h.default):t(u.default)])]),o={props:{width:this.menuWidth,trigger:null,collapsedWidth:e*this.propsList.menuCollapsedWidth,collapsible:!0,collapsed:this.collapsed},style:{"--flex":this.menuWidth>0?"0 0 "+e*(this.collapsed?this.propsList.menuCollapsedWidth:this.propsList.menuWidth)+"px":0,"--max-width":this.menuWidth>0?e*(this.collapsed?this.propsList.menuCollapsedWidth:this.propsList.menuWidth)+"px":0,"--width":this.menuWidth>0?e*(this.collapsed?this.propsList.menuCollapsedWidth:this.propsList.menuWidth)+"px":0}};return t("a-layout-sider",(0,r.default)([{class:i.prefixCls+"-slider"},o]),[t("div",{class:i.prefixCls+"-slider-inner"},[t("div",{class:i.prefixCls+"-slider-inner-header"},[t(l.default,[this.renderMenu()])]),this.slotsList.sidebarInterbed,n])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"BlankLayout",inject:["slotsList","slotScope","propsList"],render:function(){var t=arguments[0];return(0,o.default)(this.propsList.keepAliveRouter)?t("router-view"):t("keep-alive",{attrs:{include:this.propsList.keepAliveRouter}},[t("router-view")])}}},function(t,e,n){"use strict";n.r(e);var r=n(81),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(t){this.text=t}}}},function(t,e,n){"use strict";n.r(e);var r=n(83),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(3),s=m(n(14)),a=m(n(67)),c=m(n(68)),l=m(n(186)),u=(m(n(47)),n(5)),h=(m(n(22)),m(n(340))),d=n(12),f=n(8),p=n(17);function m(t){return t&&t.__esModule?t:{default:t}}r=window,i=document,r.WxLogin=function(t){var e="default";!0===t.self_redirect?e="true":!1===t.self_redirect&&(e="false");var n=i.createElement("iframe"),r="https://open.weixin.qq.com/connect/qrconnect?appid="+t.appid+"&scope="+t.scope+"&redirect_uri="+t.redirect_uri+"&state="+t.state+"&login_type=jssdk&self_redirect="+e+"&styletype="+(t.styletype||"")+"&sizetype="+(t.sizetype||"")+"&bgcolor="+(t.bgcolor||"")+"&rst="+(t.rst||"");r+=t.style?"&style="+t.style:"",r+=t.href?"&href="+t.href:"",n.src=r,n.frameBorder="0",n.allowTransparency="true",n.scrolling="no",n.width="300px",n.height="400px";var o=i.getElementById(t.id);o.innerHTML="",o.appendChild(n)},e.default={name:"AppSetting",data:function(){var t=this;return{settingMes:[{label:"设置账号"},{label:"修改密码"}],tipsState:!0,theme:"light",defaultActive:0,editNameState:!0,timer:null,stepPhone:1,wxInfo:{qrcodeUrl:void 0,sceneId:void 0},userNameMes:{name:u.localStore.get("userAllInfo").userName,phone:u.localStore.get("userAllInfo").phone,newPhone:"",verCode:"",newVerCode:""},rules:{name:[{required:!0,message:"名称不可为空",trigger:"blur"}],phone:[{required:!0,message:"手机号码不可为空",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"手机号码格式不正确",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?![A-z0-9]+$)(?=.[^%&',;=?$\x22])(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{12,20}$/,message:"必须包含大小写字母、数字、特殊字符,长度在12~20位之间",trigger:"blur"}],newPhone:[{required:!0,message:"手机号码不可为空",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"手机号码格式不正确",trigger:"blur"}],verCode:[{required:!0,message:"验证码不可为空",trigger:"blur"},{pattern:/^\d{4}$/,message:"验证码格式不正确",trigger:"blur"}],newVerCode:[{required:!0,message:"验证码不可为空",trigger:"blur"},{pattern:/^\d{4}$/,message:"验证码格式不正确",trigger:"blur"}]},userExt:{},openId:"",wxUnionid:"",count:0,interval:null,qrcodeState:!1,wechatSwitch:!1,visible:!1,publicVisible:!1,passwordForm:{passWord:"",newPassWord:"",repeatPassWord:""},passWordRule:{passWord:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?![A-z0-9]+$)(?=.[^%&',;=?$\x22])(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{12,20}$/,message:"必须包含大小写字母、数字、特殊字符,长度在12~20位之间",trigger:"blur"}],newPassWord:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?![A-z0-9]+$)(?=.[^%&',;=?$\x22])(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{12,20}$/,message:"必须包含大小写字母、数字、特殊字符,长度在12~20位之间",trigger:"blur"}],repeatPassWord:[{validator:function(e,n,r){""===n?r(new Error("请再次输入密码")):n!==t.passwordForm.newPassWord?r(new Error("两次输入的密码不一致!")):r()},trigger:"blur"}]},wechatModel:!1,reloadState:!1,reloadPasState:!1,userNameModify:!1,userAvatar:!1,countdown:300}},components:{HeaderInfoGroup:a.default,AppUser:c.default,WechatIcon:h.default},created:function(){var t=this;this.setUserInfo(),this.userAvatar=u.localStore.get("userAllInfo").userExt&&u.localStore.get("userAllInfo").userExt.weChatAvatar?u.localStore.get("userAllInfo").userExt.weChatAvatar:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/default_avatar.png",this.$route.query.code&&(0,d.BoundWx)({code:this.$route.query.code}).then((function(){t.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(e){t.$message.info("微信绑定成功"),t.setUserInfo(),t.userAvatar=u.localStore.get("userAllInfo").userExt.weChatAvatar,t.$router.push({path:"/rkWebCoreSetting",query:{path:t.$route.query.path}})}))})).finally((function(){u.localStore.remove("BING_WECHAT")}))},methods:{hanldeSelect:function(t){this.defaultActive=t},goBack:function(){this.$router.push({path:this.$route.query.path,query:this.$route.query})},handleEditName:function(){var t=this;this.userNameMes.name!==this.userMes.userName?this.$refs.nameForm.validate((function(e){if(!e)return t.$message.error("名称修改失败"),!1;(0,d.UpUserName)({userName:t.userNameMes.name}).then((function(e){t.editNameState=!0,t.$message.info("名称修改成功"),t.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(){t.setUserInfo(),t.userNameModify=t.userNameMes.name,t.$router.push({path:"/rkWebCoreSetting",query:{path:t.$route.query.path}})}))}))})):this.editNameState=!0},delPhone:function(t){var e=this;switch(t){case 1:(0,d.UpUserPhone)({phone:this.userNameMes.newPhone,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine),code:this.userNameMes.newVerCode}).then((function(){e.$message.info("绑定成功"),e.count=0,clearInterval(e.interval),e.stepPhone=t,e.userNameMes.newPhone="",e.userNameMes.newVerCode="",(0,p.logOut)()}));break;case 2:this.stepPhone=t;break;case 3:this.$refs.verCodeForm.validate((function(n){n&&(0,d.UserMsgAuth)({phone:e.userNameMes.phone,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine),code:e.userNameMes.verCode}).then((function(){e.$message.info("验证成功"),e.count=0,clearInterval(e.interval),e.stepPhone=t,e.userNameMes.verCode=""}))}));break;case 4:this.$refs.newPhoneForm.validate((function(n){n&&(0,d.CheckPhone)({phone:e.userNameMes.newPhone,id:e.userNameMes.id}).then((function(n){n.data?e.$message.info("该手机号已存在"):e.stepPhone=t}))}))}},runGetCaptchaCountDown:function(){var t=this;this.count=60,this.interval=setInterval((function(){t.count-=1,0===t.count&&clearInterval(t.interval)}),1e3)},sendVerCode:function(){var t=this;(0,d.SendMsg)({phone:this.userNameMes.phone,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(){t.$message.info("验证已发送"),t.runGetCaptchaCountDown()}))},sendNewPhoneVerCode:function(){var t=this;(0,d.SendMsg)({phone:this.userNameMes.newPhone,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(){t.$message.info("验证已发送"),t.runGetCaptchaCountDown()}))},backStep:function(){this.stepPhone=1,this.count=0,clearInterval(this.interval)},delWeChat:function(){var t=this;(0,d.UnboundWx)().then((function(e){t.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(){t.wechatModel=!1,t.publicVisible=!1,t.$message.info("微信解绑成功"),t.setUserInfo(),t.userAvatar=!1}))}))},addWechat:function(){this.visible=!0,u.localStore.set("BING_WECHAT",1);new WxLogin({self_redirect:!1,id:"qrcode-container-app-setting",appid:this.userMes.wechatAppId,scope:"snsapi_login",redirect_uri:encodeURIComponent(sessionStorage.getItem("IAM_BASE_URL")+"/iam/v1/sys/oauth/weixinCallback?redirectUri="+window.document.location.href),state:"state"})},addPublicWechat:function(){var t=this;this.publicVisible=!0,(0,d.getQrcode)().then((function(e){t.wxInfo=e.data,t.fiveCountdown((function(){(0,d.boundWxgzh)({code:e.data.sceneId}).then((function(e){1!==e.code&&(t.publicVisible=!1,clearInterval(t.timer),t.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(e){t.$message.info("绑定成功"),t.setUserInfo(),t.userAvatar=u.localStore.get("userAllInfo").userExt.weChatAvatar})))})).catch((function(){clearInterval(t.timer)}))}))}))},handlePublicWechatCancel:function(){this.publicVisible=!1,clearInterval(this.timer)},handleWechatCancel:function(){this.visible=!1,u.localStore.remove("BING_WECHAT")},fiveCountdown:function(t){var e=this;this.timer=setInterval((function(){e.countdown<=0?(e.countdown=300,clearInterval(e.timer)):(e.countdown--,t())}),1e3)},setUserInfo:function(){this.userNameMes.name=u.localStore.get("userAllInfo").userName,this.userNameMes.phone=u.localStore.get("userAllInfo").phone,this.userExt=u.localStore.get("userAllInfo").userExt,this.openId=u.localStore.get("userAllInfo").openId,this.wxUnionid=u.localStore.get("userAllInfo").wxUnionid,this.wechatSwitch=u.localStore.get("userAllInfo").wechatSwitch},verPhone:function(){var t=this;this.$refs.newVerCodeForm.validate((function(e){e&&(t.reloadState=!0)}))},verPas:function(){var t=this;this.$refs.forgetForm.validate((function(e){if(!e)return!1;t.reloadPasState=!0}))},savePass:function(){var t=this,e=window.__RK_WEB_CORE_APPID__&&(0,f.getCache)("CLIENT_ID",f.sessionEngine)?(0,f.getCache)("CLIENT_ID",f.sessionEngine):u.sessionStore.get("CLIENT_ID");(0,l.default)(this.passwordForm.passWord).then((function(n){(0,l.default)(t.passwordForm.newPassWord).then((function(r){(0,d.UpPassword)({name:t.userMes.loginName,pwd:n,newPwd:r,sysCode:e}).then((function(e){t.$message.info("密码修改成功"),(0,p.logOut)()}))}))}))}},computed:{prefixCls:function(){return o.prefixCls},headerClasses:function(){return(0,s.default)([o.prefixCls+"-header",o.prefixCls+"-header-"+this.theme])},userMes:function(){return u.localStore.get("userAllInfo")},phoneMes:function(){switch(this.stepPhone){case 1:return"当前手机号";case 2:return"绑定手机号";case 3:case 4:return"绑定新手机号"}}},beforeDestroy:function(){clearInterval(this.interval),this.handlePublicWechatCancel(),u.localStore.remove("BING_WECHAT")}}},function(t,e,n){},function(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";e.a=null},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(56),i=n(9),o=n(125),s=n(27),a=n(48),c=n(189),l=n(60),u=n(128),h=n(16)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,m,g,v){c(n,e,p);var y,_,b,x=function(t){if(!d&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==m,M=!1,A=t.prototype,C=A[h]||A["@@iterator"]||m&&A[m],E=C||x(m),T=m?S?x("entries"):E:void 0,I="Array"==e&&A.entries||C;if(I&&(b=u(I.call(new t)))!==Object.prototype&&b.next&&(l(b,w,!0),r||"function"==typeof b[h]||s(b,h,f)),S&&C&&"values"!==C.name&&(M=!0,E=function(){return C.call(this)}),r&&!v||!d&&!M&&A[h]||s(A,h,E),a[e]=E,a[w]=f,m)if(y={values:S?E:x("values"),keys:g?E:x("keys"),entries:T},v)for(_ in y)_ in A||o(A,_,y[_]);else i(i.P+i.F*(d||M),e,y);return y}},function(t,e,n){var r=n(20),i=n(15).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(20);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(24),i=n(190),o=n(96),s=n(94)("IE_PROTO"),a=function(){},c=function(){var t,e=n(90)("iframe"),r=o.length;for(e.style.display="none",n(127).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(59);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(95)("keys"),i=n(71);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(6),i=n(15),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(56)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(72),i=n(16)("iterator"),o=n(48);t.exports=n(6).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r=n(57);function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(27);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(224);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",s="RFC3986";t.exports={default:s,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:o,RFC3986:s}},function(t,e,n){var r=n(71)("meta"),i=n(20),o=n(36),s=n(19).f,a=0,c=Object.isExtensible||function(){return!0},l=!n(35)((function(){return c(Object.preventExtensions({}))})),u=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return l&&h.NEED&&c(t)&&!o(t,r)&&u(t),t}}},function(t,e,n){var r=n(20);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){e.f=n(16)},function(t,e,n){var r=n(15),i=n(6),o=n(56),s=n(106),a=n(19).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r;t.exports=(r=n(2),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),c[i]=n(t.pow(r,1/3)),i++),r++}();var l=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)l[f]=0|t[e+f];else{var p=l[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=l[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[f]=m+l[f-7]+v+l[f-16]}var y=r&i^r&o^i&o,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[f]+l[f];d=h,h=u,u=a,a=s+b|0,s=o,o=i,i=r,r=b+(_+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),r.SHA256)},function(t,e,n){var r,i,o,s;t.exports=(r=n(2),o=(i=r).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=s.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),a=i.words,c=o.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))},function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function a(){o(s)}function c(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},u=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=v(0,0,0,0);function d(t){return parseFloat(t)||0}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=u(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=d(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=d(r.width),c=d(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=f(r,"left","right")+o),Math.round(c+s)!==n&&(c-=f(r,"top","bottom")+s)),!function(t){return t===u(t).document.documentElement}(t)){var l=Math.round(a+o)-e,p=Math.round(c+s)-n;1!==Math.abs(l)&&(a-=l),1!==Math.abs(p)&&(c-=p)}return v(i.left,i.top,a,c)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof u(t).SVGGraphicsElement}:function(t){return t instanceof u(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return r?m(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):p(t):h}function v(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(t,e){var n,r,i,o,s,a,c,u=(r=(n=e).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),l(c,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),c);l(this,{target:t,contentRect:u})},b=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new _(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(e,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:w;e.default=S}.call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(39)),i=o(n(40));function o(t){return t&&t.__esModule?t:{default:t}}var s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},a=function(){function t(){(0,r.default)(this,t)}return(0,i.default)(t,[{key:"formatColor",value:function(t,e){return t.indexOf("#")>-1?"rgba("+this.toNum3(t).toString()+","+e+")":s[t]?"rgba("+this.toNum3(s[t]).toString()+","+e+")":"rgba("+this.toNum3(t).toString()+","+e+")"}},{key:"isHex",value:function(t){return t.length>=4&&"#"===t[0]}},{key:"isRgb",value:function(t){return t.length>=10&&"rgb"===t.slice(0,3)}},{key:"isRgba",value:function(t){return t.length>=13&&"rgba"===t.slice(0,4)}},{key:"pad2",value:function(t){var e=t.toString(16);return 1===e.length&&(e="0"+e),e}},{key:"lighten",value:function(t,e){return this.mix("fff",t,e)}},{key:"darken",value:function(t,e){return this.mix("000",t,e)}},{key:"mix",value:function(t,e,n,r,i){t=this.dropPrefix(t),e=this.dropPrefix(e),void 0===n&&(n=.5),void 0===r&&(r=1),void 0===i&&(i=1);var o=2*n-1,s=r-i,a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-a,l=this.toNum3(t),u=this.toNum3(e),h=Math.round(a*l[0]+c*u[0]),d=Math.round(a*l[1]+c*u[1]),f=Math.round(a*l[2]+c*u[2]);return"#"+this.pad2(h)+this.pad2(d)+this.pad2(f)}},{key:"rgbaToRgb",value:function(t,e,n){return this.mix(t,n||"fff",.5,e,1-e)}},{key:"toNum3",value:function(t){return 3===(t=this.dropPrefix(t)).length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}},{key:"dropPrefix",value:function(t){return t.replace("#","")}},{key:"rrggbbToHsl",value:function(t){var e=this.toNum3(t),n=this.rgbToHsl.apply(0,e);return[n[0].toFixed(0),(100*n[1]).toFixed(3)+"%",(100*n[2]).toFixed(3)+"%"].join(",")}},{key:"rgbToHsl",value:function(t,e,n){var r=t/255,i=e/255,o=n/255,s=Math.max(r,i,o),a=Math.min(r,i,o),c=s-a,l=(s+a)/2,u=0,h=0;if(Math.abs(c)>1e-5){h=l<=.5?c/(s+a):c/(2-s-a);var d=(s-r)/c,f=(s-i)/c,p=(s-o)/c;u=r==s?p-f:i==s?2+d-p:4+f-d,(u*=60)<0&&(u+=360)}return[u,h,l]}}]),t}();e.default=new a},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[r]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=e&&!e.nodeType&&e,_=y&&"object"==typeof n&&n&&!n.nodeType&&n,b=_&&_.exports===y&&m.process,x=function(){try{return b&&b.binding("util")}catch(t){}}(),w=x&&x.isTypedArray;function S(t,e){for(var n=-1,r=t?t.length:0,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function M(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function C(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function E(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var T,I,P,L=Array.prototype,R=Function.prototype,O=Object.prototype,B=v["__core-js_shared__"],k=(T=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",D=R.toString,F=O.hasOwnProperty,N=O.toString,j=RegExp("^"+D.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=v.Symbol,z=v.Uint8Array,G=O.propertyIsEnumerable,H=L.splice,W=(I=Object.keys,P=Object,function(t){return I(P(t))}),V=Ct(v,"DataView"),Z=Ct(v,"Map"),Q=Ct(v,"Promise"),X=Ct(v,"Set"),Y=Ct(v,"WeakMap"),J=Ct(Object,"create"),q=Bt(V),K=Bt(Z),$=Bt(Q),tt=Bt(X),et=Bt(Y),nt=U?U.prototype:void 0,rt=nt?nt.valueOf:void 0,it=nt?nt.toString:void 0;function ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ct(t){var e=-1,n=t?t.length:0;for(this.__data__=new at;++e<n;)this.add(t[e])}function lt(t){this.__data__=new st(t)}function ut(t,e){var n=Nt(t)||Ft(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!F.call(t,o)||i&&("length"==o||Tt(o,r))||n.push(o);return n}function ht(t,e){for(var n=t.length;n--;)if(Dt(t[n][0],e))return n;return-1}ot.prototype.clear=function(){this.__data__=J?J(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(J){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return F.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:F.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},st.prototype.clear=function(){this.__data__=[]},st.prototype.delete=function(t){var e=this.__data__,n=ht(e,t);return!(n<0)&&(n==e.length-1?e.pop():H.call(e,n,1),!0)},st.prototype.get=function(t){var e=this.__data__,n=ht(e,t);return n<0?void 0:e[n][1]},st.prototype.has=function(t){return ht(this.__data__,t)>-1},st.prototype.set=function(t,e){var n=this.__data__,r=ht(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new ot,map:new(Z||st),string:new ot}},at.prototype.delete=function(t){return At(this,t).delete(t)},at.prototype.get=function(t){return At(this,t).get(t)},at.prototype.has=function(t){return At(this,t).has(t)},at.prototype.set=function(t,e){return At(this,t).set(t,e),this},ct.prototype.add=ct.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ct.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.clear=function(){this.__data__=new st},lt.prototype.delete=function(t){return this.__data__.delete(t)},lt.prototype.get=function(t){return this.__data__.get(t)},lt.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof st){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this;n=this.__data__=new at(r)}return n.set(t,e),this};var dt,ft,pt=(dt=function(t,e){return t&&gt(t,e,Zt)},function(t,e){if(null==t)return t;if(!jt(t))return dt(t,e);for(var n=t.length,r=ft?n:-1,i=Object(t);(ft?r--:++r<n)&&!1!==e(i[r],r,i););return t});function mt(t,e){var n=[];return pt(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}var gt=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}();function vt(t,e){for(var n=0,r=(e=It(e,t)?[e]:St(e)).length;null!=t&&n<r;)t=t[Ot(e[n++])];return n&&n==r?t:void 0}function yt(t,e){return null!=t&&e in Object(t)}function _t(t,e,n,a,c){return t===e||(null==t||null==e||!Gt(t)&&!Ht(e)?t!=t&&e!=e:function(t,e,n,a,c,l){var u=Nt(t),h=Nt(e),d="[object Array]",f="[object Array]";u||(d=(d=Et(t))==r?o:d);h||(f=(f=Et(e))==r?o:f);var p=d==o&&!A(t),m=f==o&&!A(e),g=d==f;if(g&&!p)return l||(l=new lt),u||Vt(t)?Mt(t,e,n,a,c,l):function(t,e,n,r,o,a,c){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new z(t),new z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Dt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case i:var l=C;case s:var u=2&a;if(l||(l=E),t.size!=e.size&&!u)return!1;var h=c.get(t);if(h)return h==e;a|=1,c.set(t,e);var d=Mt(l(t),l(e),r,o,a,c);return c.delete(t),d;case"[object Symbol]":if(rt)return rt.call(t)==rt.call(e)}return!1}(t,e,d,n,a,c,l);if(!(2&c)){var v=p&&F.call(t,"__wrapped__"),y=m&&F.call(e,"__wrapped__");if(v||y){var _=v?t.value():t,b=y?e.value():e;return l||(l=new lt),n(_,b,a,c,l)}}if(!g)return!1;return l||(l=new lt),function(t,e,n,r,i,o){var s=2&i,a=Zt(t),c=a.length,l=Zt(e).length;if(c!=l&&!s)return!1;var u=c;for(;u--;){var h=a[u];if(!(s?h in e:F.call(e,h)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var f=!0;o.set(t,e),o.set(e,t);var p=s;for(;++u<c;){h=a[u];var m=t[h],g=e[h];if(r)var v=s?r(g,m,h,e,t,o):r(m,g,h,t,e,o);if(!(void 0===v?m===g||n(m,g,r,i,o):v)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=t.constructor,_=e.constructor;y==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,a,c,l)}(t,e,_t,n,a,c))}function bt(t){return!(!Gt(t)||function(t){return!!k&&k in t}(t))&&(Ut(t)||A(t)?j:d).test(Bt(t))}function xt(t){return"function"==typeof t?t:null==t?Qt:"object"==typeof t?Nt(t)?function(t,e){if(It(t)&&Pt(e))return Lt(Ot(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:vt(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=It(e,t)?[e]:St(e);var r,i=-1,o=e.length;for(;++i<o;){var s=Ot(e[i]);if(!(r=null!=t&&n(t,s)))break;t=t[s]}if(r)return r;return!!(o=t?t.length:0)&&zt(o)&&Tt(s,o)&&(Nt(t)||Ft(t))}(t,e,yt)}(n,t):_t(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Zt(t),n=e.length;for(;n--;){var r=e[n],i=t[r];e[n]=[r,i,Pt(i)]}return e}(t);if(1==e.length&&e[0][2])return Lt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=n[i])[0],l=t[c],u=a[1];if(s&&a[2]){if(void 0===l&&!(c in t))return!1}else{var h=new lt;if(r)var d=r(l,u,c,t,e,h);if(!(void 0===d?_t(u,l,r,3,h):d))return!1}}return!0}(n,t,e)}}(t):It(e=t)?(n=Ot(e),function(t){return null==t?void 0:t[n]}):function(t){return function(e){return vt(e,t)}}(e);var e,n}function wt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||O,e!==r)return W(t);var e,n,r,i=[];for(var o in Object(t))F.call(t,o)&&"constructor"!=o&&i.push(o);return i}function St(t){return Nt(t)?t:Rt(t)}function Mt(t,e,n,r,i,o){var s=2&i,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var u=-1,h=!0,d=1&i?new ct:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var f=t[u],p=e[u];if(r)var m=s?r(p,f,u,e,t,o):r(f,p,u,t,e,o);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!M(e,(function(t,e){if(!d.has(e)&&(f===t||n(f,t,r,i,o)))return d.add(e)}))){h=!1;break}}else if(f!==p&&!n(f,p,r,i,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function At(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Ct(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return bt(n)?n:void 0}var Et=function(t){return N.call(t)};function Tt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||f.test(t))&&t>-1&&t%1==0&&t<e}function It(t,e){if(Nt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Wt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Pt(t){return t==t&&!Gt(t)}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(V&&"[object DataView]"!=Et(new V(new ArrayBuffer(1)))||Z&&Et(new Z)!=i||Q&&"[object Promise]"!=Et(Q.resolve())||X&&Et(new X)!=s||Y&&"[object WeakMap]"!=Et(new Y))&&(Et=function(t){var e=N.call(t),n=e==o?t.constructor:void 0,r=n?Bt(n):void 0;if(r)switch(r){case q:return"[object DataView]";case K:return i;case $:return"[object Promise]";case tt:return s;case et:return"[object WeakMap]"}return e});var Rt=kt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(Wt(t))return it?it.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return l.test(t)&&n.push(""),t.replace(u,(function(t,e,r,i){n.push(r?i.replace(h,"$1"):e||t)})),n}));function Ot(t){if("string"==typeof t||Wt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bt(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function kt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(kt.Cache||at),n}function Dt(t,e){return t===e||t!=t&&e!=e}function Ft(t){return function(t){return Ht(t)&&jt(t)}(t)&&F.call(t,"callee")&&(!G.call(t,"callee")||N.call(t)==r)}kt.Cache=at;var Nt=Array.isArray;function jt(t){return null!=t&&zt(t.length)&&!Ut(t)}function Ut(t){var e=Gt(t)?N.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function zt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Gt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ht(t){return!!t&&"object"==typeof t}function Wt(t){return"symbol"==typeof t||Ht(t)&&"[object Symbol]"==N.call(t)}var Vt=w?function(t){return function(e){return t(e)}}(w):function(t){return Ht(t)&&zt(t.length)&&!!p[N.call(t)]};function Zt(t){return jt(t)?ut(t):wt(t)}function Qt(t){return t}n.exports=function(t,e){return(Nt(t)?S:mt)(t,xt(e))}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(12),o=h(n(4)),s=h(n(112)),a=h(n(177)),c=h(n(54)),l=n(8),u=n(5);function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppLogo",inject:["slotsList","propsList"],props:{prefix:{type:String,default:"basic"},theme:{type:String,default:"light"}},computed:{currentConsumer:function(){return u.localStore.get("consumer")},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},data:function(){return{currentInfo:{icon:void 0,name:void 0},collapsed:!1}},watch:{sidebarCollapsed:{handler:function(t){this.collapsed=t},immediate:!0}},mounted:function(){var t=(0,l.getCache)("APP_PROJECT");if(t){var e=c.default.decrypt(t);e&&(this.currentInfo=e)}this.getByCuserInfo()},methods:{getByCuserInfo:function(){var t=this,e=(0,l.getCache)("CLIENT_ID");(0,i.getByCuser)().then((function(n){var r=(0,s.default)(n.data,(function(t){return t.code===e})),i=c.default.decrypt((0,l.getCache)("APP_PROJECT"));!r||(0,o.default)(r)||(0,o.default)(r[0])?(t.currentInfo=i.includes("{")?JSON.parse(i):{},(0,l.setCache)("SYS_PROJECT_NAME",t.currentInfo.name,"sessionStorage")):(t.currentInfo=r[0],r&&r[0]&&r[0].name&&(0,l.setCache)("SYS_PROJECT_NAME",r[0].name,"sessionStorage"))}))},getExtension:function(t){return t.substring(t.lastIndexOf(".")+1)},renderIcon:function(){var t=this.$createElement;return(0,o.default)(this.currentInfo.icon)?t("img",{attrs:{src:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/1437955217135501312.png"}}):t("img",{attrs:{src:this.currentInfo.icon}})},handleGoToHome:function(){this.$router.replace("/")}},render:function(){var t=this,e=arguments[0],n=this.prefix,i=this.theme,o=r.prefixCls+"-logo";return e("div",{class:[o,o+"-"+n],on:{click:function(){return t.handleGoToHome()}}},[e("div",{class:[o+"-"+n+"-inner",o+"-inner",o+"-"+i+"-inner"]},[e("img",{attrs:{src:this.currentInfo.icon?this.currentInfo.icon:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/1437955217135501312.png"}}),this.collapsed?null:e("span",{class:[o+"-"+n+"-title",o+"-title"]},[this.currentInfo.name]),this.slotsList.icon?this.slotsList.icon:null]),this.slotsList.mark?e("div",{class:o+"-mark-inner"},[this.slotsList.mark]):null,this.propsList.project?e("div",{class:o+"-mark-inner"},[e(a.default,{attrs:{theme:i}})]):null])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=y(n(30)),o=y(n(31)),s=y(n(13)),a=n(3),c=y(n(47)),l=n(12),u=y(n(4)),h=y(n(46)),d=y(n(14)),f=(y(n(22)),y(n(63))),p=y(n(66)),m=n(5),g=n(8),v=n(17);function y(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppExternal",inject:["slotsList","propsList"],props:{theme:{type:String,default:"light"}},computed:{currentUser:function(){return m.localStore.get("userName")},currentProject:function(){return m.localStore.get("currentProject")}},data:function(){return{projectList:[],currentProjectInfo:void 0}},mounted:function(){this.propsList.multiProject&&this.getAllProject()},methods:{getAllProject:function(){var t=this;(0,l.getBelongList)().then((function(e){t.projectList=e.data.map((function(e){return(0,s.default)({},e,{check:e.id===t.currentProject.id})}));var n=(0,h.default)(t.projectList,["id",t.currentProject.id]);(0,u.default)(n)||(t.currentProjectInfo=n.name)}))},changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){var r,o,s,a,d;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==e){t.next=18;break}return this.$store.commit("user/SET_MENU_LIST",[]),p.default.$emit("extendChange",n),(0,h.default)(this.$store.state.user.addRouters,(function(t){return"/404"!==t.redirect})),(0,g.removeCache)("menuList"),m.localStore.remove("consumer"),m.localStore.remove("currentProject"),m.localStore.remove("consumerExtList"),m.localStore.remove("userMessage"),(0,g.setCache)("currentProject",n),t.next=12,(0,l.postConsumer)(n.id);case 12:r=t.sent,o=r.data,s=m.localStore.get("IAM_OATH_TYPE"),(0,u.default)(o)||((0,g.removeCache)("menuList"),localStorage.removeItem("access_token"),m.localStore.set("access_token",o.access_token),m.localStore.set("refresh_token",o.refresh_token),a=new Date,m.localStore.set("token_expires_in",new Date(a.setSeconds(a.getSeconds()+parseInt(o.expires_in))).getTime()),s&&"idp"===s&&(m.localStore.set("idp_access_token",o.idp_access_token),m.localStore.set("idp_refresh_token",o.idp_refresh_token)),window.location.reload(),this.$router.replace("/").then((function(){window.location.origin}))),t.next=22;break;case 18:d=m.localStore.get("IAM_OATH_TYPE"),c.default.clearAll(),m.localStore.set("IAM_OATH_TYPE",d),(0,v.logOut)();case 22:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},render:function(){var t=this,e=arguments[0],n=this.projectList.map((function(n){var r=(0,d.default)([a.prefixCls+"-app-external-cell",n.check?a.prefixCls+"-app-external-active":""]);return e("div",{class:r,on:{click:function(){return t.changeBtn(1,n)}}},[n.name])}));return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[a.prefixCls+"-app-external-link",a.prefixCls+"-app-external-link-"+this.theme]},[this.currentProject&&this.propsList.multiProject?[e("span",{class:a.prefixCls+"-app-external-link-sub"},[this.currentProjectInfo]),e("a-icon",{attrs:{type:"caret-down"}})]:null]),e("div",{slot:"overlay",class:a.prefixCls+"-app-external-wrapper"},[(0,u.default)(this.projectList)?null:e("div",{class:[a.prefixCls+"-app-external-list",!(0,u.default)(this.projectList)&&this.projectList.length>10?a.prefixCls+"-app-external-list-scroll":""]},[e(f.default,[n])])])])}}},function(module,exports,__webpack_require__){(function(setImmediate){var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("c7b2")},"0152":function(t,e,n){var r=n("58bc"),i=n("11b2"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},"02c5":function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},"02e7":function(t,e,n){var r=n("bd71"),i=n("065f"),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==u||n!=l&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},"0358":function(t,e,n){(e=n("a1a8")(!1)).push([t.i,".rk-map-tooltip{position:relative}.rk-map-tooltip:hover .rk-map-tooltip-wrapper{animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.18,.89,.32,1.28);display:inline-flex;animation-name:rcToolTipZoomIn;animation-play-state:running}.rk-map-tooltip-wrapper{position:absolute;z-index:999;top:50%;transform:translateY(-50%);display:none;justify-content:flex-start;align-items:center}.rk-map-tooltip-wrapper-arrow{width:0;height:0;pointer-events:none;display:inline-block;border-top:4px solid transparent;border-bottom:4px solid transparent}.rk-map-tooltip-wrapper-arrow-left{border-right:4px solid #fff}.rk-map-tooltip-wrapper-arrow-right{border-left:4px solid #fff}.rk-map-tooltip-wrapper-text{white-space:nowrap;font-size:14px;color:rgba(0,0,0,.85);background:#fff;border-radius:4px;display:inline-block;padding:6px 8px}@keyframes rcToolTipZoomIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(0) translateY(-50%)}to{opacity:1;transform-origin:50% 50%;transform:scale(1) translateY(-50%)}}@keyframes rcToolTipZoomOut{0%{opacity:1;transform-origin:50% 50%;transform:scale(1) translateY(-50%)}to{opacity:0;transform-origin:50% 50%;transform:scale(0) translateY(-50%)}}",""]),t.exports=e},"0514":function(t,e,n){"use strict";n("149f"),n("1803"),n("baa4"),n("3d2a"),n("3284");var r=n("f7eb"),i=n("1183");function o(t,e){const{minx:n,miny:r,maxx:i,maxy:o}=t,[s,a]=e;return n<=s&&s<=i&&r<=a&&a<=o}class s{constructor(t,e,n,r){this.minlng=t,this.minlat=e,this.maxlng=n,this.maxlat=r,this.minx=1/0,this.miny=1/0,this.maxx=-1/0,this.maxy=-1/0,this.coordinates=[],this.positions=[],this.indexs=[],this.key=null}updateBBoxPixel(t){let e=1/0,n=1/0,i=-1/0,o=-1/0;const{minlng:s,minlat:a,maxlng:c,maxlat:l}=this;return[[s,a],[s,l],[c,a],[c,l]].map(t=>new r.Coordinate(t)).map(e=>t.coordToContainerPoint(e)).forEach(t=>{e=Math.min(e,t.x),n=Math.min(n,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y)}),this.minx=e,this.miny=n,this.maxx=i,this.maxy=o,this}containsCoordinate(t){let e,n;Array.isArray(t)?(e=t[0],n=t[1]):t instanceof r.Coordinate&&(e=t.x,n=t.y);const{minlng:i,minlat:o,maxlng:s,maxlat:a}=this;return i<=e&&e<=s&&o<=n&&n<=a}isRecCross(t,e){const{x:n,y:r}=t,i={minx:n-e/2,miny:r-e/2,maxx:n+e/2,maxy:r+e/2},{minx:s,miny:a,maxx:c,maxy:l}=i;return!!(o(this,[s,a])||o(this,[s,l])||o(this,[c,a])||o(this,[c,l])||o(i,[this.minx,this.miny])||o(i,[this.minx,this.maxy])||o(i,[this.maxx,this.miny])||o(i,[this.maxx,this.maxy]))}static initGrids(t,e,n,r){const i=[],o=(n-t)/30,a=(r-e)/30;let c=t,l=e;for(let n=0;n<30;n++){c=t+n*o;for(let t=0;t<30;t++){l=e+t*a;const r=new s(c,l,c+o,l+a);r.key=t+"-"+n,i.push(r)}}return{grids:i,averageX:o,averageY:a,ROWS:30,COLS:30}}}var a=s,c=n("f1fc");const l={altitude:0},u=new i.Vector3,h={positionsConvert:function(t,e=0,n){const r=[];for(let o=0,s=t.length;o<s;o+=3){const s=t[o],a=t[o+1];let c=t[o+2];e>0&&(c+=n.distanceToVector3(e,e).x),r.push(new i.Vector3(s,a,c))}return r},vectors2Pixel:function(t,e,n,r=0,o){return t[0]instanceof i.Vector3||(t=h.positionsConvert(t,r,o)),t.map(t=>h.vector2Pixel(t,e,n))},vector2Pixel:function(t,e,n){const r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}};function d(t,e,n){return t[e]||(t[e]=n.distanceToVector3(e,e).x),t[e]}function f(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class p extends(Object(c.b)(c.a)){constructor(t,e,n,o,s){Array.isArray(t)||(t=[t]);let c=1/0,u=1/0,h=-1/0,p=-1/0;if((e=r.Util.extend({},l,e,{layer:s,points:t})).bound)c=e.bound.minX,u=e.bound.minY,h=e.bound.maxX,p=e.bound.maxY;else{for(let e=0,n=t.length;e<n;e++){const{coordinate:n}=t[e];let i,o;Array.isArray(n)?(i=n[0],o=n[1]):n instanceof r.Coordinate&&(i=n.x,o=n.y),c=Math.min(c,i),u=Math.min(u,o),h=Math.max(h,i),p=Math.max(p,o)}h===c&&(h+=.2),p===u&&(p+=.2)}const m=s.coordinateToVector3([(c+h)/2,(u+p)/2]),{grids:g,averageX:v,averageY:y,ROWS:_,COLS:b}=a.initGrids(c,u,h,p),x=(g.length,new Float32Array(3*t.length)),w=[],S=new Float32Array(3*t.length),M=new Float32Array(4*t.length),A=new Float32Array(4*t.length),C=new Float32Array(4*t.length),E=new Float32Array(4*t.length),T=new Float32Array(3*t.length),I=[],P=[],L=new Float32Array(t.length),R={},O={},B=new i.Vector3(0,0,0);super();for(let e=0,n=t.length;e<n;e++){const{coordinate:n,height:r,colorIndex:i,fcolorIndex:o,mcolorIndex:a,rotation:l,rotationflag:h,visibility:p,opavalue:b,colorflag:I,fcolorflag:k,midflag:D,imgnum:F,wwItem:N,hhItem:j,uuItem:U,vvItem:z}=t[e],G=3*e,H=4*e;S[G]=i,S[G+1]=a,S[G+2]=o,M[H]=N[0],M[H+1]=j[0],M[H+2]=U[0],M[H+3]=z[0],A[H]=N[1]||40,A[H+1]=j[1]||40,A[H+2]=U[1]||.1,A[H+3]=z[1]||.1,C[H]=N[2]||40,C[H+1]=j[2]||40,C[H+2]=U[2]||.1,C[H+3]=z[2]||.1,T[G]=b,T[G+1]=l,T[G+2]=h||.1,L[e]=p,E[H]=F,E[H+1]=I,E[H+2]=D,E[H+3]=k;const W=d(R,r,s),V=s.coordinateToVector3(n,W);B.x=V.x,B.y=V.y,B.z=V.z,B.sub(m),x[G]=B.x,x[G+1]=B.y,x[G+2]=B.z,w.push(V),P[e]={position:{count:1,start:3*e,end:3*e+3},hide:!1};let Z=f((n[1]-u)/y,4),Q=f((n[0]-c)/v,4);Z-=1,Q-=1,Z=Math.max(0,Z),Q=Math.max(0,Q),Z=Math.ceil(Z),Q=Math.ceil(Q);const X=Q*_+Z;g[X]&&(g[X].positions.push(V),g[X].indexs.push(e)),O[e]=!(p<.5)}const k=new i.BufferGeometry;k.setAttribute("position",new i.Float32BufferAttribute(x,3,!0)),k.setAttribute("colorIndexs",new i.Float32BufferAttribute(S,3,!0)),k.setAttribute("visibility",new i.Float32BufferAttribute(L,1,!0)),k.setAttribute("imgv",new i.Float32BufferAttribute(M,4,!0)),k.setAttribute("imgm",new i.Float32BufferAttribute(A,4,!0)),k.setAttribute("imgf",new i.Float32BufferAttribute(C,4,!0)),k.setAttribute("markconfig",new i.Float32BufferAttribute(T,3,!0)),k.setAttribute("imgconfig",new i.Float32BufferAttribute(E,4,!0)),e.positions=w,this._initOptions(e),this._createPoints(k,n);const D=e.altitude,F=s.distanceToVector3(D,D).x,N=m.clone();N.z=F,this.getObject3d().position.copy(N),this._centerPt=m,this._averageX=v,this._averageY=y,this._ROWS=_,this._minX=c,this._minY=u,this._baseObjects=I,this._datas=t,this.faceIndex=null,this._geometriesAttributes=P,this._geometryCache=k.clone(),this.isHide=!1,this._initBaseObjectsEvent(I),this._grids=g,this._indexs_hide=O,this._bindMapEvents(),this._markTypeFunc=o,this.parent=null,this.type="Points"}getIntColor(t){let e=parseInt(255*t.r);return e=(e<<8)+parseInt(255*t.g),e=(e<<8)+parseInt(255*t.b),e+.1}_bindMapEvents(){const t=this.getMap(),e="zoomstart zooming zoomend movestart moving moveend pitch rotate";this.on("add",()=>{this._updateGrids(),t.on(e,this._updateGrids,this)}),this.on("remove",()=>{t.off(e,this._updateGrids,this)})}updatepoints(t){Array.isArray(t)||(t=[t]);const e=this._grids.length;for(let t=0;t<e;t++)this._grids[t].positions=[],this._grids[t].indexs=[];const n={},r=new Float32Array(3*t.length),o=new i.Vector3(0,0,0);for(let e=0,i=t.length;e<i;e++){const{coordinate:i,height:s}=t[e],a=3*e,c=d(n,s,this.getLayer()),l=this.getLayer().coordinateToVector3(i,c);o.x=l.x,o.y=l.y,o.z=l.z,o.sub(this._centerPt),r[a]=o.x,r[a+1]=o.y,r[a+2]=o.z;let u=f((i[1]-this._minY)/this._averageY,4),h=f((i[0]-this._minX)/this._averageX,4);u-=1,h-=1,u=Math.max(0,u),h=Math.max(0,h),u=Math.ceil(u),h=Math.ceil(h);const p=h*this._ROWS+u;this._grids[p]&&(this._grids[p].positions.push(l),this._grids[p].indexs.push(e))}const s=this.getObject3d().geometry.attributes.position.array;for(let t=0;t<r.length;t++)s[3*t+0]=r[3*t+0],s[3*t+1]=r[3*t+1],s[3*t+2]=r[3*t+2];this.getObject3d().geometry.attributes.position.needsUpdate=!0,this.getObject3d().geometry.computeBoundingBox(),this.getObject3d().geometry.computeBoundingSphere(),this._updateGrids()}_updateGrids(){const t=this.getMap();this._grids.forEach(e=>{e.indexs.length&&e.updateBBoxPixel(t)})}getSelectMesh(){const t=this.faceIndex;if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],{coordinate:n,height:r,color:i}=e;this._baseObjects[t]=this.getLayer().toPoint(n,{height:r,index:t,color:i},this.getObject3d().material),this._baseObjects[t].object3d.renderOrder=this.getObject3d().renderOrder,this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){const e=this.getLayer(),n=this.getMap().getSize(),r=this.getLayer().getCamera(),i=this.getOptions().altitude,o=this.getMap(),s=e.distanceToVector3(i,i).x,a=this._markTypeFunc(this),c=o.coordToContainerPoint(t),l=[];if(this._grids&&this._grids.forEach(t=>{t.indexs.length&&t.isRecCross(c,a)&&l.push(t)}),l.length<1)return!1;for(let t=0,e=l.length;t<e;t++)for(let e=0,i=l[t].positions.length;e<i;e++){const i=l[t].positions[e];u.x=i.x,u.y=i.y,u.z=i.z+s;const o=h.vector2Pixel(u,n,r);if(Math.sqrt(Math.pow(c.x-o.x,2)+Math.pow(c.y-o.y,2))<=a/2){if(this.faceIndex=l[t].indexs[e],!this._indexs_hide[this.faceIndex])continue;return!0}}return!1}}e.a=p},"065f":function(t,e,n){var r=n("37b0"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"0a95":function(t,e,n){var r=n("a25b"),i=n("c197"),o=n("349c"),s=n("1cc9"),a=TypeError,c=function(t){return function(e,n,c,l){r(n);var u=i(e),h=o(u),d=s(u),f=t?d-1:0,p=t?-1:1;if(c<2)for(;;){if(f in h){l=h[f],f+=p;break}if(f+=p,t?f<0:d<=f)throw a("Reduce of empty array with no initial value")}for(;t?f>=0:d>f;f+=p)f in h&&(l=n(l,h[f],f,u));return l}};t.exports={left:c(!1),right:c(!0)}},"0d67":function(t,e,n){var r=n("9c69"),i=n("bd71");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"0e3d":function(t,e,n){var r=n("350d"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},1183:function(t,e,n){"use strict";n.r(e),n.d(e,"ACESFilmicToneMapping",(function(){return nt})),n.d(e,"AddEquation",(function(){return A})),n.d(e,"AddOperation",(function(){return q})),n.d(e,"AdditiveAnimationBlendMode",(function(){return Ze})),n.d(e,"AdditiveBlending",(function(){return x})),n.d(e,"AlphaFormat",(function(){return Dt})),n.d(e,"AlwaysDepth",(function(){return G})),n.d(e,"AlwaysStencilFunc",(function(){return Mn})),n.d(e,"AmbientLight",(function(){return wh})),n.d(e,"AmbientLightProbe",(function(){return Wh})),n.d(e,"AnimationClip",(function(){return Su})),n.d(e,"AnimationLoader",(function(){return Lu})),n.d(e,"AnimationMixer",(function(){return Sd})),n.d(e,"AnimationObjectGroup",(function(){return xd})),n.d(e,"AnimationUtils",(function(){return uu})),n.d(e,"ArcCurve",(function(){return ju})),n.d(e,"ArrayCamera",(function(){return Na})),n.d(e,"ArrowHelper",(function(){return ff})),n.d(e,"Audio",(function(){return ed})),n.d(e,"AudioAnalyser",(function(){return ad})),n.d(e,"AudioContext",(function(){return zh})),n.d(e,"AudioListener",(function(){return td})),n.d(e,"AudioLoader",(function(){return Gh})),n.d(e,"AxesHelper",(function(){return pf})),n.d(e,"AxisHelper",(function(){return up})),n.d(e,"BackSide",(function(){return m})),n.d(e,"BasicDepthPacking",(function(){return on})),n.d(e,"BasicShadowMap",(function(){return u})),n.d(e,"BinaryTextureLoader",(function(){return mp})),n.d(e,"Bone",(function(){return wc})),n.d(e,"BooleanKeyframeTrack",(function(){return gu})),n.d(e,"BoundingBoxHelper",(function(){return hp})),n.d(e,"Box2",(function(){return Od})),n.d(e,"Box3",(function(){return tr})),n.d(e,"Box3Helper",(function(){return cf})),n.d(e,"BoxBufferGeometry",(function(){return mo})),n.d(e,"BoxGeometry",(function(){return mo})),n.d(e,"BoxHelper",(function(){return af})),n.d(e,"BufferAttribute",(function(){return Ei})),n.d(e,"BufferGeometry",(function(){return Xi})),n.d(e,"BufferGeometryLoader",(function(){return Ph})),n.d(e,"ByteType",(function(){return At})),n.d(e,"Cache",(function(){return Au})),n.d(e,"Camera",(function(){return bo})),n.d(e,"CameraHelper",(function(){return rf})),n.d(e,"CanvasRenderer",(function(){return vp})),n.d(e,"CanvasTexture",(function(){return qc})),n.d(e,"CatmullRomCurve3",(function(){return Vu})),n.d(e,"CineonToneMapping",(function(){return et})),n.d(e,"CircleBufferGeometry",(function(){return $c})),n.d(e,"CircleGeometry",(function(){return $c})),n.d(e,"ClampToEdgeWrapping",(function(){return dt})),n.d(e,"Clock",(function(){return Xh})),n.d(e,"Color",(function(){return Si})),n.d(e,"ColorKeyframeTrack",(function(){return vu})),n.d(e,"CompressedTexture",(function(){return Jc})),n.d(e,"CompressedTextureLoader",(function(){return Ru})),n.d(e,"ConeBufferGeometry",(function(){return el})),n.d(e,"ConeGeometry",(function(){return el})),n.d(e,"CubeCamera",(function(){return wo})),n.d(e,"CubeReflectionMapping",(function(){return ot})),n.d(e,"CubeRefractionMapping",(function(){return st})),n.d(e,"CubeTexture",(function(){return So})),n.d(e,"CubeTextureLoader",(function(){return Bu})),n.d(e,"CubeUVReflectionMapping",(function(){return lt})),n.d(e,"CubeUVRefractionMapping",(function(){return ut})),n.d(e,"CubicBezierCurve",(function(){return Yu})),n.d(e,"CubicBezierCurve3",(function(){return Ju})),n.d(e,"CubicInterpolant",(function(){return du})),n.d(e,"CullFaceBack",(function(){return a})),n.d(e,"CullFaceFront",(function(){return c})),n.d(e,"CullFaceFrontBack",(function(){return l})),n.d(e,"CullFaceNone",(function(){return s})),n.d(e,"Curve",(function(){return Fu})),n.d(e,"CurvePath",(function(){return rh})),n.d(e,"CustomBlending",(function(){return M})),n.d(e,"CustomToneMapping",(function(){return rt})),n.d(e,"CylinderBufferGeometry",(function(){return tl})),n.d(e,"CylinderGeometry",(function(){return tl})),n.d(e,"Cylindrical",(function(){return Ld})),n.d(e,"DataTexture",(function(){return Ao})),n.d(e,"DataTexture2DArray",(function(){return Yo})),n.d(e,"DataTexture3D",(function(){return Jo})),n.d(e,"DataTextureLoader",(function(){return ku})),n.d(e,"DataUtils",(function(){return vf})),n.d(e,"DecrementStencilOp",(function(){return fn})),n.d(e,"DecrementWrapStencilOp",(function(){return mn})),n.d(e,"DefaultLoadingManager",(function(){return Eu})),n.d(e,"DepthFormat",(function(){return Gt})),n.d(e,"DepthStencilFormat",(function(){return Ht})),n.d(e,"DepthTexture",(function(){return Kc})),n.d(e,"DirectionalLight",(function(){return xh})),n.d(e,"DirectionalLightHelper",(function(){return tf})),n.d(e,"DiscreteInterpolant",(function(){return pu})),n.d(e,"DodecahedronBufferGeometry",(function(){return rl})),n.d(e,"DodecahedronGeometry",(function(){return rl})),n.d(e,"DoubleSide",(function(){return g})),n.d(e,"DstAlphaFactor",(function(){return D})),n.d(e,"DstColorFactor",(function(){return N})),n.d(e,"DynamicBufferAttribute",(function(){return tp})),n.d(e,"DynamicCopyUsage",(function(){return Rn})),n.d(e,"DynamicDrawUsage",(function(){return Cn})),n.d(e,"DynamicReadUsage",(function(){return In})),n.d(e,"EdgesGeometry",(function(){return cl})),n.d(e,"EdgesHelper",(function(){return dp})),n.d(e,"EllipseCurve",(function(){return Nu})),n.d(e,"EqualDepth",(function(){return V})),n.d(e,"EqualStencilFunc",(function(){return _n})),n.d(e,"EquirectangularReflectionMapping",(function(){return at})),n.d(e,"EquirectangularRefractionMapping",(function(){return ct})),n.d(e,"Euler",(function(){return Nr})),n.d(e,"EventDispatcher",(function(){return Dn})),n.d(e,"ExtrudeBufferGeometry",(function(){return Fl})),n.d(e,"ExtrudeGeometry",(function(){return Fl})),n.d(e,"FaceColors",(function(){return Hf})),n.d(e,"FileLoader",(function(){return Pu})),n.d(e,"FlatShading",(function(){return v})),n.d(e,"Float16BufferAttribute",(function(){return ki})),n.d(e,"Float32Attribute",(function(){return cp})),n.d(e,"Float32BufferAttribute",(function(){return Di})),n.d(e,"Float64Attribute",(function(){return lp})),n.d(e,"Float64BufferAttribute",(function(){return Fi})),n.d(e,"FloatType",(function(){return Pt})),n.d(e,"Fog",(function(){return Za})),n.d(e,"FogExp2",(function(){return Va})),n.d(e,"Font",(function(){return Fh})),n.d(e,"FontLoader",(function(){return jh})),n.d(e,"FrontSide",(function(){return p})),n.d(e,"Frustum",(function(){return To})),n.d(e,"GLBufferAttribute",(function(){return Cd})),n.d(e,"GLSL1",(function(){return Bn})),n.d(e,"GLSL3",(function(){return kn})),n.d(e,"GammaEncoding",(function(){return Ke})),n.d(e,"GreaterDepth",(function(){return Q})),n.d(e,"GreaterEqualDepth",(function(){return Z})),n.d(e,"GreaterEqualStencilFunc",(function(){return Sn})),n.d(e,"GreaterStencilFunc",(function(){return xn})),n.d(e,"GridHelper",(function(){return Yd})),n.d(e,"Group",(function(){return ja})),n.d(e,"HalfFloatType",(function(){return Lt})),n.d(e,"HemisphereLight",(function(){return ah})),n.d(e,"HemisphereLightHelper",(function(){return Xd})),n.d(e,"HemisphereLightProbe",(function(){return Hh})),n.d(e,"IcosahedronBufferGeometry",(function(){return jl})),n.d(e,"IcosahedronGeometry",(function(){return jl})),n.d(e,"ImageBitmapLoader",(function(){return kh})),n.d(e,"ImageLoader",(function(){return Ou})),n.d(e,"ImageUtils",(function(){return Hn})),n.d(e,"ImmediateRenderObject",(function(){return Fd})),n.d(e,"IncrementStencilOp",(function(){return dn})),n.d(e,"IncrementWrapStencilOp",(function(){return pn})),n.d(e,"InstancedBufferAttribute",(function(){return Ih})),n.d(e,"InstancedBufferGeometry",(function(){return Th})),n.d(e,"InstancedInterleavedBuffer",(function(){return Ad})),n.d(e,"InstancedMesh",(function(){return Pc})),n.d(e,"Int16Attribute",(function(){return ip})),n.d(e,"Int16BufferAttribute",(function(){return Li})),n.d(e,"Int32Attribute",(function(){return sp})),n.d(e,"Int32BufferAttribute",(function(){return Oi})),n.d(e,"Int8Attribute",(function(){return ep})),n.d(e,"Int8BufferAttribute",(function(){return Ti})),n.d(e,"IntType",(function(){return Tt})),n.d(e,"InterleavedBuffer",(function(){return Xa})),n.d(e,"InterleavedBufferAttribute",(function(){return Ja})),n.d(e,"Interpolant",(function(){return hu})),n.d(e,"InterpolateDiscrete",(function(){return je})),n.d(e,"InterpolateLinear",(function(){return Ue})),n.d(e,"InterpolateSmooth",(function(){return ze})),n.d(e,"InvertStencilOp",(function(){return gn})),n.d(e,"JSONLoader",(function(){return yp})),n.d(e,"KeepStencilOp",(function(){return un})),n.d(e,"KeyframeTrack",(function(){return mu})),n.d(e,"LOD",(function(){return mc})),n.d(e,"LatheBufferGeometry",(function(){return Ul})),n.d(e,"LatheGeometry",(function(){return Ul})),n.d(e,"Layers",(function(){return jr})),n.d(e,"LensFlare",(function(){return bp})),n.d(e,"LessDepth",(function(){return H})),n.d(e,"LessEqualDepth",(function(){return W})),n.d(e,"LessEqualStencilFunc",(function(){return bn})),n.d(e,"LessStencilFunc",(function(){return yn})),n.d(e,"Light",(function(){return sh})),n.d(e,"LightProbe",(function(){return Ah})),n.d(e,"Line",(function(){return Fc})),n.d(e,"Line3",(function(){return Dd})),n.d(e,"LineBasicMaterial",(function(){return Lc})),n.d(e,"LineCurve",(function(){return qu})),n.d(e,"LineCurve3",(function(){return Ku})),n.d(e,"LineDashedMaterial",(function(){return cu})),n.d(e,"LineLoop",(function(){return zc})),n.d(e,"LinePieces",(function(){return zf})),n.d(e,"LineSegments",(function(){return Uc})),n.d(e,"LineStrip",(function(){return Uf})),n.d(e,"LinearEncoding",(function(){return Je})),n.d(e,"LinearFilter",(function(){return _t})),n.d(e,"LinearInterpolant",(function(){return fu})),n.d(e,"LinearMipMapLinearFilter",(function(){return St})),n.d(e,"LinearMipMapNearestFilter",(function(){return xt})),n.d(e,"LinearMipmapLinearFilter",(function(){return wt})),n.d(e,"LinearMipmapNearestFilter",(function(){return bt})),n.d(e,"LinearToneMapping",(function(){return $})),n.d(e,"Loader",(function(){return Tu})),n.d(e,"LoaderUtils",(function(){return Eh})),n.d(e,"LoadingManager",(function(){return Cu})),n.d(e,"LogLuvEncoding",(function(){return tn})),n.d(e,"LoopOnce",(function(){return De})),n.d(e,"LoopPingPong",(function(){return Ne})),n.d(e,"LoopRepeat",(function(){return Fe})),n.d(e,"LuminanceAlphaFormat",(function(){return Ut})),n.d(e,"LuminanceFormat",(function(){return jt})),n.d(e,"MOUSE",(function(){return i})),n.d(e,"Material",(function(){return gi})),n.d(e,"MaterialLoader",(function(){return Ch})),n.d(e,"Math",(function(){return jn})),n.d(e,"MathUtils",(function(){return jn})),n.d(e,"Matrix3",(function(){return zn})),n.d(e,"Matrix4",(function(){return Tr})),n.d(e,"MaxEquation",(function(){return I})),n.d(e,"Mesh",(function(){return fo})),n.d(e,"MeshBasicMaterial",(function(){return Mi})),n.d(e,"MeshDepthMaterial",(function(){return Ra})),n.d(e,"MeshDistanceMaterial",(function(){return Oa})),n.d(e,"MeshFaceMaterial",(function(){return Vf})),n.d(e,"MeshLambertMaterial",(function(){return su})),n.d(e,"MeshMatcapMaterial",(function(){return au})),n.d(e,"MeshNormalMaterial",(function(){return ou})),n.d(e,"MeshPhongMaterial",(function(){return ru})),n.d(e,"MeshPhysicalMaterial",(function(){return nu})),n.d(e,"MeshStandardMaterial",(function(){return eu})),n.d(e,"MeshToonMaterial",(function(){return iu})),n.d(e,"MinEquation",(function(){return T})),n.d(e,"MirroredRepeatWrapping",(function(){return ft})),n.d(e,"MixOperation",(function(){return J})),n.d(e,"MultiMaterial",(function(){return Zf})),n.d(e,"MultiplyBlending",(function(){return S})),n.d(e,"MultiplyOperation",(function(){return Y})),n.d(e,"NearestFilter",(function(){return pt})),n.d(e,"NearestMipMapLinearFilter",(function(){return yt})),n.d(e,"NearestMipMapNearestFilter",(function(){return gt})),n.d(e,"NearestMipmapLinearFilter",(function(){return vt})),n.d(e,"NearestMipmapNearestFilter",(function(){return mt})),n.d(e,"NeverDepth",(function(){return z})),n.d(e,"NeverStencilFunc",(function(){return vn})),n.d(e,"NoBlending",(function(){return _})),n.d(e,"NoColors",(function(){return Gf})),n.d(e,"NoToneMapping",(function(){return K})),n.d(e,"NormalAnimationBlendMode",(function(){return Ve})),n.d(e,"NormalBlending",(function(){return b})),n.d(e,"NotEqualDepth",(function(){return X})),n.d(e,"NotEqualStencilFunc",(function(){return wn})),n.d(e,"NumberKeyframeTrack",(function(){return yu})),n.d(e,"Object3D",(function(){return $r})),n.d(e,"ObjectLoader",(function(){return Lh})),n.d(e,"ObjectSpaceNormalMap",(function(){return cn})),n.d(e,"OctahedronBufferGeometry",(function(){return zl})),n.d(e,"OctahedronGeometry",(function(){return zl})),n.d(e,"OneFactor",(function(){return L})),n.d(e,"OneMinusDstAlphaFactor",(function(){return F})),n.d(e,"OneMinusDstColorFactor",(function(){return j})),n.d(e,"OneMinusSrcAlphaFactor",(function(){return k})),n.d(e,"OneMinusSrcColorFactor",(function(){return O})),n.d(e,"OrthographicCamera",(function(){return _h})),n.d(e,"PCFShadowMap",(function(){return h})),n.d(e,"PCFSoftShadowMap",(function(){return d})),n.d(e,"PMREMGenerator",(function(){return Bf})),n.d(e,"ParametricBufferGeometry",(function(){return Gl})),n.d(e,"ParametricGeometry",(function(){return Gl})),n.d(e,"Particle",(function(){return Xf})),n.d(e,"ParticleBasicMaterial",(function(){return qf})),n.d(e,"ParticleSystem",(function(){return Yf})),n.d(e,"ParticleSystemMaterial",(function(){return Kf})),n.d(e,"Path",(function(){return ih})),n.d(e,"PerspectiveCamera",(function(){return xo})),n.d(e,"Plane",(function(){return ri})),n.d(e,"PlaneBufferGeometry",(function(){return Lo})),n.d(e,"PlaneGeometry",(function(){return Lo})),n.d(e,"PlaneHelper",(function(){return lf})),n.d(e,"PointCloud",(function(){return Qf})),n.d(e,"PointCloudMaterial",(function(){return Jf})),n.d(e,"PointLight",(function(){return yh})),n.d(e,"PointLightHelper",(function(){return Wd})),n.d(e,"Points",(function(){return Qc})),n.d(e,"PointsMaterial",(function(){return Gc})),n.d(e,"PolarGridHelper",(function(){return Jd})),n.d(e,"PolyhedronBufferGeometry",(function(){return nl})),n.d(e,"PolyhedronGeometry",(function(){return nl})),n.d(e,"PositionalAudio",(function(){return sd})),n.d(e,"PropertyBinding",(function(){return bd})),n.d(e,"PropertyMixer",(function(){return cd})),n.d(e,"QuadraticBezierCurve",(function(){return $u})),n.d(e,"QuadraticBezierCurve3",(function(){return th})),n.d(e,"Quaternion",(function(){return Jn})),n.d(e,"QuaternionKeyframeTrack",(function(){return bu})),n.d(e,"QuaternionLinearInterpolant",(function(){return _u})),n.d(e,"REVISION",(function(){return r})),n.d(e,"RGBADepthPacking",(function(){return sn})),n.d(e,"RGBAFormat",(function(){return Nt})),n.d(e,"RGBAIntegerFormat",(function(){return Yt})),n.d(e,"RGBA_ASTC_10x10_Format",(function(){return ye})),n.d(e,"RGBA_ASTC_10x5_Format",(function(){return me})),n.d(e,"RGBA_ASTC_10x6_Format",(function(){return ge})),n.d(e,"RGBA_ASTC_10x8_Format",(function(){return ve})),n.d(e,"RGBA_ASTC_12x10_Format",(function(){return _e})),n.d(e,"RGBA_ASTC_12x12_Format",(function(){return be})),n.d(e,"RGBA_ASTC_4x4_Format",(function(){return ae})),n.d(e,"RGBA_ASTC_5x4_Format",(function(){return ce})),n.d(e,"RGBA_ASTC_5x5_Format",(function(){return le})),n.d(e,"RGBA_ASTC_6x5_Format",(function(){return ue})),n.d(e,"RGBA_ASTC_6x6_Format",(function(){return he})),n.d(e,"RGBA_ASTC_8x5_Format",(function(){return de})),n.d(e,"RGBA_ASTC_8x6_Format",(function(){return fe})),n.d(e,"RGBA_ASTC_8x8_Format",(function(){return pe})),n.d(e,"RGBA_BPTC_Format",(function(){return xe})),n.d(e,"RGBA_ETC2_EAC_Format",(function(){return se})),n.d(e,"RGBA_PVRTC_2BPPV1_Format",(function(){return re})),n.d(e,"RGBA_PVRTC_4BPPV1_Format",(function(){return ne})),n.d(e,"RGBA_S3TC_DXT1_Format",(function(){return qt})),n.d(e,"RGBA_S3TC_DXT3_Format",(function(){return Kt})),n.d(e,"RGBA_S3TC_DXT5_Format",(function(){return $t})),n.d(e,"RGBDEncoding",(function(){return rn})),n.d(e,"RGBEEncoding",(function(){return $e})),n.d(e,"RGBEFormat",(function(){return zt})),n.d(e,"RGBFormat",(function(){return Ft})),n.d(e,"RGBIntegerFormat",(function(){return Xt})),n.d(e,"RGBM16Encoding",(function(){return nn})),n.d(e,"RGBM7Encoding",(function(){return en})),n.d(e,"RGB_ETC1_Format",(function(){return ie})),n.d(e,"RGB_ETC2_Format",(function(){return oe})),n.d(e,"RGB_PVRTC_2BPPV1_Format",(function(){return ee})),n.d(e,"RGB_PVRTC_4BPPV1_Format",(function(){return te})),n.d(e,"RGB_S3TC_DXT1_Format",(function(){return Jt})),n.d(e,"RGFormat",(function(){return Zt})),n.d(e,"RGIntegerFormat",(function(){return Qt})),n.d(e,"RawShaderMaterial",(function(){return tu})),n.d(e,"Ray",(function(){return Er})),n.d(e,"Raycaster",(function(){return Ed})),n.d(e,"RectAreaLight",(function(){return Sh})),n.d(e,"RedFormat",(function(){return Wt})),n.d(e,"RedIntegerFormat",(function(){return Vt})),n.d(e,"ReinhardToneMapping",(function(){return tt})),n.d(e,"RepeatWrapping",(function(){return ht})),n.d(e,"ReplaceStencilOp",(function(){return hn})),n.d(e,"ReverseSubtractEquation",(function(){return E})),n.d(e,"RingBufferGeometry",(function(){return Hl})),n.d(e,"RingGeometry",(function(){return Hl})),n.d(e,"SRGB8_ALPHA8_ASTC_10x10_Format",(function(){return Oe})),n.d(e,"SRGB8_ALPHA8_ASTC_10x5_Format",(function(){return Pe})),n.d(e,"SRGB8_ALPHA8_ASTC_10x6_Format",(function(){return Le})),n.d(e,"SRGB8_ALPHA8_ASTC_10x8_Format",(function(){return Re})),n.d(e,"SRGB8_ALPHA8_ASTC_12x10_Format",(function(){return Be})),n.d(e,"SRGB8_ALPHA8_ASTC_12x12_Format",(function(){return ke})),n.d(e,"SRGB8_ALPHA8_ASTC_4x4_Format",(function(){return we})),n.d(e,"SRGB8_ALPHA8_ASTC_5x4_Format",(function(){return Se})),n.d(e,"SRGB8_ALPHA8_ASTC_5x5_Format",(function(){return Me})),n.d(e,"SRGB8_ALPHA8_ASTC_6x5_Format",(function(){return Ae})),n.d(e,"SRGB8_ALPHA8_ASTC_6x6_Format",(function(){return Ce})),n.d(e,"SRGB8_ALPHA8_ASTC_8x5_Format",(function(){return Ee})),n.d(e,"SRGB8_ALPHA8_ASTC_8x6_Format",(function(){return Te})),n.d(e,"SRGB8_ALPHA8_ASTC_8x8_Format",(function(){return Ie})),n.d(e,"Scene",(function(){return Qa})),n.d(e,"SceneUtils",(function(){return _p})),n.d(e,"ShaderChunk",(function(){return Ro})),n.d(e,"ShaderLib",(function(){return Bo})),n.d(e,"ShaderMaterial",(function(){return _o})),n.d(e,"ShadowMaterial",(function(){return $l})),n.d(e,"Shape",(function(){return oh})),n.d(e,"ShapeBufferGeometry",(function(){return Wl})),n.d(e,"ShapeGeometry",(function(){return Wl})),n.d(e,"ShapePath",(function(){return Dh})),n.d(e,"ShapeUtils",(function(){return Bl})),n.d(e,"ShortType",(function(){return Ct})),n.d(e,"Skeleton",(function(){return Ac})),n.d(e,"SkeletonHelper",(function(){return Hd})),n.d(e,"SkinnedMesh",(function(){return xc})),n.d(e,"SmoothShading",(function(){return y})),n.d(e,"Sphere",(function(){return _r})),n.d(e,"SphereBufferGeometry",(function(){return Vl})),n.d(e,"SphereGeometry",(function(){return Vl})),n.d(e,"Spherical",(function(){return Pd})),n.d(e,"SphericalHarmonics3",(function(){return Mh})),n.d(e,"SplineCurve",(function(){return eh})),n.d(e,"SpotLight",(function(){return fh})),n.d(e,"SpotLightHelper",(function(){return jd})),n.d(e,"Sprite",(function(){return hc})),n.d(e,"SpriteMaterial",(function(){return qa})),n.d(e,"SrcAlphaFactor",(function(){return B})),n.d(e,"SrcAlphaSaturateFactor",(function(){return U})),n.d(e,"SrcColorFactor",(function(){return R})),n.d(e,"StaticCopyUsage",(function(){return Ln})),n.d(e,"StaticDrawUsage",(function(){return An})),n.d(e,"StaticReadUsage",(function(){return Tn})),n.d(e,"StereoCamera",(function(){return Qh})),n.d(e,"StreamCopyUsage",(function(){return On})),n.d(e,"StreamDrawUsage",(function(){return En})),n.d(e,"StreamReadUsage",(function(){return Pn})),n.d(e,"StringKeyframeTrack",(function(){return xu})),n.d(e,"SubtractEquation",(function(){return C})),n.d(e,"SubtractiveBlending",(function(){return w})),n.d(e,"TOUCH",(function(){return o})),n.d(e,"TangentSpaceNormalMap",(function(){return an})),n.d(e,"TetrahedronBufferGeometry",(function(){return Zl})),n.d(e,"TetrahedronGeometry",(function(){return Zl})),n.d(e,"TextBufferGeometry",(function(){return Ql})),n.d(e,"TextGeometry",(function(){return Ql})),n.d(e,"Texture",(function(){return Vn})),n.d(e,"TextureLoader",(function(){return Du})),n.d(e,"TorusBufferGeometry",(function(){return Xl})),n.d(e,"TorusGeometry",(function(){return Xl})),n.d(e,"TorusKnotBufferGeometry",(function(){return Yl})),n.d(e,"TorusKnotGeometry",(function(){return Yl})),n.d(e,"Triangle",(function(){return pi})),n.d(e,"TriangleFanDrawMode",(function(){return Ye})),n.d(e,"TriangleStripDrawMode",(function(){return Xe})),n.d(e,"TrianglesDrawMode",(function(){return Qe})),n.d(e,"TubeBufferGeometry",(function(){return Jl})),n.d(e,"TubeGeometry",(function(){return Jl})),n.d(e,"UVMapping",(function(){return it})),n.d(e,"Uint16Attribute",(function(){return op})),n.d(e,"Uint16BufferAttribute",(function(){return Ri})),n.d(e,"Uint32Attribute",(function(){return ap})),n.d(e,"Uint32BufferAttribute",(function(){return Bi})),n.d(e,"Uint8Attribute",(function(){return np})),n.d(e,"Uint8BufferAttribute",(function(){return Ii})),n.d(e,"Uint8ClampedAttribute",(function(){return rp})),n.d(e,"Uint8ClampedBufferAttribute",(function(){return Pi})),n.d(e,"Uniform",(function(){return Md})),n.d(e,"UniformsLib",(function(){return Oo})),n.d(e,"UniformsUtils",(function(){return yo})),n.d(e,"UnsignedByteType",(function(){return Mt})),n.d(e,"UnsignedInt248Type",(function(){return kt})),n.d(e,"UnsignedIntType",(function(){return It})),n.d(e,"UnsignedShort4444Type",(function(){return Rt})),n.d(e,"UnsignedShort5551Type",(function(){return Ot})),n.d(e,"UnsignedShort565Type",(function(){return Bt})),n.d(e,"UnsignedShortType",(function(){return Et})),n.d(e,"VSMShadowMap",(function(){return f})),n.d(e,"Vector2",(function(){return Un})),n.d(e,"Vector3",(function(){return qn})),n.d(e,"Vector4",(function(){return Qn})),n.d(e,"VectorKeyframeTrack",(function(){return wu})),n.d(e,"Vertex",(function(){return $f})),n.d(e,"VertexColors",(function(){return Wf})),n.d(e,"VideoTexture",(function(){return Yc})),n.d(e,"WebGL1Renderer",(function(){return Wa})),n.d(e,"WebGLCubeRenderTarget",(function(){return Mo})),n.d(e,"WebGLMultisampleRenderTarget",(function(){return Yn})),n.d(e,"WebGLRenderTarget",(function(){return Xn})),n.d(e,"WebGLRenderTargetCube",(function(){return gp})),n.d(e,"WebGLRenderer",(function(){return Ha})),n.d(e,"WebGLUtils",(function(){return Fa})),n.d(e,"WireframeGeometry",(function(){return ql})),n.d(e,"WireframeHelper",(function(){return fp})),n.d(e,"WrapAroundEnding",(function(){return We})),n.d(e,"XHRLoader",(function(){return pp})),n.d(e,"ZeroCurvatureEnding",(function(){return Ge})),n.d(e,"ZeroFactor",(function(){return P})),n.d(e,"ZeroSlopeEnding",(function(){return He})),n.d(e,"ZeroStencilOp",(function(){return ln})),n.d(e,"sRGBEncoding",(function(){return qe}));
13
-
13
+ /**
14
+ * @license
15
+ * Copyright 2010-2021 Three.js Authors
16
+ * SPDX-License-Identifier: MIT
17
+ */
14
18
  const r="127",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},o={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},s=0,a=1,c=2,l=3,u=0,h=1,d=2,f=3,p=0,m=1,g=2,v=1,y=2,_=0,b=1,x=2,w=3,S=4,M=5,A=100,C=101,E=102,T=103,I=104,P=200,L=201,R=202,O=203,B=204,k=205,D=206,F=207,N=208,j=209,U=210,z=0,G=1,H=2,W=3,V=4,Z=5,Q=6,X=7,Y=0,J=1,q=2,K=0,$=1,tt=2,et=3,nt=4,rt=5,it=300,ot=301,st=302,at=303,ct=304,lt=306,ut=307,ht=1e3,dt=1001,ft=1002,pt=1003,mt=1004,gt=1004,vt=1005,yt=1005,_t=1006,bt=1007,xt=1007,wt=1008,St=1008,Mt=1009,At=1010,Ct=1011,Et=1012,Tt=1013,It=1014,Pt=1015,Lt=1016,Rt=1017,Ot=1018,Bt=1019,kt=1020,Dt=1021,Ft=1022,Nt=1023,jt=1024,Ut=1025,zt=Nt,Gt=1026,Ht=1027,Wt=1028,Vt=1029,Zt=1030,Qt=1031,Xt=1032,Yt=1033,Jt=33776,qt=33777,Kt=33778,$t=33779,te=35840,ee=35841,ne=35842,re=35843,ie=36196,oe=37492,se=37496,ae=37808,ce=37809,le=37810,ue=37811,he=37812,de=37813,fe=37814,pe=37815,me=37816,ge=37817,ve=37818,ye=37819,_e=37820,be=37821,xe=36492,we=37840,Se=37841,Me=37842,Ae=37843,Ce=37844,Ee=37845,Te=37846,Ie=37847,Pe=37848,Le=37849,Re=37850,Oe=37851,Be=37852,ke=37853,De=2200,Fe=2201,Ne=2202,je=2300,Ue=2301,ze=2302,Ge=2400,He=2401,We=2402,Ve=2500,Ze=2501,Qe=0,Xe=1,Ye=2,Je=3e3,qe=3001,Ke=3007,$e=3002,tn=3003,en=3004,nn=3005,rn=3006,on=3200,sn=3201,an=0,cn=1,ln=0,un=7680,hn=7681,dn=7682,fn=7683,pn=34055,mn=34056,gn=5386,vn=512,yn=513,_n=514,bn=515,xn=516,wn=517,Sn=518,Mn=519,An=35044,Cn=35048,En=35040,Tn=35045,In=35049,Pn=35041,Ln=35046,Rn=35050,On=35042,Bn="100",kn="300 es";function Dn(){}Object.assign(Dn.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}},dispatchEvent:function(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,r=n.length;e<r;e++)n[e].call(this,t);t.target=null}}});const Fn=[];for(let t=0;t<256;t++)Fn[t]=(t<16?"0":"")+t.toString(16);let Nn=1234567;const jn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Fn[255&t]+Fn[t>>8&255]+Fn[t>>16&255]+Fn[t>>24&255]+"-"+Fn[255&e]+Fn[e>>8&255]+"-"+Fn[e>>16&15|64]+Fn[e>>24&255]+"-"+Fn[63&n|128]+Fn[n>>8&255]+"-"+Fn[n>>16&255]+Fn[n>>24&255]+Fn[255&r]+Fn[r>>8&255]+Fn[r>>16&255]+Fn[r>>24&255]).toUpperCase()},clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:function(t,e,n){return(1-n)*t+n*e},damp:function(t,e,n,r){return jn.lerp(t,e,1-Math.exp(-n*r))},pingpong:function(t,e=1){return e-Math.abs(jn.euclideanModulo(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){return void 0!==t&&(Nn=t%2147483647),Nn=16807*Nn%2147483647,(Nn-1)/2147483646},degToRad:function(t){return t*jn.DEG2RAD},radToDeg:function(t){return t*jn.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,n,r,i){const o=Math.cos,s=Math.sin,a=o(n/2),c=s(n/2),l=o((e+r)/2),u=s((e+r)/2),h=o((e-r)/2),d=s((e-r)/2),f=o((r-e)/2),p=s((r-e)/2);switch(i){case"XYX":t.set(a*u,c*h,c*d,a*l);break;case"YZY":t.set(c*d,a*u,c*h,a*l);break;case"ZXZ":t.set(c*h,c*d,a*u,a*l);break;case"XZX":t.set(a*u,c*p,c*f,a*l);break;case"YXY":t.set(c*f,a*u,c*p,a*l);break;case"ZYZ":t.set(c*p,c*f,a*u,a*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}};class Un{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),r=Math.sin(e),i=this.x-t.x,o=this.y-t.y;return this.x=i*n-o*r+t.x,this.y=i*r+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}}Un.prototype.isVector2=!0;class zn{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,r,i,o,s,a,c){const l=this.elements;return l[0]=t,l[1]=r,l[2]=s,l[3]=e,l[4]=i,l[5]=a,l[6]=n,l[7]=o,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],s=n[3],a=n[6],c=n[1],l=n[4],u=n[7],h=n[2],d=n[5],f=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],_=r[7],b=r[2],x=r[5],w=r[8];return i[0]=o*p+s*v+a*b,i[3]=o*m+s*y+a*x,i[6]=o*g+s*_+a*w,i[1]=c*p+l*v+u*b,i[4]=c*m+l*y+u*x,i[7]=c*g+l*_+u*w,i[2]=h*p+d*v+f*b,i[5]=h*m+d*y+f*x,i[8]=h*g+d*_+f*w,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8];return e*o*l-e*s*c-n*i*l+n*s*a+r*i*c-r*o*a}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8],u=l*o-s*c,h=s*a-l*i,d=c*i-o*a,f=e*u+n*h+r*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const p=1/f;return t[0]=u*p,t[1]=(r*c-l*n)*p,t[2]=(s*n-r*o)*p,t[3]=h*p,t[4]=(l*e-r*a)*p,t[5]=(r*i-s*e)*p,t[6]=d*p,t[7]=(n*a-c*e)*p,t[8]=(o*e-n*i)*p,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,r,i,o,s){const a=Math.cos(i),c=Math.sin(i);return this.set(n*a,n*c,-n*(a*o+c*s)+o+t,-r*c,r*a,-r*(-c*o+a*s)+s+e,0,0,1),this}scale(t,e){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),r=this.elements,i=r[0],o=r[3],s=r[6],a=r[1],c=r[4],l=r[7];return r[0]=e*i+n*a,r[3]=e*o+n*c,r[6]=e*s+n*l,r[1]=-n*i+e*a,r[4]=-n*o+e*c,r[7]=-n*s+e*l,this}translate(t,e){const n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}let Gn;zn.prototype.isMatrix3=!0;const Hn={getDataURL:function(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Gn&&(Gn=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Gn.width=t.width,Gn.height=t.height;const n=Gn.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Gn}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}};let Wn=0;class Vn extends Dn{constructor(t=Vn.DEFAULT_IMAGE,e=Vn.DEFAULT_MAPPING,n=dt,r=dt,i=_t,o=wt,s=Nt,a=Mt,c=1,l=Je){super(),Object.defineProperty(this,"id",{value:Wn++}),this.uuid=jn.generateUUID(),this.name="",this.image=t,this.mipmaps=[],this.mapping=e,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=o,this.anisotropy=c,this.format=s,this.internalFormat=null,this.type=a,this.offset=new Un(0,0),this.repeat=new Un(1,1),this.center=new Un(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new zn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=l,this.version=0,this.onUpdate=null}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const r=this.image;if(void 0===r.uuid&&(r.uuid=jn.generateUUID()),!e&&void 0===t.images[r.uuid]){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(Zn(r[t].image)):e.push(Zn(r[t]))}else e=Zn(r);t.images[r.uuid]={uuid:r.uuid,url:e}}n.image=r.uuid}return e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==it)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case ht:t.x=t.x-Math.floor(t.x);break;case dt:t.x=t.x<0?0:1;break;case ft:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case ht:t.y=t.y-Math.floor(t.y);break;case dt:t.y=t.y<0?0:1;break;case ft:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&this.version++}}function Zn(t){return"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?Hn.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}Vn.DEFAULT_IMAGE=void 0,Vn.DEFAULT_MAPPING=it,Vn.prototype.isTexture=!0;class Qn{constructor(t=0,e=0,n=0,r=1){this.x=t,this.y=e,this.z=n,this.w=r}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*e+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*e+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*e+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,r,i;const o=.01,s=.1,a=t.elements,c=a[0],l=a[4],u=a[8],h=a[1],d=a[5],f=a[9],p=a[2],m=a[6],g=a[10];if(Math.abs(l-h)<o&&Math.abs(u-p)<o&&Math.abs(f-m)<o){if(Math.abs(l+h)<s&&Math.abs(u+p)<s&&Math.abs(f+m)<s&&Math.abs(c+d+g-3)<s)return this.set(1,0,0,0),this;e=Math.PI;const t=(c+1)/2,a=(d+1)/2,v=(g+1)/2,y=(l+h)/4,_=(u+p)/4,b=(f+m)/4;return t>a&&t>v?t<o?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(t),r=y/n,i=_/n):a>v?a<o?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(a),n=y/r,i=b/r):v<o?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=_/i,r=b/i),this.set(n,r,i,e),this}let v=Math.sqrt((m-f)*(m-f)+(u-p)*(u-p)+(h-l)*(h-l));return Math.abs(v)<.001&&(v=1),this.x=(m-f)/v,this.y=(u-p)/v,this.z=(h-l)/v,this.w=Math.acos((c+d+g-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}}Qn.prototype.isVector4=!0;class Xn extends Dn{constructor(t,e,n){super(),this.width=t,this.height=e,this.depth=1,this.scissor=new Qn(0,0,t,e),this.scissorTest=!1,this.viewport=new Qn(0,0,t,e),n=n||{},this.texture=new Vn(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:_t,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}setTexture(t){t.image={width:this.width,height:this.height,depth:this.depth},this.texture=t}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}Xn.prototype.isWebGLRenderTarget=!0;class Yn extends Xn{constructor(t,e,n){super(t,e,n),this.samples=4}copy(t){return super.copy.call(this,t),this.samples=t.samples,this}}Yn.prototype.isWebGLMultisampleRenderTarget=!0;class Jn{constructor(t=0,e=0,n=0,r=1){this._x=t,this._y=e,this._z=n,this._w=r}static slerp(t,e,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,r)}static slerpFlat(t,e,n,r,i,o,s){let a=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3];const h=i[o+0],d=i[o+1],f=i[o+2],p=i[o+3];if(0===s)return t[e+0]=a,t[e+1]=c,t[e+2]=l,void(t[e+3]=u);if(1===s)return t[e+0]=h,t[e+1]=d,t[e+2]=f,void(t[e+3]=p);if(u!==p||a!==h||c!==d||l!==f){let t=1-s;const e=a*h+c*d+l*f+u*p,n=e>=0?1:-1,r=1-e*e;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,e*n);t=Math.sin(t*o)/i,s=Math.sin(s*o)/i}const i=s*n;if(a=a*t+h*i,c=c*t+d*i,l=l*t+f*i,u=u*t+p*i,t===1-s){const t=1/Math.sqrt(a*a+c*c+l*l+u*u);a*=t,c*=t,l*=t,u*=t}}t[e]=a,t[e+1]=c,t[e+2]=l,t[e+3]=u}static multiplyQuaternionsFlat(t,e,n,r,i,o){const s=n[r],a=n[r+1],c=n[r+2],l=n[r+3],u=i[o],h=i[o+1],d=i[o+2],f=i[o+3];return t[e]=s*f+l*u+a*d-c*h,t[e+1]=a*f+l*h+c*u-s*d,t[e+2]=c*f+l*d+s*h-a*u,t[e+3]=l*f-s*u-a*h-c*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,r=t._y,i=t._z,o=t._order,s=Math.cos,a=Math.sin,c=s(n/2),l=s(r/2),u=s(i/2),h=a(n/2),d=a(r/2),f=a(i/2);switch(o){case"XYZ":this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f;break;case"YXZ":this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f;break;case"ZXY":this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f;break;case"ZYX":this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f;break;case"YZX":this._x=h*l*u+c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u-h*d*f;break;case"XZY":this._x=h*l*u-c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u+h*d*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],r=e[4],i=e[8],o=e[1],s=e[5],a=e[9],c=e[2],l=e[6],u=e[10],h=n+s+u;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(l-a)*t,this._y=(i-c)*t,this._z=(o-r)*t}else if(n>s&&n>u){const t=2*Math.sqrt(1+n-s-u);this._w=(l-a)/t,this._x=.25*t,this._y=(r+o)/t,this._z=(i+c)/t}else if(s>u){const t=2*Math.sqrt(1+s-n-u);this._w=(i-c)/t,this._x=(r+o)/t,this._y=.25*t,this._z=(a+l)/t}else{const t=2*Math.sqrt(1+u-n-s);this._w=(o-r)/t,this._x=(i+c)/t,this._y=(a+l)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(jn.clamp(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const r=Math.min(1,e/n);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,r=t._y,i=t._z,o=t._w,s=e._x,a=e._y,c=e._z,l=e._w;return this._x=n*l+o*s+r*c-i*a,this._y=r*l+o*a+i*s-n*c,this._z=i*l+o*c+n*a-r*s,this._w=o*l-n*s-r*a-i*c,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,r=this._y,i=this._z,o=this._w;let s=o*t._w+n*t._x+r*t._y+i*t._z;if(s<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,s=-s):this.copy(t),s>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const a=1-s*s;if(a<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*r+e*this._y,this._z=t*i+e*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(a),l=Math.atan2(c,s),u=Math.sin((1-e)*l)/c,h=Math.sin(e*l)/c;return this._w=o*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){this.copy(t).slerp(e,n)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Jn.prototype.isQuaternion=!0;class qn{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion($n.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion($n.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=t.elements,o=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,r=this.z,i=t.x,o=t.y,s=t.z,a=t.w,c=a*e+o*r-s*n,l=a*n+s*e-i*r,u=a*r+i*n-o*e,h=-i*e-o*n-s*r;return this.x=c*a+h*-i+l*-s-u*-o,this.y=l*a+h*-o+u*-i-c*-s,this.z=u*a+h*-s+c*-o-l*-i,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,r=t.y,i=t.z,o=e.x,s=e.y,a=e.z;return this.x=r*a-i*s,this.y=i*o-n*a,this.z=n*s-r*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Kn.copy(this).projectOnVector(t),this.sub(Kn)}reflect(t){return this.sub(Kn.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(jn.clamp(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}}qn.prototype.isVector3=!0;const Kn=new qn,$n=new Jn;class tr{constructor(t=new qn(1/0,1/0,1/0),e=new qn(-1/0,-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,s=-1/0;for(let a=0,c=t.length;a<c;a+=3){const c=t[a],l=t[a+1],u=t[a+2];c<e&&(e=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>o&&(o=l),u>s&&(s=u)}return this.min.set(e,n,r),this.max.set(i,o,s),this}setFromBufferAttribute(t){let e=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,s=-1/0;for(let a=0,c=t.count;a<c;a++){const c=t.getX(a),l=t.getY(a),u=t.getZ(a);c<e&&(e=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>o&&(o=l),u>s&&(s=u)}return this.min.set(e,n,r),this.max.set(i,o,s),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=nr.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return void 0===t&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new qn),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new qn),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){t.updateWorldMatrix(!1,!1);const e=t.geometry;void 0!==e&&(null===e.boundingBox&&e.computeBoundingBox(),rr.copy(e.boundingBox),rr.applyMatrix4(t.matrixWorld),this.union(rr));const n=t.children;for(let t=0,e=n.length;t<e;t++)this.expandByObject(n[t]);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new qn),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,nr),nr.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(ur),hr.subVectors(this.max,ur),ir.subVectors(t.a,ur),or.subVectors(t.b,ur),sr.subVectors(t.c,ur),ar.subVectors(or,ir),cr.subVectors(sr,or),lr.subVectors(ir,sr);let e=[0,-ar.z,ar.y,0,-cr.z,cr.y,0,-lr.z,lr.y,ar.z,0,-ar.x,cr.z,0,-cr.x,lr.z,0,-lr.x,-ar.y,ar.x,0,-cr.y,cr.x,0,-lr.y,lr.x,0];return!!pr(e,ir,or,sr,hr)&&(e=[1,0,0,0,1,0,0,0,1],!!pr(e,ir,or,sr,hr)&&(dr.crossVectors(ar,cr),e=[dr.x,dr.y,dr.z],pr(e,ir,or,sr,hr)))}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new qn),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return nr.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return void 0===t&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(t.center),t.radius=.5*this.getSize(nr).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(er[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),er[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),er[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),er[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),er[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),er[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),er[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),er[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(er)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}tr.prototype.isBox3=!0;const er=[new qn,new qn,new qn,new qn,new qn,new qn,new qn,new qn],nr=new qn,rr=new tr,ir=new qn,or=new qn,sr=new qn,ar=new qn,cr=new qn,lr=new qn,ur=new qn,hr=new qn,dr=new qn,fr=new qn;function pr(t,e,n,r,i){for(let o=0,s=t.length-3;o<=s;o+=3){fr.fromArray(t,o);const s=i.x*Math.abs(fr.x)+i.y*Math.abs(fr.y)+i.z*Math.abs(fr.z),a=e.dot(fr),c=n.dot(fr),l=r.dot(fr);if(Math.max(-Math.max(a,c,l),Math.min(a,c,l))>s)return!1}return!0}const mr=new tr,gr=new qn,vr=new qn,yr=new qn;class _r{constructor(t=new qn,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):mr.setFromPoints(t).getCenter(n);let r=0;for(let e=0,i=t.length;e<i;e++)r=Math.max(r,n.distanceToSquared(t[e]));return this.radius=Math.sqrt(r),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return void 0===e&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new qn),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return void 0===t&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new tr),this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){yr.subVectors(t,this.center);const e=yr.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.add(yr.multiplyScalar(n/t)),this.radius+=n}return this}union(t){return vr.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(gr.copy(t.center).add(vr)),this.expandByPoint(gr.copy(t.center).sub(vr)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const br=new qn,xr=new qn,wr=new qn,Sr=new qn,Mr=new qn,Ar=new qn,Cr=new qn;class Er{constructor(t=new qn,e=new qn(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return void 0===e&&(console.warn("THREE.Ray: .at() target is now required"),e=new qn),e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,br)),this}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new qn),e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=br.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(br.copy(this.direction).multiplyScalar(e).add(this.origin),br.distanceToSquared(t))}distanceSqToSegment(t,e,n,r){xr.copy(t).add(e).multiplyScalar(.5),wr.copy(e).sub(t).normalize(),Sr.copy(this.origin).sub(xr);const i=.5*t.distanceTo(e),o=-this.direction.dot(wr),s=Sr.dot(this.direction),a=-Sr.dot(wr),c=Sr.lengthSq(),l=Math.abs(1-o*o);let u,h,d,f;if(l>0)if(u=o*a-s,h=o*s-a,f=i*l,u>=0)if(h>=-f)if(h<=f){const t=1/l;u*=t,h*=t,d=u*(u+o*h+2*s)+h*(o*u+h+2*a)+c}else h=i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;else h=-i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;else h<=-f?(u=Math.max(0,-(-o*i+s)),h=u>0?-i:Math.min(Math.max(-i,-a),i),d=-u*u+h*(h+2*a)+c):h<=f?(u=0,h=Math.min(Math.max(-i,-a),i),d=h*(h+2*a)+c):(u=Math.max(0,-(o*i+s)),h=u>0?i:Math.min(Math.max(-i,-a),i),d=-u*u+h*(h+2*a)+c);else h=o>0?-i:i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;return n&&n.copy(this.direction).multiplyScalar(u).add(this.origin),r&&r.copy(wr).multiplyScalar(h).add(xr),d}intersectSphere(t,e){br.subVectors(t.center,this.origin);const n=br.dot(this.direction),r=br.dot(br)-n*n,i=t.radius*t.radius;if(r>i)return null;const o=Math.sqrt(i-r),s=n-o,a=n+o;return s<0&&a<0?null:s<0?this.at(a,e):this.at(s,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,r,i,o,s,a;const c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(n=(t.min.x-h.x)*c,r=(t.max.x-h.x)*c):(n=(t.max.x-h.x)*c,r=(t.min.x-h.x)*c),l>=0?(i=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(i=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),n>o||i>r?null:((i>n||n!=n)&&(n=i),(o<r||r!=r)&&(r=o),u>=0?(s=(t.min.z-h.z)*u,a=(t.max.z-h.z)*u):(s=(t.max.z-h.z)*u,a=(t.min.z-h.z)*u),n>a||s>r?null:((s>n||n!=n)&&(n=s),(a<r||r!=r)&&(r=a),r<0?null:this.at(n>=0?n:r,e)))}intersectsBox(t){return null!==this.intersectBox(t,br)}intersectTriangle(t,e,n,r,i){Mr.subVectors(e,t),Ar.subVectors(n,t),Cr.crossVectors(Mr,Ar);let o,s=this.direction.dot(Cr);if(s>0){if(r)return null;o=1}else{if(!(s<0))return null;o=-1,s=-s}Sr.subVectors(this.origin,t);const a=o*this.direction.dot(Ar.crossVectors(Sr,Ar));if(a<0)return null;const c=o*this.direction.dot(Mr.cross(Sr));if(c<0)return null;if(a+c>s)return null;const l=-o*Sr.dot(Cr);return l<0?null:this.at(l/s,i)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Tr{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=s,g[13]=a,g[2]=c,g[6]=l,g[10]=u,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Tr).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,r=1/Ir.setFromMatrixColumn(t,0).length(),i=1/Ir.setFromMatrixColumn(t,1).length(),o=1/Ir.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*i,e[5]=n[5]*i,e[6]=n[6]*i,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,r=t.y,i=t.z,o=Math.cos(n),s=Math.sin(n),a=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if("XYZ"===t.order){const t=o*l,n=o*u,r=s*l,i=s*u;e[0]=a*l,e[4]=-a*u,e[8]=c,e[1]=n+r*c,e[5]=t-i*c,e[9]=-s*a,e[2]=i-t*c,e[6]=r+n*c,e[10]=o*a}else if("YXZ"===t.order){const t=a*l,n=a*u,r=c*l,i=c*u;e[0]=t+i*s,e[4]=r*s-n,e[8]=o*c,e[1]=o*u,e[5]=o*l,e[9]=-s,e[2]=n*s-r,e[6]=i+t*s,e[10]=o*a}else if("ZXY"===t.order){const t=a*l,n=a*u,r=c*l,i=c*u;e[0]=t-i*s,e[4]=-o*u,e[8]=r+n*s,e[1]=n+r*s,e[5]=o*l,e[9]=i-t*s,e[2]=-o*c,e[6]=s,e[10]=o*a}else if("ZYX"===t.order){const t=o*l,n=o*u,r=s*l,i=s*u;e[0]=a*l,e[4]=r*c-n,e[8]=t*c+i,e[1]=a*u,e[5]=i*c+t,e[9]=n*c-r,e[2]=-c,e[6]=s*a,e[10]=o*a}else if("YZX"===t.order){const t=o*a,n=o*c,r=s*a,i=s*c;e[0]=a*l,e[4]=i-t*u,e[8]=r*u+n,e[1]=u,e[5]=o*l,e[9]=-s*l,e[2]=-c*l,e[6]=n*u+r,e[10]=t-i*u}else if("XZY"===t.order){const t=o*a,n=o*c,r=s*a,i=s*c;e[0]=a*l,e[4]=-u,e[8]=c*l,e[1]=t*u+i,e[5]=o*l,e[9]=n*u-r,e[2]=r*u-n,e[6]=s*l,e[10]=i*u+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Lr,t,Rr)}lookAt(t,e,n){const r=this.elements;return kr.subVectors(t,e),0===kr.lengthSq()&&(kr.z=1),kr.normalize(),Or.crossVectors(n,kr),0===Or.lengthSq()&&(1===Math.abs(n.z)?kr.x+=1e-4:kr.z+=1e-4,kr.normalize(),Or.crossVectors(n,kr)),Or.normalize(),Br.crossVectors(kr,Or),r[0]=Or.x,r[4]=Br.x,r[8]=kr.x,r[1]=Or.y,r[5]=Br.y,r[9]=kr.y,r[2]=Or.z,r[6]=Br.z,r[10]=kr.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],s=n[4],a=n[8],c=n[12],l=n[1],u=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],_=n[11],b=n[15],x=r[0],w=r[4],S=r[8],M=r[12],A=r[1],C=r[5],E=r[9],T=r[13],I=r[2],P=r[6],L=r[10],R=r[14],O=r[3],B=r[7],k=r[11],D=r[15];return i[0]=o*x+s*A+a*I+c*O,i[4]=o*w+s*C+a*P+c*B,i[8]=o*S+s*E+a*L+c*k,i[12]=o*M+s*T+a*R+c*D,i[1]=l*x+u*A+h*I+d*O,i[5]=l*w+u*C+h*P+d*B,i[9]=l*S+u*E+h*L+d*k,i[13]=l*M+u*T+h*R+d*D,i[2]=f*x+p*A+m*I+g*O,i[6]=f*w+p*C+m*P+g*B,i[10]=f*S+p*E+m*L+g*k,i[14]=f*M+p*T+m*R+g*D,i[3]=v*x+y*A+_*I+b*O,i[7]=v*w+y*C+_*P+b*B,i[11]=v*S+y*E+_*L+b*k,i[15]=v*M+y*T+_*R+b*D,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],r=t[8],i=t[12],o=t[1],s=t[5],a=t[9],c=t[13],l=t[2],u=t[6],h=t[10],d=t[14];return t[3]*(+i*a*u-r*c*u-i*s*h+n*c*h+r*s*d-n*a*d)+t[7]*(+e*a*d-e*c*h+i*o*h-r*o*d+r*c*l-i*a*l)+t[11]*(+e*c*u-e*s*d-i*o*u+n*o*d+i*s*l-n*c*l)+t[15]*(-r*s*l-e*a*u+e*s*h+r*o*u-n*o*h+n*a*l)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8],u=t[9],h=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15],v=u*m*c-p*h*c+p*a*d-s*m*d-u*a*g+s*h*g,y=f*h*c-l*m*c-f*a*d+o*m*d+l*a*g-o*h*g,_=l*p*c-f*u*c+f*s*d-o*p*d-l*s*g+o*u*g,b=f*u*a-l*p*a-f*s*h+o*p*h+l*s*m-o*u*m,x=e*v+n*y+r*_+i*b;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/x;return t[0]=v*w,t[1]=(p*h*i-u*m*i-p*r*d+n*m*d+u*r*g-n*h*g)*w,t[2]=(s*m*i-p*a*i+p*r*c-n*m*c-s*r*g+n*a*g)*w,t[3]=(u*a*i-s*h*i-u*r*c+n*h*c+s*r*d-n*a*d)*w,t[4]=y*w,t[5]=(l*m*i-f*h*i+f*r*d-e*m*d-l*r*g+e*h*g)*w,t[6]=(f*a*i-o*m*i-f*r*c+e*m*c+o*r*g-e*a*g)*w,t[7]=(o*h*i-l*a*i+l*r*c-e*h*c-o*r*d+e*a*d)*w,t[8]=_*w,t[9]=(f*u*i-l*p*i-f*n*d+e*p*d+l*n*g-e*u*g)*w,t[10]=(o*p*i-f*s*i+f*n*c-e*p*c-o*n*g+e*s*g)*w,t[11]=(l*s*i-o*u*i-l*n*c+e*u*c+o*n*d-e*s*d)*w,t[12]=b*w,t[13]=(l*p*r-f*u*r+f*n*h-e*p*h-l*n*m+e*u*m)*w,t[14]=(f*s*r-o*p*r-f*n*a+e*p*a+o*n*m-e*s*m)*w,t[15]=(o*u*r-l*s*r+l*n*a-e*u*a-o*n*h+e*s*h)*w,this}scale(t){const e=this.elements,n=t.x,r=t.y,i=t.z;return e[0]*=n,e[4]*=r,e[8]*=i,e[1]*=n,e[5]*=r,e[9]*=i,e[2]*=n,e[6]*=r,e[10]*=i,e[3]*=n,e[7]*=r,e[11]*=i,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),r=Math.sin(e),i=1-n,o=t.x,s=t.y,a=t.z,c=i*o,l=i*s;return this.set(c*o+n,c*s-r*a,c*a+r*s,0,c*s+r*a,l*s+n,l*a-r*o,0,c*a-r*s,l*a+r*o,i*a*a+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this}compose(t,e,n){const r=this.elements,i=e._x,o=e._y,s=e._z,a=e._w,c=i+i,l=o+o,u=s+s,h=i*c,d=i*l,f=i*u,p=o*l,m=o*u,g=s*u,v=a*c,y=a*l,_=a*u,b=n.x,x=n.y,w=n.z;return r[0]=(1-(p+g))*b,r[1]=(d+_)*b,r[2]=(f-y)*b,r[3]=0,r[4]=(d-_)*x,r[5]=(1-(h+g))*x,r[6]=(m+v)*x,r[7]=0,r[8]=(f+y)*w,r[9]=(m-v)*w,r[10]=(1-(h+p))*w,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,e,n){const r=this.elements;let i=Ir.set(r[0],r[1],r[2]).length();const o=Ir.set(r[4],r[5],r[6]).length(),s=Ir.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),t.x=r[12],t.y=r[13],t.z=r[14],Pr.copy(this);const a=1/i,c=1/o,l=1/s;return Pr.elements[0]*=a,Pr.elements[1]*=a,Pr.elements[2]*=a,Pr.elements[4]*=c,Pr.elements[5]*=c,Pr.elements[6]*=c,Pr.elements[8]*=l,Pr.elements[9]*=l,Pr.elements[10]*=l,e.setFromRotationMatrix(Pr),n.x=i,n.y=o,n.z=s,this}makePerspective(t,e,n,r,i,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const s=this.elements,a=2*i/(e-t),c=2*i/(n-r),l=(e+t)/(e-t),u=(n+r)/(n-r),h=-(o+i)/(o-i),d=-2*o*i/(o-i);return s[0]=a,s[4]=0,s[8]=l,s[12]=0,s[1]=0,s[5]=c,s[9]=u,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=d,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(t,e,n,r,i,o){const s=this.elements,a=1/(e-t),c=1/(n-r),l=1/(o-i),u=(e+t)*a,h=(n+r)*c,d=(o+i)*l;return s[0]=2*a,s[4]=0,s[8]=0,s[12]=-u,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=-2*l,s[14]=-d,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}Tr.prototype.isMatrix4=!0;const Ir=new qn,Pr=new Tr,Lr=new qn(0,0,0),Rr=new qn(1,1,1),Or=new qn,Br=new qn,kr=new qn,Dr=new Tr,Fr=new Jn;class Nr{constructor(t=0,e=0,n=0,r=Nr.DefaultOrder){this._x=t,this._y=e,this._z=n,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._order=r||this._order,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e,n){const r=jn.clamp,i=t.elements,o=i[0],s=i[4],a=i[8],c=i[1],l=i[5],u=i[9],h=i[2],d=i[6],f=i[10];switch(e=e||this._order){case"XYZ":this._y=Math.asin(r(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-r(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(c,l)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(r(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(c,o));break;case"ZYX":this._y=Math.asin(-r(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(c,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(r(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-r(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!1!==n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return Dr.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Dr,e,n)}setFromVector3(t,e){return this.set(t.x,t.y,t.z,e||this._order)}reorder(t){return Fr.setFromEuler(this),this.setFromQuaternion(Fr,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new qn(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Nr.prototype.isEuler=!0,Nr.DefaultOrder="XYZ",Nr.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class jr{constructor(){this.mask=1}set(t){this.mask=1<<t|0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!=(this.mask&t.mask)}}let Ur=0;const zr=new qn,Gr=new Jn,Hr=new Tr,Wr=new qn,Vr=new qn,Zr=new qn,Qr=new Jn,Xr=new qn(1,0,0),Yr=new qn(0,1,0),Jr=new qn(0,0,1),qr={type:"added"},Kr={type:"removed"};function $r(){Object.defineProperty(this,"id",{value:Ur++}),this.uuid=jn.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=$r.DefaultUp.clone();const t=new qn,e=new Nr,n=new Jn,r=new qn(1,1,1);e._onChange((function(){n.setFromEuler(e,!1)})),n._onChange((function(){e.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Tr},normalMatrix:{value:new zn}}),this.matrix=new Tr,this.matrixWorld=new Tr,this.matrixAutoUpdate=$r.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new jr,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}$r.DefaultUp=new qn(0,1,0),$r.DefaultMatrixAutoUpdate=!0,$r.prototype=Object.assign(Object.create(Dn.prototype),{constructor:$r,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(t,e){return Gr.setFromAxisAngle(t,e),this.quaternion.multiply(Gr),this},rotateOnWorldAxis:function(t,e){return Gr.setFromAxisAngle(t,e),this.quaternion.premultiply(Gr),this},rotateX:function(t){return this.rotateOnAxis(Xr,t)},rotateY:function(t){return this.rotateOnAxis(Yr,t)},rotateZ:function(t){return this.rotateOnAxis(Jr,t)},translateOnAxis:function(t,e){return zr.copy(t).applyQuaternion(this.quaternion),this.position.add(zr.multiplyScalar(e)),this},translateX:function(t){return this.translateOnAxis(Xr,t)},translateY:function(t){return this.translateOnAxis(Yr,t)},translateZ:function(t){return this.translateOnAxis(Jr,t)},localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(t){return t.applyMatrix4(Hr.copy(this.matrixWorld).invert())},lookAt:function(t,e,n){t.isVector3?Wr.copy(t):Wr.set(t,e,n);const r=this.parent;this.updateWorldMatrix(!0,!1),Vr.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Hr.lookAt(Vr,Wr,this.up):Hr.lookAt(Wr,Vr,this.up),this.quaternion.setFromRotationMatrix(Hr),r&&(Hr.extractRotation(r.matrixWorld),Gr.setFromRotationMatrix(Hr),this.quaternion.premultiply(Gr.invert()))},add:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(qr)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(Kr)),this},clear:function(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(Kr)}return this.children.length=0,this},attach:function(t){return this.updateWorldMatrix(!0,!1),Hr.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),Hr.multiply(t.parent.matrixWorld)),t.applyMatrix4(Hr),this.add(t),t.updateWorldMatrix(!1,!0),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(t,e);if(void 0!==r)return r}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new Jn),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Vr,t,Zr),t},getWorldScale:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Vr,Qr,t),t},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].traverseVisible(t)},traverseAncestors:function(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){const n=this.parent;if(!0===t&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,n=t.length;e<n;e++)t[e].updateWorldMatrix(!1,!0)}},toJSON:function(t){const e=void 0===t||"string"==typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const r={};function i(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isMesh||this.isLine||this.isPoints){r.geometry=i(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,r=n.length;e<r;e++){const r=n[e];i(t.shapes,r)}else i(t.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(t.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,r=this.material.length;n<r;n++)e.push(i(t.materials,this.material[n]));r.material=e}else r.material=i(t.materials,this.material);if(this.children.length>0){r.children=[];for(let e=0;e<this.children.length;e++)r.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){r.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];r.animations.push(i(t.animations,n))}}if(e){const e=o(t.geometries),r=o(t.materials),i=o(t.textures),s=o(t.images),a=o(t.shapes),c=o(t.skeletons),l=o(t.animations);e.length>0&&(n.geometries=e),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),a.length>0&&(n.shapes=a),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l)}return n.object=r,n;function o(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e<t.children.length;e++){const n=t.children[e];this.add(n.clone())}return this}});const ti=new qn,ei=new qn,ni=new zn;class ri{constructor(t=new qn(1,0,0),e=0){this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const r=ti.subVectors(n,e).cross(ei.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return void 0===e&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new qn),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){void 0===e&&(console.warn("THREE.Plane: .intersectLine() target is now required"),e=new qn);const n=t.delta(ti),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const i=-(t.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:e.copy(n).multiplyScalar(i).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return void 0===t&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new qn),t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||ni.getNormalMatrix(t),r=this.coplanarPoint(ti).applyMatrix4(t),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}ri.prototype.isPlane=!0;const ii=new qn,oi=new qn,si=new qn,ai=new qn,ci=new qn,li=new qn,ui=new qn,hi=new qn,di=new qn,fi=new qn;class pi{constructor(t=new qn,e=new qn,n=new qn){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,r){void 0===r&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new qn),r.subVectors(n,e),ii.subVectors(t,e),r.cross(ii);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(t,e,n,r,i){ii.subVectors(r,e),oi.subVectors(n,e),si.subVectors(t,e);const o=ii.dot(ii),s=ii.dot(oi),a=ii.dot(si),c=oi.dot(oi),l=oi.dot(si),u=o*c-s*s;if(void 0===i&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),i=new qn),0===u)return i.set(-2,-1,-1);const h=1/u,d=(c*a-s*l)*h,f=(o*l-s*a)*h;return i.set(1-d-f,f,d)}static containsPoint(t,e,n,r){return this.getBarycoord(t,e,n,r,ai),ai.x>=0&&ai.y>=0&&ai.x+ai.y<=1}static getUV(t,e,n,r,i,o,s,a){return this.getBarycoord(t,e,n,r,ai),a.set(0,0),a.addScaledVector(i,ai.x),a.addScaledVector(o,ai.y),a.addScaledVector(s,ai.z),a}static isFrontFacing(t,e,n,r){return ii.subVectors(n,e),oi.subVectors(t,e),ii.cross(oi).dot(r)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return ii.subVectors(this.c,this.b),oi.subVectors(this.a,this.b),.5*ii.cross(oi).length()}getMidpoint(t){return void 0===t&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new qn),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return pi.getNormal(this.a,this.b,this.c,t)}getPlane(t){return void 0===t&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new ri),t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return pi.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,r,i){return pi.getUV(t,this.a,this.b,this.c,e,n,r,i)}containsPoint(t){return pi.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return pi.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new qn);const n=this.a,r=this.b,i=this.c;let o,s;ci.subVectors(r,n),li.subVectors(i,n),hi.subVectors(t,n);const a=ci.dot(hi),c=li.dot(hi);if(a<=0&&c<=0)return e.copy(n);di.subVectors(t,r);const l=ci.dot(di),u=li.dot(di);if(l>=0&&u<=l)return e.copy(r);const h=a*u-l*c;if(h<=0&&a>=0&&l<=0)return o=a/(a-l),e.copy(n).addScaledVector(ci,o);fi.subVectors(t,i);const d=ci.dot(fi),f=li.dot(fi);if(f>=0&&d<=f)return e.copy(i);const p=d*c-a*f;if(p<=0&&c>=0&&f<=0)return s=c/(c-f),e.copy(n).addScaledVector(li,s);const m=l*f-d*u;if(m<=0&&u-l>=0&&d-f>=0)return ui.subVectors(i,r),s=(u-l)/(u-l+(d-f)),e.copy(r).addScaledVector(ui,s);const g=1/(m+p+h);return o=p*g,s=h*g,e.copy(n).addScaledVector(ci,o).addScaledVector(li,s)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let mi=0;function gi(){Object.defineProperty(this,"id",{value:mi++}),this.uuid=jn.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=b,this.side=p,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=B,this.blendDst=k,this.blendEquation=A,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=W,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Mn,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=un,this.stencilZFail=un,this.stencilZPass=un,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}gi.prototype=Object.assign(Object.create(Dn.prototype),{constructor:gi,isMaterial:!0,onBeforeCompile:function(){},customProgramCacheKey:function(){return this.onBeforeCompile.toString()},setValues:function(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===v;continue}const r=this[e];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}},toJSON:function(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,n.refractionRatio=this.refractionRatio,void 0!==this.combine&&(n.combine=this.combine),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==b&&(n.blending=this.blending),this.side!==p&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.morphNormals&&(n.morphNormals=!0),!0===this.skinning&&(n.skinning=!0),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){const e=r(t.textures),i=r(t.images);e.length>0&&(n.textures=e),i.length>0&&(n.images=i)}return n},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let r=0;r!==t;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(gi.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}});const vi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},yi={h:0,s:0,l:0},_i={h:0,s:0,l:0};function bi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function xi(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function wi(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class Si{constructor(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setHSL(t,e,n){if(t=jn.euclideanModulo(t,1),e=jn.clamp(e,0,1),n=jn.clamp(n,0,1),0===e)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+e):n+e-n*e,i=2*n-r;this.r=bi(i,r,t+1/3),this.g=bi(i,r,t),this.b=bi(i,r,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const r=n[1],i=n[2];switch(r){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i)){const n=parseFloat(t[1])/360,r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100;return e(t[4]),this.setHSL(n,r,i)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=vi[t];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyGammaToLinear(t,e=2){return this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this}copyLinearToGamma(t,e=2){const n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.r=xi(t.r),this.g=xi(t.g),this.b=xi(t.b),this}copyLinearToSRGB(t){return this.r=wi(t.r),this.g=wi(t.g),this.b=wi(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){void 0===t&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});const e=this.r,n=this.g,r=this.b,i=Math.max(e,n,r),o=Math.min(e,n,r);let s,a;const c=(o+i)/2;if(o===i)s=0,a=0;else{const t=i-o;switch(a=c<=.5?t/(i+o):t/(2-i-o),i){case e:s=(n-r)/t+(n<r?6:0);break;case n:s=(r-e)/t+2;break;case r:s=(e-n)/t+4}s/=6}return t.h=s,t.s=a,t.l=c,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,n){return this.getHSL(yi),yi.h+=t,yi.s+=e,yi.l+=n,this.setHSL(yi.h,yi.s,yi.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(yi),t.getHSL(_i);const n=jn.lerp(yi.h,_i.h,e),r=jn.lerp(yi.s,_i.s,e),i=jn.lerp(yi.l,_i.l,e);return this.setHSL(n,r,i),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}Si.NAMES=vi,Si.prototype.isColor=!0,Si.prototype.r=1,Si.prototype.g=1,Si.prototype.b=1;class Mi extends gi{constructor(t){super(),this.type="MeshBasicMaterial",this.color=new Si(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this}}Mi.prototype.isMeshBasicMaterial=!0;const Ai=new qn,Ci=new Un;function Ei(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.usage=An,this.updateRange={offset:0,count:-1},this.version=0}function Ti(t,e,n){Ei.call(this,new Int8Array(t),e,n)}function Ii(t,e,n){Ei.call(this,new Uint8Array(t),e,n)}function Pi(t,e,n){Ei.call(this,new Uint8ClampedArray(t),e,n)}function Li(t,e,n){Ei.call(this,new Int16Array(t),e,n)}function Ri(t,e,n){Ei.call(this,new Uint16Array(t),e,n)}function Oi(t,e,n){Ei.call(this,new Int32Array(t),e,n)}function Bi(t,e,n){Ei.call(this,new Uint32Array(t),e,n)}function ki(t,e,n){Ei.call(this,new Uint16Array(t),e,n)}function Di(t,e,n){Ei.call(this,new Float32Array(t),e,n)}function Fi(t,e,n){Ei.call(this,new Float64Array(t),e,n)}function Ni(t){if(0===t.length)return-1/0;let e=t[0];for(let n=1,r=t.length;n<r;++n)t[n]>e&&(e=t[n]);return e}Object.defineProperty(Ei.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Ei.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[t+r]=e.array[n+r];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),i=new Si),e[n++]=i.r,e[n++]=i.g,e[n++]=i.b}return this},copyVector2sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),i=new Un),e[n++]=i.x,e[n++]=i.y}return this},copyVector3sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),i=new qn),e[n++]=i.x,e[n++]=i.y,e[n++]=i.z}return this},copyVector4sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),i=new Qn),e[n++]=i.x,e[n++]=i.y,e[n++]=i.z,e[n++]=i.w}return this},applyMatrix3:function(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)Ci.fromBufferAttribute(this,e),Ci.applyMatrix3(t),this.setXY(e,Ci.x,Ci.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)Ai.fromBufferAttribute(this,e),Ai.applyMatrix3(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},applyMatrix4:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.applyMatrix4(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},applyNormalMatrix:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.applyNormalMatrix(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},transformDirection:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.transformDirection(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},set:function(t,e=0){return this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this},setXYZW:function(t,e,n,r,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this.array[t+3]=i,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==An&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}),Ti.prototype=Object.create(Ei.prototype),Ti.prototype.constructor=Ti,Ii.prototype=Object.create(Ei.prototype),Ii.prototype.constructor=Ii,Pi.prototype=Object.create(Ei.prototype),Pi.prototype.constructor=Pi,Li.prototype=Object.create(Ei.prototype),Li.prototype.constructor=Li,Ri.prototype=Object.create(Ei.prototype),Ri.prototype.constructor=Ri,Oi.prototype=Object.create(Ei.prototype),Oi.prototype.constructor=Oi,Bi.prototype=Object.create(Ei.prototype),Bi.prototype.constructor=Bi,ki.prototype=Object.create(Ei.prototype),ki.prototype.constructor=ki,ki.prototype.isFloat16BufferAttribute=!0,Di.prototype=Object.create(Ei.prototype),Di.prototype.constructor=Di,Fi.prototype=Object.create(Ei.prototype),Fi.prototype.constructor=Fi;const ji={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function Ui(t,e){return new ji[t](e)}let zi=0;const Gi=new Tr,Hi=new $r,Wi=new qn,Vi=new tr,Zi=new tr,Qi=new qn;function Xi(){Object.defineProperty(this,"id",{value:zi++}),this.uuid=jn.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}Xi.prototype=Object.assign(Object.create(Dn.prototype),{constructor:Xi,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){return Array.isArray(t)?this.index=new(Ni(t)>65535?Bi:Ri)(t,1):this.index=t,this},getAttribute:function(t){return this.attributes[t]},setAttribute:function(t,e){return this.attributes[t]=e,this},deleteAttribute:function(t){return delete this.attributes[t],this},hasAttribute:function(t){return void 0!==this.attributes[t]},addGroup:function(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix4:function(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new zn).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(t),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(t){return Gi.makeRotationX(t),this.applyMatrix4(Gi),this},rotateY:function(t){return Gi.makeRotationY(t),this.applyMatrix4(Gi),this},rotateZ:function(t){return Gi.makeRotationZ(t),this.applyMatrix4(Gi),this},translate:function(t,e,n){return Gi.makeTranslation(t,e,n),this.applyMatrix4(Gi),this},scale:function(t,e,n){return Gi.makeScale(t,e,n),this.applyMatrix4(Gi),this},lookAt:function(t){return Hi.lookAt(t),Hi.updateMatrix(),this.applyMatrix4(Hi.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Wi).negate(),this.translate(Wi.x,Wi.y,Wi.z),this},setFromPoints:function(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Di(e,3)),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new tr);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new qn(-1/0,-1/0,-1/0),new qn(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];Vi.setFromBufferAttribute(n),this.morphTargetsRelative?(Qi.addVectors(this.boundingBox.min,Vi.min),this.boundingBox.expandByPoint(Qi),Qi.addVectors(this.boundingBox.max,Vi.max),this.boundingBox.expandByPoint(Qi)):(this.boundingBox.expandByPoint(Vi.min),this.boundingBox.expandByPoint(Vi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new _r);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new qn,1/0);if(t){const n=this.boundingSphere.center;if(Vi.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];Zi.setFromBufferAttribute(n),this.morphTargetsRelative?(Qi.addVectors(Vi.min,Zi.min),Vi.expandByPoint(Qi),Qi.addVectors(Vi.max,Zi.max),Vi.expandByPoint(Qi)):(Vi.expandByPoint(Zi.min),Vi.expandByPoint(Zi.max))}Vi.getCenter(n);let r=0;for(let e=0,i=t.count;e<i;e++)Qi.fromBufferAttribute(t,e),r=Math.max(r,n.distanceToSquared(Qi));if(e)for(let i=0,o=e.length;i<o;i++){const o=e[i],s=this.morphTargetsRelative;for(let e=0,i=o.count;e<i;e++)Qi.fromBufferAttribute(o,e),s&&(Wi.fromBufferAttribute(t,e),Qi.add(Wi)),r=Math.max(r,n.distanceToSquared(Qi))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeTangents:function(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,r=e.position.array,i=e.normal.array,o=e.uv.array,s=r.length/3;void 0===e.tangent&&this.setAttribute("tangent",new Ei(new Float32Array(4*s),4));const a=e.tangent.array,c=[],l=[];for(let t=0;t<s;t++)c[t]=new qn,l[t]=new qn;const u=new qn,h=new qn,d=new qn,f=new Un,p=new Un,m=new Un,g=new qn,v=new qn;function y(t,e,n){u.fromArray(r,3*t),h.fromArray(r,3*e),d.fromArray(r,3*n),f.fromArray(o,2*t),p.fromArray(o,2*e),m.fromArray(o,2*n),h.sub(u),d.sub(u),p.sub(f),m.sub(f);const i=1/(p.x*m.y-m.x*p.y);isFinite(i)&&(g.copy(h).multiplyScalar(m.y).addScaledVector(d,-p.y).multiplyScalar(i),v.copy(d).multiplyScalar(p.x).addScaledVector(h,-m.x).multiplyScalar(i),c[t].add(g),c[e].add(g),c[n].add(g),l[t].add(v),l[e].add(v),l[n].add(v))}let _=this.groups;0===_.length&&(_=[{start:0,count:n.length}]);for(let t=0,e=_.length;t<e;++t){const e=_[t],r=e.start;for(let t=r,i=r+e.count;t<i;t+=3)y(n[t+0],n[t+1],n[t+2])}const b=new qn,x=new qn,w=new qn,S=new qn;function M(t){w.fromArray(i,3*t),S.copy(w);const e=c[t];b.copy(e),b.sub(w.multiplyScalar(w.dot(e))).normalize(),x.crossVectors(S,e);const n=x.dot(l[t])<0?-1:1;a[4*t]=b.x,a[4*t+1]=b.y,a[4*t+2]=b.z,a[4*t+3]=n}for(let t=0,e=_.length;t<e;++t){const e=_[t],r=e.start;for(let t=r,i=r+e.count;t<i;t+=3)M(n[t+0]),M(n[t+1]),M(n[t+2])}},computeVertexNormals:function(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new Ei(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const r=new qn,i=new qn,o=new qn,s=new qn,a=new qn,c=new qn,l=new qn,u=new qn;if(t)for(let h=0,d=t.count;h<d;h+=3){const d=t.getX(h+0),f=t.getX(h+1),p=t.getX(h+2);r.fromBufferAttribute(e,d),i.fromBufferAttribute(e,f),o.fromBufferAttribute(e,p),l.subVectors(o,i),u.subVectors(r,i),l.cross(u),s.fromBufferAttribute(n,d),a.fromBufferAttribute(n,f),c.fromBufferAttribute(n,p),s.add(l),a.add(l),c.add(l),n.setXYZ(d,s.x,s.y,s.z),n.setXYZ(f,a.x,a.y,a.z),n.setXYZ(p,c.x,c.y,c.z)}else for(let t=0,s=e.count;t<s;t+=3)r.fromBufferAttribute(e,t+0),i.fromBufferAttribute(e,t+1),o.fromBufferAttribute(e,t+2),l.subVectors(o,i),u.subVectors(r,i),l.cross(u),n.setXYZ(t+0,l.x,l.y,l.z),n.setXYZ(t+1,l.x,l.y,l.z),n.setXYZ(t+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}},merge:function(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const r in n){if(void 0===t.attributes[r])continue;const i=n[r].array,o=t.attributes[r],s=o.array,a=o.itemSize*e,c=Math.min(s.length,i.length-a);for(let t=0,e=a;t<c;t++,e++)i[e]=s[t]}return this},normalizeNormals:function(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)Qi.fromBufferAttribute(t,e),Qi.normalize(),t.setXYZ(e,Qi.x,Qi.y,Qi.z)},toNonIndexed:function(){function t(t,e){const n=t.array,r=t.itemSize,i=t.normalized,o=new n.constructor(e.length*r);let s=0,a=0;for(let t=0,i=e.length;t<i;t++){s=e[t]*r;for(let t=0;t<r;t++)o[a++]=n[s++]}return new Ei(o,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new Xi,n=this.index.array,r=this.attributes;for(const i in r){const o=t(r[i],n);e.setAttribute(i,o)}const i=this.morphAttributes;for(const r in i){const o=[],s=i[r];for(let e=0,r=s.length;e<r;e++){const r=t(s[e],n);o.push(r)}e.morphAttributes[r]=o}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let t=0,n=o.length;t<n;t++){const n=o[t];e.addGroup(n.start,n.count,n.materialIndex)}return e},toJSON:function(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const r=n[e];t.data.attributes[e]=r.toJSON(t.data)}const r={};let i=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],o=[];for(let e=0,r=n.length;e<r;e++){const r=n[e];o.push(r.toJSON(t.data))}o.length>0&&(r[e]=o,i=!0)}i&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return null!==s&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return(new Xi).copy(this)},copy:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const r=t.attributes;for(const t in r){const n=r[t];this.setAttribute(t,n.clone(e))}const i=t.morphAttributes;for(const t in i){const n=[],r=i[t];for(let t=0,i=r.length;t<i;t++)n.push(r[t].clone(e));this.morphAttributes[t]=n}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let t=0,e=o.length;t<e;t++){const e=o[t];this.addGroup(e.start,e.count,e.materialIndex)}const s=t.boundingBox;null!==s&&(this.boundingBox=s.clone());const a=t.boundingSphere;return null!==a&&(this.boundingSphere=a.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});const Yi=new Tr,Ji=new Er,qi=new _r,Ki=new qn,$i=new qn,to=new qn,eo=new qn,no=new qn,ro=new qn,io=new qn,oo=new qn,so=new qn,ao=new Un,co=new Un,lo=new Un,uo=new qn,ho=new qn;function fo(t=new Xi,e=new Mi){$r.call(this),this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}function po(t,e,n,r,i,o,s,a,c,l,u,h){Ki.fromBufferAttribute(i,l),$i.fromBufferAttribute(i,u),to.fromBufferAttribute(i,h);const d=t.morphTargetInfluences;if(e.morphTargets&&o&&d){io.set(0,0,0),oo.set(0,0,0),so.set(0,0,0);for(let t=0,e=o.length;t<e;t++){const e=d[t],n=o[t];0!==e&&(eo.fromBufferAttribute(n,l),no.fromBufferAttribute(n,u),ro.fromBufferAttribute(n,h),s?(io.addScaledVector(eo,e),oo.addScaledVector(no,e),so.addScaledVector(ro,e)):(io.addScaledVector(eo.sub(Ki),e),oo.addScaledVector(no.sub($i),e),so.addScaledVector(ro.sub(to),e)))}Ki.add(io),$i.add(oo),to.add(so)}t.isSkinnedMesh&&e.skinning&&(t.boneTransform(l,Ki),t.boneTransform(u,$i),t.boneTransform(h,to));const f=function(t,e,n,r,i,o,s,a){let c;if(c=e.side===m?r.intersectTriangle(s,o,i,!0,a):r.intersectTriangle(i,o,s,e.side!==g,a),null===c)return null;ho.copy(a),ho.applyMatrix4(t.matrixWorld);const l=n.ray.origin.distanceTo(ho);return l<n.near||l>n.far?null:{distance:l,point:ho.clone(),object:t}}(t,e,n,r,Ki,$i,to,uo);if(f){a&&(ao.fromBufferAttribute(a,l),co.fromBufferAttribute(a,u),lo.fromBufferAttribute(a,h),f.uv=pi.getUV(uo,Ki,$i,to,ao,co,lo,new Un)),c&&(ao.fromBufferAttribute(c,l),co.fromBufferAttribute(c,u),lo.fromBufferAttribute(c,h),f.uv2=pi.getUV(uo,Ki,$i,to,ao,co,lo,new Un));const t={a:l,b:u,c:h,normal:new qn,materialIndex:0};pi.getNormal(Ki,$i,to,t.normal),f.face=t}return f}fo.prototype=Object.assign(Object.create($r.prototype),{constructor:fo,isMesh:!0,copy:function(t){return $r.prototype.copy.call(this,t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(t,e){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),qi.copy(n.boundingSphere),qi.applyMatrix4(i),!1===t.ray.intersectsSphere(qi))return;if(Yi.copy(i).invert(),Ji.copy(t.ray).applyMatrix4(Yi),null!==n.boundingBox&&!1===Ji.intersectsBox(n.boundingBox))return;let o;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position,a=n.morphAttributes.position,c=n.morphTargetsRelative,l=n.attributes.uv,u=n.attributes.uv2,h=n.groups,d=n.drawRange;if(null!==i)if(Array.isArray(r))for(let n=0,f=h.length;n<f;n++){const f=h[n],p=r[f.materialIndex];for(let n=Math.max(f.start,d.start),r=Math.min(f.start+f.count,d.start+d.count);n<r;n+=3){const r=i.getX(n),h=i.getX(n+1),d=i.getX(n+2);o=po(this,p,t,Ji,s,a,c,l,u,r,h,d),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=f.materialIndex,e.push(o))}}else{const n=Math.max(0,d.start),h=Math.min(i.count,d.start+d.count);for(let d=n,f=h;d<f;d+=3){const n=i.getX(d),h=i.getX(d+1),f=i.getX(d+2);o=po(this,r,t,Ji,s,a,c,l,u,n,h,f),o&&(o.faceIndex=Math.floor(d/3),e.push(o))}}else if(void 0!==s)if(Array.isArray(r))for(let n=0,i=h.length;n<i;n++){const i=h[n],f=r[i.materialIndex];for(let n=Math.max(i.start,d.start),r=Math.min(i.start+i.count,d.start+d.count);n<r;n+=3)o=po(this,f,t,Ji,s,a,c,l,u,n,n+1,n+2),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=i.materialIndex,e.push(o))}else for(let n=Math.max(0,i.start),i=Math.min(s.count,i.start+i.count);n<i;n+=3)o=po(this,r,t,Ji,s,a,c,l,u,n,n+1,n+2),o&&(o.faceIndex=Math.floor(n/3),e.push(o))}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}});class mo extends Xi{constructor(t=1,e=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const s=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const a=[],c=[],l=[],u=[];let h=0,d=0;function f(t,e,n,r,i,o,f,p,m,g,v){const y=o/m,_=f/g,b=o/2,x=f/2,w=p/2,S=m+1,M=g+1;let A=0,C=0;const E=new qn;for(let o=0;o<M;o++){const s=o*_-x;for(let a=0;a<S;a++){const h=a*y-b;E[t]=h*r,E[e]=s*i,E[n]=w,c.push(E.x,E.y,E.z),E[t]=0,E[e]=0,E[n]=p>0?1:-1,l.push(E.x,E.y,E.z),u.push(a/m),u.push(1-o/g),A+=1}}for(let t=0;t<g;t++)for(let e=0;e<m;e++){const n=h+e+S*t,r=h+e+S*(t+1),i=h+(e+1)+S*(t+1),o=h+(e+1)+S*t;a.push(n,r,o),a.push(r,i,o),C+=6}s.addGroup(d,C,v),d+=C,h+=A}f("z","y","x",-1,-1,n,e,t,o,i,0),f("z","y","x",1,-1,n,e,-t,o,i,1),f("x","z","y",1,1,t,n,e,r,o,2),f("x","z","y",1,-1,t,n,-e,r,o,3),f("x","y","z",1,-1,t,e,n,r,i,4),f("x","y","z",-1,-1,t,e,-n,r,i,5),this.setIndex(a),this.setAttribute("position",new Di(c,3)),this.setAttribute("normal",new Di(l,3)),this.setAttribute("uv",new Di(u,2))}}function go(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const i=t[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?e[n][r]=i.clone():Array.isArray(i)?e[n][r]=i.slice():e[n][r]=i}}return e}function vo(t){const e={};for(let n=0;n<t.length;n++){const r=go(t[n]);for(const t in r)e[t]=r[t]}return e}const yo={clone:go,merge:vo};function _o(t){gi.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function bo(){$r.call(this),this.type="Camera",this.matrixWorldInverse=new Tr,this.projectionMatrix=new Tr,this.projectionMatrixInverse=new Tr}function xo(t=50,e=1,n=.1,r=2e3){bo.call(this),this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}_o.prototype=Object.create(gi.prototype),_o.prototype.constructor=_o,_o.prototype.isShaderMaterial=!0,_o.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=go(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this},_o.prototype.toJSON=function(t){const e=gi.prototype.toJSON.call(this,t);e.glslVersion=this.glslVersion,e.uniforms={};for(const n in this.uniforms){const r=this.uniforms[n].value;r&&r.isTexture?e.uniforms[n]={type:"t",value:r.toJSON(t).uuid}:r&&r.isColor?e.uniforms[n]={type:"c",value:r.getHex()}:r&&r.isVector2?e.uniforms[n]={type:"v2",value:r.toArray()}:r&&r.isVector3?e.uniforms[n]={type:"v3",value:r.toArray()}:r&&r.isVector4?e.uniforms[n]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?e.uniforms[n]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?e.uniforms[n]={type:"m4",value:r.toArray()}:e.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e},bo.prototype=Object.assign(Object.create($r.prototype),{constructor:bo,isCamera:!0,copy:function(t,e){return $r.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){$r.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()},updateWorldMatrix:function(t,e){$r.prototype.updateWorldMatrix.call(this,t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()},clone:function(){return(new this.constructor).copy(this)}}),xo.prototype=Object.assign(Object.create(bo.prototype),{constructor:xo,isPerspectiveCamera:!0,copy:function(t,e){return bo.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){const e=.5*this.getFilmHeight()/t;this.fov=2*jn.RAD2DEG*Math.atan(e),this.updateProjectionMatrix()},getFocalLength:function(){const t=Math.tan(.5*jn.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*jn.RAD2DEG*Math.atan(Math.tan(.5*jn.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,n,r,i,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){const t=this.near;let e=t*Math.tan(.5*jn.DEG2RAD*this.fov)/this.zoom,n=2*e,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,s=o.fullHeight;i+=o.offsetX*r/t,e-=o.offsetY*n/s,r*=o.width/t,n*=o.height/s}const s=this.filmOffset;0!==s&&(i+=t*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()},toJSON:function(t){const e=$r.prototype.toJSON.call(this,t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}});class wo extends $r{constructor(t,e,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const r=new xo(90,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new qn(1,0,0)),this.add(r);const i=new xo(90,1,t,e);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new qn(-1,0,0)),this.add(i);const o=new xo(90,1,t,e);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new qn(0,1,0)),this.add(o);const s=new xo(90,1,t,e);s.layers=this.layers,s.up.set(0,0,-1),s.lookAt(new qn(0,-1,0)),this.add(s);const a=new xo(90,1,t,e);a.layers=this.layers,a.up.set(0,-1,0),a.lookAt(new qn(0,0,1)),this.add(a);const c=new xo(90,1,t,e);c.layers=this.layers,c.up.set(0,-1,0),c.lookAt(new qn(0,0,-1)),this.add(c)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,s,a,c]=this.children,l=t.xr.enabled,u=t.getRenderTarget();t.xr.enabled=!1;const h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,r),t.setRenderTarget(n,1),t.render(e,i),t.setRenderTarget(n,2),t.render(e,o),t.setRenderTarget(n,3),t.render(e,s),t.setRenderTarget(n,4),t.render(e,a),n.texture.generateMipmaps=h,t.setRenderTarget(n,5),t.render(e,c),t.setRenderTarget(u),t.xr.enabled=l}}class So extends Vn{constructor(t,e,n,r,i,o,s,a,c,l){super(t=void 0!==t?t:[],e=void 0!==e?e:ot,n,r,i,o,s=void 0!==s?s:Ft,a,c,l),this._needsFlipEnvMap=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}So.prototype.isCubeTexture=!0;class Mo extends Xn{constructor(t,e,n){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=n),super(t,t,e),e=e||{},this.texture=new So(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:_t,this.texture._needsFlipEnvMap=!1}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.format=Nt,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",o=new mo(5,5,5),s=new _o({name:"CubemapFromEquirect",uniforms:go(n),vertexShader:r,fragmentShader:i,side:m,blending:_});s.uniforms.tEquirect.value=e;const a=new fo(o,s),c=e.minFilter;return e.minFilter===wt&&(e.minFilter=_t),new wo(1,10,this).update(t,a),e.minFilter=c,a.geometry.dispose(),a.material.dispose(),this}clear(t,e,n,r){const i=t.getRenderTarget();for(let i=0;i<6;i++)t.setRenderTarget(this,i),t.clear(e,n,r);t.setRenderTarget(i)}}Mo.prototype.isWebGLCubeRenderTarget=!0;class Ao extends Vn{constructor(t,e,n,r,i,o,s,a,c,l,u,h){super(null,o,s,a,c,l,r,i,u,h),this.image={data:t||null,width:e||1,height:n||1},this.magFilter=void 0!==c?c:pt,this.minFilter=void 0!==l?l:pt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}}Ao.prototype.isDataTexture=!0;const Co=new _r,Eo=new qn;class To{constructor(t=new ri,e=new ri,n=new ri,r=new ri,i=new ri,o=new ri){this.planes=[t,e,n,r,i,o]}set(t,e,n,r,i,o){const s=this.planes;return s[0].copy(t),s[1].copy(e),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],l=n[6],u=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(s-r,u-a,p-h,y-m).normalize(),e[1].setComponents(s+r,u+a,p+h,y+m).normalize(),e[2].setComponents(s+i,u+c,p+d,y+g).normalize(),e[3].setComponents(s-i,u-c,p-d,y-g).normalize(),e[4].setComponents(s-o,u-l,p-f,y-v).normalize(),e[5].setComponents(s+o,u+l,p+f,y+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Co.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Co)}intersectsSprite(t){return Co.center.set(0,0,0),Co.radius=.7071067811865476,Co.applyMatrix4(t.matrixWorld),this.intersectsSphere(Co)}intersectsSphere(t){const e=this.planes,n=t.center,r=-t.radius;for(let t=0;t<6;t++)if(e[t].distanceToPoint(n)<r)return!1;return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const r=e[n];if(Eo.x=r.normal.x>0?t.max.x:t.min.x,Eo.y=r.normal.y>0?t.max.y:t.min.y,Eo.z=r.normal.z>0?t.max.z:t.min.z,r.distanceToPoint(Eo)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Io(){let t=null,e=!1,n=null,r=null;function i(e,o){n(e,o),r=t.requestAnimationFrame(i)}return{start:function(){!0!==e&&null!==n&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Po(t,e){const n=e.isWebGL2,r=new WeakMap;function i(e,r){const i=e.array,o=e.usage,s=t.createBuffer();t.bindBuffer(r,s),t.bufferData(r,i,o),e.onUploadCallback();let a=5126;return i instanceof Float32Array?a=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?e.isFloat16BufferAttribute?n?a=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):a=5123:i instanceof Int16Array?a=5122:i instanceof Uint32Array?a=5125:i instanceof Int32Array?a=5124:i instanceof Int8Array?a=5120:i instanceof Uint8Array&&(a=5121),{buffer:s,type:a,bytesPerElement:i.BYTES_PER_ELEMENT,version:e.version}}function o(e,r,i){const o=r.array,s=r.updateRange;t.bindBuffer(i,e),-1===s.count?t.bufferSubData(i,0,o):(n?t.bufferSubData(i,s.offset*o.BYTES_PER_ELEMENT,o,s.offset,s.count):t.bufferSubData(i,s.offset*o.BYTES_PER_ELEMENT,o.subarray(s.offset,s.offset+s.count)),s.count=-1)}return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),r.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=r.get(e);n&&(t.deleteBuffer(n.buffer),r.delete(e))},update:function(t,e){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);void 0===n?r.set(t,i(t,e)):n.version<t.version&&(o(n.buffer,t,e),n.version=t.version)}}}class Lo extends Xi{constructor(t=1,e=1,n=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:r};const i=t/2,o=e/2,s=Math.floor(n),a=Math.floor(r),c=s+1,l=a+1,u=t/s,h=e/a,d=[],f=[],p=[],m=[];for(let t=0;t<l;t++){const e=t*h-o;for(let n=0;n<c;n++){const r=n*u-i;f.push(r,-e,0),p.push(0,0,1),m.push(n/s),m.push(1-t/a)}}for(let t=0;t<a;t++)for(let e=0;e<s;e++){const n=e+c*t,r=e+c*(t+1),i=e+1+c*(t+1),o=e+1+c*t;d.push(n,r,o),d.push(r,i,o)}this.setIndex(d),this.setAttribute("position",new Di(f,3)),this.setAttribute("normal",new Di(p,3)),this.setAttribute("uv",new Di(m,2))}}const Ro={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmissionmap_fragment:"#ifdef USE_TRANSMISSIONMAP\n\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\n#endif",transmissionmap_pars_fragment:"#ifdef USE_TRANSMISSIONMAP\n\tuniform sampler2D transmissionMap;\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSMISSION\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSMISSION\n\tuniform float transmission;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <transmissionmap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#ifdef TRANSMISSION\n\t\tfloat totalTransmission = transmission;\n\t#endif\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <transmissionmap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSMISSION\n\t\tdiffuseColor.a *= mix( saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) ), 1.0, metalness );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}"},Oo={common:{diffuse:{value:new Si(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new zn},uv2Transform:{value:new zn},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Un(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Si(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Si(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new zn}},sprite:{diffuse:{value:new Si(15658734)},opacity:{value:1},center:{value:new Un(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new zn}}},Bo={basic:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.fog]),vertexShader:Ro.meshbasic_vert,fragmentShader:Ro.meshbasic_frag},lambert:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)}}]),vertexShader:Ro.meshlambert_vert,fragmentShader:Ro.meshlambert_frag},phong:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)},specular:{value:new Si(1118481)},shininess:{value:30}}]),vertexShader:Ro.meshphong_vert,fragmentShader:Ro.meshphong_frag},standard:{uniforms:vo([Oo.common,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.roughnessmap,Oo.metalnessmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ro.meshphysical_vert,fragmentShader:Ro.meshphysical_frag},toon:{uniforms:vo([Oo.common,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.gradientmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)}}]),vertexShader:Ro.meshtoon_vert,fragmentShader:Ro.meshtoon_frag},matcap:{uniforms:vo([Oo.common,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.fog,{matcap:{value:null}}]),vertexShader:Ro.meshmatcap_vert,fragmentShader:Ro.meshmatcap_frag},points:{uniforms:vo([Oo.points,Oo.fog]),vertexShader:Ro.points_vert,fragmentShader:Ro.points_frag},dashed:{uniforms:vo([Oo.common,Oo.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ro.linedashed_vert,fragmentShader:Ro.linedashed_frag},depth:{uniforms:vo([Oo.common,Oo.displacementmap]),vertexShader:Ro.depth_vert,fragmentShader:Ro.depth_frag},normal:{uniforms:vo([Oo.common,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,{opacity:{value:1}}]),vertexShader:Ro.normal_vert,fragmentShader:Ro.normal_frag},sprite:{uniforms:vo([Oo.sprite,Oo.fog]),vertexShader:Ro.sprite_vert,fragmentShader:Ro.sprite_frag},background:{uniforms:{uvTransform:{value:new zn},t2D:{value:null}},vertexShader:Ro.background_vert,fragmentShader:Ro.background_frag},cube:{uniforms:vo([Oo.envmap,{opacity:{value:1}}]),vertexShader:Ro.cube_vert,fragmentShader:Ro.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ro.equirect_vert,fragmentShader:Ro.equirect_frag},distanceRGBA:{uniforms:vo([Oo.common,Oo.displacementmap,{referencePosition:{value:new qn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ro.distanceRGBA_vert,fragmentShader:Ro.distanceRGBA_frag},shadow:{uniforms:vo([Oo.lights,Oo.fog,{color:{value:new Si(0)},opacity:{value:1}}]),vertexShader:Ro.shadow_vert,fragmentShader:Ro.shadow_frag}};function ko(t,e,n,r,i){const o=new Si(0);let s,a,c=0,l=null,u=0,h=null;function d(t,e){n.buffers.color.setClear(t.r,t.g,t.b,e,i)}return{getClearColor:function(){return o},setClearColor:function(t,e=1){o.set(t),c=e,d(o,c)},getClearAlpha:function(){return c},setClearAlpha:function(t){c=t,d(o,c)},render:function(n,i,f,g){let v=!0===i.isScene?i.background:null;v&&v.isTexture&&(v=e.get(v));const y=t.xr,_=y.getSession&&y.getSession();_&&"additive"===_.environmentBlendMode&&(v=null),null===v?d(o,c):v&&v.isColor&&(d(v,1),g=!0),(t.autoClear||g)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===lt)?(void 0===a&&(a=new fo(new mo(1,1,1),new _o({name:"BackgroundCubeMaterial",uniforms:go(Bo.cube.uniforms),vertexShader:Bo.cube.vertexShader,fragmentShader:Bo.cube.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1})),a.geometry.deleteAttribute("normal"),a.geometry.deleteAttribute("uv"),a.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(a.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(a)),a.material.uniforms.envMap.value=v,a.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v._needsFlipEnvMap?-1:1,l===v&&u===v.version&&h===t.toneMapping||(a.material.needsUpdate=!0,l=v,u=v.version,h=t.toneMapping),n.unshift(a,a.geometry,a.material,0,0,null)):v&&v.isTexture&&(void 0===s&&(s=new fo(new Lo(2,2),new _o({name:"BackgroundMaterial",uniforms:go(Bo.background.uniforms),vertexShader:Bo.background.vertexShader,fragmentShader:Bo.background.fragmentShader,side:p,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),Object.defineProperty(s.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(s)),s.material.uniforms.t2D.value=v,!0===v.matrixAutoUpdate&&v.updateMatrix(),s.material.uniforms.uvTransform.value.copy(v.matrix),l===v&&u===v.version&&h===t.toneMapping||(s.material.needsUpdate=!0,l=v,u=v.version,h=t.toneMapping),n.unshift(s,s.geometry,s.material,0,0,null))}}}function Do(t,e,n,r){const i=t.getParameter(34921),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),s=r.isWebGL2||null!==o,a={},c=p(null);let l=c;function u(){return r.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function h(e){return r.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function d(e){return r.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function f(t,e,n){const r=!0===n.wireframe;let i=a[t.id];void 0===i&&(i={},a[t.id]=i);let o=i[e.id];void 0===o&&(o={},i[e.id]=o);let s=o[r];return void 0===s&&(s=p(u()),o[r]=s),s}function p(t){const e=[],n=[],r=[];for(let t=0;t<i;t++)e[t]=0,n[t]=0,r[t]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:r,object:t,attributes:{},index:null}}function m(){const t=l.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function g(t){v(t,0)}function v(n,i){const o=l.newAttributes,s=l.enabledAttributes,a=l.attributeDivisors;o[n]=1,0===s[n]&&(t.enableVertexAttribArray(n),s[n]=1),a[n]!==i&&((r.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),a[n]=i)}function y(){const e=l.newAttributes,n=l.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==e[r]&&(t.disableVertexAttribArray(r),n[r]=0)}function _(e,n,i,o,s,a){!0!==r.isWebGL2||5124!==i&&5125!==i?t.vertexAttribPointer(e,n,i,o,s,a):t.vertexAttribIPointer(e,n,i,s,a)}function b(i,o,s,a){if(!1===r.isWebGL2&&(i.isInstancedMesh||a.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;m();const c=a.attributes,l=s.getAttributes(),u=o.defaultAttributeValues;for(const e in l){const r=l[e];if(r>=0){const o=c[e];if(void 0!==o){const e=o.normalized,i=o.itemSize,s=n.get(o);if(void 0===s)continue;const c=s.buffer,l=s.type,u=s.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,s=n.stride,h=o.offset;n&&n.isInstancedInterleavedBuffer?(v(r,n.meshPerAttribute),void 0===a._maxInstanceCount&&(a._maxInstanceCount=n.meshPerAttribute*n.count)):g(r),t.bindBuffer(34962,c),_(r,i,l,e,s*u,h*u)}else o.isInstancedBufferAttribute?(v(r,o.meshPerAttribute),void 0===a._maxInstanceCount&&(a._maxInstanceCount=o.meshPerAttribute*o.count)):g(r),t.bindBuffer(34962,c),_(r,i,l,e,0,0)}else if("instanceMatrix"===e){const e=n.get(i.instanceMatrix);if(void 0===e)continue;const o=e.buffer,s=e.type;v(r+0,1),v(r+1,1),v(r+2,1),v(r+3,1),t.bindBuffer(34962,o),t.vertexAttribPointer(r+0,4,s,!1,64,0),t.vertexAttribPointer(r+1,4,s,!1,64,16),t.vertexAttribPointer(r+2,4,s,!1,64,32),t.vertexAttribPointer(r+3,4,s,!1,64,48)}else if("instanceColor"===e){const e=n.get(i.instanceColor);if(void 0===e)continue;const o=e.buffer,s=e.type;v(r,1),t.bindBuffer(34962,o),t.vertexAttribPointer(r,3,s,!1,12,0)}else if(void 0!==u){const n=u[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(r,n);break;case 3:t.vertexAttrib3fv(r,n);break;case 4:t.vertexAttrib4fv(r,n);break;default:t.vertexAttrib1fv(r,n)}}}}y()}function x(){w(),l!==c&&(l=c,h(l.object))}function w(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:function(e,r,i,o,a){let c=!1;if(s){const t=f(o,i,r);l!==t&&(l=t,h(l.object)),c=function(t,e){const n=l.attributes,r=t.attributes;let i=0;for(const t in r){const e=n[t],o=r[t];if(void 0===e)return!0;if(e.attribute!==o)return!0;if(e.data!==o.data)return!0;i++}return l.attributesNum!==i||l.index!==e}(o,a),c&&function(t,e){const n={},r=t.attributes;let i=0;for(const t in r){const e=r[t],o={};o.attribute=e,e.data&&(o.data=e.data),n[t]=o,i++}l.attributes=n,l.attributesNum=i,l.index=e}(o,a)}else{const t=!0===r.wireframe;l.geometry===o.id&&l.program===i.id&&l.wireframe===t||(l.geometry=o.id,l.program=i.id,l.wireframe=t,c=!0)}!0===e.isInstancedMesh&&(c=!0),null!==a&&n.update(a,34963),c&&(b(e,r,i,o),null!==a&&t.bindBuffer(34963,n.get(a).buffer))},reset:x,resetDefaultState:w,dispose:function(){x();for(const t in a){const e=a[t];for(const t in e){const n=e[t];for(const t in n)d(n[t].object),delete n[t];delete e[t]}delete a[t]}},releaseStatesOfGeometry:function(t){if(void 0===a[t.id])return;const e=a[t.id];for(const t in e){const n=e[t];for(const t in n)d(n[t].object),delete n[t];delete e[t]}delete a[t.id]},releaseStatesOfProgram:function(t){for(const e in a){const n=a[e];if(void 0===n[t.id])continue;const r=n[t.id];for(const t in r)d(r[t].object),delete r[t];delete n[t.id]}},initAttributes:m,enableAttribute:g,disableUnusedAttributes:y}}function Fo(t,e,n,r){const i=r.isWebGL2;let o;this.setMode=function(t){o=t},this.render=function(e,r){t.drawArrays(o,e,r),n.update(r,o,1)},this.renderInstances=function(r,s,a){if(0===a)return;let c,l;if(i)c=t,l="drawArraysInstanced";else if(c=e.get("ANGLE_instanced_arrays"),l="drawArraysInstancedANGLE",null===c)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[l](o,r,s,a),n.update(s,o,a)}}function No(t,e,n){let r;function i(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let s=void 0!==n.precision?n.precision:"highp";const a=i(s);a!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",a,"instead."),s=a);const c=!0===n.logarithmicDepthBuffer,l=t.getParameter(34930),u=t.getParameter(35660),h=t.getParameter(3379),d=t.getParameter(34076),f=t.getParameter(34921),p=t.getParameter(36347),m=t.getParameter(36348),g=t.getParameter(36349),v=u>0,y=o||e.has("OES_texture_float");return{isWebGL2:o,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:s,logarithmicDepthBuffer:c,maxTextures:l,maxVertexTextures:u,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y,maxSamples:o?t.getParameter(36183):0}}function jo(t){const e=this;let n=null,r=0,i=!1,o=!1;const s=new ri,a=new zn,c={value:null,needsUpdate:!1};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(t,n,r,i){const o=null!==t?t.length:0;let l=null;if(0!==o){if(l=c.value,!0!==i||null===l){const e=r+4*o,i=n.matrixWorldInverse;a.getNormalMatrix(i),(null===l||l.length<e)&&(l=new Float32Array(e));for(let e=0,n=r;e!==o;++e,n+=4)s.copy(t[e]).applyMatrix4(i,a),s.normal.toArray(l,n),l[n+3]=s.constant}c.value=l,c.needsUpdate=!0}return e.numPlanes=o,e.numIntersection=0,l}this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,o){const s=0!==t.length||e||0!==r||i;return i=e,n=u(t,o,0),r=t.length,s},this.beginShadows=function(){o=!0,u(null)},this.endShadows=function(){o=!1,l()},this.setState=function(e,s,a){const h=e.clippingPlanes,d=e.clipIntersection,f=e.clipShadows,p=t.get(e);if(!i||null===h||0===h.length||o&&!f)o?u(null):l();else{const t=o?0:r,e=4*t;let i=p.clippingState||null;c.value=i,i=u(h,s,e,a);for(let t=0;t!==e;++t)i[t]=n[t];p.clippingState=i,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function Uo(t){let e=new WeakMap;function n(t,e){return e===at?t.mapping=ot:e===ct&&(t.mapping=st),t}function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping;if(o===at||o===ct){if(e.has(i))return n(e.get(i).texture,i.mapping);{const o=i.image;if(o&&o.height>0){const s=t.getRenderTarget(),a=new Mo(o.height/2);return a.fromEquirectangularTexture(t,i),e.set(i,a),t.setRenderTarget(s),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){e=new WeakMap}}}function zo(t){const e={};function n(n){if(void 0!==e[n])return e[n];let r;switch(n){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(n)}return e[n]=r,r}return{has:function(t){return null!==n(t)},init:function(t){t.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function Go(t,e,n,r){const i={},o=new WeakMap;function s(t){const a=t.target;null!==a.index&&e.remove(a.index);for(const t in a.attributes)e.remove(a.attributes[t]);a.removeEventListener("dispose",s),delete i[a.id];const c=o.get(a);c&&(e.remove(c),o.delete(a)),r.releaseStatesOfGeometry(a),!0===a.isInstancedBufferGeometry&&delete a._maxInstanceCount,n.memory.geometries--}function a(t){const n=[],r=t.index,i=t.attributes.position;let s=0;if(null!==r){const t=r.array;s=r.version;for(let e=0,r=t.length;e<r;e+=3){const r=t[e+0],i=t[e+1],o=t[e+2];n.push(r,i,i,o,o,r)}}else{const t=i.array;s=i.version;for(let e=0,r=t.length/3-1;e<r;e+=3){const t=e+0,r=e+1,i=e+2;n.push(t,r,r,i,i,t)}}const a=new(Ni(n)>65535?Bi:Ri)(n,1);a.version=s;const c=o.get(t);c&&e.remove(c),o.set(t,a)}return{get:function(t,e){return!0===i[e.id]||(e.addEventListener("dispose",s),i[e.id]=!0,n.memory.geometries++),e},update:function(t){const n=t.attributes;for(const t in n)e.update(n[t],34962);const r=t.morphAttributes;for(const t in r){const n=r[t];for(let t=0,r=n.length;t<r;t++)e.update(n[t],34962)}},getWireframeAttribute:function(t){const e=o.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&a(t)}else a(t);return o.get(t)}}}function Ho(t,e,n,r){const i=r.isWebGL2;let o,s,a;this.setMode=function(t){o=t},this.setIndex=function(t){s=t.type,a=t.bytesPerElement},this.render=function(e,r){t.drawElements(o,r,s,e*a),n.update(r,o,1)},this.renderInstances=function(r,c,l){if(0===l)return;let u,h;if(i)u=t,h="drawElementsInstanced";else if(u=e.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[h](o,c,s,r*a,l),n.update(c,o,l)}}function Wo(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,n,r){switch(e.calls++,n){case 4:e.triangles+=r*(t/3);break;case 1:e.lines+=r*(t/2);break;case 3:e.lines+=r*(t-1);break;case 2:e.lines+=r*t;break;case 0:e.points+=r*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Vo(t,e){return t[0]-e[0]}function Zo(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Qo(t){const e={},n=new Float32Array(8),r=[];for(let t=0;t<8;t++)r[t]=[t,0];return{update:function(i,o,s,a){const c=i.morphTargetInfluences,l=void 0===c?0:c.length;let u=e[o.id];if(void 0===u){u=[];for(let t=0;t<l;t++)u[t]=[t,0];e[o.id]=u}for(let t=0;t<l;t++){const e=u[t];e[0]=t,e[1]=c[t]}u.sort(Zo);for(let t=0;t<8;t++)t<l&&u[t][1]?(r[t][0]=u[t][0],r[t][1]=u[t][1]):(r[t][0]=Number.MAX_SAFE_INTEGER,r[t][1]=0);r.sort(Vo);const h=s.morphTargets&&o.morphAttributes.position,d=s.morphNormals&&o.morphAttributes.normal;let f=0;for(let t=0;t<8;t++){const e=r[t],i=e[0],s=e[1];i!==Number.MAX_SAFE_INTEGER&&s?(h&&o.getAttribute("morphTarget"+t)!==h[i]&&o.setAttribute("morphTarget"+t,h[i]),d&&o.getAttribute("morphNormal"+t)!==d[i]&&o.setAttribute("morphNormal"+t,d[i]),n[t]=s,f+=s):(h&&!0===o.hasAttribute("morphTarget"+t)&&o.deleteAttribute("morphTarget"+t),d&&!0===o.hasAttribute("morphNormal"+t)&&o.deleteAttribute("morphNormal"+t),n[t]=0)}const p=o.morphTargetsRelative?1:1-f;a.getUniforms().setValue(t,"morphTargetBaseInfluence",p),a.getUniforms().setValue(t,"morphTargetInfluences",n)}}}function Xo(t,e,n,r){let i=new WeakMap;function o(t){const e=t.target;e.removeEventListener("dispose",o),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:function(t){const s=r.render.frame,a=t.geometry,c=e.get(t,a);return i.get(c)!==s&&(e.update(c),i.set(c,s)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",o)&&t.addEventListener("dispose",o),n.update(t.instanceMatrix,34962),null!==t.instanceColor&&n.update(t.instanceColor,34962)),c},dispose:function(){i=new WeakMap}}}Bo.physical={uniforms:vo([Bo.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Un(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new Si(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Ro.meshphysical_vert,fragmentShader:Ro.meshphysical_frag};class Yo extends Vn{constructor(t=null,e=1,n=1,r=1){super(null),this.image={data:t,width:e,height:n,depth:r},this.magFilter=pt,this.minFilter=pt,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}}Yo.prototype.isDataTexture2DArray=!0;class Jo extends Vn{constructor(t=null,e=1,n=1,r=1){super(null),this.image={data:t,width:e,height:n,depth:r},this.magFilter=pt,this.minFilter=pt,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}}Jo.prototype.isDataTexture3D=!0;const qo=new Vn,Ko=new Yo,$o=new Jo,ts=new So,es=[],ns=[],rs=new Float32Array(16),is=new Float32Array(9),os=new Float32Array(4);function ss(t,e,n){const r=t[0];if(r<=0||r>0)return t;const i=e*n;let o=es[i];if(void 0===o&&(o=new Float32Array(i),es[i]=o),0!==e){r.toArray(o,0);for(let r=1,i=0;r!==e;++r)i+=n,t[r].toArray(o,i)}return o}function as(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function cs(t,e){for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}function ls(t,e){let n=ns[e];void 0===n&&(n=new Int32Array(e),ns[e]=n);for(let r=0;r!==e;++r)n[r]=t.allocateTextureUnit();return n}function us(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function hs(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(as(n,e))return;t.uniform2fv(this.addr,e),cs(n,e)}}function ds(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(as(n,e))return;t.uniform3fv(this.addr,e),cs(n,e)}}function fs(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(as(n,e))return;t.uniform4fv(this.addr,e),cs(n,e)}}function ps(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;os.set(r),t.uniformMatrix2fv(this.addr,!1,os),cs(n,r)}}function ms(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;is.set(r),t.uniformMatrix3fv(this.addr,!1,is),cs(n,r)}}function gs(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;rs.set(r),t.uniformMatrix4fv(this.addr,!1,rs),cs(n,r)}}function vs(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function ys(t,e){const n=this.cache;as(n,e)||(t.uniform2iv(this.addr,e),cs(n,e))}function _s(t,e){const n=this.cache;as(n,e)||(t.uniform3iv(this.addr,e),cs(n,e))}function bs(t,e){const n=this.cache;as(n,e)||(t.uniform4iv(this.addr,e),cs(n,e))}function xs(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function ws(t,e){const n=this.cache;as(n,e)||(t.uniform2uiv(this.addr,e),cs(n,e))}function Ss(t,e){const n=this.cache;as(n,e)||(t.uniform3uiv(this.addr,e),cs(n,e))}function Ms(t,e){const n=this.cache;as(n,e)||(t.uniform4uiv(this.addr,e),cs(n,e))}function As(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.safeSetTexture2D(e||qo,i)}function Cs(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(e||$o,i)}function Es(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.safeSetTextureCube(e||ts,i)}function Ts(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(e||Ko,i)}function Is(t,e){t.uniform1fv(this.addr,e)}function Ps(t,e){const n=ss(e,this.size,2);t.uniform2fv(this.addr,n)}function Ls(t,e){const n=ss(e,this.size,3);t.uniform3fv(this.addr,n)}function Rs(t,e){const n=ss(e,this.size,4);t.uniform4fv(this.addr,n)}function Os(t,e){const n=ss(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function Bs(t,e){const n=ss(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function ks(t,e){const n=ss(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function Ds(t,e){t.uniform1iv(this.addr,e)}function Fs(t,e){t.uniform2iv(this.addr,e)}function Ns(t,e){t.uniform3iv(this.addr,e)}function js(t,e){t.uniform4iv(this.addr,e)}function Us(t,e){t.uniform1uiv(this.addr,e)}function zs(t,e){t.uniform2uiv(this.addr,e)}function Gs(t,e){t.uniform3uiv(this.addr,e)}function Hs(t,e){t.uniform4uiv(this.addr,e)}function Ws(t,e,n){const r=e.length,i=ls(n,r);t.uniform1iv(this.addr,i);for(let t=0;t!==r;++t)n.safeSetTexture2D(e[t]||qo,i[t])}function Vs(t,e,n){const r=e.length,i=ls(n,r);t.uniform1iv(this.addr,i);for(let t=0;t!==r;++t)n.safeSetTextureCube(e[t]||ts,i[t])}function Zs(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return us;case 35664:return hs;case 35665:return ds;case 35666:return fs;case 35674:return ps;case 35675:return ms;case 35676:return gs;case 5124:case 35670:return vs;case 35667:case 35671:return ys;case 35668:case 35672:return _s;case 35669:case 35673:return bs;case 5125:return xs;case 36294:return ws;case 36295:return Ss;case 36296:return Ms;case 35678:case 36198:case 36298:case 36306:case 35682:return As;case 35679:case 36299:case 36307:return Cs;case 35680:case 36300:case 36308:case 36293:return Es;case 36289:case 36303:case 36311:case 36292:return Ts}}(e.type)}function Qs(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return Is;case 35664:return Ps;case 35665:return Ls;case 35666:return Rs;case 35674:return Os;case 35675:return Bs;case 35676:return ks;case 5124:case 35670:return Ds;case 35667:case 35671:return Fs;case 35668:case 35672:return Ns;case 35669:case 35673:return js;case 5125:return Us;case 36294:return zs;case 36295:return Gs;case 36296:return Hs;case 35678:case 36198:case 36298:case 36306:case 35682:return Ws;case 35680:case 36300:case 36308:case 36293:return Vs}}(e.type)}function Xs(t){this.id=t,this.seq=[],this.map={}}Qs.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),cs(e,t)},Xs.prototype.setValue=function(t,e,n){const r=this.seq;for(let i=0,o=r.length;i!==o;++i){const o=r[i];o.setValue(t,e[o.id],n)}};const Ys=/(\w+)(\])?(\[|\.)?/g;function Js(t,e){t.seq.push(e),t.map[e.id]=e}function qs(t,e,n){const r=t.name,i=r.length;for(Ys.lastIndex=0;;){const o=Ys.exec(r),s=Ys.lastIndex;let a=o[1];const c="]"===o[2],l=o[3];if(c&&(a|=0),void 0===l||"["===l&&s+2===i){Js(n,void 0===l?new Zs(a,t,e):new Qs(a,t,e));break}{let t=n.map[a];void 0===t&&(t=new Xs(a),Js(n,t)),n=t}}}function Ks(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let r=0;r<n;++r){const n=t.getActiveUniform(e,r);qs(n,t.getUniformLocation(e,n.name),this)}}function $s(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}Ks.prototype.setValue=function(t,e,n,r){const i=this.map[e];void 0!==i&&i.setValue(t,n,r)},Ks.prototype.setOptional=function(t,e,n){const r=e[n];void 0!==r&&this.setValue(t,n,r)},Ks.upload=function(t,e,n,r){for(let i=0,o=e.length;i!==o;++i){const o=e[i],s=n[o.id];!1!==s.needsUpdate&&o.setValue(t,s.value,r)}},Ks.seqWithValue=function(t,e){const n=[];for(let r=0,i=t.length;r!==i;++r){const i=t[r];i.id in e&&n.push(i)}return n};let ta=0;function ea(t){switch(t){case Je:return["Linear","( value )"];case qe:return["sRGB","( value )"];case $e:return["RGBE","( value )"];case en:return["RGBM","( value, 7.0 )"];case nn:return["RGBM","( value, 16.0 )"];case rn:return["RGBD","( value, 256.0 )"];case Ke:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case tn:return["LogLuv","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function na(t,e,n){const r=t.getShaderParameter(e,35713),i=t.getShaderInfoLog(e).trim();return r&&""===i?"":"THREE.WebGLShader: gl.getShaderInfoLog() "+n+"\n"+i+function(t){const e=t.split("\n");for(let t=0;t<e.length;t++)e[t]=t+1+": "+e[t];return e.join("\n")}(t.getShaderSource(e))}function ra(t,e){const n=ea(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function ia(t,e){const n=ea(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function oa(t,e){let n;switch(e){case $:n="Linear";break;case tt:n="Reinhard";break;case et:n="OptimizedCineon";break;case nt:n="ACESFilmic";break;case rt:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function sa(t){return""!==t}function aa(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function ca(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const la=/^[ \t]*#include +<([\w\d./]+)>/gm;function ua(t){return t.replace(la,ha)}function ha(t,e){const n=Ro[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return ua(n)}const da=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,fa=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function pa(t){return t.replace(fa,ga).replace(da,ma)}function ma(t,e,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),ga(0,e,n,r)}function ga(t,e,n,r){let i="";for(let t=parseInt(e);t<parseInt(n);t++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+t+" ]").replace(/UNROLLED_LOOP_INDEX/g,t);return i}function va(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function ya(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===h?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===d?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===f&&(e="SHADOWMAP_TYPE_VSM"),e}function _a(t,e,n,r){const i=t.getContext(),o=n.defines;let s=n.vertexShader,a=n.fragmentShader;const c=ya(n),l=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case ot:case st:e="ENVMAP_TYPE_CUBE";break;case lt:case ut:e="ENVMAP_TYPE_CUBE_UV"}return e}(n),u=function(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case st:case ut:e="ENVMAP_MODE_REFRACTION"}return e}(n),h=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case Y:e="ENVMAP_BLENDING_MULTIPLY";break;case J:e="ENVMAP_BLENDING_MIX";break;case q:e="ENVMAP_BLENDING_ADD"}return e}(n),d=t.gammaFactor>0?t.gammaFactor:1,f=n.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(sa).join("\n")}(n),p=function(t){const e=[];for(const n in t){const r=t[n];!1!==r&&e.push("#define "+n+" "+r)}return e.join("\n")}(o),m=i.createProgram();let g,v,y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=[p].filter(sa).join("\n"),g.length>0&&(g+="\n"),v=[f,p].filter(sa).join("\n"),v.length>0&&(v+="\n")):(g=[va(n),"#define SHADER_NAME "+n.shaderName,p,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+d,"#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(sa).join("\n"),v=[f,va(n),"#define SHADER_NAME "+n.shaderName,p,n.alphaTest?"#define ALPHATEST "+n.alphaTest+(n.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+d,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+l:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.sheen?"#define USE_SHEEN":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==K?"#define TONE_MAPPING":"",n.toneMapping!==K?Ro.tonemapping_pars_fragment:"",n.toneMapping!==K?oa("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",Ro.encodings_pars_fragment,n.map?ra("mapTexelToLinear",n.mapEncoding):"",n.matcap?ra("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?ra("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?ra("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.lightMap?ra("lightMapTexelToLinear",n.lightMapEncoding):"",ia("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(sa).join("\n")),s=ua(s),s=aa(s,n),s=ca(s,n),a=ua(a),a=aa(a,n),a=ca(a,n),s=pa(s),a=pa(a),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",g=["#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===kn?"":"out highp vec4 pc_fragColor;",n.glslVersion===kn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v);const _=y+v+a,b=$s(i,35633,y+g+s),x=$s(i,35632,_);if(i.attachShader(m,b),i.attachShader(m,x),void 0!==n.index0AttributeName?i.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(m,0,"position"),i.linkProgram(m),t.debug.checkShaderErrors){const t=i.getProgramInfoLog(m).trim(),e=i.getShaderInfoLog(b).trim(),n=i.getShaderInfoLog(x).trim();let r=!0,o=!0;if(!1===i.getProgramParameter(m,35714)){r=!1;const e=na(i,b,"vertex"),n=na(i,x,"fragment");console.error("THREE.WebGLProgram: shader error: ",i.getError(),"35715",i.getProgramParameter(m,35715),"gl.getProgramInfoLog",t,e,n)}else""!==t?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",t):""!==e&&""!==n||(o=!1);o&&(this.diagnostics={runnable:r,programLog:t,vertexShader:{log:e,prefix:g},fragmentShader:{log:n,prefix:v}})}let w,S;return i.deleteShader(b),i.deleteShader(x),this.getUniforms=function(){return void 0===w&&(w=new Ks(i,m)),w},this.getAttributes=function(){return void 0===S&&(S=function(t,e){const n={},r=t.getProgramParameter(e,35721);for(let i=0;i<r;i++){const r=t.getActiveAttrib(e,i).name;n[r]=t.getAttribLocation(e,r)}return n}(i,m)),S},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.name=n.shaderName,this.id=ta++,this.cacheKey=e,this.usedTimes=1,this.program=m,this.vertexShader=b,this.fragmentShader=x,this}function ba(t,e,n,r,i,o){const s=[],a=r.isWebGL2,c=r.logarithmicDepthBuffer,l=r.floatVertexTextures,u=r.maxVertexUniforms,h=r.vertexTextures;let d=r.precision;const f={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},p=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexAlphas","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen","transmissionMap"];function v(t){const e=t.skeleton.bones;if(l)return 1024;{const t=u,n=Math.floor((t-20)/4),r=Math.min(n,e.length);return r<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+r+"."),0):r}}function y(t){let e;return t&&t.isTexture?e=t.encoding:t&&t.isWebGLRenderTarget?(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),e=t.texture.encoding):e=Je,e}return{getParameters:function(i,s,u,p,_){const b=p.fog,x=i.isMeshStandardMaterial?p.environment:null,w=e.get(i.envMap||x),S=f[i.type],M=_.isSkinnedMesh?v(_):0;let A,C;if(null!==i.precision&&(d=r.getMaxPrecision(i.precision),d!==i.precision&&console.warn("THREE.WebGLProgram.getParameters:",i.precision,"not supported, using",d,"instead.")),S){const t=Bo[S];A=t.vertexShader,C=t.fragmentShader}else A=i.vertexShader,C=i.fragmentShader;const E=t.getRenderTarget();return{isWebGL2:a,shaderID:S,shaderName:i.type,vertexShader:A,fragmentShader:C,defines:i.defines,isRawShaderMaterial:!0===i.isRawShaderMaterial,glslVersion:i.glslVersion,precision:d,instancing:!0===_.isInstancedMesh,instancingColor:!0===_.isInstancedMesh&&null!==_.instanceColor,supportsVertexTextures:h,outputEncoding:null!==E?y(E.texture):t.outputEncoding,map:!!i.map,mapEncoding:y(i.map),matcap:!!i.matcap,matcapEncoding:y(i.matcap),envMap:!!w,envMapMode:w&&w.mapping,envMapEncoding:y(w),envMapCubeUV:!!w&&(w.mapping===lt||w.mapping===ut),lightMap:!!i.lightMap,lightMapEncoding:y(i.lightMap),aoMap:!!i.aoMap,emissiveMap:!!i.emissiveMap,emissiveMapEncoding:y(i.emissiveMap),bumpMap:!!i.bumpMap,normalMap:!!i.normalMap,objectSpaceNormalMap:i.normalMapType===cn,tangentSpaceNormalMap:i.normalMapType===an,clearcoatMap:!!i.clearcoatMap,clearcoatRoughnessMap:!!i.clearcoatRoughnessMap,clearcoatNormalMap:!!i.clearcoatNormalMap,displacementMap:!!i.displacementMap,roughnessMap:!!i.roughnessMap,metalnessMap:!!i.metalnessMap,specularMap:!!i.specularMap,alphaMap:!!i.alphaMap,gradientMap:!!i.gradientMap,sheen:!!i.sheen,transmissionMap:!!i.transmissionMap,combine:i.combine,vertexTangents:i.normalMap&&i.vertexTangents,vertexColors:i.vertexColors,vertexAlphas:!0===i.vertexColors&&_.geometry.attributes.color&&4===_.geometry.attributes.color.itemSize,vertexUvs:!!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatMap||i.clearcoatRoughnessMap||i.clearcoatNormalMap||i.displacementMap||i.transmissionMap),uvsVertexOnly:!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatNormalMap||i.transmissionMap||!i.displacementMap),fog:!!b,useFog:i.fog,fogExp2:b&&b.isFogExp2,flatShading:!!i.flatShading,sizeAttenuation:i.sizeAttenuation,logarithmicDepthBuffer:c,skinning:i.skinning&&M>0,maxBones:M,useVertexTexture:l,morphTargets:i.morphTargets,morphNormals:i.morphNormals,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:i.dithering,shadowMapEnabled:t.shadowMap.enabled&&u.length>0,shadowMapType:t.shadowMap.type,toneMapping:i.toneMapped?t.toneMapping:K,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:i.premultipliedAlpha,alphaTest:i.alphaTest,doubleSided:i.side===g,flipSided:i.side===m,depthPacking:void 0!==i.depthPacking&&i.depthPacking,index0AttributeName:i.index0AttributeName,extensionDerivatives:i.extensions&&i.extensions.derivatives,extensionFragDepth:i.extensions&&i.extensions.fragDepth,extensionDrawBuffers:i.extensions&&i.extensions.drawBuffers,extensionShaderTextureLOD:i.extensions&&i.extensions.shaderTextureLOD,rendererExtensionFragDepth:a||n.has("EXT_frag_depth"),rendererExtensionDrawBuffers:a||n.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:a||n.has("EXT_shader_texture_lod"),customProgramCacheKey:i.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.fragmentShader),n.push(e.vertexShader)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);if(!1===e.isRawShaderMaterial){for(let t=0;t<p.length;t++)n.push(e[p[t]]);n.push(t.outputEncoding),n.push(t.gammaFactor)}return n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=f[t.type];let n;if(e){const t=Bo[e];n=yo.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let r;for(let t=0,e=s.length;t<e;t++){const e=s[t];if(e.cacheKey===n){r=e,++r.usedTimes;break}}return void 0===r&&(r=new _a(t,n,e,i),s.push(r)),r},releaseProgram:function(t){if(0==--t.usedTimes){const e=s.indexOf(t);s[e]=s[s.length-1],s.pop(),t.destroy()}},programs:s}}function xa(){let t=new WeakMap;return{get:function(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,r){t.get(e)[n]=r},dispose:function(){t=new WeakMap}}}function wa(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Sa(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Ma(t){const e=[];let n=0;const r=[],i=[],o={id:-1};function s(r,i,s,a,c,l){let u=e[n];const h=t.get(s);return void 0===u?(u={id:r.id,object:r,geometry:i,material:s,program:h.program||o,groupOrder:a,renderOrder:r.renderOrder,z:c,group:l},e[n]=u):(u.id=r.id,u.object=r,u.geometry=i,u.material=s,u.program=h.program||o,u.groupOrder=a,u.renderOrder=r.renderOrder,u.z=c,u.group=l),n++,u}return{opaque:r,transparent:i,init:function(){n=0,r.length=0,i.length=0},push:function(t,e,n,o,a,c){const l=s(t,e,n,o,a,c);(!0===n.transparent?i:r).push(l)},unshift:function(t,e,n,o,a,c){const l=s(t,e,n,o,a,c);(!0===n.transparent?i:r).unshift(l)},finish:function(){for(let t=n,r=e.length;t<r;t++){const n=e[t];if(null===n.id)break;n.id=null,n.object=null,n.geometry=null,n.material=null,n.program=null,n.group=null}},sort:function(t,e){r.length>1&&r.sort(t||wa),i.length>1&&i.sort(e||Sa)}}}function Aa(t){let e=new WeakMap;return{get:function(n,r){let i;return!1===e.has(n)?(i=new Ma(t),e.set(n,[i])):r>=e.get(n).length?(i=new Ma(t),e.get(n).push(i)):i=e.get(n)[r],i},dispose:function(){e=new WeakMap}}}function Ca(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new qn,color:new Si};break;case"SpotLight":n={position:new qn,direction:new qn,color:new Si,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new qn,color:new Si,distance:0,decay:0};break;case"HemisphereLight":n={direction:new qn,skyColor:new Si,groundColor:new Si};break;case"RectAreaLight":n={color:new Si,position:new qn,halfWidth:new qn,halfHeight:new qn}}return t[e.id]=n,n}}}let Ea=0;function Ta(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Ia(t,e){const n=new Ca,r=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Un};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Un,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let t=0;t<9;t++)i.probe.push(new qn);const o=new qn,s=new Tr,a=new Tr;return{setup:function(o){let s=0,a=0,c=0;for(let t=0;t<9;t++)i.probe[t].set(0,0,0);let l=0,u=0,h=0,d=0,f=0,p=0,m=0,g=0;o.sort(Ta);for(let t=0,e=o.length;t<e;t++){const e=o[t],v=e.color,y=e.intensity,_=e.distance,b=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)s+=v.r*y,a+=v.g*y,c+=v.b*y;else if(e.isLightProbe)for(let t=0;t<9;t++)i.probe[t].addScaledVector(e.sh.coefficients[t],y);else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.directionalShadow[l]=n,i.directionalShadowMap[l]=b,i.directionalShadowMatrix[l]=e.shadow.matrix,p++}i.directional[l]=t,l++}else if(e.isSpotLight){const t=n.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(v).multiplyScalar(y),t.distance=_,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.spotShadow[h]=n,i.spotShadowMap[h]=b,i.spotShadowMatrix[h]=e.shadow.matrix,g++}i.spot[h]=t,h++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(v).multiplyScalar(y),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),i.rectArea[d]=t,d++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,i.pointShadow[u]=n,i.pointShadowMap[u]=b,i.pointShadowMatrix[u]=e.shadow.matrix,m++}i.point[u]=t,u++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(y),t.groundColor.copy(e.groundColor).multiplyScalar(y),i.hemi[f]=t,f++}}d>0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(i.rectAreaLTC1=Oo.LTC_FLOAT_1,i.rectAreaLTC2=Oo.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Oo.LTC_HALF_1,i.rectAreaLTC2=Oo.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=a,i.ambient[2]=c;const v=i.hash;v.directionalLength===l&&v.pointLength===u&&v.spotLength===h&&v.rectAreaLength===d&&v.hemiLength===f&&v.numDirectionalShadows===p&&v.numPointShadows===m&&v.numSpotShadows===g||(i.directional.length=l,i.spot.length=h,i.rectArea.length=d,i.point.length=u,i.hemi.length=f,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=g,i.spotShadowMap.length=g,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=m,i.spotShadowMatrix.length=g,v.directionalLength=l,v.pointLength=u,v.spotLength=h,v.rectAreaLength=d,v.hemiLength=f,v.numDirectionalShadows=p,v.numPointShadows=m,v.numSpotShadows=g,i.version=Ea++)},setupView:function(t,e){let n=0,r=0,c=0,l=0,u=0;const h=e.matrixWorldInverse;for(let e=0,d=t.length;e<d;e++){const d=t[e];if(d.isDirectionalLight){const t=i.directional[n];t.direction.setFromMatrixPosition(d.matrixWorld),o.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),n++}else if(d.isSpotLight){const t=i.spot[c];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),t.direction.setFromMatrixPosition(d.matrixWorld),o.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),c++}else if(d.isRectAreaLight){const t=i.rectArea[l];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),a.identity(),s.copy(d.matrixWorld),s.premultiply(h),a.extractRotation(s),t.halfWidth.set(.5*d.width,0,0),t.halfHeight.set(0,.5*d.height,0),t.halfWidth.applyMatrix4(a),t.halfHeight.applyMatrix4(a),l++}else if(d.isPointLight){const t=i.point[r];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),r++}else if(d.isHemisphereLight){const t=i.hemi[u];t.direction.setFromMatrixPosition(d.matrixWorld),t.direction.transformDirection(h),t.direction.normalize(),u++}}},state:i}}function Pa(t,e){const n=new Ia(t,e),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(){n.setup(r)},setupLightsView:function(t){n.setupView(r,t)},pushLight:function(t){r.push(t)},pushShadow:function(t){i.push(t)}}}function La(t,e){let n=new WeakMap;return{get:function(r,i=0){let o;return!1===n.has(r)?(o=new Pa(t,e),n.set(r,[o])):i>=n.get(r).length?(o=new Pa(t,e),n.get(r).push(o)):o=n.get(r)[i],o},dispose:function(){n=new WeakMap}}}class Ra extends gi{constructor(t){super(),this.type="MeshDepthMaterial",this.depthPacking=on,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}Ra.prototype.isMeshDepthMaterial=!0;class Oa extends gi{constructor(t){super(),this.type="MeshDistanceMaterial",this.referencePosition=new qn,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function Ba(t,e,n){let r=new To;const i=new Un,o=new Un,s=new Qn,a=[],c=[],l={},u=n.maxTextureSize,d={0:m,1:p,2:g},v=new _o({defines:{SAMPLE_RATE:2/8,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new Un},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const b=new Xi;b.setAttribute("position",new Ei(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new fo(b,v),w=this;function S(n,r){const i=e.update(x);v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(r,null,i,v,x,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(r,null,i,y,x,null)}function M(t,e,n){const r=t<<0|e<<1|n<<2;let i=a[r];return void 0===i&&(i=new Ra({depthPacking:sn,morphTargets:t,skinning:e}),a[r]=i),i}function A(t,e,n){const r=t<<0|e<<1|n<<2;let i=c[r];return void 0===i&&(i=new Oa({morphTargets:t,skinning:e}),c[r]=i),i}function C(e,n,r,i,o,s,a){let c=null,u=M,h=e.customDepthMaterial;if(!0===i.isPointLight&&(u=A,h=e.customDistanceMaterial),void 0===h){let t=!1;!0===r.morphTargets&&(t=n.morphAttributes&&n.morphAttributes.position&&n.morphAttributes.position.length>0);let i=!1;!0===e.isSkinnedMesh&&(!0===r.skinning?i=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e)),c=u(t,i,!0===e.isInstancedMesh)}else c=h;if(t.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length){const t=c.uuid,e=r.uuid;let n=l[t];void 0===n&&(n={},l[t]=n);let i=n[e];void 0===i&&(i=c.clone(),n[e]=i),c=i}return c.visible=r.visible,c.wireframe=r.wireframe,c.side=a===f?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:d[r.side],c.clipShadows=r.clipShadows,c.clippingPlanes=r.clippingPlanes,c.clipIntersection=r.clipIntersection,c.wireframeLinewidth=r.wireframeLinewidth,c.linewidth=r.linewidth,!0===i.isPointLight&&!0===c.isMeshDistanceMaterial&&(c.referencePosition.setFromMatrixPosition(i.matrixWorld),c.nearDistance=o,c.farDistance=s),c}function E(n,i,o,s,a){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&a===f)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=e.update(n),i=n.material;if(Array.isArray(i)){const e=r.groups;for(let c=0,l=e.length;c<l;c++){const l=e[c],u=i[l.materialIndex];if(u&&u.visible){const e=C(n,r,u,s,o.near,o.far,a);t.renderBufferDirect(o,null,r,e,n,l)}}}else if(i.visible){const e=C(n,r,i,s,o.near,o.far,a);t.renderBufferDirect(o,null,r,e,n,null)}}const c=n.children;for(let t=0,e=c.length;t<e;t++)E(c[t],i,o,s,a)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h,this.render=function(e,n,a){if(!1===w.enabled)return;if(!1===w.autoUpdate&&!1===w.needsUpdate)return;if(0===e.length)return;const c=t.getRenderTarget(),l=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(_),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let c=0,l=e.length;c<l;c++){const l=e[c],h=l.shadow;if(void 0===h){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===h.autoUpdate&&!1===h.needsUpdate)continue;i.copy(h.mapSize);const p=h.getFrameExtents();if(i.multiply(p),o.copy(h.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/p.x),i.x=o.x*p.x,h.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/p.y),i.y=o.y*p.y,h.mapSize.y=o.y)),null===h.map&&!h.isPointLightShadow&&this.type===f){const t={minFilter:_t,magFilter:_t,format:Nt};h.map=new Xn(i.x,i.y,t),h.map.texture.name=l.name+".shadowMap",h.mapPass=new Xn(i.x,i.y,t),h.camera.updateProjectionMatrix()}if(null===h.map){const t={minFilter:pt,magFilter:pt,format:Nt};h.map=new Xn(i.x,i.y,t),h.map.texture.name=l.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const m=h.getViewportCount();for(let t=0;t<m;t++){const e=h.getViewport(t);s.set(o.x*e.x,o.y*e.y,o.x*e.z,o.y*e.w),d.viewport(s),h.updateMatrices(l,t),r=h.getFrustum(),E(n,a,h.camera,l,this.type)}h.isPointLightShadow||this.type!==f||S(h,a),h.needsUpdate=!1}w.needsUpdate=!1,t.setRenderTarget(c,l,h)}}function ka(t,e,n){const r=n.isWebGL2,i=new function(){let e=!1;const n=new Qn;let r=null;const i=new Qn(0,0,0,0);return{setMask:function(n){r===n||e||(t.colorMask(n,n,n,n),r=n)},setLocked:function(t){e=t},setClear:function(e,r,o,s,a){!0===a&&(e*=s,r*=s,o*=s),n.set(e,r,o,s),!1===i.equals(n)&&(t.clearColor(e,r,o,s),i.copy(n))},reset:function(){e=!1,r=null,i.set(-1,0,0,0)}}},o=new function(){let e=!1,n=null,r=null,i=null;return{setTest:function(t){t?gt(2929):vt(2929)},setMask:function(r){n===r||e||(t.depthMask(r),n=r)},setFunc:function(e){if(r!==e){if(e)switch(e){case z:t.depthFunc(512);break;case G:t.depthFunc(519);break;case H:t.depthFunc(513);break;case W:t.depthFunc(515);break;case V:t.depthFunc(514);break;case Z:t.depthFunc(518);break;case Q:t.depthFunc(516);break;case X:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);r=e}},setLocked:function(t){e=t},setClear:function(e){i!==e&&(t.clearDepth(e),i=e)},reset:function(){e=!1,n=null,r=null,i=null}}},l=new function(){let e=!1,n=null,r=null,i=null,o=null,s=null,a=null,c=null,l=null;return{setTest:function(t){e||(t?gt(2960):vt(2960))},setMask:function(r){n===r||e||(t.stencilMask(r),n=r)},setFunc:function(e,n,s){r===e&&i===n&&o===s||(t.stencilFunc(e,n,s),r=e,i=n,o=s)},setOp:function(e,n,r){s===e&&a===n&&c===r||(t.stencilOp(e,n,r),s=e,a=n,c=r)},setLocked:function(t){e=t},setClear:function(e){l!==e&&(t.clearStencil(e),l=e)},reset:function(){e=!1,n=null,r=null,i=null,o=null,s=null,a=null,c=null,l=null}}};let u={},h=null,d={},f=null,p=!1,v=null,y=null,Y=null,J=null,q=null,K=null,$=null,tt=!1,et=null,nt=null,rt=null,it=null,ot=null;const st=t.getParameter(35661);let at=!1,ct=0;const lt=t.getParameter(7938);-1!==lt.indexOf("WebGL")?(ct=parseFloat(/^WebGL (\d)/.exec(lt)[1]),at=ct>=1):-1!==lt.indexOf("OpenGL ES")&&(ct=parseFloat(/^OpenGL ES (\d)/.exec(lt)[1]),at=ct>=2);let ut=null,ht={};const dt=new Qn(0,0,t.canvas.width,t.canvas.height),ft=new Qn(0,0,t.canvas.width,t.canvas.height);function pt(e,n,r){const i=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;e<r;e++)t.texImage2D(n+e,0,6408,1,1,0,6408,5121,i);return o}const mt={};function gt(e){!0!==u[e]&&(t.enable(e),u[e]=!0)}function vt(e){!1!==u[e]&&(t.disable(e),u[e]=!1)}mt[3553]=pt(3553,3553,1),mt[34067]=pt(34067,34069,6),i.setClear(0,0,0,1),o.setClear(1),l.setClear(0),gt(2929),o.setFunc(W),xt(!1),wt(a),gt(2884),bt(_);const yt={[A]:32774,[C]:32778,[E]:32779};if(r)yt[T]=32775,yt[I]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(yt[T]=t.MIN_EXT,yt[I]=t.MAX_EXT)}const _t={[P]:0,[L]:1,[R]:768,[B]:770,[U]:776,[N]:774,[D]:772,[O]:769,[k]:771,[j]:775,[F]:773};function bt(e,n,r,i,o,s,a,c){if(e!==_){if(!1===p&&(gt(3042),p=!0),e===M)o=o||n,s=s||r,a=a||i,n===y&&o===q||(t.blendEquationSeparate(yt[n],yt[o]),y=n,q=o),r===Y&&i===J&&s===K&&a===$||(t.blendFuncSeparate(_t[r],_t[i],_t[s],_t[a]),Y=r,J=i,K=s,$=a),v=e,tt=null;else if(e!==v||c!==tt){if(y===A&&q===A||(t.blendEquation(32774),y=A,q=A),c)switch(e){case b:t.blendFuncSeparate(1,771,1,771);break;case x:t.blendFunc(1,1);break;case w:t.blendFuncSeparate(0,0,769,771);break;case S:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case b:t.blendFuncSeparate(770,771,1,771);break;case x:t.blendFunc(770,1);break;case w:t.blendFunc(0,769);break;case S:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}Y=null,J=null,K=null,$=null,v=e,tt=c}}else!0===p&&(vt(3042),p=!1)}function xt(e){et!==e&&(e?t.frontFace(2304):t.frontFace(2305),et=e)}function wt(e){e!==s?(gt(2884),e!==nt&&(e===a?t.cullFace(1029):e===c?t.cullFace(1028):t.cullFace(1032))):vt(2884),nt=e}function St(e,n,r){e?(gt(32823),it===n&&ot===r||(t.polygonOffset(n,r),it=n,ot=r)):vt(32823)}function Mt(e){void 0===e&&(e=33984+st-1),ut!==e&&(t.activeTexture(e),ut=e)}return{buffers:{color:i,depth:o,stencil:l},enable:gt,disable:vt,bindFramebuffer:function(e,n){null===n&&null!==h&&(n=h),d[e]!==n&&(t.bindFramebuffer(e,n),d[e]=n)},bindXRFramebuffer:function(e){e!==h&&(t.bindFramebuffer(36160,e),h=e)},useProgram:function(e){return f!==e&&(t.useProgram(e),f=e,!0)},setBlending:bt,setMaterial:function(t,e){t.side===g?vt(2884):gt(2884);let n=t.side===m;e&&(n=!n),xt(n),t.blending===b&&!1===t.transparent?bt(_):bt(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),i.setMask(t.colorWrite);const r=t.stencilWrite;l.setTest(r),r&&(l.setMask(t.stencilWriteMask),l.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),l.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),St(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?gt(32926):vt(32926)},setFlipSided:xt,setCullFace:wt,setLineWidth:function(e){e!==rt&&(at&&t.lineWidth(e),rt=e)},setPolygonOffset:St,setScissorTest:function(t){t?gt(3089):vt(3089)},activeTexture:Mt,bindTexture:function(e,n){null===ut&&Mt();let r=ht[ut];void 0===r&&(r={type:void 0,texture:void 0},ht[ut]=r),r.type===e&&r.texture===n||(t.bindTexture(e,n||mt[e]),r.type=e,r.texture=n)},unbindTexture:function(){const e=ht[ut];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===dt.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),dt.copy(e))},viewport:function(e){!1===ft.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),ft.copy(e))},reset:function(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===r&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),u={},ut=null,ht={},h=null,d={},f=null,p=!1,v=null,y=null,Y=null,J=null,q=null,K=null,$=null,tt=!1,et=null,nt=null,rt=null,it=null,ot=null,dt.set(0,0,t.canvas.width,t.canvas.height),ft.set(0,0,t.canvas.width,t.canvas.height),i.reset(),o.reset(),l.reset()}}}function Da(t,e,n,r,i,o,s){const a=i.isWebGL2,c=i.maxTextures,l=i.maxCubemapSize,u=i.maxTextureSize,h=i.maxSamples,d=new WeakMap;let f,p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(t){}function m(t,e){return p?new OffscreenCanvas(t,e):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function g(t,e,n,r){let i=1;if((t.width>r||t.height>r)&&(i=r/Math.max(t.width,t.height)),i<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const r=e?jn.floorPowerOfTwo:Math.floor,o=r(i*t.width),s=r(i*t.height);void 0===f&&(f=m(o,s));const a=n?m(o,s):f;return a.width=o,a.height=s,a.getContext("2d").drawImage(t,0,0,o,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+s+")."),a}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function v(t){return jn.isPowerOfTwo(t.width)&&jn.isPowerOfTwo(t.height)}function y(t,e){return t.generateMipmaps&&e&&t.minFilter!==pt&&t.minFilter!==_t}function _(e,n,i,o){t.generateMipmap(e),r.get(n).__maxMipLevel=Math.log2(Math.max(i,o))}function b(n,r,i){if(!1===a)return r;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let o=r;return 6403===r&&(5126===i&&(o=33326),5131===i&&(o=33325),5121===i&&(o=33321)),6407===r&&(5126===i&&(o=34837),5131===i&&(o=34843),5121===i&&(o=32849)),6408===r&&(5126===i&&(o=34836),5131===i&&(o=34842),5121===i&&(o=32856)),33325!==o&&33326!==o&&34842!==o&&34836!==o||e.get("EXT_color_buffer_float"),o}function x(t){return t===pt||t===mt||t===vt?9728:9729}function w(t){const e=t.target;e.removeEventListener("dispose",w),M(e),e.isVideoTexture&&d.delete(e),s.memory.textures--}function S(t){const e=t.target;e.removeEventListener("dispose",S),A(e),s.memory.textures--}function M(e){const n=r.get(e);void 0!==n.__webglInit&&(t.deleteTexture(n.__webglTexture),r.remove(e))}function A(e){const n=e.texture,i=r.get(e),o=r.get(n);if(e){if(void 0!==o.__webglTexture&&t.deleteTexture(o.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(i.__webglFramebuffer[e]),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer[e]);else t.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&t.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&t.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&t.deleteRenderbuffer(i.__webglDepthRenderbuffer);r.remove(n),r.remove(e)}}let C=0;function E(t,e){const i=r.get(t);if(t.isVideoTexture&&function(t){const e=s.render.frame;d.get(t)!==e&&(d.set(t,e),t.update())}(t),t.version>0&&i.__version!==t.version){const n=t.image;if(void 0===n)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==n.complete)return void O(i,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,i.__webglTexture)}function T(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?B(i,t,e):(n.activeTexture(33984+e),n.bindTexture(34067,i.__webglTexture))}const I={[ht]:10497,[dt]:33071,[ft]:33648},P={[pt]:9728,[mt]:9984,[vt]:9986,[_t]:9729,[bt]:9985,[wt]:9987};function L(n,o,s){if(s?(t.texParameteri(n,10242,I[o.wrapS]),t.texParameteri(n,10243,I[o.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,I[o.wrapR]),t.texParameteri(n,10240,P[o.magFilter]),t.texParameteri(n,10241,P[o.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),o.wrapS===dt&&o.wrapT===dt||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,x(o.magFilter)),t.texParameteri(n,10241,x(o.minFilter)),o.minFilter!==pt&&o.minFilter!==_t&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const s=e.get("EXT_texture_filter_anisotropic");if(o.type===Pt&&!1===e.has("OES_texture_float_linear"))return;if(!1===a&&o.type===Lt&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(t.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function R(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",w),e.__webglTexture=t.createTexture(),s.memory.textures++)}function O(e,r,i){let s=3553;r.isDataTexture2DArray&&(s=35866),r.isDataTexture3D&&(s=32879),R(e,r),n.activeTexture(33984+i),n.bindTexture(s,e.__webglTexture),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const c=function(t){return!a&&(t.wrapS!==dt||t.wrapT!==dt||t.minFilter!==pt&&t.minFilter!==_t)}(r)&&!1===v(r.image),l=g(r.image,c,!1,u),h=v(l)||a,d=o.convert(r.format);let f,p=o.convert(r.type),m=b(r.internalFormat,d,p);L(s,r,h);const x=r.mipmaps;if(r.isDepthTexture)m=6402,a?m=r.type===Pt?36012:r.type===It?33190:r.type===kt?35056:33189:r.type===Pt&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===Gt&&6402===m&&r.type!==Et&&r.type!==It&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=Et,p=o.convert(r.type)),r.format===Ht&&6402===m&&(m=34041,r.type!==kt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=kt,p=o.convert(r.type))),n.texImage2D(3553,0,m,l.width,l.height,0,d,p,null);else if(r.isDataTexture)if(x.length>0&&h){for(let t=0,e=x.length;t<e;t++)f=x[t],n.texImage2D(3553,t,m,f.width,f.height,0,d,p,f.data);r.generateMipmaps=!1,e.__maxMipLevel=x.length-1}else n.texImage2D(3553,0,m,l.width,l.height,0,d,p,l.data),e.__maxMipLevel=0;else if(r.isCompressedTexture){for(let t=0,e=x.length;t<e;t++)f=x[t],r.format!==Nt&&r.format!==Ft?null!==d?n.compressedTexImage2D(3553,t,m,f.width,f.height,0,f.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,t,m,f.width,f.height,0,d,p,f.data);e.__maxMipLevel=x.length-1}else if(r.isDataTexture2DArray)n.texImage3D(35866,0,m,l.width,l.height,l.depth,0,d,p,l.data),e.__maxMipLevel=0;else if(r.isDataTexture3D)n.texImage3D(32879,0,m,l.width,l.height,l.depth,0,d,p,l.data),e.__maxMipLevel=0;else if(x.length>0&&h){for(let t=0,e=x.length;t<e;t++)f=x[t],n.texImage2D(3553,t,m,d,p,f);r.generateMipmaps=!1,e.__maxMipLevel=x.length-1}else n.texImage2D(3553,0,m,d,p,l),e.__maxMipLevel=0;y(r,h)&&_(s,r,l.width,l.height),e.__version=r.version,r.onUpdate&&r.onUpdate(r)}function B(e,r,i){if(6!==r.image.length)return;R(e,r),n.activeTexture(33984+i),n.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const s=r&&(r.isCompressedTexture||r.image[0].isCompressedTexture),c=r.image[0]&&r.image[0].isDataTexture,u=[];for(let t=0;t<6;t++)u[t]=s||c?c?r.image[t].image:r.image[t]:g(r.image[t],!1,!0,l);const h=u[0],d=v(h)||a,f=o.convert(r.format),p=o.convert(r.type),m=b(r.internalFormat,f,p);let x;if(L(34067,r,d),s){for(let t=0;t<6;t++){x=u[t].mipmaps;for(let e=0;e<x.length;e++){const i=x[e];r.format!==Nt&&r.format!==Ft?null!==f?n.compressedTexImage2D(34069+t,e,m,i.width,i.height,0,i.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+t,e,m,i.width,i.height,0,f,p,i.data)}}e.__maxMipLevel=x.length-1}else{x=r.mipmaps;for(let t=0;t<6;t++)if(c){n.texImage2D(34069+t,0,m,u[t].width,u[t].height,0,f,p,u[t].data);for(let e=0;e<x.length;e++){const r=x[e].image[t].image;n.texImage2D(34069+t,e+1,m,r.width,r.height,0,f,p,r.data)}}else{n.texImage2D(34069+t,0,m,f,p,u[t]);for(let e=0;e<x.length;e++){const r=x[e];n.texImage2D(34069+t,e+1,m,f,p,r.image[t])}}e.__maxMipLevel=x.length}y(r,d)&&_(34067,r,h.width,h.height),e.__version=r.version,r.onUpdate&&r.onUpdate(r)}function k(e,i,s,a){const c=i.texture,l=o.convert(c.format),u=o.convert(c.type),h=b(c.internalFormat,l,u);32879===a||35866===a?n.texImage3D(a,0,h,i.width,i.height,i.depth,0,l,u,null):n.texImage2D(a,0,h,i.width,i.height,0,l,u,null),n.bindFramebuffer(36160,e),t.framebufferTexture2D(36160,s,a,r.get(c).__webglTexture,0),n.bindFramebuffer(36160,null)}function D(e,n,r){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===Pt?i=36012:e.type===It&&(i=33190));const r=N(n);t.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else t.renderbufferStorage(36161,i,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){if(r){const e=N(n);t.renderbufferStorageMultisample(36161,e,35056,n.width,n.height)}else t.renderbufferStorage(36161,34041,n.width,n.height);t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=n.texture,i=o.convert(e.format),s=o.convert(e.type),a=b(e.internalFormat,i,s);if(r){const e=N(n);t.renderbufferStorageMultisample(36161,e,a,n.width,n.height)}else t.renderbufferStorage(36161,a,n.width,n.height)}t.bindRenderbuffer(36161,null)}function F(e){const i=r.get(e),o=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture){if(o)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,e),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),E(i.depthTexture,0);const o=r.get(i.depthTexture).__webglTexture;if(i.depthTexture.format===Gt)t.framebufferTexture2D(36160,36096,3553,o,0);else{if(i.depthTexture.format!==Ht)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(36160,33306,3553,o,0)}}(i.__webglFramebuffer,e)}else if(o){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(36160,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=t.createRenderbuffer(),D(i.__webglDepthbuffer[r],e,!1)}else n.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=t.createRenderbuffer(),D(i.__webglDepthbuffer,e,!1);n.bindFramebuffer(36160,null)}function N(t){return a&&t.isWebGLMultisampleRenderTarget?Math.min(h,t.samples):0}let j=!1,U=!1;this.allocateTextureUnit=function(){const t=C;return t>=c&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+c),C+=1,t},this.resetTextureUnits=function(){C=0},this.setTexture2D=E,this.setTexture2DArray=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?O(i,t,e):(n.activeTexture(33984+e),n.bindTexture(35866,i.__webglTexture))},this.setTexture3D=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?O(i,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,i.__webglTexture))},this.setTextureCube=T,this.setupRenderTarget=function(e){const i=e.texture,c=r.get(e),l=r.get(i);e.addEventListener("dispose",S),l.__webglTexture=t.createTexture(),l.__version=i.version,s.memory.textures++;const u=!0===e.isWebGLCubeRenderTarget,h=!0===e.isWebGLMultisampleRenderTarget,d=i.isDataTexture3D||i.isDataTexture2DArray,f=v(e)||a;if(!a||i.format!==Ft||i.type!==Pt&&i.type!==Lt||(i.format=Nt,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),u){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else if(c.__webglFramebuffer=t.createFramebuffer(),h)if(a){c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const r=o.convert(i.format),s=o.convert(i.type),a=b(i.internalFormat,r,s),l=N(e);t.renderbufferStorageMultisample(36161,l,a,e.width,e.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),D(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(u){n.bindTexture(34067,l.__webglTexture),L(34067,i,f);for(let t=0;t<6;t++)k(c.__webglFramebuffer[t],e,36064,34069+t);y(i,f)&&_(34067,i,e.width,e.height),n.bindTexture(34067,null)}else{let t=3553;d&&(a?t=i.isDataTexture3D?32879:35866:console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.")),n.bindTexture(t,l.__webglTexture),L(t,i,f),k(c.__webglFramebuffer,e,36064,t),y(i,f)&&_(3553,i,e.width,e.height),n.bindTexture(3553,null)}e.depthBuffer&&F(e)},this.updateRenderTargetMipmap=function(t){const e=t.texture;if(y(e,v(t)||a)){const i=t.isWebGLCubeRenderTarget?34067:3553,o=r.get(e).__webglTexture;n.bindTexture(i,o),_(i,e,t.width,t.height),n.bindTexture(i,null)}},this.updateMultisampleRenderTarget=function(e){if(e.isWebGLMultisampleRenderTarget)if(a){const i=r.get(e);n.bindFramebuffer(36008,i.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,i.__webglFramebuffer);const o=e.width,s=e.height;let a=16384;e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024),t.blitFramebuffer(0,0,o,s,0,0,o,s,a,9728),n.bindFramebuffer(36160,i.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(t,e){t&&t.isWebGLRenderTarget&&(!1===j&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),j=!0),t=t.texture),E(t,e)},this.safeSetTextureCube=function(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===U&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),U=!0),t=t.texture),T(t,e)}}function Fa(t,e,n){const r=n.isWebGL2;return{convert:function(t){let n;if(t===Mt)return 5121;if(t===Rt)return 32819;if(t===Ot)return 32820;if(t===Bt)return 33635;if(t===At)return 5120;if(t===Ct)return 5122;if(t===Et)return 5123;if(t===Tt)return 5124;if(t===It)return 5125;if(t===Pt)return 5126;if(t===Lt)return r?5131:(n=e.get("OES_texture_half_float"),null!==n?n.HALF_FLOAT_OES:null);if(t===Dt)return 6406;if(t===Ft)return 6407;if(t===Nt)return 6408;if(t===jt)return 6409;if(t===Ut)return 6410;if(t===Gt)return 6402;if(t===Ht)return 34041;if(t===Wt)return 6403;if(t===Vt)return 36244;if(t===Zt)return 33319;if(t===Qt)return 33320;if(t===Xt)return 36248;if(t===Yt)return 36249;if(t===Jt||t===qt||t===Kt||t===$t){if(n=e.get("WEBGL_compressed_texture_s3tc"),null===n)return null;if(t===Jt)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===qt)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Kt)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===$t)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(t===te||t===ee||t===ne||t===re){if(n=e.get("WEBGL_compressed_texture_pvrtc"),null===n)return null;if(t===te)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===ee)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===ne)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===re)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===ie)return n=e.get("WEBGL_compressed_texture_etc1"),null!==n?n.COMPRESSED_RGB_ETC1_WEBGL:null;if((t===oe||t===se)&&(n=e.get("WEBGL_compressed_texture_etc"),null!==n)){if(t===oe)return n.COMPRESSED_RGB8_ETC2;if(t===se)return n.COMPRESSED_RGBA8_ETC2_EAC}return t===ae||t===ce||t===le||t===ue||t===he||t===de||t===fe||t===pe||t===me||t===ge||t===ve||t===ye||t===_e||t===be||t===we||t===Se||t===Me||t===Ae||t===Ce||t===Ee||t===Te||t===Ie||t===Pe||t===Le||t===Re||t===Oe||t===Be||t===ke?(n=e.get("WEBGL_compressed_texture_astc"),null!==n?t:null):t===xe?(n=e.get("EXT_texture_compression_bptc"),null!==n?t:null):t===kt?r?34042:(n=e.get("WEBGL_depth_texture"),null!==n?n.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}Oa.prototype.isMeshDistanceMaterial=!0;class Na extends xo{constructor(t=[]){super(),this.cameras=t}}Na.prototype.isArrayCamera=!0;class ja extends $r{constructor(){super(),this.type="Group"}}function Ua(){this._targetRay=null,this._grip=null,this._hand=null}function za(t,e){const n=this,r=t.state;let i=null,o=1,s=null,a="local-floor",c=null;const l=[],u=new Map,h=new xo;h.layers.enable(1),h.viewport=new Qn;const d=new xo;d.layers.enable(2),d.viewport=new Qn;const f=[h,d],p=new Na;p.layers.enable(1),p.layers.enable(2);let m=null,g=null;function v(t){const e=u.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function y(){u.forEach((function(t,e){t.disconnect(e)})),u.clear(),m=null,g=null,r.bindXRFramebuffer(null),t.setRenderTarget(t.getRenderTarget()),M.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function _(t){const e=i.inputSources;for(let t=0;t<l.length;t++)u.set(e[t],l[t]);for(let e=0;e<t.removed.length;e++){const n=t.removed[e],r=u.get(n);r&&(r.dispatchEvent({type:"disconnected",data:n}),u.delete(n))}for(let e=0;e<t.added.length;e++){const n=t.added[e],r=u.get(n);r&&r.dispatchEvent({type:"connected",data:n})}}this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getGripSpace()},this.getHand=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){o=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return s},this.getSession=function(){return i},this.setSession=async function(t){if(i=t,null!==i){i.addEventListener("select",v),i.addEventListener("selectstart",v),i.addEventListener("selectend",v),i.addEventListener("squeeze",v),i.addEventListener("squeezestart",v),i.addEventListener("squeezeend",v),i.addEventListener("end",y),i.addEventListener("inputsourceschange",_);const t=e.getContextAttributes();!0!==t.xrCompatible&&await e.makeXRCompatible();const r={antialias:t.antialias,alpha:t.alpha,depth:t.depth,stencil:t.stencil,framebufferScaleFactor:o},c=new XRWebGLLayer(i,e,r);i.updateRenderState({baseLayer:c}),s=await i.requestReferenceSpace(a),M.setContext(i),M.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const b=new qn,x=new qn;function w(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.getCamera=function(t){p.near=d.near=h.near=t.near,p.far=d.far=h.far=t.far,m===p.near&&g===p.far||(i.updateRenderState({depthNear:p.near,depthFar:p.far}),m=p.near,g=p.far);const e=t.parent,n=p.cameras;w(p,e);for(let t=0;t<n.length;t++)w(n[t],e);t.matrixWorld.copy(p.matrixWorld),t.matrix.copy(p.matrix),t.matrix.decompose(t.position,t.quaternion,t.scale);const r=t.children;for(let t=0,e=r.length;t<e;t++)r[t].updateMatrixWorld(!0);return 2===n.length?function(t,e,n){b.setFromMatrixPosition(e.matrixWorld),x.setFromMatrixPosition(n.matrixWorld);const r=b.distanceTo(x),i=e.projectionMatrix.elements,o=n.projectionMatrix.elements,s=i[14]/(i[10]-1),a=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],h=(o[8]+1)/o[0],d=s*u,f=s*h,p=r/(-u+h),m=p*-u;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(m),t.translateZ(p),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const g=s+p,v=a+p,y=d-m,_=f+(r-m),w=c*a/v*g,S=l*a/v*g;t.projectionMatrix.makePerspective(y,_,w,S,g,v)}(p,h,d):p.projectionMatrix.copy(h.projectionMatrix),p};let S=null;const M=new Io;M.setAnimationLoop((function(t,e){if(c=e.getViewerPose(s),null!==c){const t=c.views,e=i.renderState.baseLayer;r.bindXRFramebuffer(e.framebuffer);let n=!1;t.length!==p.cameras.length&&(p.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r],o=e.getViewport(i),s=f[r];s.matrix.fromArray(i.transform.matrix),s.projectionMatrix.fromArray(i.projectionMatrix),s.viewport.set(o.x,o.y,o.width,o.height),0===r&&p.matrix.copy(s.matrix),!0===n&&p.cameras.push(s)}}const n=i.inputSources;for(let t=0;t<l.length;t++){const r=l[t],i=n[t];r.update(i,e,s)}S&&S(t,e)})),this.setAnimationLoop=function(t){S=t},this.dispose=function(){}}function Ga(t){function e(e,n){e.opacity.value=n.opacity,n.color&&e.diffuse.value.copy(n.color),n.emissive&&e.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(e.map.value=n.map),n.alphaMap&&(e.alphaMap.value=n.alphaMap),n.specularMap&&(e.specularMap.value=n.specularMap);const r=t.get(n).envMap;if(r){e.envMap.value=r,e.flipEnvMap.value=r.isCubeTexture&&r._needsFlipEnvMap?-1:1,e.reflectivity.value=n.reflectivity,e.refractionRatio.value=n.refractionRatio;const i=t.get(r).__maxMipLevel;void 0!==i&&(e.maxMipLevel.value=i)}let i,o;n.lightMap&&(e.lightMap.value=n.lightMap,e.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(e.aoMap.value=n.aoMap,e.aoMapIntensity.value=n.aoMapIntensity),n.map?i=n.map:n.specularMap?i=n.specularMap:n.displacementMap?i=n.displacementMap:n.normalMap?i=n.normalMap:n.bumpMap?i=n.bumpMap:n.roughnessMap?i=n.roughnessMap:n.metalnessMap?i=n.metalnessMap:n.alphaMap?i=n.alphaMap:n.emissiveMap?i=n.emissiveMap:n.clearcoatMap?i=n.clearcoatMap:n.clearcoatNormalMap?i=n.clearcoatNormalMap:n.clearcoatRoughnessMap&&(i=n.clearcoatRoughnessMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix)),n.aoMap?o=n.aoMap:n.lightMap&&(o=n.lightMap),void 0!==o&&(o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),e.uv2Transform.value.copy(o.matrix))}function n(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function r(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function i(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(e.emissiveMap.value=n.emissiveMap),n.bumpMap&&(e.bumpMap.value=n.bumpMap,e.bumpScale.value=n.bumpScale,n.side===m&&(e.bumpScale.value*=-1)),n.normalMap&&(e.normalMap.value=n.normalMap,e.normalScale.value.copy(n.normalScale),n.side===m&&e.normalScale.value.negate()),n.displacementMap&&(e.displacementMap.value=n.displacementMap,e.displacementScale.value=n.displacementScale,e.displacementBias.value=n.displacementBias),t.get(n).envMap&&(e.envMapIntensity.value=n.envMapIntensity)}function o(t,e){i(t,e),t.reflectivity.value=e.reflectivity,t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.sheen&&t.sheen.value.copy(e.sheen),e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,e.side===m&&t.clearcoatNormalScale.value.negate()),t.transmission.value=e.transmission,e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap)}function s(t,e){e.matcap&&(t.matcap.value=e.matcap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function a(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,c,l,u){c.isMeshBasicMaterial?e(t,c):c.isMeshLambertMaterial?(e(t,c),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(t,c)):c.isMeshToonMaterial?(e(t,c),r(t,c)):c.isMeshPhongMaterial?(e(t,c),n(t,c)):c.isMeshStandardMaterial?(e(t,c),c.isMeshPhysicalMaterial?o(t,c):i(t,c)):c.isMeshMatcapMaterial?(e(t,c),s(t,c)):c.isMeshDepthMaterial?(e(t,c),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,c)):c.isMeshDistanceMaterial?(e(t,c),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,c)):c.isMeshNormalMaterial?(e(t,c),a(t,c)):c.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,c),c.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,c)):c.isPointsMaterial?function(t,e,n,r){let i;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*n,t.scale.value=.5*r,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.map?i=e.map:e.alphaMap&&(i=e.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uvTransform.value.copy(i.matrix))}(t,c,l,u):c.isSpriteMaterial?function(t,e){let n;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.map?n=e.map:e.alphaMap&&(n=e.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}(t,c):c.isShadowMaterial?(t.color.value.copy(c.color),t.opacity.value=c.opacity):c.isShaderMaterial&&(c.uniformsNeedUpdate=!1)}}}function Ha(t){const e=void 0!==(t=t||{}).canvas?t.canvas:function(){const t=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return t.style.display="block",t}(),n=void 0!==t.context?t.context:null,r=void 0!==t.alpha&&t.alpha,i=void 0===t.depth||t.depth,o=void 0===t.stencil||t.stencil,s=void 0!==t.antialias&&t.antialias,a=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,l=void 0!==t.powerPreference?t.powerPreference:"default",u=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let h=null,d=null;const f=[],p=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=Je,this.physicallyCorrectLights=!1,this.toneMapping=K,this.toneMappingExposure=1;const m=this;let g=!1,v=0,y=0,_=null,b=-1,x=null;const w=new Qn,S=new Qn;let M=null,A=e.width,C=e.height,E=1,T=null,I=null;const P=new Qn(0,0,A,C),L=new Qn(0,0,A,C);let R=!1;const O=new To;let B=!1,k=!1;const D=new Tr,F=new qn,N={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function j(){return null===_?E:1}let U,z,G,H,W,V,Z,Q,X,Y,J,q,$,tt,et,nt,rt,it,ot,st,at,ct,lt=n;function ut(t,n){for(let r=0;r<t.length;r++){const i=t[r],o=e.getContext(i,n);if(null!==o)return o}return null}try{const t={alpha:r,depth:i,stencil:o,antialias:s,premultipliedAlpha:a,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(e.addEventListener("webglcontextlost",ft,!1),e.addEventListener("webglcontextrestored",pt,!1),null===lt){const e=["webgl2","webgl","experimental-webgl"];if(!0===m.isWebGL1Renderer&&e.shift(),lt=ut(e,t),null===lt)throw ut(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===lt.getShaderPrecisionFormat&&(lt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function ht(){U=new zo(lt),z=new No(lt,U,t),U.init(z),at=new Fa(lt,U,z),G=new ka(lt,U,z),H=new Wo(lt),W=new xa,V=new Da(lt,U,G,W,z,at,H),Z=new Uo(m),Q=new Po(lt,z),ct=new Do(lt,U,Q,z),X=new Go(lt,Q,H,ct),Y=new Xo(lt,X,Q,H),it=new Qo(lt),et=new jo(W),J=new ba(m,Z,U,z,ct,et),q=new Ga(W),$=new Aa(W),tt=new La(U,z),rt=new ko(m,Z,G,Y,a),nt=new Ba(m,Y,z),ot=new Fo(lt,U,H,z),st=new Ho(lt,U,H,z),H.programs=J.programs,m.capabilities=z,m.extensions=U,m.properties=W,m.renderLists=$,m.shadowMap=nt,m.state=G,m.info=H}ht();const dt=new za(m,lt);function ft(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),g=!0}function pt(){console.log("THREE.WebGLRenderer: Context Restored."),g=!1;const t=H.autoReset,e=nt.enabled,n=nt.autoUpdate,r=nt.needsUpdate,i=nt.type;ht(),H.autoReset=t,nt.enabled=e,nt.autoUpdate=n,nt.needsUpdate=r,nt.type=i}function mt(t){const e=t.target;e.removeEventListener("dispose",mt),function(t){(function(t){const e=W.get(t).programs;void 0!==e&&e.forEach((function(t){J.releaseProgram(t)}))})(t),W.remove(t)}(e)}this.xr=dt,this.getContext=function(){return lt},this.getContextAttributes=function(){return lt.getContextAttributes()},this.forceContextLoss=function(){const t=U.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=U.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return E},this.setPixelRatio=function(t){void 0!==t&&(E=t,this.setSize(A,C,!1))},this.getSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),t=new Un),t.set(A,C)},this.setSize=function(t,n,r){dt.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(A=t,C=n,e.width=Math.floor(t*E),e.height=Math.floor(n*E),!1!==r&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),t=new Un),t.set(A*E,C*E).floor()},this.setDrawingBufferSize=function(t,n,r){A=t,C=n,E=r,e.width=Math.floor(t*r),e.height=Math.floor(n*r),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),t=new Qn),t.copy(w)},this.getViewport=function(t){return t.copy(P)},this.setViewport=function(t,e,n,r){t.isVector4?P.set(t.x,t.y,t.z,t.w):P.set(t,e,n,r),G.viewport(w.copy(P).multiplyScalar(E).floor())},this.getScissor=function(t){return t.copy(L)},this.setScissor=function(t,e,n,r){t.isVector4?L.set(t.x,t.y,t.z,t.w):L.set(t,e,n,r),G.scissor(S.copy(L).multiplyScalar(E).floor())},this.getScissorTest=function(){return R},this.setScissorTest=function(t){G.setScissorTest(R=t)},this.setOpaqueSort=function(t){T=t},this.setTransparentSort=function(t){I=t},this.getClearColor=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getClearColor() now requires a Color as an argument"),t=new Si),t.copy(rt.getClearColor())},this.setClearColor=function(){rt.setClearColor.apply(rt,arguments)},this.getClearAlpha=function(){return rt.getClearAlpha()},this.setClearAlpha=function(){rt.setClearAlpha.apply(rt,arguments)},this.clear=function(t,e,n){let r=0;(void 0===t||t)&&(r|=16384),(void 0===e||e)&&(r|=256),(void 0===n||n)&&(r|=1024),lt.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",ft,!1),e.removeEventListener("webglcontextrestored",pt,!1),$.dispose(),tt.dispose(),W.dispose(),Z.dispose(),Y.dispose(),ct.dispose(),dt.dispose(),dt.removeEventListener("sessionstart",vt),dt.removeEventListener("sessionend",yt),_t.stop()},this.renderBufferImmediate=function(t,e){ct.initAttributes();const n=W.get(t);t.hasPositions&&!n.position&&(n.position=lt.createBuffer()),t.hasNormals&&!n.normal&&(n.normal=lt.createBuffer()),t.hasUvs&&!n.uv&&(n.uv=lt.createBuffer()),t.hasColors&&!n.color&&(n.color=lt.createBuffer());const r=e.getAttributes();t.hasPositions&&(lt.bindBuffer(34962,n.position),lt.bufferData(34962,t.positionArray,35048),ct.enableAttribute(r.position),lt.vertexAttribPointer(r.position,3,5126,!1,0,0)),t.hasNormals&&(lt.bindBuffer(34962,n.normal),lt.bufferData(34962,t.normalArray,35048),ct.enableAttribute(r.normal),lt.vertexAttribPointer(r.normal,3,5126,!1,0,0)),t.hasUvs&&(lt.bindBuffer(34962,n.uv),lt.bufferData(34962,t.uvArray,35048),ct.enableAttribute(r.uv),lt.vertexAttribPointer(r.uv,2,5126,!1,0,0)),t.hasColors&&(lt.bindBuffer(34962,n.color),lt.bufferData(34962,t.colorArray,35048),ct.enableAttribute(r.color),lt.vertexAttribPointer(r.color,3,5126,!1,0,0)),ct.disableUnusedAttributes(),lt.drawArrays(4,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,n,r,i,o){null===e&&(e=N);const s=i.isMesh&&i.matrixWorld.determinant()<0,a=Ct(t,e,r,i);G.setMaterial(r,s);let c=n.index;const l=n.attributes.position;if(null===c){if(void 0===l||0===l.count)return}else if(0===c.count)return;let u,h=1;!0===r.wireframe&&(c=X.getWireframeAttribute(n),h=2),(r.morphTargets||r.morphNormals)&&it.update(i,n,r,a),ct.setup(i,r,a,n,c);let d=ot;null!==c&&(u=Q.get(c),d=st,d.setIndex(u));const f=null!==c?c.count:l.count,p=n.drawRange.start*h,m=n.drawRange.count*h,g=null!==o?o.start*h:0,v=null!==o?o.count*h:1/0,y=Math.max(p,g),_=Math.min(f,p+m,g+v)-1,b=Math.max(0,_-y+1);if(0!==b){if(i.isMesh)!0===r.wireframe?(G.setLineWidth(r.wireframeLinewidth*j()),d.setMode(1)):d.setMode(4);else if(i.isLine){let t=r.linewidth;void 0===t&&(t=1),G.setLineWidth(t*j()),i.isLineSegments?d.setMode(1):i.isLineLoop?d.setMode(2):d.setMode(3)}else i.isPoints?d.setMode(0):i.isSprite&&d.setMode(4);if(i.isInstancedMesh)d.renderInstances(y,b,i.count);else if(n.isInstancedBufferGeometry){const t=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(y,b,t)}else d.render(y,b)}},this.compile=function(t,e){d=tt.get(t),d.init(),t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(d.pushLight(t),t.castShadow&&d.pushShadow(t))})),d.setupLights(),t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let r=0;r<n.length;r++)St(n[r],t,e);else St(n,t,e)}))};let gt=null;function vt(){_t.stop()}function yt(){_t.start()}const _t=new Io;function bt(t,e,n,r){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)d.pushLight(t),t.castShadow&&d.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||O.intersectsSprite(t)){r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);const e=Y.update(t),i=t.material;i.visible&&h.push(t,e,i,n,F.z,null)}}else if(t.isImmediateRenderObject)r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D),h.push(t,null,t.material,n,F.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==H.render.frame&&(t.skeleton.update(),t.skeleton.frame=H.render.frame),!t.frustumCulled||O.intersectsObject(t))){r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);const e=Y.update(t),i=t.material;if(Array.isArray(i)){const r=e.groups;for(let o=0,s=r.length;o<s;o++){const s=r[o],a=i[s.materialIndex];a&&a.visible&&h.push(t,e,a,n,F.z,s)}}else i.visible&&h.push(t,e,i,n,F.z,null)}const i=t.children;for(let t=0,o=i.length;t<o;t++)bt(i[t],e,n,r)}function xt(t,e,n){const r=!0===e.isScene?e.overrideMaterial:null;for(let i=0,o=t.length;i<o;i++){const o=t[i],s=o.object,a=o.geometry,c=null===r?o.material:r,l=o.group;if(n.isArrayCamera){const t=n.cameras;for(let n=0,r=t.length;n<r;n++){const r=t[n];s.layers.test(r.layers)&&(G.viewport(w.copy(r.viewport)),d.setupLightsView(r),wt(s,e,r,a,c,l))}}else wt(s,e,n,a,c,l)}}function wt(t,e,n,r,i,o){if(t.onBeforeRender(m,e,n,r,i,o),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){const r=Ct(n,e,i,t);G.setMaterial(i),ct.reset(),function(t,e){t.render((function(t){m.renderBufferImmediate(t,e)}))}(t,r)}else m.renderBufferDirect(n,e,r,i,t,o);t.onAfterRender(m,e,n,r,i,o)}function St(t,e,n){!0!==e.isScene&&(e=N);const r=W.get(t),i=d.state.lights,o=d.state.shadowsArray,s=i.state.version,a=J.getParameters(t,i.state,o,e,n),c=J.getProgramCacheKey(a);let l=r.programs;r.environment=t.isMeshStandardMaterial?e.environment:null,r.fog=e.fog,r.envMap=Z.get(t.envMap||r.environment),void 0===l&&(t.addEventListener("dispose",mt),l=new Map,r.programs=l);let u=l.get(c);if(void 0!==u){if(r.currentProgram===u&&r.lightsStateVersion===s)return At(t,a),u}else a.uniforms=J.getUniforms(t),t.onBeforeCompile(a,m),u=J.acquireProgram(a,c),l.set(c,u),r.uniforms=a.uniforms;const h=r.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(h.clippingPlanes=et.uniform),At(t,a),r.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),r.lightsStateVersion=s,r.needsLights&&(h.ambientLightColor.value=i.state.ambient,h.lightProbe.value=i.state.probe,h.directionalLights.value=i.state.directional,h.directionalLightShadows.value=i.state.directionalShadow,h.spotLights.value=i.state.spot,h.spotLightShadows.value=i.state.spotShadow,h.rectAreaLights.value=i.state.rectArea,h.ltc_1.value=i.state.rectAreaLTC1,h.ltc_2.value=i.state.rectAreaLTC2,h.pointLights.value=i.state.point,h.pointLightShadows.value=i.state.pointShadow,h.hemisphereLights.value=i.state.hemi,h.directionalShadowMap.value=i.state.directionalShadowMap,h.directionalShadowMatrix.value=i.state.directionalShadowMatrix,h.spotShadowMap.value=i.state.spotShadowMap,h.spotShadowMatrix.value=i.state.spotShadowMatrix,h.pointShadowMap.value=i.state.pointShadowMap,h.pointShadowMatrix.value=i.state.pointShadowMatrix);const f=u.getUniforms(),p=Ks.seqWithValue(f.seq,h);return r.currentProgram=u,r.uniformsList=p,u}function At(t,e){const n=W.get(t);n.outputEncoding=e.outputEncoding,n.instancing=e.instancing,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas}function Ct(t,e,n,r){!0!==e.isScene&&(e=N),V.resetTextureUnits();const i=e.fog,o=n.isMeshStandardMaterial?e.environment:null,s=null===_?m.outputEncoding:_.texture.encoding,a=Z.get(n.envMap||o),c=!0===n.vertexColors&&r.geometry.attributes.color&&4===r.geometry.attributes.color.itemSize,l=W.get(n),u=d.state.lights;if(!0===B&&(!0===k||t!==x)){const e=t===x&&n.id===b;et.setState(n,t,e)}let h=!1;n.version===l.__version?l.needsLights&&l.lightsStateVersion!==u.state.version||l.outputEncoding!==s||r.isInstancedMesh&&!1===l.instancing?h=!0:r.isInstancedMesh||!0!==l.instancing?l.envMap!==a||n.fog&&l.fog!==i?h=!0:void 0===l.numClippingPlanes||l.numClippingPlanes===et.numPlanes&&l.numIntersection===et.numIntersection?l.vertexAlphas!==c&&(h=!0):h=!0:h=!0:(h=!0,l.__version=n.version);let f=l.currentProgram;!0===h&&(f=St(n,e,r));let p=!1,g=!1,v=!1;const y=f.getUniforms(),w=l.uniforms;if(G.useProgram(f.program)&&(p=!0,g=!0,v=!0),n.id!==b&&(b=n.id,g=!0),p||x!==t){if(y.setValue(lt,"projectionMatrix",t.projectionMatrix),z.logarithmicDepthBuffer&&y.setValue(lt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),x!==t&&(x=t,g=!0,v=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshStandardMaterial||n.envMap){const e=y.map.cameraPosition;void 0!==e&&e.setValue(lt,F.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial)&&y.setValue(lt,"isOrthographic",!0===t.isOrthographicCamera),(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.isShadowMaterial||n.skinning)&&y.setValue(lt,"viewMatrix",t.matrixWorldInverse)}if(n.skinning){y.setOptional(lt,r,"bindMatrix"),y.setOptional(lt,r,"bindMatrixInverse");const t=r.skeleton;if(t){const e=t.bones;if(z.floatVertexTextures){if(null===t.boneTexture){let n=Math.sqrt(4*e.length);n=jn.ceilPowerOfTwo(n),n=Math.max(n,4);const r=new Float32Array(n*n*4);r.set(t.boneMatrices);const i=new Ao(r,n,n,Nt,Pt);t.boneMatrices=r,t.boneTexture=i,t.boneTextureSize=n}y.setValue(lt,"boneTexture",t.boneTexture,V),y.setValue(lt,"boneTextureSize",t.boneTextureSize)}else y.setOptional(lt,t,"boneMatrices")}}return(g||l.receiveShadow!==r.receiveShadow)&&(l.receiveShadow=r.receiveShadow,y.setValue(lt,"receiveShadow",r.receiveShadow)),g&&(y.setValue(lt,"toneMappingExposure",m.toneMappingExposure),l.needsLights&&function(t,e){t.ambientLightColor.needsUpdate=e,t.lightProbe.needsUpdate=e,t.directionalLights.needsUpdate=e,t.directionalLightShadows.needsUpdate=e,t.pointLights.needsUpdate=e,t.pointLightShadows.needsUpdate=e,t.spotLights.needsUpdate=e,t.spotLightShadows.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}(w,v),i&&n.fog&&q.refreshFogUniforms(w,i),q.refreshMaterialUniforms(w,n,E,C),Ks.upload(lt,l.uniformsList,w,V)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(Ks.upload(lt,l.uniformsList,w,V),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&y.setValue(lt,"center",r.center),y.setValue(lt,"modelViewMatrix",r.modelViewMatrix),y.setValue(lt,"normalMatrix",r.normalMatrix),y.setValue(lt,"modelMatrix",r.matrixWorld),f}_t.setAnimationLoop((function(t){gt&&gt(t)})),"undefined"!=typeof window&&_t.setContext(window),this.setAnimationLoop=function(t){gt=t,dt.setAnimationLoop(t),null===t?_t.stop():_t.start()},dt.addEventListener("sessionstart",vt),dt.addEventListener("sessionend",yt),this.render=function(t,e){let n,r;if(void 0!==arguments[2]&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),n=arguments[2]),void 0!==arguments[3]&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),r=arguments[3]),void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===g)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===dt.enabled&&!0===dt.isPresenting&&(e=dt.getCamera(e)),!0===t.isScene&&t.onBeforeRender(m,t,e,n||_),d=tt.get(t,p.length),d.init(),p.push(d),D.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),O.setFromProjectionMatrix(D),k=this.localClippingEnabled,B=et.init(this.clippingPlanes,k,e),h=$.get(t,f.length),h.init(),f.push(h),bt(t,e,0,m.sortObjects),h.finish(),!0===m.sortObjects&&h.sort(T,I),!0===B&&et.beginShadows();const i=d.state.shadowsArray;nt.render(i,t,e),d.setupLights(),d.setupLightsView(e),!0===B&&et.endShadows(),!0===this.info.autoReset&&this.info.reset(),void 0!==n&&this.setRenderTarget(n),rt.render(h,t,e,r);const o=h.opaque,s=h.transparent;o.length>0&&xt(o,t,e),s.length>0&&xt(s,t,e),null!==_&&(V.updateRenderTargetMipmap(_),V.updateMultisampleRenderTarget(_)),!0===t.isScene&&t.onAfterRender(m,t,e),G.buffers.depth.setTest(!0),G.buffers.depth.setMask(!0),G.buffers.color.setMask(!0),G.setPolygonOffset(!1),ct.resetDefaultState(),b=-1,x=null,p.pop(),d=p.length>0?p[p.length-1]:null,f.pop(),h=f.length>0?f[f.length-1]:null},this.getActiveCubeFace=function(){return v},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return _},this.setRenderTarget=function(t,e=0,n=0){_=t,v=e,y=n,t&&void 0===W.get(t).__webglFramebuffer&&V.setupRenderTarget(t);let r=null,i=!1,o=!1;if(t){const n=t.texture;(n.isDataTexture3D||n.isDataTexture2DArray)&&(o=!0);const s=W.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=s[e],i=!0):r=t.isWebGLMultisampleRenderTarget?W.get(t).__webglMultisampledFramebuffer:s,w.copy(t.viewport),S.copy(t.scissor),M=t.scissorTest}else w.copy(P).multiplyScalar(E).floor(),S.copy(L).multiplyScalar(E).floor(),M=R;if(G.bindFramebuffer(36160,r),G.viewport(w),G.scissor(S),G.setScissorTest(M),i){const r=W.get(t.texture);lt.framebufferTexture2D(36160,36064,34069+e,r.__webglTexture,n)}else if(o){const r=W.get(t.texture),i=e||0;lt.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}},this.readRenderTargetPixels=function(t,e,n,r,i,o,s){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let a=W.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==s&&(a=a[s]),a){G.bindFramebuffer(36160,a);try{const s=t.texture,a=s.format,c=s.type;if(a!==Nt&&at.convert(a)!==lt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const l=c===Lt&&(U.has("EXT_color_buffer_half_float")||z.isWebGL2&&U.has("EXT_color_buffer_float"));if(!(c===Mt||at.convert(c)===lt.getParameter(35738)||c===Pt&&(z.isWebGL2||U.has("OES_texture_float")||U.has("WEBGL_color_buffer_float"))||l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===lt.checkFramebufferStatus(36160)?e>=0&&e<=t.width-r&&n>=0&&n<=t.height-i&&lt.readPixels(e,n,r,i,at.convert(a),at.convert(c),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const t=null!==_?W.get(_).__webglFramebuffer:null;G.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),o=Math.floor(e.image.height*r),s=at.convert(e.format);V.setTexture2D(e,0),lt.copyTexImage2D(3553,n,s,t.x,t.y,i,o,0),G.unbindTexture()},this.copyTextureToTexture=function(t,e,n,r=0){const i=e.image.width,o=e.image.height,s=at.convert(n.format),a=at.convert(n.type);V.setTexture2D(n,0),lt.pixelStorei(37440,n.flipY),lt.pixelStorei(37441,n.premultiplyAlpha),lt.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?lt.texSubImage2D(3553,r,t.x,t.y,i,o,s,a,e.image.data):e.isCompressedTexture?lt.compressedTexSubImage2D(3553,r,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,s,e.mipmaps[0].data):lt.texSubImage2D(3553,r,t.x,t.y,s,a,e.image),0===r&&n.generateMipmaps&&lt.generateMipmap(3553),G.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,r,i=0){if(m.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const{width:o,height:s,data:a}=n.image,c=at.convert(r.format),l=at.convert(r.type);let u;if(r.isDataTexture3D)V.setTexture3D(r,0),u=32879;else{if(!r.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");V.setTexture2DArray(r,0),u=35866}lt.pixelStorei(37440,r.flipY),lt.pixelStorei(37441,r.premultiplyAlpha),lt.pixelStorei(3317,r.unpackAlignment);const h=lt.getParameter(3314),d=lt.getParameter(32878),f=lt.getParameter(3316),p=lt.getParameter(3315),g=lt.getParameter(32877);lt.pixelStorei(3314,o),lt.pixelStorei(32878,s),lt.pixelStorei(3316,t.min.x),lt.pixelStorei(3315,t.min.y),lt.pixelStorei(32877,t.min.z),lt.texSubImage3D(u,i,e.x,e.y,e.z,t.max.x-t.min.x+1,t.max.y-t.min.y+1,t.max.z-t.min.z+1,c,l,a),lt.pixelStorei(3314,h),lt.pixelStorei(32878,d),lt.pixelStorei(3316,f),lt.pixelStorei(3315,p),lt.pixelStorei(32877,g),0===i&&r.generateMipmaps&&lt.generateMipmap(u),G.unbindTexture()},this.initTexture=function(t){V.setTexture2D(t,0),G.unbindTexture()},this.resetState=function(){v=0,y=0,_=null,G.reset(),ct.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}ja.prototype.isGroup=!0,Object.assign(Ua.prototype,{constructor:Ua,getHandSpace:function(){return null===this._hand&&(this._hand=new ja,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand},getTargetRaySpace:function(){return null===this._targetRay&&(this._targetRay=new ja,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1),this._targetRay},getGripSpace:function(){return null===this._grip&&(this._grip=new ja,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1),this._grip},dispatchEvent:function(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this},disconnect:function(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this},update:function(t,e,n){let r=null,i=null,o=null;const s=this._targetRay,a=this._grip,c=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState)if(null!==s&&(r=e.getPose(t.targetRaySpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale))),c&&t.hand){o=!0;for(const r of t.hand.values()){const t=e.getJointPose(r,n);if(void 0===c.joints[r.jointName]){const t=new ja;t.matrixAutoUpdate=!1,t.visible=!1,c.joints[r.jointName]=t,c.add(t)}const i=c.joints[r.jointName];null!==t&&(i.matrix.fromArray(t.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=t.radius),i.visible=null!==t}const r=c.joints["index-finger-tip"],i=c.joints["thumb-tip"],s=r.position.distanceTo(i.position),a=.02,l=.005;c.inputState.pinching&&s>a+l?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!c.inputState.pinching&&s<=a-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==a&&t.gripSpace&&(i=e.getPose(t.gripSpace,n),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale)));return null!==s&&(s.visible=null!==r),null!==a&&(a.visible=null!==i),null!==c&&(c.visible=null!==o),this}}),Object.assign(za.prototype,Dn.prototype);class Wa extends Ha{}Wa.prototype.isWebGL1Renderer=!0;class Va{constructor(t,e=25e-5){this.name="",this.color=new Si(t),this.density=e}clone(){return new Va(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}Va.prototype.isFogExp2=!0;class Za{constructor(t,e=1,n=1e3){this.name="",this.color=new Si(t),this.near=e,this.far=n}clone(){return new Za(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}Za.prototype.isFog=!0;class Qa extends $r{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.background&&(e.object.background=this.background.toJSON(t)),null!==this.environment&&(e.object.environment=this.environment.toJSON(t)),null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}function Xa(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=An,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=jn.generateUUID()}Qa.prototype.isScene=!0,Object.defineProperty(Xa.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Xa.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.stride,n*=e.stride;for(let r=0,i=this.stride;r<i;r++)this.array[t+r]=e.array[n+r];return this},set:function(t,e=0){return this.array.set(t,e),this},clone:function(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=jn.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new Xa(new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),this.stride);return e.setUsage(this.usage),e},onUpload:function(t){return this.onUploadCallback=t,this},toJSON:function(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=jn.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});const Ya=new qn;function Ja(t,e,n,r){this.name="",this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===r}Object.defineProperties(Ja.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},needsUpdate:{set:function(t){this.data.needsUpdate=t}}}),Object.assign(Ja.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(t){for(let e=0,n=this.data.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.applyMatrix4(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},applyNormalMatrix:function(t){for(let e=0,n=this.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.applyNormalMatrix(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},transformDirection:function(t){for(let e=0,n=this.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.transformDirection(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=r,this},setXYZW:function(t,e,n,r,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=r,this.data.array[t+3]=i,this},clone:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return new Ei(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new Ja(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}});class qa extends gi{constructor(t){super(),this.type="SpriteMaterial",this.color=new Si(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this}}let Ka;qa.prototype.isSpriteMaterial=!0;const $a=new qn,tc=new qn,ec=new qn,nc=new Un,rc=new Un,ic=new Tr,oc=new qn,sc=new qn,ac=new qn,cc=new Un,lc=new Un,uc=new Un;class hc extends $r{constructor(t){if(super(),this.type="Sprite",void 0===Ka){Ka=new Xi;const t=new Xa(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);Ka.setIndex([0,1,2,0,2,3]),Ka.setAttribute("position",new Ja(t,3,0,!1)),Ka.setAttribute("uv",new Ja(t,2,3,!1))}this.geometry=Ka,this.material=void 0!==t?t:new qa,this.center=new Un(.5,.5)}raycast(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),tc.setFromMatrixScale(this.matrixWorld),ic.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),ec.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&tc.multiplyScalar(-ec.z);const n=this.material.rotation;let r,i;0!==n&&(i=Math.cos(n),r=Math.sin(n));const o=this.center;dc(oc.set(-.5,-.5,0),ec,o,tc,r,i),dc(sc.set(.5,-.5,0),ec,o,tc,r,i),dc(ac.set(.5,.5,0),ec,o,tc,r,i),cc.set(0,0),lc.set(1,0),uc.set(1,1);let s=t.ray.intersectTriangle(oc,sc,ac,!1,$a);if(null===s&&(dc(sc.set(-.5,.5,0),ec,o,tc,r,i),lc.set(0,1),s=t.ray.intersectTriangle(oc,ac,sc,!1,$a),null===s))return;const a=t.ray.origin.distanceTo($a);a<t.near||a>t.far||e.push({distance:a,point:$a.clone(),uv:pi.getUV($a,oc,sc,ac,cc,lc,uc,new Un),face:null,object:this})}copy(t){return super.copy(t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function dc(t,e,n,r,i,o){nc.subVectors(t,n).addScalar(.5).multiply(r),void 0!==i?(rc.x=o*nc.x-i*nc.y,rc.y=i*nc.x+o*nc.y):rc.copy(nc),t.copy(e),t.x+=rc.x,t.y+=rc.y,t.applyMatrix4(ic)}hc.prototype.isSprite=!0;const fc=new qn,pc=new qn;class mc extends $r{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(t){super.copy(t,!1);const e=t.levels;for(let t=0,n=e.length;t<n;t++){const n=e[t];this.addLevel(n.object.clone(),n.distance)}return this.autoUpdate=t.autoUpdate,this}addLevel(t,e=0){e=Math.abs(e);const n=this.levels;let r;for(r=0;r<n.length&&!(e<n[r].distance);r++);return n.splice(r,0,{distance:e,object:t}),this.add(t),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(t){const e=this.levels;if(e.length>0){let n,r;for(n=1,r=e.length;n<r&&!(t<e[n].distance);n++);return e[n-1].object}return null}raycast(t,e){if(this.levels.length>0){fc.setFromMatrixPosition(this.matrixWorld);const n=t.ray.origin.distanceTo(fc);this.getObjectForDistance(n).raycast(t,e)}}update(t){const e=this.levels;if(e.length>1){fc.setFromMatrixPosition(t.matrixWorld),pc.setFromMatrixPosition(this.matrixWorld);const n=fc.distanceTo(pc)/t.zoom;let r,i;for(e[0].object.visible=!0,r=1,i=e.length;r<i&&n>=e[r].distance;r++)e[r-1].object.visible=!1,e[r].object.visible=!0;for(this._currentLevel=r-1;r<i;r++)e[r].object.visible=!1}}toJSON(t){const e=super.toJSON(t);!1===this.autoUpdate&&(e.object.autoUpdate=!1),e.object.levels=[];const n=this.levels;for(let t=0,r=n.length;t<r;t++){const r=n[t];e.object.levels.push({object:r.object.uuid,distance:r.distance})}return e}}const gc=new qn,vc=new Qn,yc=new Qn,_c=new qn,bc=new Tr;function xc(t,e){fo.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Tr,this.bindMatrixInverse=new Tr}function wc(){$r.call(this),this.type="Bone"}xc.prototype=Object.assign(Object.create(fo.prototype),{constructor:xc,isSkinnedMesh:!0,copy:function(t){return fo.prototype.copy.call(this,t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this},bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){const t=new Qn,e=this.geometry.attributes.skinWeight;for(let n=0,r=e.count;n<r;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);const r=1/t.manhattanLength();r!==1/0?t.multiplyScalar(r):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}},updateMatrixWorld:function(t){fo.prototype.updateMatrixWorld.call(this,t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},boneTransform:function(t,e){const n=this.skeleton,r=this.geometry;vc.fromBufferAttribute(r.attributes.skinIndex,t),yc.fromBufferAttribute(r.attributes.skinWeight,t),gc.fromBufferAttribute(r.attributes.position,t).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let t=0;t<4;t++){const r=yc.getComponent(t);if(0!==r){const i=vc.getComponent(t);bc.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),e.addScaledVector(_c.copy(gc).applyMatrix4(bc),r)}}return e.applyMatrix4(this.bindMatrixInverse)}}),wc.prototype=Object.assign(Object.create($r.prototype),{constructor:wc,isBone:!0});const Sc=new Tr,Mc=new Tr;class Ac{constructor(t=[],e=[]){this.uuid=jn.generateUUID(),this.bones=t.slice(0),this.boneInverses=e,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const t=this.bones,e=this.boneInverses;if(this.boneMatrices=new Float32Array(16*t.length),0===e.length)this.calculateInverses();else if(t.length!==e.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new Tr)}}calculateInverses(){this.boneInverses.length=0;for(let t=0,e=this.bones.length;t<e;t++){const e=new Tr;this.bones[t]&&e.copy(this.bones[t].matrixWorld).invert(),this.boneInverses.push(e)}}pose(){for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&e.matrixWorld.copy(this.boneInverses[t]).invert()}for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&(e.parent&&e.parent.isBone?(e.matrix.copy(e.parent.matrixWorld).invert(),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))}}update(){const t=this.bones,e=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let r=0,i=t.length;r<i;r++){const i=t[r]?t[r].matrixWorld:Mc;Sc.multiplyMatrices(i,e[r]),Sc.toArray(n,16*r)}null!==r&&(r.needsUpdate=!0)}clone(){return new Ac(this.bones,this.boneInverses)}getBoneByName(t){for(let e=0,n=this.bones.length;e<n;e++){const n=this.bones[e];if(n.name===t)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(t,e){this.uuid=t.uuid;for(let n=0,r=t.bones.length;n<r;n++){const r=t.bones[n];let i=e[r];void 0===i&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),i=new wc),this.bones.push(i),this.boneInverses.push((new Tr).fromArray(t.boneInverses[n]))}return this.init(),this}toJSON(){const t={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};t.uuid=this.uuid;const e=this.bones,n=this.boneInverses;for(let r=0,i=e.length;r<i;r++){const i=e[r];t.bones.push(i.uuid);const o=n[r];t.boneInverses.push(o.toArray())}return t}}const Cc=new Tr,Ec=new Tr,Tc=[],Ic=new fo;function Pc(t,e,n){fo.call(this,t,e),this.instanceMatrix=new Ei(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}Pc.prototype=Object.assign(Object.create(fo.prototype),{constructor:Pc,isInstancedMesh:!0,copy:function(t){return fo.prototype.copy.call(this,t),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this},getColorAt:function(t,e){e.fromArray(this.instanceColor.array,3*t)},getMatrixAt:function(t,e){e.fromArray(this.instanceMatrix.array,16*t)},raycast:function(t,e){const n=this.matrixWorld,r=this.count;if(Ic.geometry=this.geometry,Ic.material=this.material,void 0!==Ic.material)for(let i=0;i<r;i++){this.getMatrixAt(i,Cc),Ec.multiplyMatrices(n,Cc),Ic.matrixWorld=Ec,Ic.raycast(t,Tc);for(let t=0,n=Tc.length;t<n;t++){const n=Tc[t];n.instanceId=i,n.object=this,e.push(n)}Tc.length=0}},setColorAt:function(t,e){null===this.instanceColor&&(this.instanceColor=new Ei(new Float32Array(3*this.count),3)),e.toArray(this.instanceColor.array,3*t)},setMatrixAt:function(t,e){e.toArray(this.instanceMatrix.array,16*t)},updateMorphTargets:function(){},dispose:function(){this.dispatchEvent({type:"dispose"})}});class Lc extends gi{constructor(t){super(),this.type="LineBasicMaterial",this.color=new Si(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.morphTargets=t.morphTargets,this}}Lc.prototype.isLineBasicMaterial=!0;const Rc=new qn,Oc=new qn,Bc=new Tr,kc=new Er,Dc=new _r;function Fc(t=new Xi,e=new Lc){$r.call(this),this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}Fc.prototype=Object.assign(Object.create($r.prototype),{constructor:Fc,isLine:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[0];for(let t=1,r=e.count;t<r;t++)Rc.fromBufferAttribute(e,t-1),Oc.fromBufferAttribute(e,t),n[t]=n[t-1],n[t]+=Rc.distanceTo(Oc);t.setAttribute("lineDistance",new Di(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this},raycast:function(t,e){const n=this.geometry,r=this.matrixWorld,i=t.params.Line.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Dc.copy(n.boundingSphere),Dc.applyMatrix4(r),Dc.radius+=i,!1===t.ray.intersectsSphere(Dc))return;Bc.copy(r).invert(),kc.copy(t.ray).applyMatrix4(Bc);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=s*s,c=new qn,l=new qn,u=new qn,h=new qn,d=this.isLineSegments?2:1;if(n.isBufferGeometry){const r=n.index,i=n.attributes.position;if(null!==r){const n=Math.max(0,o.start),s=Math.min(r.count,o.start+o.count);for(let o=n,f=s-1;o<f;o+=d){const n=r.getX(o),s=r.getX(o+1);if(c.fromBufferAttribute(i,n),l.fromBufferAttribute(i,s),kc.distanceSqToSegment(c,l,h,u)>a)continue;h.applyMatrix4(this.matrixWorld);const d=t.ray.origin.distanceTo(h);d<t.near||d>t.far||e.push({distance:d,point:u.clone().applyMatrix4(this.matrixWorld),index:o,face:null,faceIndex:null,object:this})}}else for(let n=Math.max(0,r.start),r=Math.min(i.count,r.start+r.count)-1;n<r;n+=d){if(c.fromBufferAttribute(i,n),l.fromBufferAttribute(i,n+1),kc.distanceSqToSegment(c,l,h,u)>a)continue;h.applyMatrix4(this.matrixWorld);const r=t.ray.origin.distanceTo(h);r<t.near||r>t.far||e.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});const Nc=new qn,jc=new qn;function Uc(t,e){Fc.call(this,t,e),this.type="LineSegments"}Uc.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Uc,isLineSegments:!0,computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[];for(let t=0,r=e.count;t<r;t+=2)Nc.fromBufferAttribute(e,t),jc.fromBufferAttribute(e,t+1),n[t]=0===t?0:n[t-1],n[t+1]=n[t]+Nc.distanceTo(jc);t.setAttribute("lineDistance",new Di(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}});class zc extends Fc{constructor(t,e){super(t,e),this.type="LineLoop"}}zc.prototype.isLineLoop=!0;class Gc extends gi{constructor(t){super(),this.type="PointsMaterial",this.color=new Si(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this}}Gc.prototype.isPointsMaterial=!0;const Hc=new Tr,Wc=new Er,Vc=new _r,Zc=new qn;function Qc(t=new Xi,e=new Gc){$r.call(this),this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}function Xc(t,e,n,r,i,o,s){const a=Wc.distanceSqToPoint(t);if(a<n){const n=new qn;Wc.closestPointToPoint(t,n),n.applyMatrix4(r);const c=i.ray.origin.distanceTo(n);if(c<i.near||c>i.far)return;o.push({distance:c,distanceToRay:Math.sqrt(a),point:n,index:e,face:null,object:s})}}Qc.prototype=Object.assign(Object.create($r.prototype),{constructor:Qc,isPoints:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},raycast:function(t,e){const n=this.geometry,r=this.matrixWorld,i=t.params.Points.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Vc.copy(n.boundingSphere),Vc.applyMatrix4(r),Vc.radius+=i,!1===t.ray.intersectsSphere(Vc))return;Hc.copy(r).invert(),Wc.copy(t.ray).applyMatrix4(Hc);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=s*s;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position;if(null!==i){const n=Math.max(0,o.start),c=Math.min(i.count,o.start+o.count);for(let o=n,l=c;o<l;o++){const n=i.getX(o);Zc.fromBufferAttribute(s,n),Xc(Zc,n,a,r,t,e,this)}}else{const n=Math.max(0,o.start),i=Math.min(s.count,o.start+o.count);for(let o=n,c=i;o<c;o++)Zc.fromBufferAttribute(s,o),Xc(Zc,o,a,r,t,e,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});class Yc extends Vn{constructor(t,e,n,r,i,o,s,a,c){super(t,e,n,r,i,o,s,a,c),this.format=void 0!==s?s:Ft,this.minFilter=void 0!==o?o:_t,this.magFilter=void 0!==i?i:_t,this.generateMipmaps=!1;const l=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback((function e(){l.needsUpdate=!0,t.requestVideoFrameCallback(e)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image;!1=="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}Yc.prototype.isVideoTexture=!0;class Jc extends Vn{constructor(t,e,n,r,i,o,s,a,c,l,u,h){super(null,o,s,a,c,l,r,i,u,h),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}Jc.prototype.isCompressedTexture=!0;class qc extends Vn{constructor(t,e,n,r,i,o,s,a,c){super(t,e,n,r,i,o,s,a,c),this.needsUpdate=!0}}qc.prototype.isCanvasTexture=!0;class Kc extends Vn{constructor(t,e,n,r,i,o,s,a,c,l){if((l=void 0!==l?l:Gt)!==Gt&&l!==Ht)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===Gt&&(n=Et),void 0===n&&l===Ht&&(n=kt),super(null,r,i,o,s,a,l,n,c),this.image={width:t,height:e},this.magFilter=void 0!==s?s:pt,this.minFilter=void 0!==a?a:pt,this.flipY=!1,this.generateMipmaps=!1}}Kc.prototype.isDepthTexture=!0;class $c extends Xi{constructor(t=1,e=8,n=0,r=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:r},e=Math.max(3,e);const i=[],o=[],s=[],a=[],c=new qn,l=new Un;o.push(0,0,0),s.push(0,0,1),a.push(.5,.5);for(let i=0,u=3;i<=e;i++,u+=3){const h=n+i/e*r;c.x=t*Math.cos(h),c.y=t*Math.sin(h),o.push(c.x,c.y,c.z),s.push(0,0,1),l.x=(o[u]/t+1)/2,l.y=(o[u+1]/t+1)/2,a.push(l.x,l.y)}for(let t=1;t<=e;t++)i.push(t,t+1,0);this.setIndex(i),this.setAttribute("position",new Di(o,3)),this.setAttribute("normal",new Di(s,3)),this.setAttribute("uv",new Di(a,2))}}class tl extends Xi{constructor(t=1,e=1,n=1,r=8,i=1,o=!1,s=0,a=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:r,heightSegments:i,openEnded:o,thetaStart:s,thetaLength:a};const c=this;r=Math.floor(r),i=Math.floor(i);const l=[],u=[],h=[],d=[];let f=0;const p=[],m=n/2;let g=0;function v(n){const i=f,o=new Un,p=new qn;let v=0;const y=!0===n?t:e,_=!0===n?1:-1;for(let t=1;t<=r;t++)u.push(0,m*_,0),h.push(0,_,0),d.push(.5,.5),f++;const b=f;for(let t=0;t<=r;t++){const e=t/r*a+s,n=Math.cos(e),i=Math.sin(e);p.x=y*i,p.y=m*_,p.z=y*n,u.push(p.x,p.y,p.z),h.push(0,_,0),o.x=.5*n+.5,o.y=.5*i*_+.5,d.push(o.x,o.y),f++}for(let t=0;t<r;t++){const e=i+t,r=b+t;!0===n?l.push(r,r+1,e):l.push(r+1,r,e),v+=3}c.addGroup(g,v,!0===n?1:2),g+=v}(function(){const o=new qn,v=new qn;let y=0;const _=(e-t)/n;for(let c=0;c<=i;c++){const l=[],g=c/i,y=g*(e-t)+t;for(let t=0;t<=r;t++){const e=t/r,i=e*a+s,c=Math.sin(i),p=Math.cos(i);v.x=y*c,v.y=-g*n+m,v.z=y*p,u.push(v.x,v.y,v.z),o.set(c,_,p).normalize(),h.push(o.x,o.y,o.z),d.push(e,1-g),l.push(f++)}p.push(l)}for(let t=0;t<r;t++)for(let e=0;e<i;e++){const n=p[e][t],r=p[e+1][t],i=p[e+1][t+1],o=p[e][t+1];l.push(n,r,o),l.push(r,i,o),y+=6}c.addGroup(g,y,0),g+=y})(),!1===o&&(t>0&&v(!0),e>0&&v(!1)),this.setIndex(l),this.setAttribute("position",new Di(u,3)),this.setAttribute("normal",new Di(h,3)),this.setAttribute("uv",new Di(d,2))}}class el extends tl{constructor(t=1,e=1,n=8,r=1,i=!1,o=0,s=2*Math.PI){super(0,t,e,n,r,i,o,s),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:s}}}class nl extends Xi{constructor(t,e,n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:r};const i=[],o=[];function s(t,e,n,r){const i=r+1,o=[];for(let r=0;r<=i;r++){o[r]=[];const s=t.clone().lerp(n,r/i),a=e.clone().lerp(n,r/i),c=i-r;for(let t=0;t<=c;t++)o[r][t]=0===t&&r===i?s:s.clone().lerp(a,t/c)}for(let t=0;t<i;t++)for(let e=0;e<2*(i-t)-1;e++){const n=Math.floor(e/2);e%2==0?(a(o[t][n+1]),a(o[t+1][n]),a(o[t][n])):(a(o[t][n+1]),a(o[t+1][n+1]),a(o[t+1][n]))}}function a(t){i.push(t.x,t.y,t.z)}function c(e,n){const r=3*e;n.x=t[r+0],n.y=t[r+1],n.z=t[r+2]}function l(t,e,n,r){r<0&&1===t.x&&(o[e]=t.x-1),0===n.x&&0===n.z&&(o[e]=r/2/Math.PI+.5)}function u(t){return Math.atan2(t.z,-t.x)}function h(t){return Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))}(function(t){const n=new qn,r=new qn,i=new qn;for(let o=0;o<e.length;o+=3)c(e[o+0],n),c(e[o+1],r),c(e[o+2],i),s(n,r,i,t)})(r),function(t){const e=new qn;for(let n=0;n<i.length;n+=3)e.x=i[n+0],e.y=i[n+1],e.z=i[n+2],e.normalize().multiplyScalar(t),i[n+0]=e.x,i[n+1]=e.y,i[n+2]=e.z}(n),function(){const t=new qn;for(let e=0;e<i.length;e+=3){t.x=i[e+0],t.y=i[e+1],t.z=i[e+2];const n=u(t)/2/Math.PI+.5,r=h(t)/Math.PI+.5;o.push(n,1-r)}(function(){const t=new qn,e=new qn,n=new qn,r=new qn,s=new Un,a=new Un,c=new Un;for(let h=0,d=0;h<i.length;h+=9,d+=6){t.set(i[h+0],i[h+1],i[h+2]),e.set(i[h+3],i[h+4],i[h+5]),n.set(i[h+6],i[h+7],i[h+8]),s.set(o[d+0],o[d+1]),a.set(o[d+2],o[d+3]),c.set(o[d+4],o[d+5]),r.copy(t).add(e).add(n).divideScalar(3);const f=u(r);l(s,d+0,t,f),l(a,d+2,e,f),l(c,d+4,n,f)}})(),function(){for(let t=0;t<o.length;t+=6){const e=o[t+0],n=o[t+2],r=o[t+4],i=Math.max(e,n,r),s=Math.min(e,n,r);i>.9&&s<.1&&(e<.2&&(o[t+0]+=1),n<.2&&(o[t+2]+=1),r<.2&&(o[t+4]+=1))}}()}(),this.setAttribute("position",new Di(i,3)),this.setAttribute("normal",new Di(i.slice(),3)),this.setAttribute("uv",new Di(o,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}}class rl extends nl{constructor(t=1,e=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e}}}const il=new qn,ol=new qn,sl=new qn,al=new pi;class cl extends Xi{constructor(t,e){if(super(),this.type="EdgesGeometry",this.parameters={thresholdAngle:e},e=void 0!==e?e:1,!0===t.isGeometry)return void console.error("THREE.EdgesGeometry no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");const n=Math.pow(10,4),r=Math.cos(jn.DEG2RAD*e),i=t.getIndex(),o=t.getAttribute("position"),s=i?i.count:o.count,a=[0,0,0],c=["a","b","c"],l=new Array(3),u={},h=[];for(let t=0;t<s;t+=3){i?(a[0]=i.getX(t),a[1]=i.getX(t+1),a[2]=i.getX(t+2)):(a[0]=t,a[1]=t+1,a[2]=t+2);const{a:e,b:s,c:d}=al;if(e.fromBufferAttribute(o,a[0]),s.fromBufferAttribute(o,a[1]),d.fromBufferAttribute(o,a[2]),al.getNormal(sl),l[0]=`${Math.round(e.x*n)},${Math.round(e.y*n)},${Math.round(e.z*n)}`,l[1]=`${Math.round(s.x*n)},${Math.round(s.y*n)},${Math.round(s.z*n)}`,l[2]=`${Math.round(d.x*n)},${Math.round(d.y*n)},${Math.round(d.z*n)}`,l[0]!==l[1]&&l[1]!==l[2]&&l[2]!==l[0])for(let t=0;t<3;t++){const e=(t+1)%3,n=l[t],i=l[e],o=al[c[t]],s=al[c[e]],d=`${n}_${i}`,f=`${i}_${n}`;f in u&&u[f]?(sl.dot(u[f].normal)<=r&&(h.push(o.x,o.y,o.z),h.push(s.x,s.y,s.z)),u[f]=null):d in u||(u[d]={index0:a[t],index1:a[e],normal:sl.clone()})}}for(const t in u)if(u[t]){const{index0:e,index1:n}=u[t];il.fromBufferAttribute(o,e),ol.fromBufferAttribute(o,n),h.push(il.x,il.y,il.z),h.push(ol.x,ol.y,ol.z)}this.setAttribute("position",new Di(h,3))}}const ll=function(t,e,n){n=n||2;const r=e&&e.length,i=r?e[0]*n:t.length;let o=ul(t,0,i,n,!0);const s=[];if(!o||o.next===o.prev)return s;let a,c,l,u,h,d,f;if(r&&(o=function(t,e,n,r){const i=[];let o,s,a,c,l;for(o=0,s=e.length;o<s;o++)a=e[o]*r,c=o<s-1?e[o+1]*r:t.length,l=ul(t,a,c,r,!1),l===l.next&&(l.steiner=!0),i.push(xl(l));for(i.sort(vl),o=0;o<i.length;o++)yl(i[o],n),n=hl(n,n.next);return n}(t,e,o,n)),t.length>80*n){a=l=t[0],c=u=t[1];for(let e=n;e<i;e+=n)h=t[e],d=t[e+1],h<a&&(a=h),d<c&&(c=d),h>l&&(l=h),d>u&&(u=d);f=Math.max(l-a,u-c),f=0!==f?1/f:0}return dl(o,s,n,a,c,f),s};function ul(t,e,n,r,i){let o,s;if(i===function(t,e,n,r){let i=0;for(let o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}(t,e,n,r)>0)for(o=e;o<n;o+=r)s=Ll(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=Ll(o,t[o],t[o+1],s);return s&&Al(s,s.next)&&(Rl(s),s=s.next),s}function hl(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!Al(r,r.next)&&0!==Ml(r.prev,r,r.next))r=r.next;else{if(Rl(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function dl(t,e,n,r,i,o,s){if(!t)return;!s&&o&&function(t,e,n,r){let i=t;do{null===i.z&&(i.z=bl(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,s,a,c,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<l&&(a++,r=r.nextZ,r);e++);for(c=l;a>0||c>0&&r;)0!==a&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,r,i,o);let a,c,l=t;for(;t.prev!==t.next;)if(a=t.prev,c=t.next,o?pl(t,r,i,o):fl(t))e.push(a.i/n),e.push(t.i/n),e.push(c.i/n),Rl(t),t=c.next,l=c.next;else if((t=c)===l){s?1===s?dl(t=ml(hl(t),e,n),e,n,r,i,o,2):2===s&&gl(t,e,n,r,i,o):dl(hl(t),e,n,r,i,o,1);break}}function fl(t){const e=t.prev,n=t,r=t.next;if(Ml(e,n,r)>=0)return!1;let i=t.next.next;for(;i!==t.prev;){if(wl(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ml(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function pl(t,e,n,r){const i=t.prev,o=t,s=t.next;if(Ml(i,o,s)>=0)return!1;const a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,c=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,l=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,u=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=bl(a,c,e,n,r),d=bl(l,u,e,n,r);let f=t.prevZ,p=t.nextZ;for(;f&&f.z>=h&&p&&p.z<=d;){if(f!==t.prev&&f!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ml(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==t.prev&&p!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ml(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=h;){if(f!==t.prev&&f!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ml(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ml(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function ml(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!Al(i,o)&&Cl(i,r,r.next,o)&&Il(i,o)&&Il(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Rl(r),Rl(r.next),r=t=o),r=r.next}while(r!==t);return hl(r)}function gl(t,e,n,r,i,o){let s=t;do{let t=s.next.next;for(;t!==s.prev;){if(s.i!==t.i&&Sl(s,t)){let a=Pl(s,t);return s=hl(s,s.next),a=hl(a,a.next),dl(s,e,n,r,i,o),void dl(a,e,n,r,i,o)}t=t.next}s=s.next}while(s!==t)}function vl(t,e){return t.x-e.x}function yl(t,e){if(e=function(t,e){let n=e;const r=t.x,i=t.y;let o,s=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const t=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>s){if(s=t,t===r){if(i===n.y)return n;if(i===n.next.y)return n.next}o=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!o)return null;if(r===s)return o;const a=o,c=o.x,l=o.y;let u,h=1/0;n=o;do{r>=n.x&&n.x>=c&&r!==n.x&&wl(i<l?r:s,i,c,l,i<l?s:r,i,n.x,n.y)&&(u=Math.abs(i-n.y)/(r-n.x),Il(n,t)&&(u<h||u===h&&(n.x>o.x||n.x===o.x&&_l(o,n)))&&(o=n,h=u)),n=n.next}while(n!==a);return o}(t,e)){const n=Pl(e,t);hl(e,e.next),hl(n,n.next)}}function _l(t,e){return Ml(t.prev,t,e.prev)<0&&Ml(e.next,t,t.next)<0}function bl(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function xl(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function wl(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function Sl(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Cl(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Il(t,e)&&Il(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(Ml(t.prev,t,e.prev)||Ml(t,e.prev,e))||Al(t,e)&&Ml(t.prev,t,t.next)>0&&Ml(e.prev,e,e.next)>0)}function Ml(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Al(t,e){return t.x===e.x&&t.y===e.y}function Cl(t,e,n,r){const i=Tl(Ml(t,e,n)),o=Tl(Ml(t,e,r)),s=Tl(Ml(n,r,t)),a=Tl(Ml(n,r,e));return i!==o&&s!==a||!(0!==i||!El(t,n,e))||!(0!==o||!El(t,r,e))||!(0!==s||!El(n,t,r))||!(0!==a||!El(n,e,r))}function El(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Tl(t){return t>0?1:t<0?-1:0}function Il(t,e){return Ml(t.prev,t,t.next)<0?Ml(t,e,t.next)>=0&&Ml(t,t.prev,e)>=0:Ml(t,e,t.prev)<0||Ml(t,t.next,e)<0}function Pl(t,e){const n=new Ol(t.i,t.x,t.y),r=new Ol(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Ll(t,e,n,r){const i=new Ol(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Rl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ol(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}const Bl={area:function(t){const e=t.length;let n=0;for(let r=e-1,i=0;i<e;r=i++)n+=t[r].x*t[i].y-t[i].x*t[r].y;return.5*n},isClockWise:function(t){return Bl.area(t)<0},triangulateShape:function(t,e){const n=[],r=[],i=[];kl(t),Dl(n,t);let o=t.length;e.forEach(kl);for(let t=0;t<e.length;t++)r.push(o),o+=e[t].length,Dl(n,e[t]);const s=ll(n,r);for(let t=0;t<s.length;t+=3)i.push(s.slice(t,t+3));return i}};function kl(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function Dl(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class Fl extends Xi{constructor(t,e){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const n=this,r=[],i=[];for(let e=0,n=t.length;e<n;e++)o(t[e]);function o(t){const o=[],s=void 0!==e.curveSegments?e.curveSegments:12,a=void 0!==e.steps?e.steps:1;let c=void 0!==e.depth?e.depth:100,l=void 0===e.bevelEnabled||e.bevelEnabled,u=void 0!==e.bevelThickness?e.bevelThickness:6,h=void 0!==e.bevelSize?e.bevelSize:u-2,d=void 0!==e.bevelOffset?e.bevelOffset:0,f=void 0!==e.bevelSegments?e.bevelSegments:3;const p=e.extrudePath,m=void 0!==e.UVGenerator?e.UVGenerator:Nl;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),c=e.amount);let g,v,y,_,b,x=!1;p&&(g=p.getSpacedPoints(a),x=!0,l=!1,v=p.computeFrenetFrames(a,!1),y=new qn,_=new qn,b=new qn),l||(f=0,u=0,h=0,d=0);const w=t.extractPoints(s);let S=w.shape;const M=w.holes;if(!Bl.isClockWise(S)){S=S.reverse();for(let t=0,e=M.length;t<e;t++){const e=M[t];Bl.isClockWise(e)&&(M[t]=e.reverse())}}const A=Bl.triangulateShape(S,M),C=S;for(let t=0,e=M.length;t<e;t++){const e=M[t];S=S.concat(e)}function E(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}const T=S.length,I=A.length;function P(t,e,n){let r,i,o;const s=t.x-e.x,a=t.y-e.y,c=n.x-t.x,l=n.y-t.y,u=s*s+a*a,h=s*l-a*c;if(Math.abs(h)>Number.EPSILON){const h=Math.sqrt(u),d=Math.sqrt(c*c+l*l),f=e.x-a/h,p=e.y+s/h,m=((n.x-l/d-f)*l-(n.y+c/d-p)*c)/(s*l-a*c);r=f+s*m-t.x,i=p+a*m-t.y;const g=r*r+i*i;if(g<=2)return new Un(r,i);o=Math.sqrt(g/2)}else{let t=!1;s>Number.EPSILON?c>Number.EPSILON&&(t=!0):s<-Number.EPSILON?c<-Number.EPSILON&&(t=!0):Math.sign(a)===Math.sign(l)&&(t=!0),t?(r=-a,i=s,o=Math.sqrt(u)):(r=s,i=a,o=Math.sqrt(u/2))}return new Un(r/o,i/o)}const L=[];for(let t=0,e=C.length,n=e-1,r=t+1;t<e;t++,n++,r++)n===e&&(n=0),r===e&&(r=0),L[t]=P(C[t],C[n],C[r]);const R=[];let O,B=L.concat();for(let t=0,e=M.length;t<e;t++){const e=M[t];O=[];for(let t=0,n=e.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),O[t]=P(e[t],e[r],e[i]);R.push(O),B=B.concat(O)}for(let t=0;t<f;t++){const e=t/f,n=u*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=C.length;t<e;t++){const e=E(C[t],L[t],r);F(e.x,e.y,-n)}for(let t=0,e=M.length;t<e;t++){const e=M[t];O=R[t];for(let t=0,i=e.length;t<i;t++){const i=E(e[t],O[t],r);F(i.x,i.y,-n)}}}const k=h+d;for(let t=0;t<T;t++){const e=l?E(S[t],B[t],k):S[t];x?(_.copy(v.normals[0]).multiplyScalar(e.x),y.copy(v.binormals[0]).multiplyScalar(e.y),b.copy(g[0]).add(_).add(y),F(b.x,b.y,b.z)):F(e.x,e.y,0)}for(let t=1;t<=a;t++)for(let e=0;e<T;e++){const n=l?E(S[e],B[e],k):S[e];x?(_.copy(v.normals[t]).multiplyScalar(n.x),y.copy(v.binormals[t]).multiplyScalar(n.y),b.copy(g[t]).add(_).add(y),F(b.x,b.y,b.z)):F(n.x,n.y,c/a*t)}for(let t=f-1;t>=0;t--){const e=t/f,n=u*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=C.length;t<e;t++){const e=E(C[t],L[t],r);F(e.x,e.y,c+n)}for(let t=0,e=M.length;t<e;t++){const e=M[t];O=R[t];for(let t=0,i=e.length;t<i;t++){const i=E(e[t],O[t],r);x?F(i.x,i.y+g[a-1].y,g[a-1].x+n):F(i.x,i.y,c+n)}}}function D(t,e){let n=t.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=t.length-1);for(let t=0,n=a+2*f;t<n;t++){const n=T*t,o=T*(t+1);j(e+r+n,e+i+n,e+i+o,e+r+o)}}}function F(t,e,n){o.push(t),o.push(e),o.push(n)}function N(t,e,i){U(t),U(e),U(i);const o=r.length/3,s=m.generateTopUV(n,r,o-3,o-2,o-1);z(s[0]),z(s[1]),z(s[2])}function j(t,e,i,o){U(t),U(e),U(o),U(e),U(i),U(o);const s=r.length/3,a=m.generateSideWallUV(n,r,s-6,s-3,s-2,s-1);z(a[0]),z(a[1]),z(a[3]),z(a[1]),z(a[2]),z(a[3])}function U(t){r.push(o[3*t+0]),r.push(o[3*t+1]),r.push(o[3*t+2])}function z(t){i.push(t.x),i.push(t.y)}(function(){const t=r.length/3;if(l){let t=0,e=T*t;for(let t=0;t<I;t++){const n=A[t];N(n[2]+e,n[1]+e,n[0]+e)}t=a+2*f,e=T*t;for(let t=0;t<I;t++){const n=A[t];N(n[0]+e,n[1]+e,n[2]+e)}}else{for(let t=0;t<I;t++){const e=A[t];N(e[2],e[1],e[0])}for(let t=0;t<I;t++){const e=A[t];N(e[0]+T*a,e[1]+T*a,e[2]+T*a)}}n.addGroup(t,r.length/3-t,0)})(),function(){const t=r.length/3;let e=0;D(C,e),e+=C.length;for(let t=0,n=M.length;t<n;t++){const n=M[t];D(n,e),e+=n.length}n.addGroup(t,r.length/3-t,1)}()}this.setAttribute("position",new Di(r,3)),this.setAttribute("uv",new Di(i,2)),this.computeVertexNormals()}toJSON(){const t=Xi.prototype.toJSON.call(this);return function(t,e,n){if(n.shapes=[],Array.isArray(t))for(let e=0,r=t.length;e<r;e++){const r=t[e];n.shapes.push(r.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}(this.parameters.shapes,this.parameters.options,t)}}const Nl={generateTopUV:function(t,e,n,r,i){const o=e[3*n],s=e[3*n+1],a=e[3*r],c=e[3*r+1],l=e[3*i],u=e[3*i+1];return[new Un(o,s),new Un(a,c),new Un(l,u)]},generateSideWallUV:function(t,e,n,r,i,o){const s=e[3*n],a=e[3*n+1],c=e[3*n+2],l=e[3*r],u=e[3*r+1],h=e[3*r+2],d=e[3*i],f=e[3*i+1],p=e[3*i+2],m=e[3*o],g=e[3*o+1],v=e[3*o+2];return Math.abs(a-u)<.01?[new Un(s,1-c),new Un(l,1-h),new Un(d,1-p),new Un(m,1-v)]:[new Un(a,1-c),new Un(u,1-h),new Un(f,1-p),new Un(g,1-v)]}};class jl extends nl{constructor(t=1,e=0){const n=(1+Math.sqrt(5))/2;super([-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e}}}class Ul extends Xi{constructor(t,e=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:r},e=Math.floor(e),r=jn.clamp(r,0,2*Math.PI);const i=[],o=[],s=[],a=1/e,c=new qn,l=new Un;for(let i=0;i<=e;i++){const u=n+i*a*r,h=Math.sin(u),d=Math.cos(u);for(let n=0;n<=t.length-1;n++)c.x=t[n].x*h,c.y=t[n].y,c.z=t[n].x*d,o.push(c.x,c.y,c.z),l.x=i/e,l.y=n/(t.length-1),s.push(l.x,l.y)}for(let n=0;n<e;n++)for(let e=0;e<t.length-1;e++){const r=e+n*t.length,o=r,s=r+t.length,a=r+t.length+1,c=r+1;i.push(o,s,c),i.push(s,a,c)}if(this.setIndex(i),this.setAttribute("position",new Di(o,3)),this.setAttribute("uv",new Di(s,2)),this.computeVertexNormals(),r===2*Math.PI){const n=this.attributes.normal.array,r=new qn,i=new qn,o=new qn,s=e*t.length*3;for(let e=0,a=0;e<t.length;e++,a+=3)r.x=n[a+0],r.y=n[a+1],r.z=n[a+2],i.x=n[s+a+0],i.y=n[s+a+1],i.z=n[s+a+2],o.addVectors(r,i).normalize(),n[a+0]=n[s+a+0]=o.x,n[a+1]=n[s+a+1]=o.y,n[a+2]=n[s+a+2]=o.z}}}class zl extends nl{constructor(t=1,e=0){super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}}}function Gl(t,e,n){Xi.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n};const r=[],i=[],o=[],s=[],a=1e-5,c=new qn,l=new qn,u=new qn,h=new qn,d=new qn;t.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");const f=e+1;for(let r=0;r<=n;r++){const f=r/n;for(let n=0;n<=e;n++){const r=n/e;t(r,f,l),i.push(l.x,l.y,l.z),r-a>=0?(t(r-a,f,u),h.subVectors(l,u)):(t(r+a,f,u),h.subVectors(u,l)),f-a>=0?(t(r,f-a,u),d.subVectors(l,u)):(t(r,f+a,u),d.subVectors(u,l)),c.crossVectors(h,d).normalize(),o.push(c.x,c.y,c.z),s.push(r,f)}}for(let t=0;t<n;t++)for(let n=0;n<e;n++){const e=t*f+n,i=t*f+n+1,o=(t+1)*f+n+1,s=(t+1)*f+n;r.push(e,i,s),r.push(i,o,s)}this.setIndex(r),this.setAttribute("position",new Di(i,3)),this.setAttribute("normal",new Di(o,3)),this.setAttribute("uv",new Di(s,2))}Gl.prototype=Object.create(Xi.prototype),Gl.prototype.constructor=Gl;class Hl extends Xi{constructor(t=.5,e=1,n=8,r=1,i=0,o=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:o},n=Math.max(3,n);const s=[],a=[],c=[],l=[];let u=t;const h=(e-t)/(r=Math.max(1,r)),d=new qn,f=new Un;for(let t=0;t<=r;t++){for(let t=0;t<=n;t++){const r=i+t/n*o;d.x=u*Math.cos(r),d.y=u*Math.sin(r),a.push(d.x,d.y,d.z),c.push(0,0,1),f.x=(d.x/e+1)/2,f.y=(d.y/e+1)/2,l.push(f.x,f.y)}u+=h}for(let t=0;t<r;t++){const e=t*(n+1);for(let t=0;t<n;t++){const r=t+e,i=r,o=r+n+1,a=r+n+2,c=r+1;s.push(i,o,c),s.push(o,a,c)}}this.setIndex(s),this.setAttribute("position",new Di(a,3)),this.setAttribute("normal",new Di(c,3)),this.setAttribute("uv",new Di(l,2))}}class Wl extends Xi{constructor(t,e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const n=[],r=[],i=[],o=[];let s=0,a=0;if(!1===Array.isArray(t))c(t);else for(let e=0;e<t.length;e++)c(t[e]),this.addGroup(s,a,e),s+=a,a=0;function c(t){const s=r.length/3,c=t.extractPoints(e);let l=c.shape;const u=c.holes;!1===Bl.isClockWise(l)&&(l=l.reverse());for(let t=0,e=u.length;t<e;t++){const e=u[t];!0===Bl.isClockWise(e)&&(u[t]=e.reverse())}const h=Bl.triangulateShape(l,u);for(let t=0,e=u.length;t<e;t++){const e=u[t];l=l.concat(e)}for(let t=0,e=l.length;t<e;t++){const e=l[t];r.push(e.x,e.y,0),i.push(0,0,1),o.push(e.x,e.y)}for(let t=0,e=h.length;t<e;t++){const e=h[t],r=e[0]+s,i=e[1]+s,o=e[2]+s;n.push(r,i,o),a+=3}}this.setIndex(n),this.setAttribute("position",new Di(r,3)),this.setAttribute("normal",new Di(i,3)),this.setAttribute("uv",new Di(o,2))}toJSON(){const t=Xi.prototype.toJSON.call(this);return function(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,r=t.length;n<r;n++){const r=t[n];e.shapes.push(r.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}}class Vl extends Xi{constructor(t=1,e=8,n=6,r=0,i=2*Math.PI,o=0,s=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:r,phiLength:i,thetaStart:o,thetaLength:s},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const a=Math.min(o+s,Math.PI);let c=0;const l=[],u=new qn,h=new qn,d=[],f=[],p=[],m=[];for(let d=0;d<=n;d++){const g=[],v=d/n;let y=0;0==d&&0==o?y=.5/e:d==n&&a==Math.PI&&(y=-.5/e);for(let n=0;n<=e;n++){const a=n/e;u.x=-t*Math.cos(r+a*i)*Math.sin(o+v*s),u.y=t*Math.cos(o+v*s),u.z=t*Math.sin(r+a*i)*Math.sin(o+v*s),f.push(u.x,u.y,u.z),h.copy(u).normalize(),p.push(h.x,h.y,h.z),m.push(a+y,1-v),g.push(c++)}l.push(g)}for(let t=0;t<n;t++)for(let r=0;r<e;r++){const e=l[t][r+1],i=l[t][r],s=l[t+1][r],c=l[t+1][r+1];(0!==t||o>0)&&d.push(e,i,c),(t!==n-1||a<Math.PI)&&d.push(i,s,c)}this.setIndex(d),this.setAttribute("position",new Di(f,3)),this.setAttribute("normal",new Di(p,3)),this.setAttribute("uv",new Di(m,2))}}class Zl extends nl{constructor(t=1,e=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e}}}class Ql extends Fl{constructor(t,e={}){const n=e.font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new Xi;const r=n.generateShapes(t,e.size);e.depth=void 0!==e.height?e.height:50,void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(r,e),this.type="TextGeometry"}}class Xl extends Xi{constructor(t=1,e=.4,n=8,r=6,i=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:r,arc:i},n=Math.floor(n),r=Math.floor(r);const o=[],s=[],a=[],c=[],l=new qn,u=new qn,h=new qn;for(let o=0;o<=n;o++)for(let d=0;d<=r;d++){const f=d/r*i,p=o/n*Math.PI*2;u.x=(t+e*Math.cos(p))*Math.cos(f),u.y=(t+e*Math.cos(p))*Math.sin(f),u.z=e*Math.sin(p),s.push(u.x,u.y,u.z),l.x=t*Math.cos(f),l.y=t*Math.sin(f),h.subVectors(u,l).normalize(),a.push(h.x,h.y,h.z),c.push(d/r),c.push(o/n)}for(let t=1;t<=n;t++)for(let e=1;e<=r;e++){const n=(r+1)*t+e-1,i=(r+1)*(t-1)+e-1,s=(r+1)*(t-1)+e,a=(r+1)*t+e;o.push(n,i,a),o.push(i,s,a)}this.setIndex(o),this.setAttribute("position",new Di(s,3)),this.setAttribute("normal",new Di(a,3)),this.setAttribute("uv",new Di(c,2))}}class Yl extends Xi{constructor(t=1,e=.4,n=64,r=8,i=2,o=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:r,p:i,q:o},n=Math.floor(n),r=Math.floor(r);const s=[],a=[],c=[],l=[],u=new qn,h=new qn,d=new qn,f=new qn,p=new qn,m=new qn,g=new qn;for(let s=0;s<=n;++s){const y=s/n*i*Math.PI*2;v(y,i,o,t,d),v(y+.01,i,o,t,f),m.subVectors(f,d),g.addVectors(f,d),p.crossVectors(m,g),g.crossVectors(p,m),p.normalize(),g.normalize();for(let t=0;t<=r;++t){const i=t/r*Math.PI*2,o=-e*Math.cos(i),f=e*Math.sin(i);u.x=d.x+(o*g.x+f*p.x),u.y=d.y+(o*g.y+f*p.y),u.z=d.z+(o*g.z+f*p.z),a.push(u.x,u.y,u.z),h.subVectors(u,d).normalize(),c.push(h.x,h.y,h.z),l.push(s/n),l.push(t/r)}}for(let t=1;t<=n;t++)for(let e=1;e<=r;e++){const n=(r+1)*(t-1)+(e-1),i=(r+1)*t+(e-1),o=(r+1)*t+e,a=(r+1)*(t-1)+e;s.push(n,i,a),s.push(i,o,a)}function v(t,e,n,r,i){const o=Math.cos(t),s=Math.sin(t),a=n/e*t,c=Math.cos(a);i.x=r*(2+c)*.5*o,i.y=r*(2+c)*s*.5,i.z=r*Math.sin(a)*.5}this.setIndex(s),this.setAttribute("position",new Di(a,3)),this.setAttribute("normal",new Di(c,3)),this.setAttribute("uv",new Di(l,2))}}class Jl extends Xi{constructor(t,e=64,n=1,r=8,i=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:r,closed:i};const o=t.computeFrenetFrames(e,i);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;const s=new qn,a=new qn,c=new Un;let l=new qn;const u=[],h=[],d=[],f=[];function p(i){l=t.getPointAt(i/e,l);const c=o.normals[i],d=o.binormals[i];for(let t=0;t<=r;t++){const e=t/r*Math.PI*2,i=Math.sin(e),o=-Math.cos(e);a.x=o*c.x+i*d.x,a.y=o*c.y+i*d.y,a.z=o*c.z+i*d.z,a.normalize(),h.push(a.x,a.y,a.z),s.x=l.x+n*a.x,s.y=l.y+n*a.y,s.z=l.z+n*a.z,u.push(s.x,s.y,s.z)}}(function(){for(let t=0;t<e;t++)p(t);p(!1===i?e:0),function(){for(let t=0;t<=e;t++)for(let n=0;n<=r;n++)c.x=t/e,c.y=n/r,d.push(c.x,c.y)}(),function(){for(let t=1;t<=e;t++)for(let e=1;e<=r;e++){const n=(r+1)*(t-1)+(e-1),i=(r+1)*t+(e-1),o=(r+1)*t+e,s=(r+1)*(t-1)+e;f.push(n,i,s),f.push(i,o,s)}}()})(),this.setIndex(f),this.setAttribute("position",new Di(u,3)),this.setAttribute("normal",new Di(h,3)),this.setAttribute("uv",new Di(d,2))}toJSON(){const t=Xi.prototype.toJSON.call(this);return t.path=this.parameters.path.toJSON(),t}}class ql extends Xi{constructor(t){if(super(),this.type="WireframeGeometry",!0===t.isGeometry)return void console.error("THREE.WireframeGeometry no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");const e=[],n=[0,0],r={},i=new qn;if(null!==t.index){const o=t.attributes.position,s=t.index;let a=t.groups;0===a.length&&(a=[{start:0,count:s.count,materialIndex:0}]);for(let t=0,e=a.length;t<e;++t){const e=a[t],i=e.start;for(let t=i,o=i+e.count;t<o;t+=3)for(let e=0;e<3;e++){const i=s.getX(t+e),o=s.getX(t+(e+1)%3);n[0]=Math.min(i,o),n[1]=Math.max(i,o);const a=n[0]+","+n[1];void 0===r[a]&&(r[a]={index1:n[0],index2:n[1]})}}for(const t in r){const n=r[t];i.fromBufferAttribute(o,n.index1),e.push(i.x,i.y,i.z),i.fromBufferAttribute(o,n.index2),e.push(i.x,i.y,i.z)}}else{const n=t.attributes.position;for(let t=0,r=n.count/3;t<r;t++)for(let r=0;r<3;r++){const o=3*t+r;i.fromBufferAttribute(n,o),e.push(i.x,i.y,i.z);const s=3*t+(r+1)%3;i.fromBufferAttribute(n,s),e.push(i.x,i.y,i.z)}}this.setAttribute("position",new Di(e,3))}}var Kl=Object.freeze({__proto__:null,BoxGeometry:mo,BoxBufferGeometry:mo,CircleGeometry:$c,CircleBufferGeometry:$c,ConeGeometry:el,ConeBufferGeometry:el,CylinderGeometry:tl,CylinderBufferGeometry:tl,DodecahedronGeometry:rl,DodecahedronBufferGeometry:rl,EdgesGeometry:cl,ExtrudeGeometry:Fl,ExtrudeBufferGeometry:Fl,IcosahedronGeometry:jl,IcosahedronBufferGeometry:jl,LatheGeometry:Ul,LatheBufferGeometry:Ul,OctahedronGeometry:zl,OctahedronBufferGeometry:zl,ParametricGeometry:Gl,ParametricBufferGeometry:Gl,PlaneGeometry:Lo,PlaneBufferGeometry:Lo,PolyhedronGeometry:nl,PolyhedronBufferGeometry:nl,RingGeometry:Hl,RingBufferGeometry:Hl,ShapeGeometry:Wl,ShapeBufferGeometry:Wl,SphereGeometry:Vl,SphereBufferGeometry:Vl,TetrahedronGeometry:Zl,TetrahedronBufferGeometry:Zl,TextGeometry:Ql,TextBufferGeometry:Ql,TorusGeometry:Xl,TorusBufferGeometry:Xl,TorusKnotGeometry:Yl,TorusKnotBufferGeometry:Yl,TubeGeometry:Jl,TubeBufferGeometry:Jl,WireframeGeometry:ql});class $l extends gi{constructor(t){super(),this.type="ShadowMaterial",this.color=new Si(0),this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this}}$l.prototype.isShadowMaterial=!0;class tu extends _o{constructor(t){super(t),this.type="RawShaderMaterial"}}function eu(t){gi.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Si(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.vertexTangents=!1,this.setValues(t)}function nu(t){eu.call(this),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoat=0,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Un(1,1),this.clearcoatNormalMap=null,this.reflectivity=.5,Object.defineProperty(this,"ior",{get:function(){return(1+.4*this.reflectivity)/(1-.4*this.reflectivity)},set:function(t){this.reflectivity=jn.clamp(2.5*(t-1)/(t+1),0,1)}}),this.sheen=null,this.transmission=0,this.transmissionMap=null,this.setValues(t)}tu.prototype.isRawShaderMaterial=!0,eu.prototype=Object.create(gi.prototype),eu.prototype.constructor=eu,eu.prototype.isMeshStandardMaterial=!0,eu.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this.vertexTangents=t.vertexTangents,this},nu.prototype=Object.create(eu.prototype),nu.prototype.constructor=nu,nu.prototype.isMeshPhysicalMaterial=!0,nu.prototype.copy=function(t){return eu.prototype.copy.call(this,t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.reflectivity=t.reflectivity,t.sheen?this.sheen=(this.sheen||new Si).copy(t.sheen):this.sheen=null,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this};class ru extends gi{constructor(t){super(),this.type="MeshPhongMaterial",this.color=new Si(16777215),this.specular=new Si(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}ru.prototype.isMeshPhongMaterial=!0;class iu extends gi{constructor(t){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Si(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}iu.prototype.isMeshToonMaterial=!0;class ou extends gi{constructor(t){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}ou.prototype.isMeshNormalMaterial=!0;class su extends gi{constructor(t){super(),this.type="MeshLambertMaterial",this.color=new Si(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}su.prototype.isMeshLambertMaterial=!0;class au extends gi{constructor(t){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Si(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}au.prototype.isMeshMatcapMaterial=!0;class cu extends Lc{constructor(t){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}cu.prototype.isLineDashedMaterial=!0;var lu=Object.freeze({__proto__:null,ShadowMaterial:$l,SpriteMaterial:qa,RawShaderMaterial:tu,ShaderMaterial:_o,PointsMaterial:Gc,MeshPhysicalMaterial:nu,MeshStandardMaterial:eu,MeshPhongMaterial:ru,MeshToonMaterial:iu,MeshNormalMaterial:ou,MeshLambertMaterial:su,MeshDepthMaterial:Ra,MeshDistanceMaterial:Oa,MeshBasicMaterial:Mi,MeshMatcapMaterial:au,LineDashedMaterial:cu,LineBasicMaterial:Lc,Material:gi});const uu={arraySlice:function(t,e,n){return uu.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,n=new Array(e);for(let t=0;t!==e;++t)n[t]=t;return n.sort((function(e,n){return t[e]-t[n]})),n},sortedArray:function(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,s=0;s!==r;++o){const r=n[o]*e;for(let n=0;n!==e;++n)i[s++]=t[r+n]}return i},flattenJSON:function(t,e,n,r){let i=1,o=t[0];for(;void 0!==o&&void 0===o[r];)o=t[i++];if(void 0===o)return;let s=o[r];if(void 0!==s)if(Array.isArray(s))do{s=o[r],void 0!==s&&(e.push(o.time),n.push.apply(n,s)),o=t[i++]}while(void 0!==o);else if(void 0!==s.toArray)do{s=o[r],void 0!==s&&(e.push(o.time),s.toArray(n,n.length)),o=t[i++]}while(void 0!==o);else do{s=o[r],void 0!==s&&(e.push(o.time),n.push(s)),o=t[i++]}while(void 0!==o)},subclip:function(t,e,n,r,i=30){const o=t.clone();o.name=e;const s=[];for(let t=0;t<o.tracks.length;++t){const e=o.tracks[t],a=e.getValueSize(),c=[],l=[];for(let t=0;t<e.times.length;++t){const o=e.times[t]*i;if(!(o<n||o>=r)){c.push(e.times[t]);for(let n=0;n<a;++n)l.push(e.values[t*a+n])}}0!==c.length&&(e.times=uu.convertArray(c,e.times.constructor),e.values=uu.convertArray(l,e.values.constructor),s.push(e))}o.tracks=s;let a=1/0;for(let t=0;t<o.tracks.length;++t)a>o.tracks[t].times[0]&&(a=o.tracks[t].times[0]);for(let t=0;t<o.tracks.length;++t)o.tracks[t].shift(-1*a);return o.resetDuration(),o},makeClipAdditive:function(t,e=0,n=t,r=30){r<=0&&(r=30);const i=n.tracks.length,o=e/r;for(let e=0;e<i;++e){const r=n.tracks[e],i=r.ValueTypeName;if("bool"===i||"string"===i)continue;const s=t.tracks.find((function(t){return t.name===r.name&&t.ValueTypeName===i}));if(void 0===s)continue;let a=0;const c=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(a=c/3);let l=0;const u=s.getValueSize();s.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=u/3);const h=r.times.length-1;let d;if(o<=r.times[0]){const t=a,e=c-a;d=uu.arraySlice(r.values,t,e)}else if(o>=r.times[h]){const t=h*c+a,e=t+c-a;d=uu.arraySlice(r.values,t,e)}else{const t=r.createInterpolant(),e=a,n=c-a;t.evaluate(o),d=uu.arraySlice(t.resultBuffer,e,n)}"quaternion"===i&&(new Jn).fromArray(d).normalize().conjugate().toArray(d);const f=s.times.length;for(let t=0;t<f;++t){const e=t*u+l;if("quaternion"===i)Jn.multiplyQuaternionsFlat(s.values,e,d,0,s.values,e);else{const t=u-2*l;for(let n=0;n<t;++n)s.values[e+n]-=d[n]}}}return t.blendMode=Ze,t}};function hu(t,e,n,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function du(t,e,n,r){hu.call(this,t,e,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function fu(t,e,n,r){hu.call(this,t,e,n,r)}function pu(t,e,n,r){hu.call(this,t,e,n,r)}Object.assign(hu.prototype,{evaluate:function(t){const e=this.parameterPositions;let n=this._cachedIndex,r=e[n],i=e[n-1];t:{e:{let o;n:{r:if(!(t<r)){for(let o=n+2;;){if(void 0===r){if(t<i)break r;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,i)}if(n===o)break;if(i=r,r=e[++n],t<r)break e}o=e.length;break n}if(t>=i)break t;{const s=e[1];t<s&&(n=2,i=s);for(let o=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(n===o)break;if(r=i,i=e[--n-1],t>=i)break e}o=n,n=0}}for(;n<o;){const r=n+o>>>1;t<e[r]?o=r:n=r+1}if(r=e[n],i=e[n-1],void 0===i)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(void 0===r)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,i,t)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,t,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){const e=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=t*r;for(let t=0;t!==r;++t)e[t]=n[i+t];return e},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(hu.prototype,{beforeStart_:hu.prototype.copySampleValue_,afterEnd_:hu.prototype.copySampleValue_}),du.prototype=Object.assign(Object.create(hu.prototype),{constructor:du,DefaultSettings_:{endingStart:Ge,endingEnd:Ge},intervalChanged_:function(t,e,n){const r=this.parameterPositions;let i=t-2,o=t+1,s=r[i],a=r[o];if(void 0===s)switch(this.getSettings_().endingStart){case He:i=t,s=2*e-n;break;case We:i=r.length-2,s=e+r[i]-r[i+1];break;default:i=t,s=n}if(void 0===a)switch(this.getSettings_().endingEnd){case He:o=t,a=2*n-e;break;case We:o=1,a=n+r[1]-r[0];break;default:o=t-1,a=e}const c=.5*(n-e),l=this.valueSize;this._weightPrev=c/(e-s),this._weightNext=c/(a-n),this._offsetPrev=i*l,this._offsetNext=o*l},interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,c=a-s,l=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,f=(n-e)/(r-e),p=f*f,m=p*f,g=-h*m+2*h*p-h*f,v=(1+h)*m+(-1.5-2*h)*p+(-.5+h)*f+1,y=(-1-d)*m+(1.5+d)*p+.5*f,_=d*m-d*p;for(let t=0;t!==s;++t)i[t]=g*o[l+t]+v*o[c+t]+y*o[a+t]+_*o[u+t];return i}}),fu.prototype=Object.assign(Object.create(hu.prototype),{constructor:fu,interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,c=a-s,l=(n-e)/(r-e),u=1-l;for(let t=0;t!==s;++t)i[t]=o[c+t]*u+o[a+t]*l;return i}}),pu.prototype=Object.assign(Object.create(hu.prototype),{constructor:pu,interpolate_:function(t){return this.copySampleValue_(t-1)}});class mu{constructor(t,e,n,r){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=uu.convertArray(e,this.TimeBufferType),this.values=uu.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:uu.convertArray(t.times,Array),values:uu.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new pu(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new fu(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new du(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case je:e=this.InterpolantFactoryMethodDiscrete;break;case Ue:e=this.InterpolantFactoryMethodLinear;break;case ze:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return je;case this.InterpolantFactoryMethodLinear:return Ue;case this.InterpolantFactoryMethodSmooth:return ze}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,r=e.length;n!==r;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,r=e.length;n!==r;++n)e[n]*=t}return this}trim(t,e){const n=this.times,r=n.length;let i=0,o=r-1;for(;i!==r&&n[i]<t;)++i;for(;-1!==o&&n[o]>e;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const t=this.getValueSize();this.times=uu.arraySlice(n,i,o),this.values=uu.arraySlice(this.values,i*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==i;e++){const r=n[e];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,r),t=!1;break}if(null!==o&&o>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,r,o),t=!1;break}o=r}if(void 0!==r&&uu.isTypedArray(r))for(let e=0,n=r.length;e!==n;++e){const n=r[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=uu.arraySlice(this.times),e=uu.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===ze,i=t.length-1;let o=1;for(let s=1;s<i;++s){let i=!1;const a=t[s];if(a!==t[s+1]&&(1!==s||a!==t[0]))if(r)i=!0;else{const t=s*n,r=t-n,o=t+n;for(let s=0;s!==n;++s){const n=e[t+s];if(n!==e[r+s]||n!==e[o+s]){i=!0;break}}}if(i){if(s!==o){t[o]=t[s];const r=s*n,i=o*n;for(let t=0;t!==n;++t)e[i+t]=e[r+t]}++o}}if(i>0){t[o]=t[i];for(let t=i*n,r=o*n,s=0;s!==n;++s)e[r+s]=e[t+s];++o}return o!==t.length?(this.times=uu.arraySlice(t,0,o),this.values=uu.arraySlice(e,0,o*n)):(this.times=t,this.values=e),this}clone(){const t=uu.arraySlice(this.times,0),e=uu.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}mu.prototype.TimeBufferType=Float32Array,mu.prototype.ValueBufferType=Float32Array,mu.prototype.DefaultInterpolation=Ue;class gu extends mu{}gu.prototype.ValueTypeName="bool",gu.prototype.ValueBufferType=Array,gu.prototype.DefaultInterpolation=je,gu.prototype.InterpolantFactoryMethodLinear=void 0,gu.prototype.InterpolantFactoryMethodSmooth=void 0;class vu extends mu{}vu.prototype.ValueTypeName="color";class yu extends mu{}function _u(t,e,n,r){hu.call(this,t,e,n,r)}yu.prototype.ValueTypeName="number",_u.prototype=Object.assign(Object.create(hu.prototype),{constructor:_u,interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=(n-e)/(r-e);let c=t*s;for(let t=c+s;c!==t;c+=4)Jn.slerpFlat(i,0,o,c-s,o,c,a);return i}});class bu extends mu{InterpolantFactoryMethodLinear(t){return new _u(this.times,this.values,this.getValueSize(),t)}}bu.prototype.ValueTypeName="quaternion",bu.prototype.DefaultInterpolation=Ue,bu.prototype.InterpolantFactoryMethodSmooth=void 0;class xu extends mu{}xu.prototype.ValueTypeName="string",xu.prototype.ValueBufferType=Array,xu.prototype.DefaultInterpolation=je,xu.prototype.InterpolantFactoryMethodLinear=void 0,xu.prototype.InterpolantFactoryMethodSmooth=void 0;class wu extends mu{}wu.prototype.ValueTypeName="vector";class Su{constructor(t,e=-1,n,r=Ve){this.name=t,this.tracks=n,this.duration=e,this.blendMode=r,this.uuid=jn.generateUUID(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,r=1/(t.fps||1);for(let t=0,i=n.length;t!==i;++t)e.push(Mu(n[t]).scale(r));const i=new this(t.name,t.duration,e,t.blendMode);return i.uuid=t.uuid,i}static toJSON(t){const e=[],n=t.tracks,r={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,r=n.length;t!==r;++t)e.push(mu.toJSON(n[t]));return r}static CreateFromMorphTargetSequence(t,e,n,r){const i=e.length,o=[];for(let t=0;t<i;t++){let s=[],a=[];s.push((t+i-1)%i,t,(t+1)%i),a.push(0,1,0);const c=uu.getKeyframeOrder(s);s=uu.sortedArray(s,1,c),a=uu.sortedArray(a,1,c),r||0!==s[0]||(s.push(i),a.push(a[0])),o.push(new yu(".morphTargetInfluences["+e[t].name+"]",s,a).scale(1/n))}return new this(t,-1,o)}static findByName(t,e){let n=t;if(!Array.isArray(t)){const e=t;n=e.geometry&&e.geometry.animations||e.animations}for(let t=0;t<n.length;t++)if(n[t].name===e)return n[t];return null}static CreateClipsFromMorphTargetSequences(t,e,n){const r={},i=/^([\w-]*?)([\d]+)$/;for(let e=0,n=t.length;e<n;e++){const n=t[e],o=n.name.match(i);if(o&&o.length>1){const t=o[1];let e=r[t];e||(r[t]=e=[]),e.push(n)}}const o=[];for(const t in r)o.push(this.CreateFromMorphTargetSequence(t,r[t],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,r,i){if(0!==n.length){const o=[],s=[];uu.flattenJSON(n,o,s,r),0!==o.length&&i.push(new t(e,o,s))}},r=[],i=t.name||"default",o=t.fps||30,s=t.blendMode;let a=t.length||-1;const c=t.hierarchy||[];for(let t=0;t<c.length;t++){const i=c[t].keys;if(i&&0!==i.length)if(i[0].morphTargets){const t={};let e;for(e=0;e<i.length;e++)if(i[e].morphTargets)for(let n=0;n<i[e].morphTargets.length;n++)t[i[e].morphTargets[n]]=-1;for(const n in t){const t=[],o=[];for(let r=0;r!==i[e].morphTargets.length;++r){const r=i[e];t.push(r.time),o.push(r.morphTarget===n?1:0)}r.push(new yu(".morphTargetInfluence["+n+"]",t,o))}a=t.length*(o||1)}else{const o=".bones["+e[t].name+"]";n(wu,o+".position",i,"pos",r),n(bu,o+".quaternion",i,"rot",r),n(wu,o+".scale",i,"scl",r)}}return 0===r.length?null:new this(i,a,r,s)}resetDuration(){let t=0;for(let e=0,n=this.tracks.length;e!==n;++e){const n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Mu(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return yu;case"vector":case"vector2":case"vector3":case"vector4":return wu;case"color":return vu;case"quaternion":return bu;case"bool":case"boolean":return gu;case"string":return xu}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],n=[];uu.flattenJSON(t.keys,e,n,"value"),t.times=e,t.values=n}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const Au={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};function Cu(t,e,n){const r=this;let i=!1,o=0,s=0,a=void 0;const c=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===i&&void 0!==r.onStart&&r.onStart(t,o,s),i=!0},this.itemEnd=function(t){o++,void 0!==r.onProgress&&r.onProgress(t,o,s),o===s&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(t){void 0!==r.onError&&r.onError(t)},this.resolveURL=function(t){return a?a(t):t},this.setURLModifier=function(t){return a=t,this},this.addHandler=function(t,e){return c.push(t,e),this},this.removeHandler=function(t){const e=c.indexOf(t);return-1!==e&&c.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=c.length;e<n;e+=2){const n=c[e],r=c[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return r}return null}}const Eu=new Cu;function Tu(t){this.manager=void 0!==t?t:Eu,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}Object.assign(Tu.prototype,{load:function(){},loadAsync:function(t,e){const n=this;return new Promise((function(r,i){n.load(t,r,e,i)}))},parse:function(){},setCrossOrigin:function(t){return this.crossOrigin=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}});const Iu={};function Pu(t){Tu.call(this,t)}Pu.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Pu,load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;if(void 0!==Iu[t])return void Iu[t].push({onLoad:e,onProgress:n,onError:r});const s=t.match(/^data:(.*?)(;base64)?,(.*)$/);let a;if(s){const n=s[1],o=!!s[2];let a=s[3];a=decodeURIComponent(a),o&&(a=atob(a));try{let r;const o=(this.responseType||"").toLowerCase();switch(o){case"arraybuffer":case"blob":const t=new Uint8Array(a.length);for(let e=0;e<a.length;e++)t[e]=a.charCodeAt(e);r="blob"===o?new Blob([t.buffer],{type:n}):t.buffer;break;case"document":const e=new DOMParser;r=e.parseFromString(a,n);break;case"json":r=JSON.parse(a);break;default:r=a}setTimeout((function(){e&&e(r),i.manager.itemEnd(t)}),0)}catch(e){setTimeout((function(){r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}),0)}}else{Iu[t]=[],Iu[t].push({onLoad:e,onProgress:n,onError:r}),a=new XMLHttpRequest,a.open("GET",t,!0),a.addEventListener("load",(function(e){const n=this.response,r=Iu[t];if(delete Iu[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),Au.add(t,n);for(let t=0,e=r.length;t<e;t++){const e=r[t];e.onLoad&&e.onLoad(n)}i.manager.itemEnd(t)}else{for(let t=0,n=r.length;t<n;t++){const n=r[t];n.onError&&n.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}}),!1),a.addEventListener("progress",(function(e){const n=Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onProgress&&r.onProgress(e)}}),!1),a.addEventListener("error",(function(e){const n=Iu[t];delete Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onError&&r.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}),!1),a.addEventListener("abort",(function(e){const n=Iu[t];delete Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onError&&r.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}),!1),void 0!==this.responseType&&(a.responseType=this.responseType),void 0!==this.withCredentials&&(a.withCredentials=this.withCredentials),a.overrideMimeType&&a.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(const t in this.requestHeader)a.setRequestHeader(t,this.requestHeader[t]);a.send(null)}return i.manager.itemStart(t),a},setResponseType:function(t){return this.responseType=t,this},setMimeType:function(t){return this.mimeType=t,this}});class Lu extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e=[];for(let n=0;n<t.length;n++){const r=Su.parse(t[n]);e.push(r)}return e}}function Ru(t){Tu.call(this,t)}Ru.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Ru,load:function(t,e,n,r){const i=this,o=[],s=new Jc,a=new Pu(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(i.withCredentials);let c=0;function l(l){a.load(t[l],(function(t){const n=i.parse(t,!0);o[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},c+=1,6===c&&(1===n.mipmapCount&&(s.minFilter=_t),s.image=o,s.format=n.format,s.needsUpdate=!0,e&&e(s))}),n,r)}if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)l(e);else a.load(t,(function(t){const n=i.parse(t,!0);if(n.isCubemap){const t=n.mipmaps.length/n.mipmapCount;for(let e=0;e<t;e++){o[e]={mipmaps:[]};for(let t=0;t<n.mipmapCount;t++)o[e].mipmaps.push(n.mipmaps[e*n.mipmapCount+t]),o[e].format=n.format,o[e].width=n.width,o[e].height=n.height}s.image=o}else s.image.width=n.width,s.image.height=n.height,s.mipmaps=n.mipmaps;1===n.mipmapCount&&(s.minFilter=_t),s.format=n.format,s.needsUpdate=!0,e&&e(s)}),n,r);return s}});class Ou extends Tu{constructor(t){super(t)}load(t,e,n,r){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const s=document.createElementNS("http://www.w3.org/1999/xhtml","img");function a(){s.removeEventListener("load",a,!1),s.removeEventListener("error",c,!1),Au.add(t,this),e&&e(this),i.manager.itemEnd(t)}function c(e){s.removeEventListener("load",a,!1),s.removeEventListener("error",c,!1),r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}return s.addEventListener("load",a,!1),s.addEventListener("error",c,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),i.manager.itemStart(t),s.src=t,s}}class Bu extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=new So,o=new Ou(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let s=0;function a(n){o.load(t[n],(function(t){i.images[n]=t,s++,6===s&&(i.needsUpdate=!0,e&&e(i))}),void 0,r)}for(let e=0;e<t.length;++e)a(e);return i}}function ku(t){Tu.call(this,t)}function Du(t){Tu.call(this,t)}function Fu(){this.type="Curve",this.arcLengthDivisions=200}ku.prototype=Object.assign(Object.create(Tu.prototype),{constructor:ku,load:function(t,e,n,r){const i=this,o=new Ao,s=new Pu(this.manager);return s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setPath(this.path),s.setWithCredentials(i.withCredentials),s.load(t,(function(t){const n=i.parse(t);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:dt,o.wrapT=void 0!==n.wrapT?n.wrapT:dt,o.magFilter=void 0!==n.magFilter?n.magFilter:_t,o.minFilter=void 0!==n.minFilter?n.minFilter:_t,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.encoding&&(o.encoding=n.encoding),void 0!==n.flipY&&(o.flipY=n.flipY),void 0!==n.format&&(o.format=n.format),void 0!==n.type&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps,o.minFilter=wt),1===n.mipmapCount&&(o.minFilter=_t),void 0!==n.generateMipmaps&&(o.generateMipmaps=n.generateMipmaps),o.needsUpdate=!0,e&&e(o,n))}),n,r),o}}),Du.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Du,load:function(t,e,n,r){const i=new Vn,o=new Ou(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(n){i.image=n;const r=t.search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/);i.format=r?Ft:Nt,i.needsUpdate=!0,void 0!==e&&e(i)}),n,r),i}}),Object.assign(Fu.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)},getPoints:function(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e},getSpacedPoints:function(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e},getLength:function(){const t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,r=this.getPoint(0),i=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),i+=n.distanceTo(r),e.push(i),r=n;return this.cacheArcLengths=e,e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){const n=this.getLengths();let r=0;const i=n.length;let o;o=e||t*n[i-1];let s,a=0,c=i-1;for(;a<=c;)if(r=Math.floor(a+(c-a)/2),s=n[r]-o,s<0)a=r+1;else{if(!(s>0)){c=r;break}c=r-1}if(r=c,n[r]===o)return r/(i-1);const l=n[r];return(r+(o-l)/(n[r+1]-l))/(i-1)},getTangent:function(t,e){const n=1e-4;let r=t-n,i=t+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),s=this.getPoint(i),a=e||(o.isVector2?new Un:new qn);return a.copy(s).sub(o).normalize(),a},getTangentAt:function(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)},computeFrenetFrames:function(t,e){const n=new qn,r=[],i=[],o=[],s=new qn,a=new Tr;for(let e=0;e<=t;e++){const n=e/t;r[e]=this.getTangentAt(n,new qn),r[e].normalize()}i[0]=new qn,o[0]=new qn;let c=Number.MAX_VALUE;const l=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),h<=c&&n.set(0,0,1),s.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],s),o[0].crossVectors(r[0],i[0]);for(let e=1;e<=t;e++){if(i[e]=i[e-1].clone(),o[e]=o[e-1].clone(),s.crossVectors(r[e-1],r[e]),s.length()>Number.EPSILON){s.normalize();const t=Math.acos(jn.clamp(r[e-1].dot(r[e]),-1,1));i[e].applyMatrix4(a.makeRotationAxis(s,t))}o[e].crossVectors(r[e],i[e])}if(!0===e){let e=Math.acos(jn.clamp(i[0].dot(i[t]),-1,1));e/=t,r[0].dot(s.crossVectors(i[0],i[t]))>0&&(e=-e);for(let n=1;n<=t;n++)i[n].applyMatrix4(a.makeRotationAxis(r[n],e*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}});class Nu extends Fu{constructor(t=0,e=0,n=1,r=1,i=0,o=2*Math.PI,s=!1,a=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=s,this.aRotation=a}getPoint(t,e){const n=e||new Un,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)<Number.EPSILON;for(;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=o?0:r),!0!==this.aClockwise||o||(i===r?i=-r:i-=r);const s=this.aStartAngle+t*i;let a=this.aX+this.xRadius*Math.cos(s),c=this.aY+this.yRadius*Math.sin(s);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=a-this.aX,r=c-this.aY;a=n*t-r*e+this.aX,c=n*e+r*t+this.aY}return n.set(a,c)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}Nu.prototype.isEllipseCurve=!0;class ju extends Nu{constructor(t,e,n,r,i,o){super(t,e,n,n,r,i,o),this.type="ArcCurve"}}function Uu(){let t=0,e=0,n=0,r=0;function i(i,o,s,a){t=i,e=s,n=-3*i+3*o-2*s-a,r=2*i-2*o+s+a}return{initCatmullRom:function(t,e,n,r,o){i(e,n,o*(n-t),o*(r-e))},initNonuniformCatmullRom:function(t,e,n,r,o,s,a){let c=(e-t)/o-(n-t)/(o+s)+(n-e)/s,l=(n-e)/s-(r-e)/(s+a)+(r-n)/a;c*=s,l*=s,i(e,n,c,l)},calc:function(i){const o=i*i;return t+e*i+n*o+r*(o*i)}}}ju.prototype.isArcCurve=!0;const zu=new qn,Gu=new Uu,Hu=new Uu,Wu=new Uu;class Vu extends Fu{constructor(t=[],e=!1,n="centripetal",r=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=r}getPoint(t,e=new qn){const n=e,r=this.points,i=r.length,o=(i-(this.closed?0:1))*t;let s,a,c=Math.floor(o),l=o-c;this.closed?c+=c>0?0:(Math.floor(Math.abs(c)/i)+1)*i:0===l&&c===i-1&&(c=i-2,l=1),this.closed||c>0?s=r[(c-1)%i]:(zu.subVectors(r[0],r[1]).add(r[0]),s=zu);const u=r[c%i],h=r[(c+1)%i];if(this.closed||c+2<i?a=r[(c+2)%i]:(zu.subVectors(r[i-1],r[i-2]).add(r[i-1]),a=zu),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(s.distanceToSquared(u),t),n=Math.pow(u.distanceToSquared(h),t),r=Math.pow(h.distanceToSquared(a),t);n<1e-4&&(n=1),e<1e-4&&(e=n),r<1e-4&&(r=n),Gu.initNonuniformCatmullRom(s.x,u.x,h.x,a.x,e,n,r),Hu.initNonuniformCatmullRom(s.y,u.y,h.y,a.y,e,n,r),Wu.initNonuniformCatmullRom(s.z,u.z,h.z,a.z,e,n,r)}else"catmullrom"===this.curveType&&(Gu.initCatmullRom(s.x,u.x,h.x,a.x,this.tension),Hu.initCatmullRom(s.y,u.y,h.y,a.y,this.tension),Wu.initCatmullRom(s.z,u.z,h.z,a.z,this.tension));return n.set(Gu.calc(l),Hu.calc(l),Wu.calc(l)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new qn).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function Zu(t,e,n,r,i){const o=.5*(r-e),s=.5*(i-n),a=t*t;return(2*n-2*r+o+s)*(t*a)+(-3*n+3*r-2*o-s)*a+o*t+n}function Qu(t,e,n,r){return function(t,e){const n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,r)}function Xu(t,e,n,r,i){return function(t,e){const n=1-t;return n*n*n*e}(t,e)+function(t,e){const n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,r)+function(t,e){return t*t*t*e}(t,i)}Vu.prototype.isCatmullRomCurve3=!0;class Yu extends Fu{constructor(t=new Un,e=new Un,n=new Un,r=new Un){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=r}getPoint(t,e=new Un){const n=e,r=this.v0,i=this.v1,o=this.v2,s=this.v3;return n.set(Xu(t,r.x,i.x,o.x,s.x),Xu(t,r.y,i.y,o.y,s.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}Yu.prototype.isCubicBezierCurve=!0;class Ju extends Fu{constructor(t=new qn,e=new qn,n=new qn,r=new qn){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=r}getPoint(t,e=new qn){const n=e,r=this.v0,i=this.v1,o=this.v2,s=this.v3;return n.set(Xu(t,r.x,i.x,o.x,s.x),Xu(t,r.y,i.y,o.y,s.y),Xu(t,r.z,i.z,o.z,s.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}Ju.prototype.isCubicBezierCurve3=!0;class qu extends Fu{constructor(t=new Un,e=new Un){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new Un){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new Un;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}qu.prototype.isLineCurve=!0;class Ku extends Fu{constructor(t=new qn,e=new qn){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new qn){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class $u extends Fu{constructor(t=new Un,e=new Un,n=new Un){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new Un){const n=e,r=this.v0,i=this.v1,o=this.v2;return n.set(Qu(t,r.x,i.x,o.x),Qu(t,r.y,i.y,o.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}$u.prototype.isQuadraticBezierCurve=!0;class th extends Fu{constructor(t=new qn,e=new qn,n=new qn){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new qn){const n=e,r=this.v0,i=this.v1,o=this.v2;return n.set(Qu(t,r.x,i.x,o.x),Qu(t,r.y,i.y,o.y),Qu(t,r.z,i.z,o.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}th.prototype.isQuadraticBezierCurve3=!0;class eh extends Fu{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new Un){const n=e,r=this.points,i=(r.length-1)*t,o=Math.floor(i),s=i-o,a=r[0===o?o:o-1],c=r[o],l=r[o>r.length-2?r.length-1:o+1],u=r[o>r.length-3?r.length-1:o+2];return n.set(Zu(s,a.x,c.x,l.x,u.x),Zu(s,a.y,c.y,l.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new Un).fromArray(n))}return this}}eh.prototype.isSplineCurve=!0;var nh=Object.freeze({__proto__:null,ArcCurve:ju,CatmullRomCurve3:Vu,CubicBezierCurve:Yu,CubicBezierCurve3:Ju,EllipseCurve:Nu,LineCurve:qu,LineCurve3:Ku,QuadraticBezierCurve:$u,QuadraticBezierCurve3:th,SplineCurve:eh});class rh extends Fu{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new qu(e,t))}getPoint(t){const e=t*this.getLength(),n=this.getCurveLengths();let r=0;for(;r<n.length;){if(n[r]>=e){const t=n[r]-e,i=this.curves[r],o=i.getLength(),s=0===o?0:1-t/o;return i.getPointAt(s)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,r=this.curves.length;n<r;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const o=i[r],s=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,a=o.getPoints(s);for(let t=0;t<a.length;t++){const r=a[t];n&&n.equals(r)||(e.push(r),n=r)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push(n.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,n=this.curves.length;e<n;e++){const n=this.curves[e];t.curves.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push((new nh[n.type]).fromJSON(n))}return this}}class ih extends rh{constructor(t){super(),this.type="Path",this.currentPoint=new Un,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const n=new qu(this.currentPoint.clone(),new Un(t,e));return this.curves.push(n),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,n,r){const i=new $u(this.currentPoint.clone(),new Un(t,e),new Un(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(t,e,n,r,i,o){const s=new Yu(this.currentPoint.clone(),new Un(t,e),new Un(n,r),new Un(i,o));return this.curves.push(s),this.currentPoint.set(i,o),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),n=new eh(e);return this.curves.push(n),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,n,r,i,o){const s=this.currentPoint.x,a=this.currentPoint.y;return this.absarc(t+s,e+a,n,r,i,o),this}absarc(t,e,n,r,i,o){return this.absellipse(t,e,n,n,r,i,o),this}ellipse(t,e,n,r,i,o,s,a){const c=this.currentPoint.x,l=this.currentPoint.y;return this.absellipse(t+c,e+l,n,r,i,o,s,a),this}absellipse(t,e,n,r,i,o,s,a){const c=new Nu(t,e,n,r,i,o,s,a);if(this.curves.length>0){const t=c.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(c);const l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class oh extends ih{constructor(t){super(t),this.uuid=jn.generateUUID(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,r=this.holes.length;n<r;n++)e[n]=this.holes[n].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,n=this.holes.length;e<n;e++){const n=this.holes[e];t.holes.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push((new ih).fromJSON(n))}return this}}class sh extends $r{constructor(t,e=1){super(),this.type="Light",this.color=new Si(t),this.intensity=e}copy(t){return super.copy(t),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}sh.prototype.isLight=!0;class ah extends sh{constructor(t,e,n){super(t,n),this.type="HemisphereLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.groundColor=new Si(e)}copy(t){return sh.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}ah.prototype.isHemisphereLight=!0;const ch=new Tr,lh=new qn,uh=new qn;class hh{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.mapSize=new Un(512,512),this.map=null,this.mapPass=null,this.matrix=new Tr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new To,this._frameExtents=new Un(1,1),this._viewportCount=1,this._viewports=[new Qn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;lh.setFromMatrixPosition(t.matrixWorld),e.position.copy(lh),uh.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(uh),e.updateMatrixWorld(),ch.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ch),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(e.projectionMatrix),n.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class dh extends hh{constructor(){super(new xo(50,1,.5,500)),this.focus=1}updateMatrices(t){const e=this.camera,n=2*jn.RAD2DEG*t.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=t.distance||e.far;n===e.fov&&r===e.aspect&&i===e.far||(e.fov=n,e.aspect=r,e.far=i,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}dh.prototype.isSpotLightShadow=!0;class fh extends sh{constructor(t,e,n=0,r=Math.PI/3,i=0,o=1){super(t,e),this.type="SpotLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.target=new $r,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.shadow=new dh}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}copy(t){return super.copy(t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}fh.prototype.isSpotLight=!0;const ph=new Tr,mh=new qn,gh=new qn;class vh extends hh{constructor(){super(new xo(90,1,.5,500)),this._frameExtents=new Un(4,2),this._viewportCount=6,this._viewports=[new Qn(2,1,1,1),new Qn(0,1,1,1),new Qn(3,1,1,1),new Qn(1,1,1,1),new Qn(3,0,1,1),new Qn(1,0,1,1)],this._cubeDirections=[new qn(1,0,0),new qn(-1,0,0),new qn(0,0,1),new qn(0,0,-1),new qn(0,1,0),new qn(0,-1,0)],this._cubeUps=[new qn(0,1,0),new qn(0,1,0),new qn(0,1,0),new qn(0,1,0),new qn(0,0,1),new qn(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,r=this.matrix,i=t.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),mh.setFromMatrixPosition(t.matrixWorld),n.position.copy(mh),gh.copy(n.position),gh.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(gh),n.updateMatrixWorld(),r.makeTranslation(-mh.x,-mh.y,-mh.z),ph.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ph)}}vh.prototype.isPointLightShadow=!0;class yh extends sh{constructor(t,e,n=0,r=1){super(t,e),this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new vh}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}copy(t){return super.copy(t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}yh.prototype.isPointLight=!0;class _h extends bo{constructor(t=-1,e=1,n=1,r=-1,i=.1,o=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,r,i,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-t,o=n+t,s=r+e,a=r-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=t*this.view.offsetX,o=i+t*this.view.width,s-=e*this.view.offsetY,a=s-e*this.view.height}this.projectionMatrix.makeOrthographic(i,o,s,a,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=$r.prototype.toJSON.call(this,t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}_h.prototype.isOrthographicCamera=!0;class bh extends hh{constructor(){super(new _h(-5,5,5,-5,.5,500))}}bh.prototype.isDirectionalLightShadow=!0;class xh extends sh{constructor(t,e){super(t,e),this.type="DirectionalLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.target=new $r,this.shadow=new bh}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}xh.prototype.isDirectionalLight=!0;class wh extends sh{constructor(t,e){super(t,e),this.type="AmbientLight"}}wh.prototype.isAmbientLight=!0;class Sh extends sh{constructor(t,e,n=10,r=10){super(t,e),this.type="RectAreaLight",this.width=n,this.height=r}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}Sh.prototype.isRectAreaLight=!0;class Mh{constructor(){this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new qn)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,r=t.y,i=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.282095),e.addScaledVector(o[1],.488603*r),e.addScaledVector(o[2],.488603*i),e.addScaledVector(o[3],.488603*n),e.addScaledVector(o[4],n*r*1.092548),e.addScaledVector(o[5],r*i*1.092548),e.addScaledVector(o[6],.315392*(3*i*i-1)),e.addScaledVector(o[7],n*i*1.092548),e.addScaledVector(o[8],.546274*(n*n-r*r)),e}getIrradianceAt(t,e){const n=t.x,r=t.y,i=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.886227),e.addScaledVector(o[1],1.023328*r),e.addScaledVector(o[2],1.023328*i),e.addScaledVector(o[3],1.023328*n),e.addScaledVector(o[4],.858086*n*r),e.addScaledVector(o[5],.858086*r*i),e.addScaledVector(o[6],.743125*i*i-.247708),e.addScaledVector(o[7],.858086*n*i),e.addScaledVector(o[8],.429043*(n*n-r*r)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(t,e+3*r);return this}toArray(t=[],e=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(t,e+3*r);return t}static getBasisAt(t,e){const n=t.x,r=t.y,i=t.z;e[0]=.282095,e[1]=.488603*r,e[2]=.488603*i,e[3]=.488603*n,e[4]=1.092548*n*r,e[5]=1.092548*r*i,e[6]=.315392*(3*i*i-1),e[7]=1.092548*n*i,e[8]=.546274*(n*n-r*r)}}Mh.prototype.isSphericalHarmonics3=!0;class Ah extends sh{constructor(t=new Mh,e=1){super(void 0,e),this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}Ah.prototype.isLightProbe=!0;class Ch extends Tu{constructor(t){super(t),this.textures={}}load(t,e,n,r){const i=this,o=new Pu(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e=this.textures;function n(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const r=new lu[t.type];if(void 0!==t.uuid&&(r.uuid=t.uuid),void 0!==t.name&&(r.name=t.name),void 0!==t.color&&void 0!==r.color&&r.color.setHex(t.color),void 0!==t.roughness&&(r.roughness=t.roughness),void 0!==t.metalness&&(r.metalness=t.metalness),void 0!==t.sheen&&(r.sheen=(new Si).setHex(t.sheen)),void 0!==t.emissive&&void 0!==r.emissive&&r.emissive.setHex(t.emissive),void 0!==t.specular&&void 0!==r.specular&&r.specular.setHex(t.specular),void 0!==t.shininess&&(r.shininess=t.shininess),void 0!==t.clearcoat&&(r.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(r.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.fog&&(r.fog=t.fog),void 0!==t.flatShading&&(r.flatShading=t.flatShading),void 0!==t.blending&&(r.blending=t.blending),void 0!==t.combine&&(r.combine=t.combine),void 0!==t.side&&(r.side=t.side),void 0!==t.shadowSide&&(r.shadowSide=t.shadowSide),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.transparent&&(r.transparent=t.transparent),void 0!==t.alphaTest&&(r.alphaTest=t.alphaTest),void 0!==t.depthTest&&(r.depthTest=t.depthTest),void 0!==t.depthWrite&&(r.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(r.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(r.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(r.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(r.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(r.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(r.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(r.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(r.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(r.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(r.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(r.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(r.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(r.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(r.rotation=t.rotation),1!==t.linewidth&&(r.linewidth=t.linewidth),void 0!==t.dashSize&&(r.dashSize=t.dashSize),void 0!==t.gapSize&&(r.gapSize=t.gapSize),void 0!==t.scale&&(r.scale=t.scale),void 0!==t.polygonOffset&&(r.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(r.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(r.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(r.skinning=t.skinning),void 0!==t.morphTargets&&(r.morphTargets=t.morphTargets),void 0!==t.morphNormals&&(r.morphNormals=t.morphNormals),void 0!==t.dithering&&(r.dithering=t.dithering),void 0!==t.alphaToCoverage&&(r.alphaToCoverage=t.alphaToCoverage),void 0!==t.premultipliedAlpha&&(r.premultipliedAlpha=t.premultipliedAlpha),void 0!==t.vertexTangents&&(r.vertexTangents=t.vertexTangents),void 0!==t.visible&&(r.visible=t.visible),void 0!==t.toneMapped&&(r.toneMapped=t.toneMapped),void 0!==t.userData&&(r.userData=t.userData),void 0!==t.vertexColors&&("number"==typeof t.vertexColors?r.vertexColors=t.vertexColors>0:r.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const e in t.uniforms){const i=t.uniforms[e];switch(r.uniforms[e]={},i.type){case"t":r.uniforms[e].value=n(i.value);break;case"c":r.uniforms[e].value=(new Si).setHex(i.value);break;case"v2":r.uniforms[e].value=(new Un).fromArray(i.value);break;case"v3":r.uniforms[e].value=(new qn).fromArray(i.value);break;case"v4":r.uniforms[e].value=(new Qn).fromArray(i.value);break;case"m3":r.uniforms[e].value=(new zn).fromArray(i.value);break;case"m4":r.uniforms[e].value=(new Tr).fromArray(i.value);break;default:r.uniforms[e].value=i.value}}if(void 0!==t.defines&&(r.defines=t.defines),void 0!==t.vertexShader&&(r.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(r.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(const e in t.extensions)r.extensions[e]=t.extensions[e];if(void 0!==t.shading&&(r.flatShading=1===t.shading),void 0!==t.size&&(r.size=t.size),void 0!==t.sizeAttenuation&&(r.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(r.map=n(t.map)),void 0!==t.matcap&&(r.matcap=n(t.matcap)),void 0!==t.alphaMap&&(r.alphaMap=n(t.alphaMap)),void 0!==t.bumpMap&&(r.bumpMap=n(t.bumpMap)),void 0!==t.bumpScale&&(r.bumpScale=t.bumpScale),void 0!==t.normalMap&&(r.normalMap=n(t.normalMap)),void 0!==t.normalMapType&&(r.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),r.normalScale=(new Un).fromArray(e)}return void 0!==t.displacementMap&&(r.displacementMap=n(t.displacementMap)),void 0!==t.displacementScale&&(r.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(r.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(r.roughnessMap=n(t.roughnessMap)),void 0!==t.metalnessMap&&(r.metalnessMap=n(t.metalnessMap)),void 0!==t.emissiveMap&&(r.emissiveMap=n(t.emissiveMap)),void 0!==t.emissiveIntensity&&(r.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(r.specularMap=n(t.specularMap)),void 0!==t.envMap&&(r.envMap=n(t.envMap)),void 0!==t.envMapIntensity&&(r.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(r.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(r.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(r.lightMap=n(t.lightMap)),void 0!==t.lightMapIntensity&&(r.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(r.aoMap=n(t.aoMap)),void 0!==t.aoMapIntensity&&(r.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(r.gradientMap=n(t.gradientMap)),void 0!==t.clearcoatMap&&(r.clearcoatMap=n(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(r.clearcoatNormalMap=n(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(r.clearcoatNormalScale=(new Un).fromArray(t.clearcoatNormalScale)),void 0!==t.transmission&&(r.transmission=t.transmission),void 0!==t.transmissionMap&&(r.transmissionMap=n(t.transmissionMap)),r}setTextures(t){return this.textures=t,this}}const Eh={decodeText:function(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let n=0,r=t.length;n<r;n++)e+=String.fromCharCode(t[n]);try{return decodeURIComponent(escape(e))}catch(t){return e}},extractUrlBase:function(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}};function Th(){Xi.call(this),this.type="InstancedBufferGeometry",this.instanceCount=1/0}function Ih(t,e,n,r){"number"==typeof n&&(r=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Ei.call(this,t,e,n),this.meshPerAttribute=r||1}Th.prototype=Object.assign(Object.create(Xi.prototype),{constructor:Th,isInstancedBufferGeometry:!0,copy:function(t){return Xi.prototype.copy.call(this,t),this.instanceCount=t.instanceCount,this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){const t=Xi.prototype.toJSON.call(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}),Ih.prototype=Object.assign(Object.create(Ei.prototype),{constructor:Ih,isInstancedBufferAttribute:!0,copy:function(t){return Ei.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},toJSON:function(){const t=Ei.prototype.toJSON.call(this);return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}});class Ph extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e={},n={};function r(t,n){if(void 0!==e[n])return e[n];const r=t.interleavedBuffers[n],o=i(t,r.buffer),s=new Xa(Ui(r.type,o),r.stride);return s.uuid=r.uuid,e[n]=s,s}function i(t,e){if(void 0!==n[e])return n[e];const r=t.arrayBuffers[e],i=new Uint32Array(r).buffer;return n[e]=i,i}const o=t.isInstancedBufferGeometry?new Th:new Xi,s=t.data.index;if(void 0!==s){const t=Ui(s.type,s.array);o.setIndex(new Ei(t,1))}const a=t.data.attributes;for(const e in a){const n=a[e];let i;if(n.isInterleavedBufferAttribute)i=new Ja(r(t.data,n.data),n.itemSize,n.offset,n.normalized);else{const t=Ui(n.type,n.array);i=new(n.isInstancedBufferAttribute?Ih:Ei)(t,n.itemSize,n.normalized)}void 0!==n.name&&(i.name=n.name),void 0!==n.usage&&i.setUsage(n.usage),void 0!==n.updateRange&&(i.updateRange.offset=n.updateRange.offset,i.updateRange.count=n.updateRange.count),o.setAttribute(e,i)}const c=t.data.morphAttributes;if(c)for(const e in c){const n=c[e],i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e];let s;s=o.isInterleavedBufferAttribute?new Ja(r(t.data,o.data),o.itemSize,o.offset,o.normalized):new Ei(Ui(o.type,o.array),o.itemSize,o.normalized),void 0!==o.name&&(s.name=o.name),i.push(s)}o.morphAttributes[e]=i}t.data.morphTargetsRelative&&(o.morphTargetsRelative=!0);const l=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==l)for(let t=0,e=l.length;t!==e;++t){const e=l[t];o.addGroup(e.start,e.count,e.materialIndex)}const u=t.data.boundingSphere;if(void 0!==u){const t=new qn;void 0!==u.center&&t.fromArray(u.center),o.boundingSphere=new _r(t,u.radius)}return t.name&&(o.name=t.name),t.userData&&(o.userData=t.userData),o}}class Lh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=""===this.path?Eh.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||o;const s=new Pu(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,(function(n){let o=null;try{o=JSON.parse(n)}catch(e){return void 0!==r&&r(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}const s=o.metadata;void 0!==s&&void 0!==s.type&&"geometry"!==s.type.toLowerCase()?i.parse(o,e):console.error("THREE.ObjectLoader: Can't load "+t)}),n,r)}parse(t,e){const n=this.parseAnimations(t.animations),r=this.parseShapes(t.shapes),i=this.parseGeometries(t.geometries,r),o=this.parseImages(t.images,(function(){void 0!==e&&e(c)})),s=this.parseTextures(t.textures,o),a=this.parseMaterials(t.materials,s),c=this.parseObject(t.object,i,a,n),l=this.parseSkeletons(t.skeletons,c);if(this.bindSkeletons(c,l),void 0!==e){let t=!1;for(const e in o)if(o[e]instanceof HTMLImageElement){t=!0;break}!1===t&&e(c)}return c}parseShapes(t){const e={};if(void 0!==t)for(let n=0,r=t.length;n<r;n++){const r=(new oh).fromJSON(t[n]);e[r.uuid]=r}return e}parseSkeletons(t,e){const n={},r={};if(e.traverse((function(t){t.isBone&&(r[t.uuid]=t)})),void 0!==t)for(let e=0,i=t.length;e<i;e++){const i=(new Ac).fromJSON(t[e],r);n[i.uuid]=i}return n}parseGeometries(t,e){const n={};let r;if(void 0!==t){const i=new Ph;for(let o=0,s=t.length;o<s;o++){let s;const a=t[o];switch(a.type){case"PlaneGeometry":case"PlaneBufferGeometry":s=new Kl[a.type](a.width,a.height,a.widthSegments,a.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":s=new Kl[a.type](a.width,a.height,a.depth,a.widthSegments,a.heightSegments,a.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":s=new Kl[a.type](a.radius,a.segments,a.thetaStart,a.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":s=new Kl[a.type](a.radiusTop,a.radiusBottom,a.height,a.radialSegments,a.heightSegments,a.openEnded,a.thetaStart,a.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":s=new Kl[a.type](a.radius,a.height,a.radialSegments,a.heightSegments,a.openEnded,a.thetaStart,a.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":s=new Kl[a.type](a.radius,a.widthSegments,a.heightSegments,a.phiStart,a.phiLength,a.thetaStart,a.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":s=new Kl[a.type](a.radius,a.detail);break;case"RingGeometry":case"RingBufferGeometry":s=new Kl[a.type](a.innerRadius,a.outerRadius,a.thetaSegments,a.phiSegments,a.thetaStart,a.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":s=new Kl[a.type](a.radius,a.tube,a.radialSegments,a.tubularSegments,a.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":s=new Kl[a.type](a.radius,a.tube,a.tubularSegments,a.radialSegments,a.p,a.q);break;case"TubeGeometry":case"TubeBufferGeometry":s=new Kl[a.type]((new nh[a.path.type]).fromJSON(a.path),a.tubularSegments,a.radius,a.radialSegments,a.closed);break;case"LatheGeometry":case"LatheBufferGeometry":s=new Kl[a.type](a.points,a.segments,a.phiStart,a.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":s=new Kl[a.type](a.vertices,a.indices,a.radius,a.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":r=[];for(let t=0,n=a.shapes.length;t<n;t++){const n=e[a.shapes[t]];r.push(n)}s=new Kl[a.type](r,a.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":r=[];for(let t=0,n=a.shapes.length;t<n;t++){const n=e[a.shapes[t]];r.push(n)}const t=a.options.extrudePath;void 0!==t&&(a.options.extrudePath=(new nh[t.type]).fromJSON(t)),s=new Kl[a.type](r,a.options);break;case"BufferGeometry":case"InstancedBufferGeometry":s=i.parse(a);break;case"Geometry":console.error('THREE.ObjectLoader: Loading "Geometry" is not supported anymore.');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+a.type+'"');continue}s.uuid=a.uuid,void 0!==a.name&&(s.name=a.name),!0===s.isBufferGeometry&&void 0!==a.userData&&(s.userData=a.userData),n[a.uuid]=s}}return n}parseMaterials(t,e){const n={},r={};if(void 0!==t){const i=new Ch;i.setTextures(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];if("MultiMaterial"===o.type){const t=[];for(let e=0;e<o.materials.length;e++){const r=o.materials[e];void 0===n[r.uuid]&&(n[r.uuid]=i.parse(r)),t.push(n[r.uuid])}r[o.uuid]=t}else void 0===n[o.uuid]&&(n[o.uuid]=i.parse(o)),r[o.uuid]=n[o.uuid]}}return r}parseAnimations(t){const e={};if(void 0!==t)for(let n=0;n<t.length;n++){const r=t[n],i=Su.parse(r);e[i.uuid]=i}return e}parseImages(t,e){const n=this,r={};let i;function o(t){if("string"==typeof t){const e=t;return function(t){return n.manager.itemStart(t),i.load(t,(function(){n.manager.itemEnd(t)}),void 0,(function(){n.manager.itemError(t),n.manager.itemEnd(t)}))}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:n.resourcePath+e)}return t.data?{data:Ui(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){const n=new Cu(e);i=new Ou(n),i.setCrossOrigin(this.crossOrigin);for(let e=0,n=t.length;e<n;e++){const n=t[e],i=n.url;if(Array.isArray(i)){r[n.uuid]=[];for(let t=0,e=i.length;t<e;t++){const e=o(i[t]);null!==e&&(e instanceof HTMLImageElement?r[n.uuid].push(e):r[n.uuid].push(new Ao(e.data,e.width,e.height)))}}else{const t=o(n.url);null!==t&&(r[n.uuid]=t)}}}return r}parseTextures(t,e){function n(t,e){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}const r={};if(void 0!==t)for(let i=0,o=t.length;i<o;i++){const o=t[i];let s;void 0===o.image&&console.warn('THREE.ObjectLoader: No "image" specified for',o.uuid),void 0===e[o.image]&&console.warn("THREE.ObjectLoader: Undefined image",o.image);const a=e[o.image];Array.isArray(a)?(s=new So(a),6===a.length&&(s.needsUpdate=!0)):(s=a&&a.data?new Ao(a.data,a.width,a.height):new Vn(a),a&&(s.needsUpdate=!0)),s.uuid=o.uuid,void 0!==o.name&&(s.name=o.name),void 0!==o.mapping&&(s.mapping=n(o.mapping,Rh)),void 0!==o.offset&&s.offset.fromArray(o.offset),void 0!==o.repeat&&s.repeat.fromArray(o.repeat),void 0!==o.center&&s.center.fromArray(o.center),void 0!==o.rotation&&(s.rotation=o.rotation),void 0!==o.wrap&&(s.wrapS=n(o.wrap[0],Oh),s.wrapT=n(o.wrap[1],Oh)),void 0!==o.format&&(s.format=o.format),void 0!==o.type&&(s.type=o.type),void 0!==o.encoding&&(s.encoding=o.encoding),void 0!==o.minFilter&&(s.minFilter=n(o.minFilter,Bh)),void 0!==o.magFilter&&(s.magFilter=n(o.magFilter,Bh)),void 0!==o.anisotropy&&(s.anisotropy=o.anisotropy),void 0!==o.flipY&&(s.flipY=o.flipY),void 0!==o.premultiplyAlpha&&(s.premultiplyAlpha=o.premultiplyAlpha),void 0!==o.unpackAlignment&&(s.unpackAlignment=o.unpackAlignment),r[o.uuid]=s}return r}parseObject(t,e,n,r){let i,o,s;function a(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function c(t){if(void 0!==t){if(Array.isArray(t)){const e=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];void 0===n[i]&&console.warn("THREE.ObjectLoader: Undefined material",i),e.push(n[i])}return e}return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}}switch(t.type){case"Scene":i=new Qa,void 0!==t.background&&Number.isInteger(t.background)&&(i.background=new Si(t.background)),void 0!==t.fog&&("Fog"===t.fog.type?i.fog=new Za(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(i.fog=new Va(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":i=new xo(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(i.focus=t.focus),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.filmGauge&&(i.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(i.filmOffset=t.filmOffset),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"OrthographicCamera":i=new _h(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"AmbientLight":i=new wh(t.color,t.intensity);break;case"DirectionalLight":i=new xh(t.color,t.intensity);break;case"PointLight":i=new yh(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":i=new Sh(t.color,t.intensity,t.width,t.height);break;case"SpotLight":i=new fh(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":i=new ah(t.color,t.groundColor,t.intensity);break;case"LightProbe":i=(new Ah).fromJSON(t);break;case"SkinnedMesh":o=a(t.geometry),s=c(t.material),i=new xc(o,s),void 0!==t.bindMode&&(i.bindMode=t.bindMode),void 0!==t.bindMatrix&&i.bindMatrix.fromArray(t.bindMatrix),void 0!==t.skeleton&&(i.skeleton=t.skeleton);break;case"Mesh":o=a(t.geometry),s=c(t.material),i=new fo(o,s);break;case"InstancedMesh":o=a(t.geometry),s=c(t.material);const e=t.count,n=t.instanceMatrix,r=t.instanceColor;i=new Pc(o,s,e),i.instanceMatrix=new Ei(new Float32Array(n.array),16),void 0!==r&&(i.instanceColor=new Ei(new Float32Array(r.array),r.itemSize));break;case"LOD":i=new mc;break;case"Line":i=new Fc(a(t.geometry),c(t.material));break;case"LineLoop":i=new zc(a(t.geometry),c(t.material));break;case"LineSegments":i=new Uc(a(t.geometry),c(t.material));break;case"PointCloud":case"Points":i=new Qc(a(t.geometry),c(t.material));break;case"Sprite":i=new hc(c(t.material));break;case"Group":i=new ja;break;case"Bone":i=new wc;break;default:i=new $r}if(i.uuid=t.uuid,void 0!==t.name&&(i.name=t.name),void 0!==t.matrix?(i.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(i.matrixAutoUpdate=t.matrixAutoUpdate),i.matrixAutoUpdate&&i.matrix.decompose(i.position,i.quaternion,i.scale)):(void 0!==t.position&&i.position.fromArray(t.position),void 0!==t.rotation&&i.rotation.fromArray(t.rotation),void 0!==t.quaternion&&i.quaternion.fromArray(t.quaternion),void 0!==t.scale&&i.scale.fromArray(t.scale)),void 0!==t.castShadow&&(i.castShadow=t.castShadow),void 0!==t.receiveShadow&&(i.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(i.shadow.bias=t.shadow.bias),void 0!==t.shadow.normalBias&&(i.shadow.normalBias=t.shadow.normalBias),void 0!==t.shadow.radius&&(i.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&i.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(i.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.frustumCulled&&(i.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(i.renderOrder=t.renderOrder),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.layers&&(i.layers.mask=t.layers),void 0!==t.children){const o=t.children;for(let t=0;t<o.length;t++)i.add(this.parseObject(o[t],e,n,r))}if(void 0!==t.animations){const e=t.animations;for(let t=0;t<e.length;t++){const n=e[t];i.animations.push(r[n])}}if("LOD"===t.type){void 0!==t.autoUpdate&&(i.autoUpdate=t.autoUpdate);const e=t.levels;for(let t=0;t<e.length;t++){const n=e[t],r=i.getObjectByProperty("uuid",n.object);void 0!==r&&i.addLevel(r,n.distance)}}return i}bindSkeletons(t,e){0!==Object.keys(e).length&&t.traverse((function(t){if(!0===t.isSkinnedMesh&&void 0!==t.skeleton){const n=e[t.skeleton];void 0===n?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",t.skeleton):t.bind(n,t.bindMatrix)}}))}setTexturePath(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}const Rh={UVMapping:it,CubeReflectionMapping:ot,CubeRefractionMapping:st,EquirectangularReflectionMapping:at,EquirectangularRefractionMapping:ct,CubeUVReflectionMapping:lt,CubeUVRefractionMapping:ut},Oh={RepeatWrapping:ht,ClampToEdgeWrapping:dt,MirroredRepeatWrapping:ft},Bh={NearestFilter:pt,NearestMipmapNearestFilter:mt,NearestMipmapLinearFilter:vt,LinearFilter:_t,LinearMipmapNearestFilter:bt,LinearMipmapLinearFilter:wt};function kh(t){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),Tu.call(this,t),this.options={premultiplyAlpha:"none"}}kh.prototype=Object.assign(Object.create(Tu.prototype),{constructor:kh,isImageBitmapLoader:!0,setOptions:function(t){return this.options=t,this},load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader,fetch(t,s).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){Au.add(t,n),e&&e(n),i.manager.itemEnd(t)})).catch((function(e){r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)})),i.manager.itemStart(t)}});class Dh{constructor(){this.type="ShapePath",this.color=new Si,this.subPaths=[],this.currentPath=null}moveTo(t,e){return this.currentPath=new ih,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this}lineTo(t,e){return this.currentPath.lineTo(t,e),this}quadraticCurveTo(t,e,n,r){return this.currentPath.quadraticCurveTo(t,e,n,r),this}bezierCurveTo(t,e,n,r,i,o){return this.currentPath.bezierCurveTo(t,e,n,r,i,o),this}splineThru(t){return this.currentPath.splineThru(t),this}toShapes(t,e){function n(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],i=new oh;i.curves=r.curves,e.push(i)}return e}function r(t,e){const n=e.length;let r=!1;for(let i=n-1,o=0;o<n;i=o++){let n=e[i],s=e[o],a=s.x-n.x,c=s.y-n.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(n=e[o],a=-a,s=e[i],c=-c),t.y<n.y||t.y>s.y)continue;if(t.y===n.y){if(t.x===n.x)return!0}else{const e=c*(t.x-n.x)-a*(t.y-n.y);if(0===e)return!0;if(e<0)continue;r=!r}}else{if(t.y!==n.y)continue;if(s.x<=t.x&&t.x<=n.x||n.x<=t.x&&t.x<=s.x)return!0}}return r}const i=Bl.isClockWise,o=this.subPaths;if(0===o.length)return[];if(!0===e)return n(o);let s,a,c;const l=[];if(1===o.length)return a=o[0],c=new oh,c.curves=a.curves,l.push(c),l;let u=!i(o[0].getPoints());u=t?!u:u;const h=[],d=[];let f,p,m=[],g=0;d[g]=void 0,m[g]=[];for(let e=0,n=o.length;e<n;e++)a=o[e],f=a.getPoints(),s=i(f),s=t?!s:s,s?(!u&&d[g]&&g++,d[g]={s:new oh,p:f},d[g].s.curves=a.curves,u&&g++,m[g]=[]):m[g].push({h:a,p:f[0]});if(!d[0])return n(o);if(d.length>1){let t=!1;const e=[];for(let t=0,e=d.length;t<e;t++)h[t]=[];for(let n=0,i=d.length;n<i;n++){const i=m[n];for(let o=0;o<i.length;o++){const s=i[o];let a=!0;for(let i=0;i<d.length;i++)r(s.p,d[i].p)&&(n!==i&&e.push({froms:n,tos:i,hole:o}),a?(a=!1,h[i].push(s)):t=!0);a&&h[n].push(s)}}e.length>0&&(t||(m=h))}for(let t=0,e=d.length;t<e;t++){c=d[t].s,l.push(c),p=m[t];for(let t=0,e=p.length;t<e;t++)c.holes.push(p[t].h)}return l}}class Fh{constructor(t){this.type="Font",this.data=t}generateShapes(t,e=100){const n=[],r=function(t,e,n){const r=Array.from(t),i=e/n.resolution,o=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,s=[];let a=0,c=0;for(let t=0;t<r.length;t++){const e=r[t];if("\n"===e)a=0,c-=o;else{const t=Nh(e,i,a,c,n);a+=t.offsetX,s.push(t.path)}}return s}(t,e,this.data);for(let t=0,e=r.length;t<e;t++)Array.prototype.push.apply(n,r[t].toShapes());return n}}function Nh(t,e,n,r,i){const o=i.glyphs[t]||i.glyphs["?"];if(!o)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+i.familyName+".");const s=new Dh;let a,c,l,u,h,d,f,p;if(o.o){const t=o._cachedOutline||(o._cachedOutline=o.o.split(" "));for(let i=0,o=t.length;i<o;)switch(t[i++]){case"m":a=t[i++]*e+n,c=t[i++]*e+r,s.moveTo(a,c);break;case"l":a=t[i++]*e+n,c=t[i++]*e+r,s.lineTo(a,c);break;case"q":l=t[i++]*e+n,u=t[i++]*e+r,h=t[i++]*e+n,d=t[i++]*e+r,s.quadraticCurveTo(h,d,l,u);break;case"b":l=t[i++]*e+n,u=t[i++]*e+r,h=t[i++]*e+n,d=t[i++]*e+r,f=t[i++]*e+n,p=t[i++]*e+r,s.bezierCurveTo(h,d,f,p,l,u)}}return{offsetX:o.ha*e,path:s}}Fh.prototype.isFont=!0;class jh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(t){let n;try{n=JSON.parse(t)}catch(e){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(t.substring(65,t.length-2))}const r=i.parse(n);e&&e(r)}),n,r)}parse(t){return new Fh(t)}}let Uh;const zh={getContext:function(){return void 0===Uh&&(Uh=new(window.AudioContext||window.webkitAudioContext)),Uh},setContext:function(t){Uh=t}};class Gh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{const t=n.slice(0);zh.getContext().decodeAudioData(t,(function(t){e(t)}))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}}class Hh extends Ah{constructor(t,e,n=1){super(void 0,n);const r=(new Si).set(t),i=(new Si).set(e),o=new qn(r.r,r.g,r.b),s=new qn(i.r,i.g,i.b),a=Math.sqrt(Math.PI),c=a*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(s).multiplyScalar(a),this.sh.coefficients[1].copy(o).sub(s).multiplyScalar(c)}}Hh.prototype.isHemisphereLightProbe=!0;class Wh extends Ah{constructor(t,e=1){super(void 0,e);const n=(new Si).set(t);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}Wh.prototype.isAmbientLightProbe=!0;const Vh=new Tr,Zh=new Tr;class Qh{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new xo,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new xo,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(t){const e=this._cache;if(e.focus!==t.focus||e.fov!==t.fov||e.aspect!==t.aspect*this.aspect||e.near!==t.near||e.far!==t.far||e.zoom!==t.zoom||e.eyeSep!==this.eyeSep){e.focus=t.focus,e.fov=t.fov,e.aspect=t.aspect*this.aspect,e.near=t.near,e.far=t.far,e.zoom=t.zoom,e.eyeSep=this.eyeSep;const n=t.projectionMatrix.clone(),r=e.eyeSep/2,i=r*e.near/e.focus,o=e.near*Math.tan(jn.DEG2RAD*e.fov*.5)/e.zoom;let s,a;Zh.elements[12]=-r,Vh.elements[12]=r,s=-o*e.aspect+i,a=o*e.aspect+i,n.elements[0]=2*e.near/(a-s),n.elements[8]=(a+s)/(a-s),this.cameraL.projectionMatrix.copy(n),s=-o*e.aspect-i,a=o*e.aspect-i,n.elements[0]=2*e.near/(a-s),n.elements[8]=(a+s)/(a-s),this.cameraR.projectionMatrix.copy(n)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Zh),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Vh)}}class Xh{constructor(t){this.autoStart=void 0===t||t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Yh(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Yh();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Yh(){return("undefined"==typeof performance?Date:performance).now()}const Jh=new qn,qh=new Jn,Kh=new qn,$h=new qn;class td extends $r{constructor(){super(),this.type="AudioListener",this.context=zh.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Xh}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}updateMatrixWorld(t){super.updateMatrixWorld(t);const e=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Jh,qh,Kh),$h.set(0,0,-1).applyQuaternion(qh),e.positionX){const t=this.context.currentTime+this.timeDelta;e.positionX.linearRampToValueAtTime(Jh.x,t),e.positionY.linearRampToValueAtTime(Jh.y,t),e.positionZ.linearRampToValueAtTime(Jh.z,t),e.forwardX.linearRampToValueAtTime($h.x,t),e.forwardY.linearRampToValueAtTime($h.y,t),e.forwardZ.linearRampToValueAtTime($h.z,t),e.upX.linearRampToValueAtTime(n.x,t),e.upY.linearRampToValueAtTime(n.y,t),e.upZ.linearRampToValueAtTime(n.z,t)}else e.setPosition(Jh.x,Jh.y,Jh.z),e.setOrientation($h.x,$h.y,$h.z,n.x,n.y,n.z)}}class ed extends $r{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}const nd=new qn,rd=new Jn,id=new qn,od=new qn;class sd extends ed{constructor(t){super(t),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(t){return this.panner.refDistance=t,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(t){return this.panner.rolloffFactor=t,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(t){return this.panner.distanceModel=t,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(t){return this.panner.maxDistance=t,this}setDirectionalCone(t,e,n){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=n,this}updateMatrixWorld(t){if(super.updateMatrixWorld(t),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(nd,rd,id),od.set(0,0,1).applyQuaternion(rd);const e=this.panner;if(e.positionX){const t=this.context.currentTime+this.listener.timeDelta;e.positionX.linearRampToValueAtTime(nd.x,t),e.positionY.linearRampToValueAtTime(nd.y,t),e.positionZ.linearRampToValueAtTime(nd.z,t),e.orientationX.linearRampToValueAtTime(od.x,t),e.orientationY.linearRampToValueAtTime(od.y,t),e.orientationZ.linearRampToValueAtTime(od.z,t)}else e.setPosition(nd.x,nd.y,nd.z),e.setOrientation(od.x,od.y,od.z)}}class ad{constructor(t,e=2048){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let t=0;const e=this.getFrequencyData();for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}}class cd{constructor(t,e,n){let r,i,o;switch(this.binding=t,this.valueSize=n,e){case"quaternion":r=this._slerp,i=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,i=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const n=this.buffer,r=this.valueSize,i=t*r+r;let o=this.cumulativeWeight;if(0===o){for(let t=0;t!==r;++t)n[i+t]=n[t];o=e}else{o+=e;const t=e/o;this._mixBufferRegion(n,i,0,t,r)}this.cumulativeWeight=o}accumulateAdditive(t){const e=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,r,0,t,n),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,n=this.buffer,r=t*e+e,i=this.cumulativeWeight,o=this.cumulativeWeightAdditive,s=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){const t=e*this._origIndex;this._mixBufferRegion(n,r,t,1-i,e)}o>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*e,1,e);for(let t=e,i=e+e;t!==i;++t)if(n[t]!==n[t+e]){s.setValue(n,r);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,r=n*this._origIndex;t.getValue(e,r);for(let t=n,i=r;t!==i;++t)e[t]=e[r+t%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n<e;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[e+n]=this.buffer[t+n]}_select(t,e,n,r,i){if(r>=.5)for(let r=0;r!==i;++r)t[e+r]=t[n+r]}_slerp(t,e,n,r){Jn.slerpFlat(t,e,t,e,t,n,r)}_slerpAdditive(t,e,n,r,i){const o=this._workIndex*i;Jn.multiplyQuaternionsFlat(t,o,t,e,t,n),Jn.slerpFlat(t,e,t,e,t,o,r)}_lerp(t,e,n,r,i){const o=1-r;for(let s=0;s!==i;++s){const i=e+s;t[i]=t[i]*o+t[n+s]*r}}_lerpAdditive(t,e,n,r,i){for(let o=0;o!==i;++o){const i=e+o;t[i]=t[i]+t[n+o]*r}}}const ld="\\[\\]\\.:\\/",ud=new RegExp("["+ld+"]","g"),hd="[^"+ld+"]",dd="[^"+ld.replace("\\.","")+"]",fd=/((?:WC+[\/:])*)/.source.replace("WC",hd),pd=/(WCOD+)?/.source.replace("WCOD",dd),md=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hd),gd=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hd),vd=new RegExp("^"+fd+pd+md+gd+"$"),yd=["material","materials","bones"];function _d(t,e,n){const r=n||bd.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,r)}function bd(t,e,n){this.path=e,this.parsedPath=n||bd.parseTrackName(e),this.node=bd.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}Object.assign(_d.prototype,{getValue:function(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(t,e)},setValue:function(t,e){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(t,e)},bind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()},unbind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}),Object.assign(bd,{Composite:_d,create:function(t,e,n){return t&&t.isAnimationObjectGroup?new bd.Composite(t,e,n):new bd(t,e,n)},sanitizeNodeName:function(t){return t.replace(/\s/g,"_").replace(ud,"")},parseTrackName:function(t){const e=vd.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const t=n.nodeName.substring(r+1);-1!==yd.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n},findNode:function(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let r=0;r<t.length;r++){const i=t[r];if(i.name===e||i.uuid===e)return i;const o=n(i.children);if(o)return o}return null},r=n(t.children);if(r)return r}return null}}),Object.assign(bd.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)t[e++]=n[r]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++]},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){let t=this.node;const e=this.parsedPath,n=e.objectName,r=e.propertyName;let i=e.propertyIndex;if(t||(t=bd.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let r=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===r){r=e;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==r){if(void 0===t[r])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[r]}}const o=t[r];if(void 0===o){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+r+" but it wasn't found.",t)}let s=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?s=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(s=this.Versioning.MatrixWorldNeedsUpdate);let a=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[i]&&(i=t.morphTargetDictionary[i])}a=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=i}else void 0!==o.fromArray&&void 0!==o.toArray?(a=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(a=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=r;this.getValue=this.GetterByBindingType[a],this.setValue=this.SetterByBindingTypeAndVersioning[a][s]},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(bd.prototype,{_getValue_unbound:bd.prototype.getValue,_setValue_unbound:bd.prototype.setValue});class xd{constructor(){this.uuid=jn.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const t={};this._indicesByUUID=t;for(let e=0,n=arguments.length;e!==n;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const e=this;this.stats={objects:{get total(){return e._objects.length},get inUse(){return this.total-e.nCachedObjects_}},get bindingsPerObject(){return e._bindings.length}}}add(){const t=this._objects,e=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,o=i.length;let s=void 0,a=t.length,c=this.nCachedObjects_;for(let l=0,u=arguments.length;l!==u;++l){const u=arguments[l],h=u.uuid;let d=e[h];if(void 0===d){d=a++,e[h]=d,t.push(u);for(let t=0,e=o;t!==e;++t)i[t].push(new bd(u,n[t],r[t]))}else if(d<c){s=t[d];const a=--c,l=t[a];e[l.uuid]=d,t[d]=l,e[h]=a,t[a]=u;for(let t=0,e=o;t!==e;++t){const e=i[t],o=e[a];let s=e[d];e[d]=o,void 0===s&&(s=new bd(u,n[t],r[t])),e[a]=s}}else t[d]!==s&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=c}remove(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_;for(let o=0,s=arguments.length;o!==s;++o){const s=arguments[o],a=s.uuid,c=e[a];if(void 0!==c&&c>=i){const o=i++,l=t[o];e[l.uuid]=c,t[c]=l,e[a]=o,t[o]=s;for(let t=0,e=r;t!==e;++t){const e=n[t],r=e[o],i=e[c];e[c]=r,e[o]=i}}}this.nCachedObjects_=i}uncache(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,o=t.length;for(let s=0,a=arguments.length;s!==a;++s){const a=arguments[s].uuid,c=e[a];if(void 0!==c)if(delete e[a],c<i){const s=--i,a=t[s],l=--o,u=t[l];e[a.uuid]=c,t[c]=a,e[u.uuid]=s,t[s]=u,t.pop();for(let t=0,e=r;t!==e;++t){const e=n[t],r=e[s],i=e[l];e[c]=r,e[s]=i,e.pop()}}else{const i=--o,s=t[i];i>0&&(e[s.uuid]=c),t[c]=s,t.pop();for(let t=0,e=r;t!==e;++t){const e=n[t];e[c]=e[i],e.pop()}}}this.nCachedObjects_=i}subscribe_(t,e){const n=this._bindingsIndicesByPath;let r=n[t];const i=this._bindings;if(void 0!==r)return i[r];const o=this._paths,s=this._parsedPaths,a=this._objects,c=a.length,l=this.nCachedObjects_,u=new Array(c);r=i.length,n[t]=r,o.push(t),s.push(e),i.push(u);for(let n=l,r=a.length;n!==r;++n){const r=a[n];u[n]=new bd(r,t,e)}return u}unsubscribe_(t){const e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){const r=this._paths,i=this._parsedPaths,o=this._bindings,s=o.length-1,a=o[s];e[t[s]]=n,o[n]=a,o.pop(),i[n]=i[s],i.pop(),r[n]=r[s],r.pop()}}}xd.prototype.isAnimationObjectGroup=!0;class wd{constructor(t,e,n=null,r=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=n,this.blendMode=r;const i=e.tracks,o=i.length,s=new Array(o),a={endingStart:Ge,endingEnd:Ge};for(let t=0;t!==o;++t){const e=i[t].createInterpolant(null);s[t]=e,e.settings=a}this._interpolantSettings=a,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Fe,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){const n=this._clip.duration,r=t._clip.duration,i=r/n,o=n/r;t.warp(1,i,e),this.warp(o,1,e)}return this}crossFadeTo(t,e,n){return t.crossFadeFrom(this,e,n)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,n){const r=this._mixer,i=r.time,o=this.timeScale;let s=this._timeScaleInterpolant;null===s&&(s=r._lendControlInterpolant(),this._timeScaleInterpolant=s);const a=s.parameterPositions,c=s.sampleValues;return a[0]=i,a[1]=i+n,c[0]=t/o,c[1]=e/o,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,n,r){if(!this.enabled)return void this._updateWeight(t);const i=this._startTime;if(null!==i){const r=(t-i)*n;if(r<0||0===n)return;this._startTime=null,e=n*r}e*=this._updateTimeScale(t);const o=this._updateTime(e),s=this._updateWeight(t);if(s>0){const t=this._interpolants,e=this._propertyBindings;switch(this.blendMode){case Ze:for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(o),e[n].accumulateAdditive(s);break;case Ve:default:for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(o),e[n].accumulate(r,s)}}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(t)[0];e*=r,t>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;null!==n&&(e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e))}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let r=this.time+t,i=this._loopCount;const o=n===Ne;if(0===t)return-1===i?r:o&&1==(1&i)?e-r:r;if(n===De){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(r>=e)r=e;else{if(!(r<0)){this.time=r;break t}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===i&&(t>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=e||r<0){const n=Math.floor(r/e);r-=e*n,i+=Math.abs(n);const s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=t>0?e:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===s){const e=t<0;this._setEndings(e,!e,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(o&&1==(1&i))return e-r}return r}_setEndings(t,e,n){const r=this._interpolantSettings;n?(r.endingStart=He,r.endingEnd=He):(r.endingStart=t?this.zeroSlopeAtStart?He:Ge:We,r.endingEnd=e?this.zeroSlopeAtEnd?He:Ge:We)}_scheduleFading(t,e,n){const r=this._mixer,i=r.time;let o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);const s=o.parameterPositions,a=o.sampleValues;return s[0]=i,a[0]=e,s[1]=i+t,a[1]=n,this}}class Sd extends Dn{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const n=t._localRoot||this._root,r=t._clip.tracks,i=r.length,o=t._propertyBindings,s=t._interpolants,a=n.uuid,c=this._bindingsByRootAndName;let l=c[a];void 0===l&&(l={},c[a]=l);for(let t=0;t!==i;++t){const i=r[t],c=i.name;let u=l[c];if(void 0!==u)o[t]=u;else{if(u=o[t],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,a,c));continue}const r=e&&e._propertyBindings[t].binding.parsedPath;u=new cd(bd.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,a,c),o[t]=u}s[t].resultBuffer=u.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,n=t._clip.uuid,r=this._actionsByClip[n];this._bindAction(t,r&&r.knownActions[0]),this._addInactiveAction(t,n,e)}const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,n){const r=this._actions,i=this._actionsByClip;let o=i[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,i[e]=o;else{const e=o.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=r.length,r.push(t),o.actionByRoot[n]=t}_removeInactiveAction(t){const e=this._actions,n=e[e.length-1],r=t._cacheIndex;n._cacheIndex=r,e[r]=n,e.pop(),t._cacheIndex=null;const i=t._clip.uuid,o=this._actionsByClip,s=o[i],a=s.knownActions,c=a[a.length-1],l=t._byClipCacheIndex;c._byClipCacheIndex=l,a[l]=c,a.pop(),t._byClipCacheIndex=null,delete s.actionByRoot[(t._localRoot||this._root).uuid],0===a.length&&delete o[i],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==--n.referenceCount&&this._removeInactiveBinding(n)}}_lendAction(t){const e=this._actions,n=t._cacheIndex,r=this._nActiveActions++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_takeBackAction(t){const e=this._actions,n=t._cacheIndex,r=--this._nActiveActions,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_addInactiveBinding(t,e,n){const r=this._bindingsByRootAndName,i=this._bindings;let o=r[e];void 0===o&&(o={},r[e]=o),o[n]=t,t._cacheIndex=i.length,i.push(t)}_removeInactiveBinding(t){const e=this._bindings,n=t.binding,r=n.rootNode.uuid,i=n.path,o=this._bindingsByRootAndName,s=o[r],a=e[e.length-1],c=t._cacheIndex;a._cacheIndex=c,e[c]=a,e.pop(),delete s[i],0===Object.keys(s).length&&delete o[r]}_lendBinding(t){const e=this._bindings,n=t._cacheIndex,r=this._nActiveBindings++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_takeBackBinding(t){const e=this._bindings,n=t._cacheIndex,r=--this._nActiveBindings,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let n=t[e];return void 0===n&&(n=new fu(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n}_takeBackControlInterpolant(t){const e=this._controlInterpolants,n=t.__cacheIndex,r=--this._nActiveControlInterpolants,i=e[r];t.__cacheIndex=r,e[r]=t,i.__cacheIndex=n,e[n]=i}clipAction(t,e,n){const r=e||this._root,i=r.uuid;let o="string"==typeof t?Su.findByName(r,t):t;const s=null!==o?o.uuid:t,a=this._actionsByClip[s];let c=null;if(void 0===n&&(n=null!==o?o.blendMode:Ve),void 0!==a){const t=a.actionByRoot[i];if(void 0!==t&&t.blendMode===n)return t;c=a.knownActions[0],null===o&&(o=c._clip)}if(null===o)return null;const l=new wd(this,o,e,n);return this._bindAction(l,c),this._addInactiveAction(l,s,i),l}existingAction(t,e){const n=e||this._root,r=n.uuid,i="string"==typeof t?Su.findByName(n,t):t,o=i?i.uuid:t,s=this._actionsByClip[o];return void 0!==s&&s.actionByRoot[r]||null}stopAllAction(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,r=this.time+=t,i=Math.sign(t),o=this._accuIndex^=1;for(let s=0;s!==n;++s)e[s]._update(r,t,i,o);const s=this._bindings,a=this._nActiveBindings;for(let t=0;t!==a;++t)s[t].apply(o);return this}setTime(t){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,n=t.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){const t=i.knownActions;for(let n=0,r=t.length;n!==r;++n){const r=t[n];this._deactivateAction(r);const i=r._cacheIndex,o=e[e.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,o._cacheIndex=i,e[i]=o,e.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}uncacheRoot(t){const e=t.uuid,n=this._actionsByClip;for(const t in n){const r=n[t].actionByRoot[e];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}const r=this._bindingsByRootAndName[e];if(void 0!==r)for(const t in r){const e=r[t];e.restoreOriginalState(),this._removeInactiveBinding(e)}}uncacheAction(t,e){const n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}Sd.prototype._controlInterpolantsResultBuffer=new Float32Array(1);class Md{constructor(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new Md(void 0===this.value.clone?this.value:this.value.clone())}}function Ad(t,e,n){Xa.call(this,t,e),this.meshPerAttribute=n||1}function Cd(t,e,n,r,i){this.buffer=t,this.type=e,this.itemSize=n,this.elementSize=r,this.count=i,this.version=0}function Ed(t,e,n=0,r=1/0){this.ray=new Er(t,e),this.near=n,this.far=r,this.camera=null,this.layers=new jr,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function Td(t,e){return t.distance-e.distance}function Id(t,e,n,r){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===r){const r=t.children;for(let t=0,i=r.length;t<i;t++)Id(r[t],e,n,!0)}}Ad.prototype=Object.assign(Object.create(Xa.prototype),{constructor:Ad,isInstancedInterleavedBuffer:!0,copy:function(t){return Xa.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},clone:function(t){const e=Xa.prototype.clone.call(this,t);return e.meshPerAttribute=this.meshPerAttribute,e},toJSON:function(t){const e=Xa.prototype.toJSON.call(this,t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}),Object.defineProperty(Cd.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Cd.prototype,{isGLBufferAttribute:!0,setBuffer:function(t){return this.buffer=t,this},setType:function(t,e){return this.type=t,this.elementSize=e,this},setItemSize:function(t){return this.itemSize=t,this},setCount:function(t){return this.count=t,this}}),Object.assign(Ed.prototype,{set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)},intersectObject:function(t,e=!1,n=[]){return Id(t,this,n,e),n.sort(Td),n},intersectObjects:function(t,e=!1,n=[]){for(let r=0,i=t.length;r<i;r++)Id(t[r],this,n,e);return n.sort(Td),n}});class Pd{constructor(t=1,e=0,n=0){return this.radius=t,this.phi=e,this.theta=n,this}set(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(jn.clamp(e/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}class Ld{constructor(t=1,e=0,n=0){return this.radius=t,this.theta=e,this.y=n,this}set(t,e,n){return this.radius=t,this.theta=e,this.y=n,this}copy(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+n*n),this.theta=Math.atan2(t,n),this.y=e,this}clone(){return(new this.constructor).copy(this)}}const Rd=new Un;class Od{constructor(t=new Un(1/0,1/0),e=new Un(-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=Rd.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return void 0===t&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new Un),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new Un),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new Un),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new Un),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return Rd.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}Od.prototype.isBox2=!0;const Bd=new qn,kd=new qn;class Dd{constructor(t=new qn,e=new qn){this.start=t,this.end=e}set(t,e){return this.start.copy(t),this.end.copy(e),this}copy(t){return this.start.copy(t.start),this.end.copy(t.end),this}getCenter(t){return void 0===t&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new qn),t.addVectors(this.start,this.end).multiplyScalar(.5)}delta(t){return void 0===t&&(console.warn("THREE.Line3: .delta() target is now required"),t=new qn),t.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,e){return void 0===e&&(console.warn("THREE.Line3: .at() target is now required"),e=new qn),this.delta(e).multiplyScalar(t).add(this.start)}closestPointToPointParameter(t,e){Bd.subVectors(t,this.start),kd.subVectors(this.end,this.start);const n=kd.dot(kd);let r=kd.dot(Bd)/n;return e&&(r=jn.clamp(r,0,1)),r}closestPointToPoint(t,e,n){const r=this.closestPointToPointParameter(t,e);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new qn),this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this}equals(t){return t.start.equals(this.start)&&t.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}function Fd(t){$r.call(this),this.material=t,this.render=function(){},this.hasPositions=!1,this.hasNormals=!1,this.hasColors=!1,this.hasUvs=!1,this.positionArray=null,this.normalArray=null,this.colorArray=null,this.uvArray=null,this.count=0}Fd.prototype=Object.create($r.prototype),Fd.prototype.constructor=Fd,Fd.prototype.isImmediateRenderObject=!0;const Nd=new qn;class jd extends $r{constructor(t,e){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;const n=new Xi,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let t=0,e=1,n=32;t<n;t++,e++){const i=t/n*Math.PI*2,o=e/n*Math.PI*2;r.push(Math.cos(i),Math.sin(i),1,Math.cos(o),Math.sin(o),1)}n.setAttribute("position",new Di(r,3));const i=new Lc({fog:!1,toneMapped:!1});this.cone=new Uc(n,i),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateMatrixWorld();const t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Nd.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(Nd),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const Ud=new qn,zd=new Tr,Gd=new Tr;class Hd extends Uc{constructor(t){const e=function t(e){const n=[];e&&e.isBone&&n.push(e);for(let r=0;r<e.children.length;r++)n.push.apply(n,t(e.children[r]));return n}(t),n=new Xi,r=[],i=[],o=new Si(0,0,1),s=new Si(0,1,0);for(let t=0;t<e.length;t++){const n=e[t];n.parent&&n.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(o.r,o.g,o.b),i.push(s.r,s.g,s.b))}n.setAttribute("position",new Di(r,3)),n.setAttribute("color",new Di(i,3)),super(n,new Lc({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,n=this.geometry,r=n.getAttribute("position");Gd.copy(this.root.matrixWorld).invert();for(let t=0,n=0;t<e.length;t++){const i=e[t];i.parent&&i.parent.isBone&&(zd.multiplyMatrices(Gd,i.matrixWorld),Ud.setFromMatrixPosition(zd),r.setXYZ(n,Ud.x,Ud.y,Ud.z),zd.multiplyMatrices(Gd,i.parent.matrixWorld),Ud.setFromMatrixPosition(zd),r.setXYZ(n+1,Ud.x,Ud.y,Ud.z),n+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}class Wd extends fo{constructor(t,e,n){super(new Vl(e,4,2),new Mi({wireframe:!0,fog:!1,toneMapped:!1})),this.light=t,this.light.updateMatrixWorld(),this.color=n,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const Vd=new qn,Zd=new Si,Qd=new Si;class Xd extends $r{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;const r=new zl(e);r.rotateY(.5*Math.PI),this.material=new Mi({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const i=r.getAttribute("position"),o=new Float32Array(3*i.count);r.setAttribute("color",new Ei(o,3)),this.add(new fo(r,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const t=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const e=t.geometry.getAttribute("color");Zd.copy(this.light.color),Qd.copy(this.light.groundColor);for(let t=0,n=e.count;t<n;t++){const r=t<n/2?Zd:Qd;e.setXYZ(t,r.r,r.g,r.b)}e.needsUpdate=!0}t.lookAt(Vd.setFromMatrixPosition(this.light.matrixWorld).negate())}}class Yd extends Uc{constructor(t=10,e=10,n=4473924,r=8947848){n=new Si(n),r=new Si(r);const i=e/2,o=t/e,s=t/2,a=[],c=[];for(let t=0,l=0,u=-s;t<=e;t++,u+=o){a.push(-s,0,u,s,0,u),a.push(u,0,-s,u,0,s);const e=t===i?n:r;e.toArray(c,l),l+=3,e.toArray(c,l),l+=3,e.toArray(c,l),l+=3,e.toArray(c,l),l+=3}const l=new Xi;l.setAttribute("position",new Di(a,3)),l.setAttribute("color",new Di(c,3)),super(l,new Lc({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}class Jd extends Uc{constructor(t=10,e=16,n=8,r=64,i=4473924,o=8947848){i=new Si(i),o=new Si(o);const s=[],a=[];for(let n=0;n<=e;n++){const r=n/e*(2*Math.PI),c=Math.sin(r)*t,l=Math.cos(r)*t;s.push(0,0,0),s.push(c,0,l);const u=1&n?i:o;a.push(u.r,u.g,u.b),a.push(u.r,u.g,u.b)}for(let e=0;e<=n;e++){const c=1&e?i:o,l=t-t/n*e;for(let t=0;t<r;t++){let e=t/r*(2*Math.PI),n=Math.sin(e)*l,i=Math.cos(e)*l;s.push(n,0,i),a.push(c.r,c.g,c.b),e=(t+1)/r*(2*Math.PI),n=Math.sin(e)*l,i=Math.cos(e)*l,s.push(n,0,i),a.push(c.r,c.g,c.b)}}const c=new Xi;c.setAttribute("position",new Di(s,3)),c.setAttribute("color",new Di(a,3)),super(c,new Lc({vertexColors:!0,toneMapped:!1})),this.type="PolarGridHelper"}}const qd=new qn,Kd=new qn,$d=new qn;class tf extends $r{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1);let r=new Xi;r.setAttribute("position",new Di([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));const i=new Lc({fog:!1,toneMapped:!1});this.lightPlane=new Fc(r,i),this.add(this.lightPlane),r=new Xi,r.setAttribute("position",new Di([0,0,0,0,0,1],3)),this.targetLine=new Fc(r,i),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){qd.setFromMatrixPosition(this.light.matrixWorld),Kd.setFromMatrixPosition(this.light.target.matrixWorld),$d.subVectors(Kd,qd),this.lightPlane.lookAt(Kd),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(Kd),this.targetLine.scale.z=$d.length()}}const ef=new qn,nf=new bo;class rf extends Uc{constructor(t){const e=new Xi,n=new Lc({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],i=[],o={},s=new Si(16755200),a=new Si(16711680),c=new Si(43775),l=new Si(16777215),u=new Si(3355443);function h(t,e,n){d(t,n),d(e,n)}function d(t,e){r.push(0,0,0),i.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(r.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",a),h("p","n2",a),h("p","n3",a),h("p","n4",a),h("u1","u2",c),h("u2","u3",c),h("u3","u1",c),h("c","t",l),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),e.setAttribute("position",new Di(r,3)),e.setAttribute("color",new Di(i,3)),super(e,n),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){const t=this.geometry,e=this.pointMap;nf.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),of("c",e,t,nf,0,0,-1),of("t",e,t,nf,0,0,1),of("n1",e,t,nf,-1,-1,-1),of("n2",e,t,nf,1,-1,-1),of("n3",e,t,nf,-1,1,-1),of("n4",e,t,nf,1,1,-1),of("f1",e,t,nf,-1,-1,1),of("f2",e,t,nf,1,-1,1),of("f3",e,t,nf,-1,1,1),of("f4",e,t,nf,1,1,1),of("u1",e,t,nf,.7,1.1,-1),of("u2",e,t,nf,-.7,1.1,-1),of("u3",e,t,nf,0,2,-1),of("cf1",e,t,nf,-1,0,1),of("cf2",e,t,nf,1,0,1),of("cf3",e,t,nf,0,-1,1),of("cf4",e,t,nf,0,1,1),of("cn1",e,t,nf,-1,0,-1),of("cn2",e,t,nf,1,0,-1),of("cn3",e,t,nf,0,-1,-1),of("cn4",e,t,nf,0,1,-1),t.getAttribute("position").needsUpdate=!0}}function of(t,e,n,r,i,o,s){ef.set(i,o,s).unproject(r);const a=e[t];if(void 0!==a){const t=n.getAttribute("position");for(let e=0,n=a.length;e<n;e++)t.setXYZ(a[e],ef.x,ef.y,ef.z)}}const sf=new tr;class af extends Uc{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new Xi;i.setIndex(new Ei(n,1)),i.setAttribute("position",new Ei(r,3)),super(i,new Lc({color:e,toneMapped:!1})),this.object=t,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&sf.setFromObject(this.object),sf.isEmpty())return;const e=sf.min,n=sf.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=e.x,i[4]=n.y,i[5]=n.z,i[6]=e.x,i[7]=e.y,i[8]=n.z,i[9]=n.x,i[10]=e.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=e.z,i[15]=e.x,i[16]=n.y,i[17]=e.z,i[18]=e.x,i[19]=e.y,i[20]=e.z,i[21]=n.x,i[22]=e.y,i[23]=e.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(t){return this.object=t,this.update(),this}copy(t){return Uc.prototype.copy.call(this,t),this.object=t.object,this}}class cf extends Uc{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Xi;r.setIndex(new Ei(n,1)),r.setAttribute("position",new Di([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),super(r,new Lc({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}}class lf extends Fc{constructor(t,e=1,n=16776960){const r=n,i=new Xi;i.setAttribute("position",new Di([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),i.computeBoundingSphere(),super(i,new Lc({color:r,toneMapped:!1})),this.type="PlaneHelper",this.plane=t,this.size=e;const o=new Xi;o.setAttribute("position",new Di([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),o.computeBoundingSphere(),this.add(new fo(o,new Mi({color:r,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(t){let e=-this.plane.constant;Math.abs(e)<1e-8&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=e<0?m:p,this.lookAt(this.plane.normal),super.updateMatrixWorld(t)}}const uf=new qn;let hf,df;class ff extends $r{constructor(t=new qn(0,0,1),e=new qn(0,0,0),n=1,r=16776960,i=.2*n,o=.2*i){super(),this.type="ArrowHelper",void 0===hf&&(hf=new Xi,hf.setAttribute("position",new Di([0,0,0,0,1,0],3)),df=new tl(0,.5,1,5,1),df.translate(0,-.5,0)),this.position.copy(e),this.line=new Fc(hf,new Lc({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new fo(df,new Mi({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,i,o)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{uf.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(uf,e)}}setLength(t,e=.2*t,n=.2*e){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}}class pf extends Uc{constructor(t=1){const e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t],n=new Xi;n.setAttribute("position",new Di(e,3)),n.setAttribute("color",new Di([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new Lc({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}}const mf=new Float32Array(1),gf=new Int32Array(mf.buffer),vf={toHalfFloat:function(t){mf[0]=t;const e=gf[0];let n=e>>16&32768,r=e>>12&2047;const i=e>>23&255;return i<103?n:i>142?(n|=31744,n|=(255==i?0:1)&&8388607&e,n):i<113?(r|=2048,n|=(r>>114-i)+(r>>113-i&1),n):(n|=i-112<<10|r>>1,n+=1&r,n)}},yf=Math.pow(2,8),_f=[.125,.215,.35,.446,.526,.582],bf=5+_f.length,xf={[Je]:0,[qe]:1,[$e]:2,[en]:3,[nn]:4,[rn]:5,[Ke]:6},wf=new Mi({side:m,depthWrite:!1,depthTest:!1}),Sf=new fo(new mo,wf),Mf=new _h,{_lodPlanes:Af,_sizeLods:Cf,_sigmas:Ef}=function(){const t=[],e=[],n=[];let r=8;for(let i=0;i<bf;i++){const o=Math.pow(2,r);e.push(o);let s=1/o;i>4?s=_f[i-8+4-1]:0==i&&(s=0),n.push(s);const a=1/(o-1),c=-a/2,l=1+a/2,u=[c,c,l,c,l,l,c,c,l,l,c,l],h=6,d=6,f=3,p=2,m=1,g=new Float32Array(f*d*h),v=new Float32Array(p*d*h),y=new Float32Array(m*d*h);for(let t=0;t<h;t++){const e=t%3*2/3-1,n=t>2?0:-1,r=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];g.set(r,f*d*t),v.set(u,p*d*t);const i=[t,t,t,t,t,t];y.set(i,m*d*t)}const _=new Xi;_.setAttribute("position",new Ei(g,f)),_.setAttribute("uv",new Ei(v,p)),_.setAttribute("faceIndex",new Ei(y,m)),t.push(_),r>4&&r--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}(),Tf=new Si;let If=null;const Pf=(1+Math.sqrt(5))/2,Lf=1/Pf,Rf=[new qn(1,1,1),new qn(-1,1,1),new qn(1,1,-1),new qn(-1,1,-1),new qn(0,Pf,Lf),new qn(0,Pf,-Lf),new qn(Lf,0,Pf),new qn(-Lf,0,Pf),new qn(Pf,Lf,0),new qn(-Pf,Lf,0)];function Of(t){const e=Math.max(t.r,t.g,t.b),n=Math.min(Math.max(Math.ceil(Math.log2(e)),-128),127);return t.multiplyScalar(Math.pow(2,-n)),(n+128)/255}class Bf{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=function(t){const e=new Float32Array(t),n=new qn(0,1,0);return new tu({name:"SphericalGaussianBlur",defines:{n:t},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:e},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}(20),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,r=100){If=this._renderer.getRenderTarget();const i=this._allocateTargets();return this._sceneToCubeUV(t,n,r,i),e>0&&this._blur(i,0,0,e),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(t){return this._fromTexture(t)}fromCubemap(t){return this._fromTexture(t)}compileCubemapShader(){null===this._cubemapShader&&(this._cubemapShader=jf(),this._compileMaterial(this._cubemapShader))}compileEquirectangularShader(){null===this._equirectShader&&(this._equirectShader=Nf(),this._compileMaterial(this._equirectShader))}dispose(){this._blurMaterial.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(let t=0;t<Af.length;t++)Af[t].dispose()}_cleanup(t){this._pingPongRenderTarget.dispose(),this._renderer.setRenderTarget(If),t.scissorTest=!1,Ff(t,0,0,t.width,t.height)}_fromTexture(t){If=this._renderer.getRenderTarget();const e=this._allocateTargets(t);return this._textureToCubeUV(t,e),this._applyPMREM(e),this._cleanup(e),e}_allocateTargets(t){const e={magFilter:pt,minFilter:pt,generateMipmaps:!1,type:Mt,format:zt,encoding:kf(t)?t.encoding:$e,depthBuffer:!1},n=Df(e);return n.depthBuffer=!t,this._pingPongRenderTarget=Df(e),n}_compileMaterial(t){const e=new fo(Af[0],t);this._renderer.compile(e,Mf)}_sceneToCubeUV(t,e,n,r){const i=new xo(90,1,e,n),o=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],a=this._renderer,c=a.autoClear,l=a.outputEncoding,u=a.toneMapping;a.getClearColor(Tf),a.toneMapping=K,a.outputEncoding=Je,a.autoClear=!1;let h=!1;const d=t.background;if(d){if(d.isColor){wf.color.copy(d).convertSRGBToLinear(),t.background=null;const e=Of(wf.color);wf.opacity=e,h=!0}}else{wf.color.copy(Tf).convertSRGBToLinear();const t=Of(wf.color);wf.opacity=t,h=!0}for(let e=0;e<6;e++){const n=e%3;0==n?(i.up.set(0,o[e],0),i.lookAt(s[e],0,0)):1==n?(i.up.set(0,0,o[e]),i.lookAt(0,s[e],0)):(i.up.set(0,o[e],0),i.lookAt(0,0,s[e])),Ff(r,n*yf,e>2?yf:0,yf,yf),a.setRenderTarget(r),h&&a.render(Sf,i),a.render(t,i)}a.toneMapping=u,a.outputEncoding=l,a.autoClear=c}_textureToCubeUV(t,e){const n=this._renderer;t.isCubeTexture?null==this._cubemapShader&&(this._cubemapShader=jf()):null==this._equirectShader&&(this._equirectShader=Nf());const r=t.isCubeTexture?this._cubemapShader:this._equirectShader,i=new fo(Af[0],r),o=r.uniforms;o.envMap.value=t,t.isCubeTexture||o.texelSize.value.set(1/t.image.width,1/t.image.height),o.inputEncoding.value=xf[t.encoding],o.outputEncoding.value=xf[e.texture.encoding],Ff(e,0,0,3*yf,2*yf),n.setRenderTarget(e),n.render(i,Mf)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;e<bf;e++){const n=Math.sqrt(Ef[e]*Ef[e]-Ef[e-1]*Ef[e-1]),r=Rf[(e-1)%Rf.length];this._blur(t,e-1,e,n,r)}e.autoClear=n}_blur(t,e,n,r,i){const o=this._pingPongRenderTarget;this._halfBlur(t,o,e,n,r,"latitudinal",i),this._halfBlur(o,t,n,n,r,"longitudinal",i)}_halfBlur(t,e,n,r,i,o,s){const a=this._renderer,c=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const l=new fo(Af[r],c),u=c.uniforms,h=Cf[n]-1,d=isFinite(i)?Math.PI/(2*h):2*Math.PI/39,f=i/d,p=isFinite(i)?1+Math.floor(3*f):20;p>20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let t=0;t<20;++t){const e=t/f,n=Math.exp(-e*e/2);m.push(n),0==t?g+=n:t<p&&(g+=2*n)}for(let t=0;t<m.length;t++)m[t]=m[t]/g;u.envMap.value=t.texture,u.samples.value=p,u.weights.value=m,u.latitudinal.value="latitudinal"===o,s&&(u.poleAxis.value=s),u.dTheta.value=d,u.mipInt.value=8-n,u.inputEncoding.value=xf[t.texture.encoding],u.outputEncoding.value=xf[t.texture.encoding];const v=Cf[r];Ff(e,3*Math.max(0,yf-2*v),(0===r?0:2*yf)+2*v*(r>4?r-8+4:0),3*v,2*v),a.setRenderTarget(e),a.render(l,Mf)}}function kf(t){return void 0!==t&&t.type===Mt&&(t.encoding===Je||t.encoding===qe||t.encoding===Ke)}function Df(t){const e=new Xn(3*yf,3*yf,t);return e.texture.mapping=lt,e.texture.name="PMREM.cubeUv",e.scissorTest=!0,e}function Ff(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function Nf(){const t=new Un(1,1);return new tu({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:t},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}function jf(){return new tu({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}const Uf=0,zf=1,Gf=0,Hf=1,Wf=2;function Vf(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Zf(t=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t}function Qf(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new Qc(t,e)}function Xf(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new hc(t)}function Yf(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new Qc(t,e)}function Jf(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function qf(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function Kf(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function $f(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new qn(t,e,n)}function tp(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Ei(t,e).setUsage(Cn)}function ep(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Ti(t,e)}function np(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Ii(t,e)}function rp(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new Pi(t,e)}function ip(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Li(t,e)}function op(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Ri(t,e)}function sp(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Oi(t,e)}function ap(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Bi(t,e)}function cp(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Di(t,e)}function lp(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Fi(t,e)}function up(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new pf(t)}function hp(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new af(t,e)}function dp(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new Uc(new cl(t.geometry),new Lc({color:void 0!==e?e:16777215}))}function fp(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new Uc(new ql(t.geometry),new Lc({color:void 0!==e?e:16777215}))}function pp(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Pu(t)}function mp(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new ku(t)}function gp(t,e,n){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new Mo(t,n)}function vp(){console.error("THREE.CanvasRenderer has been removed")}function yp(){console.error("THREE.JSONLoader has been removed.")}Fu.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Fu.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},ih.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)},Yd.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Hd.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Tu.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Eh.extractUrlBase(t)},Tu.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Od.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},Od.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Od.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Od.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)},tr.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},tr.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},tr.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},tr.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},tr.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)},_r.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},To.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},Dd.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},jn.random16=function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},jn.nearestPowerOfTwo=function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),jn.floorPowerOfTwo(t)},jn.nextPowerOfTwo=function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),jn.ceilPowerOfTwo(t)},zn.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},zn.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},zn.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},zn.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},zn.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},zn.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Tr.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},Tr.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},Tr.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new qn).setFromMatrixColumn(this,3)},Tr.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},Tr.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Tr.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Tr.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},Tr.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Tr.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Tr.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Tr.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Tr.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Tr.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Tr.prototype.makeFrustum=function(t,e,n,r,i,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,r,n,i,o)},Tr.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},ri.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},Jn.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Jn.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Er.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Er.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},Er.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},pi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},pi.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},pi.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},pi.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},pi.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)},pi.barycoordFromPoint=function(t,e,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),pi.getBarycoord(t,e,n,r,i)},pi.normal=function(t,e,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),pi.getNormal(t,e,n,r)},oh.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},oh.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Fl(this,t)},oh.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Wl(this,t)},Un.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Un.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},Un.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},qn.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},qn.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},qn.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},qn.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},qn.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},qn.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},qn.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},qn.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Qn.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},$r.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},$r.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},$r.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},$r.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},$r.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties($r.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),fo.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(fo.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Qe},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),xc.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(Fu.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),xo.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(sh.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Ei.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Cn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Cn)}}}),Ei.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?Cn:An),this},Ei.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Ei.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Xi.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},Xi.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new Ei(arguments[1],arguments[2])))},Xi.prototype.addDrawCall=function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},Xi.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},Xi.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},Xi.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},Xi.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(Xi.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(Th.prototype,{maxInstancedCount:{get:function(){return console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount},set:function(t){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount=t}}}),Object.defineProperties(Ed.prototype,{linePrecision:{get:function(){return console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold},set:function(t){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold=t}}}),Object.defineProperties(Xa.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===Cn},set:function(t){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(t)}}}),Xa.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?Cn:An),this},Xa.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Fl.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Fl.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Fl.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Qa.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Md.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(gi.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Si}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===v}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}}}),Object.defineProperties(nu.prototype,{transparency:{get:function(){return console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission},set:function(t){console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission=t}}}),Object.defineProperties(_o.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Ha.prototype.clearTarget=function(t,e,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,r)},Ha.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},Ha.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Ha.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Ha.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Ha.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Ha.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Ha.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Ha.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Ha.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Ha.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Ha.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Ha.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Ha.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Ha.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},Ha.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Ha.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Ha.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Ha.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Ha.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Ha.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Ha.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Ha.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Ha.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Ha.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Ha.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?qe:Je}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(Ba.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Xn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),ed.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return(new Gh).load(t,(function(t){e.setBuffer(t)})),this},ad.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},wo.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},wo.prototype.clear=function(t,e,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,r)},Hn.crossOrigin=void 0,Hn.loadTexture=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const i=new Du;i.setCrossOrigin(this.crossOrigin);const o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},Hn.loadTextureCube=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const i=new Bu;i.setCrossOrigin(this.crossOrigin);const o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},Hn.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},Hn.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const _p={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function bp(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:r}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=r)},"11b2":function(t,e,n){var r=n("2774"),i=n("c197"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"11c3":function(t,e,n){var r=n("349c"),i=n("688d");t.exports=function(t){return r(i(t))}},1231:function(t,e,n){var r=n("bed0"),i=n("065f"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},"138f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1183");e.textAlign={center:new r.Vector2(0,0),left:new r.Vector2(1,0),top:new r.Vector2(0,-1),topLeft:new r.Vector2(1,-1),topRight:new r.Vector2(-1,-1),right:new r.Vector2(-1,0),bottom:new r.Vector2(0,1),bottomLeft:new r.Vector2(1,1),bottomRight:new r.Vector2(-1,1)};var i={};e.getFontHeight=function(t){var e=i[t];if(!e){var n=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createTextNode("MÉq");r.appendChild(o),r.setAttribute("style","font:"+t+";position:absolute;top:0;left:0"),n.appendChild(r),e=r.offsetHeight,i[t]=e,n.removeChild(r)}return e}},"149f":function(t,e,n){"use strict";var r=n("6dec"),i=n("c197"),o=n("1cc9"),s=n("e300"),a=n("7f69"),c=n("bd71")((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},"152f":function(t,e,n){"use strict";var r="_erd";function i(t){return t[r]}t.exports={initState:function(t){return t[r]={},i(t)},getState:i,cleanState:function(t){delete t[r]}}},1671:function(t,e,n){var r=n("93b0");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("5925").default)("dcc90e9e",r,!0,{sourceMap:!1,shadowMode:!1})},"17e0":function(t,e,n){var r=n("58bc"),i=n("bd71"),o=n("c09a");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1803:function(t,e,n){"use strict";var r=n("5451"),i=n("1cc9"),o=n("350d"),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=s(this),n=i(e),r=o(t),a=r>=0?r:n+r;return a<0||a>=n?void 0:e[a]}))},"1cba":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("2409"))},"1cbe":function(t,e,n){(function(e){(function(){var n,r,i,o,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-s)/1e6},r=e.hrtime,o=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),a=1e9*e.uptime(),s=o-a):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n("eef6"))},"1cc9":function(t,e,n){var r=n("0e3d");t.exports=function(t){return r(t.length)}},"1def":function(t,e,n){var r=n("cea5").f,i=n("11b2"),o=n("20e2")("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},"1e0a":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null!=r||void 0===n?r:n}},"1e74":function(t,e,n){var r=n("2774"),i=n("065f"),o=n("1f1f"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"1f1f":function(t,e,n){var r=n("bed0"),i=n("df5a"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},"1f97":function(t,e,n){var r=n("58bc"),i=n("cea5"),o=n("3b98");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},2063:function(t,e,n){var r=n("91920"),i=n("065f"),o=n("9887"),s=n("20e2")("toStringTag"),a=Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},"20e2":function(t,e,n){var r=n("bed0"),i=n("fddf"),o=n("11b2"),s=n("e435"),a=n("0d67"),c=n("d258"),l=i("wks"),u=r.Symbol,h=u&&u.for,d=c?u:u&&u.withoutSetter||s;t.exports=function(t){if(!o(l,t)||!a&&"string"!=typeof l[t]){var e="Symbol."+t;a&&o(u,t)?l[t]=u[t]:l[t]=c&&h?h(e):d(e)}return l[t]}},2269:function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,a,c,l,u,d,f=e&&e.length,p=f?e[0]*n:t.length,m=i(t,0,p,n,!0),g=[];if(!m||m.next===m.prev)return g;if(f&&(m=h(t,e,m,n)),t.length>80*n){r=a=t[0],o=c=t[1];for(var v=n;v<p;v+=n)(l=t[v])<r&&(r=l),(u=t[v+1])<o&&(o=u),l>a&&(a=l),u>c&&(c=u);d=0!==(d=Math.max(a-r,c-o))?32767/d:0}return s(m,g,n,r,o,d,0),g}function i(t,e,n,r,i){var o,s;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)s=C(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=C(o,t[o],t[o+1],s);return s&&b(s,s.next)&&(E(s),s=s.next),s}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==_(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function s(t,e,n,r,i,h,d){if(t){!d&&h&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=m(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,c,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<l&&(a++,r=r.nextZ);e++);for(c=l;a>0||c>0&&r;)0!==a&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,r,i,h);for(var f,p,g=t;t.prev!==t.next;)if(f=t.prev,p=t.next,h?c(t,r,i,h):a(t))e.push(f.i/n|0),e.push(t.i/n|0),e.push(p.i/n|0),E(t),t=p.next,g=p.next;else if((t=p)===g){d?1===d?s(t=l(o(t),e,n),e,n,r,i,h,2):2===d&&u(t,e,n,r,i,h):s(o(t),e,n,r,i,h,1);break}}}function a(t){var e=t.prev,n=t,r=t.next;if(_(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,s=r.x,a=e.y,c=n.y,l=r.y,u=i<o?i<s?i:s:o<s?o:s,h=a<c?a<l?a:l:c<l?c:l,d=i>o?i>s?i:s:o>s?o:s,f=a>c?a>l?a:l:c>l?c:l,p=r.next;p!==e;){if(p.x>=u&&p.x<=d&&p.y>=h&&p.y<=f&&v(i,a,o,c,s,l,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function c(t,e,n,r){var i=t.prev,o=t,s=t.next;if(_(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,l=s.x,u=i.y,h=o.y,d=s.y,f=a<c?a<l?a:l:c<l?c:l,p=u<h?u<d?u:d:h<d?h:d,g=a>c?a>l?a:l:c>l?c:l,y=u>h?u>d?u:d:h>d?h:d,b=m(f,p,e,n,r),x=m(g,y,e,n,r),w=t.prevZ,S=t.nextZ;w&&w.z>=b&&S&&S.z<=x;){if(w.x>=f&&w.x<=g&&w.y>=p&&w.y<=y&&w!==i&&w!==s&&v(a,u,c,h,l,d,w.x,w.y)&&_(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,S.x>=f&&S.x<=g&&S.y>=p&&S.y<=y&&S!==i&&S!==s&&v(a,u,c,h,l,d,S.x,S.y)&&_(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;w&&w.z>=b;){if(w.x>=f&&w.x<=g&&w.y>=p&&w.y<=y&&w!==i&&w!==s&&v(a,u,c,h,l,d,w.x,w.y)&&_(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;S&&S.z<=x;){if(S.x>=f&&S.x<=g&&S.y>=p&&S.y<=y&&S!==i&&S!==s&&v(a,u,c,h,l,d,S.x,S.y)&&_(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function l(t,e,n){var r=t;do{var i=r.prev,s=r.next.next;!b(i,s)&&x(i,r,r.next,s)&&M(i,s)&&M(s,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(s.i/n|0),E(r),E(r.next),r=t=s),r=r.next}while(r!==t);return o(r)}function u(t,e,n,r,i,a){var c=t;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&y(c,l)){var u=A(c,l);return c=o(c,c.next),u=o(u,u.next),s(c,e,n,r,i,a,0),void s(u,e,n,r,i,a,0)}l=l.next}c=c.next}while(c!==t)}function h(t,e,n,r){var o,s,a,c=[];for(o=0,s=e.length;o<s;o++)(a=i(t,e[o]*r,o<s-1?e[o+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),c.push(g(a));for(c.sort(d),o=0;o<c.length;o++)n=f(c[o],n);return n}function d(t,e){return t.x-e.x}function f(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s&&(s=a,n=r.x<r.next.x?r:r.next,a===i))return n}r=r.next}while(r!==e);if(!n)return null;var c,l=n,u=n.x,h=n.y,d=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&v(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(c=Math.abs(o-r.y)/(i-r.x),M(r,t)&&(c<d||c===d&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,d=c)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var r=A(n,t);return o(r,r.next),o(n,n.next)}function p(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function m(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&x(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||b(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,n,r){var i=S(_(t,e,n)),o=S(_(t,e,r)),s=S(_(n,r,t)),a=S(_(n,r,e));return i!==o&&s!==a||!(0!==i||!w(t,n,e))||!(0!==o||!w(t,r,e))||!(0!==s||!w(n,t,r))||!(0!==a||!w(n,e,r))}function w(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S(t){return t>0?1:t<0?-1:0}function M(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function A(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(I(t,0,o,n));if(i)for(var a=0,c=e.length;a<c;a++){var l=e[a]*n,u=a<c-1?e[a+1]*n:t.length;s-=Math.abs(I(t,l,u,n))}var h=0;for(a=0;a<r.length;a+=3){var d=r[a]*n,f=r[a+1]*n,p=r[a+2]*n;h+=Math.abs((t[d]-t[p])*(t[f+1]-t[d+1])-(t[d]-t[f])*(t[p+1]-t[d+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},2409:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},2721:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},2774:function(t,e,n){var r=n("db68"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},"287f":function(t,e,n){"use strict";n("cc6c")},"2a97":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxY2VjNGU4ZS1iOGY2LTliNGQtOTI4Ny00NDllN2M2NDNlOTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkI4MDFBOTY3RTk2MTFFODhENTE4NERCOTYxNjg4MjUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkI4MDFBOTU3RTk2MTFFODhENTE4NERCOTYxNjg4MjUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MWNlYzRlOGUtYjhmNi05YjRkLTkyODctNDQ5ZTdjNjQzZTk0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjFjZWM0ZThlLWI4ZjYtOWI0ZC05Mjg3LTQ0OWU3YzY0M2U5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmUmXhQAAADFSURBVHjaYshKSpK/fOnS1/9kgNOnTr1KT0+XZgCBmsrKsJcvX5JkwJUrV/7k5OTYMiCDCRMm9P/48YMoA27duvWvuLjYmwELYFy0aNERQgY8evTof111dSQDLhASEsK5a+fO57gMePHixf/6+voMBkIgLS1N7tKlSz/RDXj37t3/zvb2KgZiQWNjozvIVhj49OnT/97u7m4GUsH0qVPrvn///h+EJ0+YMJeBXLBkyZItM6dNW8tACbC3t2cBxRohdQABBgAt8yx0KlQQZgAAAABJRU5ErkJggg=="},"2ad0":function(t,e,n){"use strict";var r=n("1183"),i=n("bc28"),o=n("f29c"),s=n("f7a6");class a extends r.Mesh{constructor(t,e){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2",this.geometry=void 0!==t?t:new i.a,this.material=void 0!==e?e:new s.a({color:16777215*Math.random()})}computeLineDistances(){for(var t=new r.Vector3,e=new r.Vector3,n=this.geometry,i=n.attributes.instanceStart,s=n.attributes.instanceEnd,a=new Float32Array(2*i.data.count),c=0,l=0,u=i.data.count;c<u;c++,l+=2)t.fromBufferAttribute(i,c),e.fromBufferAttribute(s,c),a[l]=0===l?0:a[l-1],a[l+1]=a[l]+t.distanceTo(e);var h=new r.InstancedInterleavedBuffer(a,2,1);return Object(o.a)(n,"instanceDistanceStart",new r.InterleavedBufferAttribute(h,1,0)),Object(o.a)(n,"instanceDistanceEnd",new r.InterleavedBufferAttribute(h,1,1)),this}}var c=a,l=n("8ca7");e.a=class extends c{constructor(t,e){super(t,e),this.isLine2=!0,this.type="Line2",this.geometry=void 0!==t?t:new l.a,this.material=void 0!==e?e:new s.a({color:16777215*Math.random()})}copy(t){return this}}},"2ed2":function(t,e,n){var r=n("dc9b"),i=n("f227"),o=n("d92c"),s=Function.prototype,a=Object.prototype,c=s.toString,l=a.hasOwnProperty,u=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},"2ffc":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},3284:function(t,e,n){"use strict";var r=n("bed0"),i=n("e058"),o=n("5451"),s=n("1cc9"),a=n("42a4"),c=n("c197"),l=n("bd71"),u=r.RangeError,h=r.Int8Array,d=h&&h.prototype,f=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!l((function(){var t=new Uint8ClampedArray(2);return i(f,t,{length:1,0:3},1),3!==t[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(g)return i(f,this,n,e);var r=this.length,o=s(n),l=0;if(o+e>r)throw u("Wrong length");for(;l<o;)this[e+l]=n[l++]}),!g||v)},3471:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NTE4ZWRhOC03NjQ5LTNjNGUtYjYxZi0xNjVhZmQzNmJmMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MUJCN0UxQjY3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MUJCN0UxQjU3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDUxOGVkYTgtNzY0OS0zYzRlLWI2MWYtMTY1YWZkMzZiZjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ1MThlZGE4LTc2NDktM2M0ZS1iNjFmLTE2NWFmZDM2YmYzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvm07Z8AAADSSURBVHjaYvj//z8DPswIBI6Ojiz41LAwEAAzpk1bw83Lyw5k+uBUhM+GyRMnzv3+/ft/EJ4+dWodLnU4Dejr6en+9OnTfxh48eLF/6amJneiDelsb6969+7df3Rw+fLln+np6XIEDWloaMgA2YoL7N6163lYWBgnTkPqa2oiHz169J8QWLx48RFQrGEYUlpa6n379u1//4kAP378+D9xwoR+FEPy8vJsr1y58uc/CeDly5f/66qrw8CGZGZmSp85ffrVfzLA5UuXvuakpMgDBBgAQbLv2dsvRWYAAAAASUVORK5CYII="},"349c":function(t,e,n){var r=n("2774"),i=n("bd71"),o=n("9887"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"34af":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("1183"),o=n("138f"),s=n("3a5e"),a=function(t){function e(e,n){void 0===e&&(e=""),void 0===n&&(n={});var r=t.call(this)||this;return r._align=new i.Vector2,r._font=n.font||"30px Arial",r._fillStyle=n.fillStyle||"#FFFFFF",r._shadowColor=n.shadowColor||"rgba(0, 0, 0, 0)",r._shadowBlur=n.shadowBlur||0,r._shadowOffsetX=n.shadowOffsetX||0,r._shadowOffsetY=n.shadowOffsetY||0,r._lineHeight=n.lineHeight||1.2,r._backgroundColor=n.backgroundColor||"transparent",r._horizontalPadding=n.horizontalPadding||0,r._verticalPadding=n.verticalPadding||0,r.canvas=new s.CanvasText,r.align=n.align||o.textAlign.center,r.side=n.side||i.DoubleSide,r.antialias=void 0===n.antialias||n.antialias,r.text=e,r}return r(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.textWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.textHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text!==t&&(this._text=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this._font},set:function(t){this._font!==t&&(this._font=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(t){this._fillStyle!==t&&(this._fillStyle=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align.copy(t)},enumerable:!0,configurable:!0}),e.prototype.cleanUp=function(){this.texture&&this.texture.dispose()},e.prototype.applyAntiAlias=function(){!1===this.antialias&&(this.texture.magFilter=i.NearestFilter,this.texture.minFilter=i.LinearMipMapLinearFilter)},e}(i.Object3D);e.Text2D=a},"350d":function(t,e,n){var r=n("8cc2");t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3552:function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},3560:function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),s=r[0],a=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(h(t,a,a+s>c?c:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(u(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},3734:function(t,e,n){var r=n("bd71"),i=n("065f"),o=n("11b2"),s=n("58bc"),a=n("0152").CONFIGURABLE,c=n("1e74"),l=n("fbfa"),u=l.enforce,h=l.get,d=Object.defineProperty,f=s&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),f&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=u(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return i(this)&&h(this).source||c(this)}),"toString")},3772:function(t,e,n){"use strict";var r=n("bd71");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"37b0":function(t,e){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"3a40":function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)a(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=s(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var a=s(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(a))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function s(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){c(t,(function(t,n){return e(t,n),!1}))}function c(t,e){if(l(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function l(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:s,each:a,map:function(t,e){var n=l(t)?[]:{};return c(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:c,isList:l,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n("2409"))},"3a5e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1183"),i=n("138f"),o=function(){function t(){this.textWidth=null,this.textHeight=null,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}return Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},enumerable:!0,configurable:!0}),t.prototype.drawText=function(t,e){var n=this;this.ctx.font=e.font;var o=i.getFontHeight(e.font),s=(t||"").toString().split("\n");this.textWidth=Math.max.apply(null,s.map((function(t){return Math.ceil(n.ctx.measureText(t).width)}))),this.textHeight=o+o*e.lineHeight*(s.length-1),this.canvas.width=Math.max(2,r.Math.ceilPowerOfTwo(this.textWidth+2*e.horizontalPadding)),this.canvas.height=Math.max(2,r.Math.ceilPowerOfTwo(this.textHeight+2*e.verticalPadding)),this.ctx.font=e.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),e.backgroundColor&&(this.ctx.fillStyle=e.backgroundColor,this.ctx.fillRect(0,0,this.textWidth+2*e.horizontalPadding,this.textHeight+2*e.verticalPadding)),this.ctx.fillStyle=e.fillStyle,1===e.align.x?this.ctx.textAlign="left":0===e.align.x?this.ctx.textAlign="center":this.ctx.textAlign="right",this.ctx.textBaseline="top",this.ctx.shadowColor=e.shadowColor,this.ctx.shadowBlur=e.shadowBlur,this.ctx.shadowOffsetX=e.shadowOffsetX,this.ctx.shadowOffsetY=e.shadowOffsetY;for(var a=this.textWidth*(.5-.5*e.align.x),c=.5*(o*e.lineHeight-o),l=0;l<s.length;l++)this.ctx.fillText(s[l],a+e.horizontalPadding,o*e.lineHeight*l+e.verticalPadding+c);return this.canvas},t}();e.CanvasText=o},"3ac5":function(t,e,n){var r=n("3a40").Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(!a){var n=l(t);s((function(t){t.setAttribute(n,e),t.save(i)}))}},read:function(t){if(!a){var e=l(t),n=null;return s((function(t){n=t.getAttribute(e)})),n}},each:function(t){s((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=l(t);s((function(t){t.removeAttribute(e),t.save(i)}))},clearAll:function(){s((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(i)}))}};var i="storejs",o=r.document,s=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=o.createElement("div"),t=o.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(i),e.apply(this,r),t.removeChild(n)}}(),a=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function l(t){return t.replace(/^\d/,"___$&").replace(c,"___")}},"3b21":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n("f7eb"),i=n("1183");function o(t,e,n={}){return void 0===n[t]&&(n[t]=e.distanceToVector3(t,t).x),n[t]}function s(t=[]){let e=0,n=0;const i=t.length;for(let o=0;o<i;o++){const{coordinate:i,lnglat:s,lnglats:a,xy:c,xys:l}=t[o],u=i||s||a||c||l||t[o];let h,d;Array.isArray(u)?(h=u[0],d=u[1]):u instanceof r.Coordinate&&(h=u.x,d=u.y),e+=h,n+=d}return new r.Coordinate(e/i,n/i)}function a(t,e,n,r){if(void 0===e||"number"!=typeof e||0===e)return 0;let o;o=t instanceof i.BufferGeometry?t.attributes.position.array:Array.isArray(t)?t:t.position;let s=0;if(o){r?(void 0===r[e]&&(r[e]=n.distanceToVector3(e,e).x),s=r[e]):s=n.distanceToVector3(e,e).x;const t=o.length;if(o[0]instanceof i.Vector3)for(let e=0;e<t;e++)o[e].z+=s;else for(let e=0;e<t;e+=3)o[e+2]+=s}return s}function c(t){const e=t.length;let n=0;for(let r=0;r<e;r++){const{count:e}=t[r].position;n+=e}return new Float32Array(3*n)}},"3b56":function(t,e,n){"use strict";(function(t,r,i){n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p}));var o=null;try{var s="function"==typeof t.require&&n(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}())||__webpack_require__(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}())||n(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}());o=s.Worker}catch(t){}function a(t,e){return r.from(t,"base64").toString(e?"utf16":"utf8")}function c(t,e,n){var r=void 0===e?null:e,i=function(t,e){var n=atob(t);if(e){for(var r=new Uint8Array(n.length),i=0,o=n.length;i<o;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(t,void 0!==n&&n),o=i.indexOf("\n",10)+1,s=i.substring(o)+(r?"//# sourceMappingURL="+r:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var l="[object process]"===Object.prototype.toString.call(void 0!==i?i:0),u=function(t,e,n){return l?function(t,e,n){var r=void 0===e?null:e,i=a(t,void 0!==n&&n),s=i.indexOf("\n",10)+1,c=i.substring(s)+(r?"//# sourceMappingURL="+r:"");return function(t){return new o(c,Object.assign({},t,{eval:!0}))}}(t,e,n):function(t,e,n){var r;return function(i){return r=r||c(t,e,n),new Worker(r,i)}}(t,e,n)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgZnVuY3Rpb24gY2FsY01pbk1heChhcnJheSkgewogICAgbGV0IG1pbiA9IEluZmluaXR5OwogICAgbGV0IG1heCA9IEluZmluaXR5OwogICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcnJheS5sZW5ndGg7IGkrKykgewogICAgICBjb25zdCB2YWwgPSBhcnJheVtpXTsKICAgICAgaWYgKG1pbiA9PT0gSW5maW5pdHkpIHsKICAgICAgICBtaW4gPSB2YWw7CiAgICAgIH0gZWxzZSBpZiAobWF4ID09PSBJbmZpbml0eSkgewogICAgICAgIG1heCA9IHZhbDsKICAgICAgICBtaW4gPSBNYXRoLm1pbihtaW4sIG1heCk7CiAgICAgICAgbWF4ID0gTWF0aC5tYXgobWluLCBtYXgpOwogICAgICB9IGVsc2UgewogICAgICAgIG1pbiA9IE1hdGgubWluKHZhbCwgbWluKTsKICAgICAgICBtYXggPSBNYXRoLm1heCh2YWwsIG1heCk7CiAgICAgIH0KICAgIH0KICAgIHJldHVybiBbbWluLCBtYXhdOwogIH0KCiAgY29uc3QgY3R4ID0gc2VsZjsKICBjdHguYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsIGFzeW5jICh7IGRhdGE6IHBheWxvYWQgfSkgPT4gewogICAgY29uc3QgcmVuZGVyRm9ybSA9IHBheWxvYWRbMF07CiAgICBpZiAocmVuZGVyRm9ybSA9PT0gInJnIikgewogICAgICBjb25zdCB1RGF0YSA9IHBheWxvYWRbMV07CiAgICAgIGNvbnN0IHZEYXRhID0gcGF5bG9hZFsyXTsKICAgICAgY29uc3QgW3VNaW4sIHVNYXhdID0gY2FsY01pbk1heCh1RGF0YSk7CiAgICAgIGNvbnN0IFt2TWluLCB2TWF4XSA9IGNhbGNNaW5NYXgodkRhdGEpOwogICAgICBjb25zdCB2ZWxvY2l0eURhdGEgPSBuZXcgVWludDhBcnJheSh1RGF0YS5sZW5ndGggKiA0KTsKICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB1RGF0YS5sZW5ndGg7IGkrKykgewogICAgICAgIGNvbnN0IHIgPSAyNTUgKiAodURhdGFbaV0gLSB1TWluKSAvICh1TWF4IC0gdU1pbik7CiAgICAgICAgY29uc3QgZyA9IDI1NSAqICh2RGF0YVtpXSAtIHZNaW4pIC8gKHZNYXggLSB2TWluKTsKICAgICAgICB2ZWxvY2l0eURhdGEuc2V0KFtyLCBnLCAwLCAyNTVdLCBpICogNCk7CiAgICAgIH0KICAgICAgY3R4LnBvc3RNZXNzYWdlKFt2ZWxvY2l0eURhdGEuYnVmZmVyLCB1TWluLCB1TWF4LCB2TWluLCB2TWF4XSwgW3ZlbG9jaXR5RGF0YS5idWZmZXJdKTsKICAgIH0gZWxzZSB7CiAgICAgIGNvbnN0IHNpbmdsZURhdGEgPSBwYXlsb2FkWzFdOwogICAgICBjb25zdCBbbWluLCBtYXhdID0gY2FsY01pbk1heChzaW5nbGVEYXRhKTsKICAgICAgY29uc3QgdmVsb2NpdHlEYXRhID0gbmV3IFVpbnQ4QXJyYXkoc2luZ2xlRGF0YS5sZW5ndGggKiA0KTsKICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBzaW5nbGVEYXRhLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgY29uc3QgciA9IDI1NSAqIChzaW5nbGVEYXRhW2ldIC0gbWluKSAvIChtYXggLSBtaW4pOwogICAgICAgIHZlbG9jaXR5RGF0YS5zZXQoW3IsIDAsIDAsIDI1NV0sIGkgKiA0KTsKICAgICAgfQogICAgICBjdHgucG9zdE1lc3NhZ2UoW3ZlbG9jaXR5RGF0YS5idWZmZXIsIG1pbiwgbWF4XSwgW3ZlbG9jaXR5RGF0YS5idWZmZXJdKTsKICAgIH0KICB9KTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPURhdGFQcm9jZXNzZS5qcy5tYXAKCg==","data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YVByb2Nlc3NlLmpzIiwic291cmNlcyI6WyJ3b3JrZXI6Ly93ZWItd29ya2VyL3V0aWxzL2NvbW1vbi50cyIsIndvcmtlcjovL3dlYi13b3JrZXIvd29ya2Vycy9EYXRhUHJvY2Vzc2UudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGNhbGNNaW5NYXgoYXJyYXk6IG51bWJlcltdKTogW251bWJlciwgbnVtYmVyXSB7XG4gIGxldCBtaW4gPSBJbmZpbml0eTtcbiAgbGV0IG1heCA9IEluZmluaXR5O1xuICAvLyBAZnJvbTogaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMTM1NDQ0NzYvaG93LXRvLWZpbmQtbWF4LWFuZC1taW4taW4tYXJyYXktdXNpbmctbWluaW11bS1jb21wYXJpc29uc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGFycmF5Lmxlbmd0aDsgaSsrKSB7XG4gICAgY29uc3QgdmFsID0gYXJyYXlbaV07XG5cbiAgICBpZiAobWluID09PSBJbmZpbml0eSkge1xuICAgICAgbWluID0gdmFsO1xuICAgIH0gZWxzZSBpZiAobWF4ID09PSBJbmZpbml0eSkge1xuICAgICAgbWF4ID0gdmFsO1xuICAgICAgLy8gdXBkYXRlIG1pbiBtYXhcbiAgICAgIC8vIDEuIFBpY2sgMiBlbGVtZW50cyhhLCBiKSwgY29tcGFyZSB0aGVtLiAoc2F5IGEgPiBiKVxuICAgICAgbWluID0gTWF0aC5taW4obWluLCBtYXgpO1xuICAgICAgbWF4ID0gTWF0aC5tYXgobWluLCBtYXgpO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyAyLiBVcGRhdGUgbWluIGJ5IGNvbXBhcmluZyAobWluLCBiKVxuICAgICAgLy8gMy4gVXBkYXRlIG1heCBieSBjb21wYXJpbmcgKG1heCwgYSlcbiAgICAgIG1pbiA9IE1hdGgubWluKHZhbCwgbWluKTtcbiAgICAgIG1heCA9IE1hdGgubWF4KHZhbCwgbWF4KTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIFttaW4sIG1heF07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc051bWJlcih2YWw6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gdHlwZW9mIHZhbCA9PT0gJ251bWJlcicgJiYgIWlzTmFOKHZhbCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1ZhbGlkZSh2YWw6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gdmFsICE9PSB1bmRlZmluZWQgJiYgdmFsICE9PSBudWxsICYmICFpc05hTih2YWwpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZmluZFN0b3BMZXNzVGhhbk9yRXF1YWxUbyhzdG9wczogbnVtYmVyW10sIGlucHV0OiBudW1iZXIpIHtcbiAgY29uc3QgbGFzdEluZGV4ID0gc3RvcHMubGVuZ3RoIC0gMTtcbiAgbGV0IGxvd2VySW5kZXggPSAwO1xuICBsZXQgdXBwZXJJbmRleCA9IGxhc3RJbmRleDtcbiAgbGV0IGN1cnJlbnRJbmRleCA9IDA7XG4gIGxldCBjdXJyZW50VmFsdWU7XG4gIGxldCBuZXh0VmFsdWU7XG5cbiAgd2hpbGUgKGxvd2VySW5kZXggPD0gdXBwZXJJbmRleCkge1xuICAgIGN1cnJlbnRJbmRleCA9IE1hdGguZmxvb3IoKGxvd2VySW5kZXggKyB1cHBlckluZGV4KSAvIDIpO1xuICAgIGN1cnJlbnRWYWx1ZSA9IHN0b3BzW2N1cnJlbnRJbmRleF07XG4gICAgbmV4dFZhbHVlID0gc3RvcHNbY3VycmVudEluZGV4ICsgMV07XG5cbiAgICBpZiAoY3VycmVudFZhbHVlIDw9IGlucHV0KSB7XG4gICAgICBpZiAoY3VycmVudEluZGV4ID09PSBsYXN0SW5kZXggfHwgaW5wdXQgPCBuZXh0VmFsdWUpIHtcbiAgICAgICAgLy8gU2VhcmNoIGNvbXBsZXRlXG4gICAgICAgIHJldHVybiBjdXJyZW50SW5kZXg7XG4gICAgICB9XG5cbiAgICAgIGxvd2VySW5kZXggPSBjdXJyZW50SW5kZXggKyAxO1xuICAgIH0gZWxzZSBpZiAoY3VycmVudFZhbHVlID4gaW5wdXQpIHtcbiAgICAgIHVwcGVySW5kZXggPSBjdXJyZW50SW5kZXggLSAxO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ0lucHV0IGlzIG5vdCBhIG51bWJlci4nKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gMDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGZwNjRMb3dQYXJ0KHg6IG51bWJlcikge1xuICByZXR1cm4geCAtIE1hdGguZnJvdW5kKHgpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gbWF0NEludmVydChvdXQ6IG51bWJlcltdLCBhOiBudW1iZXJbXSkge1xuICBjb25zdCBhMDAgPSBhWzBdO1xuICBjb25zdCBhMDEgPSBhWzFdO1xuICBjb25zdCBhMDIgPSBhWzJdO1xuICBjb25zdCBhMDMgPSBhWzNdO1xuICBjb25zdCBhMTAgPSBhWzRdO1xuICBjb25zdCBhMTEgPSBhWzVdO1xuICBjb25zdCBhMTIgPSBhWzZdO1xuICBjb25zdCBhMTMgPSBhWzddO1xuICBjb25zdCBhMjAgPSBhWzhdO1xuICBjb25zdCBhMjEgPSBhWzldO1xuICBjb25zdCBhMjIgPSBhWzEwXTtcbiAgY29uc3QgYTIzID0gYVsxMV07XG4gIGNvbnN0IGEzMCA9IGFbMTJdO1xuICBjb25zdCBhMzEgPSBhWzEzXTtcbiAgY29uc3QgYTMyID0gYVsxNF07XG4gIGNvbnN0IGEzMyA9IGFbMTVdO1xuXG4gIGNvbnN0IGIwMCA9IGEwMCAqIGExMSAtIGEwMSAqIGExMDtcbiAgY29uc3QgYjAxID0gYTAwICogYTEyIC0gYTAyICogYTEwO1xuICBjb25zdCBiMDIgPSBhMDAgKiBhMTMgLSBhMDMgKiBhMTA7XG4gIGNvbnN0IGIwMyA9IGEwMSAqIGExMiAtIGEwMiAqIGExMTtcbiAgY29uc3QgYjA0ID0gYTAxICogYTEzIC0gYTAzICogYTExO1xuICBjb25zdCBiMDUgPSBhMDIgKiBhMTMgLSBhMDMgKiBhMTI7XG4gIGNvbnN0IGIwNiA9IGEyMCAqIGEzMSAtIGEyMSAqIGEzMDtcbiAgY29uc3QgYjA3ID0gYTIwICogYTMyIC0gYTIyICogYTMwO1xuICBjb25zdCBiMDggPSBhMjAgKiBhMzMgLSBhMjMgKiBhMzA7XG4gIGNvbnN0IGIwOSA9IGEyMSAqIGEzMiAtIGEyMiAqIGEzMTtcbiAgY29uc3QgYjEwID0gYTIxICogYTMzIC0gYTIzICogYTMxO1xuICBjb25zdCBiMTEgPSBhMjIgKiBhMzMgLSBhMjMgKiBhMzI7XG5cbiAgLy8gQ2FsY3VsYXRlIHRoZSBkZXRlcm1pbmFudFxuICBsZXQgZGV0ID1cbiAgICBiMDAgKiBiMTEgLSBiMDEgKiBiMTAgKyBiMDIgKiBiMDkgKyBiMDMgKiBiMDggLSBiMDQgKiBiMDcgKyBiMDUgKiBiMDY7XG5cbiAgaWYgKCFkZXQpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuICBkZXQgPSAxLjAgLyBkZXQ7XG5cbiAgb3V0WzBdID0gKGExMSAqIGIxMSAtIGExMiAqIGIxMCArIGExMyAqIGIwOSkgKiBkZXQ7XG4gIG91dFsxXSA9IChhMDIgKiBiMTAgLSBhMDEgKiBiMTEgLSBhMDMgKiBiMDkpICogZGV0O1xuICBvdXRbMl0gPSAoYTMxICogYjA1IC0gYTMyICogYjA0ICsgYTMzICogYjAzKSAqIGRldDtcbiAgb3V0WzNdID0gKGEyMiAqIGIwNCAtIGEyMSAqIGIwNSAtIGEyMyAqIGIwMykgKiBkZXQ7XG4gIG91dFs0XSA9IChhMTIgKiBiMDggLSBhMTAgKiBiMTEgLSBhMTMgKiBiMDcpICogZGV0O1xuICBvdXRbNV0gPSAoYTAwICogYjExIC0gYTAyICogYjA4ICsgYTAzICogYjA3KSAqIGRldDtcbiAgb3V0WzZdID0gKGEzMiAqIGIwMiAtIGEzMCAqIGIwNSAtIGEzMyAqIGIwMSkgKiBkZXQ7XG4gIG91dFs3XSA9IChhMjAgKiBiMDUgLSBhMjIgKiBiMDIgKyBhMjMgKiBiMDEpICogZGV0O1xuICBvdXRbOF0gPSAoYTEwICogYjEwIC0gYTExICogYjA4ICsgYTEzICogYjA2KSAqIGRldDtcbiAgb3V0WzldID0gKGEwMSAqIGIwOCAtIGEwMCAqIGIxMCAtIGEwMyAqIGIwNikgKiBkZXQ7XG4gIG91dFsxMF0gPSAoYTMwICogYjA0IC0gYTMxICogYjAyICsgYTMzICogYjAwKSAqIGRldDtcbiAgb3V0WzExXSA9IChhMjEgKiBiMDIgLSBhMjAgKiBiMDQgLSBhMjMgKiBiMDApICogZGV0O1xuICBvdXRbMTJdID0gKGExMSAqIGIwNyAtIGExMCAqIGIwOSAtIGExMiAqIGIwNikgKiBkZXQ7XG4gIG91dFsxM10gPSAoYTAwICogYjA5IC0gYTAxICogYjA3ICsgYTAyICogYjA2KSAqIGRldDtcbiAgb3V0WzE0XSA9IChhMzEgKiBiMDEgLSBhMzAgKiBiMDMgLSBhMzIgKiBiMDApICogZGV0O1xuICBvdXRbMTVdID0gKGEyMCAqIGIwMyAtIGEyMSAqIGIwMSArIGEyMiAqIGIwMCkgKiBkZXQ7XG5cbiAgcmV0dXJuIG91dDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHRyYW5zZm9ybU1hdDQob3V0OiBudW1iZXJbXSwgYTogbnVtYmVyW10sIG06IG51bWJlcltdKSB7XG4gIGNvbnN0IHggPSBhWzBdO1xuICBjb25zdCB5ID0gYVsxXTtcbiAgY29uc3QgeiA9IGFbMl07XG4gIGNvbnN0IHcgPSBhWzNdO1xuICBvdXRbMF0gPSBtWzBdICogeCArIG1bNF0gKiB5ICsgbVs4XSAqIHogKyBtWzEyXSAqIHc7IC8vIDBcbiAgb3V0WzFdID0gbVsxXSAqIHggKyBtWzVdICogeSArIG1bOV0gKiB6ICsgbVsxM10gKiB3OyAvLyAwXG4gIG91dFsyXSA9IG1bMl0gKiB4ICsgbVs2XSAqIHkgKyBtWzEwXSAqIHogKyBtWzE0XSAqIHc7IC8vIDBcbiAgb3V0WzNdID0gbVszXSAqIHggKyBtWzddICogeSArIG1bMTFdICogeiArIG1bMTVdICogdzsgLy8gMVxuICByZXR1cm4gb3V0O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0RXllKG1hdHJpeDogbnVtYmVyW10pIHtcbiAgY29uc3QgZGVmYXVsdE1hdDQgPSBbMSwgMCwgMCwgMCwgMCwgMSwgMCwgMCwgMCwgMCwgMSwgMCwgMCwgMCwgMCwgMV07IC8vIGluc3RlZCBvZiBtYXQ0LmNyZWF0ZSgpXG4gIGxldCBleWUgPSB0cmFuc2Zvcm1NYXQ0KFxuICAgIFtdLFxuICAgIFswLCAwLCAwLCAxXSxcbiAgICBtYXQ0SW52ZXJ0KGRlZmF1bHRNYXQ0LCBtYXRyaXgpIGFzIG51bWJlcltdLFxuICApO1xuICBjb25zdCBjbGlwVyA9IDEuMCAvIGV5ZVszXTtcbiAgZXllID0gZXllLm1hcCgoaXRlbTogbnVtYmVyKSA9PiBpdGVtIC8gZXllWzNdKTtcbiAgZXllWzNdID0gY2xpcFc7XG4gIHJldHVybiBleWU7XG59XG4iLCJpbXBvcnQgeyBjYWxjTWluTWF4IH0gZnJvbSAnLi4vdXRpbHMvY29tbW9uJztcblxuY29uc3QgY3R4OiBXb3JrZXIgPSBzZWxmIGFzIGFueTtcblxuY3R4LmFkZEV2ZW50TGlzdGVuZXIoJ21lc3NhZ2UnLCBhc3luYyAoeyBkYXRhOiBwYXlsb2FkIH0pID0+IHtcbiAgY29uc3QgcmVuZGVyRm9ybSA9IHBheWxvYWRbMF07XG4gIGlmIChyZW5kZXJGb3JtID09PSAncmcnKSB7XG4gICAgY29uc3QgdURhdGEgPSBwYXlsb2FkWzFdO1xuICAgIGNvbnN0IHZEYXRhID0gcGF5bG9hZFsyXTtcbiAgICBjb25zdCBbdU1pbiwgdU1heF0gPSBjYWxjTWluTWF4KHVEYXRhKTtcbiAgICBjb25zdCBbdk1pbiwgdk1heF0gPSBjYWxjTWluTWF4KHZEYXRhKTtcbiAgICBjb25zdCB2ZWxvY2l0eURhdGEgPSBuZXcgVWludDhBcnJheSh1RGF0YS5sZW5ndGggKiA0KTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IHVEYXRhLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb25zdCByID0gMjU1ICogKHVEYXRhW2ldIC0gdU1pbikgLyAodU1heCAtIHVNaW4pO1xuICAgICAgY29uc3QgZyA9IDI1NSAqICh2RGF0YVtpXSAtIHZNaW4pIC8gKHZNYXggLSB2TWluKTtcbiAgICAgIHZlbG9jaXR5RGF0YS5zZXQoW3IsIGcsIDAsIDI1NV0sIGkgKiA0KTtcbiAgICB9XG5cbiAgICBjdHgucG9zdE1lc3NhZ2UoW3ZlbG9jaXR5RGF0YS5idWZmZXIsIHVNaW4sIHVNYXgsIHZNaW4sIHZNYXhdLCBbdmVsb2NpdHlEYXRhLmJ1ZmZlcl0pO1xuICB9IGVsc2Uge1xuICAgIGNvbnN0IHNpbmdsZURhdGEgPSBwYXlsb2FkWzFdO1xuICAgIGNvbnN0IFttaW4sIG1heF0gPSBjYWxjTWluTWF4KHNpbmdsZURhdGEpO1xuICAgIGNvbnN0IHZlbG9jaXR5RGF0YSA9IG5ldyBVaW50OEFycmF5KHNpbmdsZURhdGEubGVuZ3RoICogNCk7XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBzaW5nbGVEYXRhLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb25zdCByID0gMjU1ICogKHNpbmdsZURhdGFbaV0gLSBtaW4pIC8gKG1heCAtIG1pbik7XG4gICAgICB2ZWxvY2l0eURhdGEuc2V0KFtyLCAwLCAwLCAyNTVdLCBpICogNCk7XG4gICAgfVxuXG4gICAgY3R4LnBvc3RNZXNzYWdlKFt2ZWxvY2l0eURhdGEuYnVmZmVyLCBtaW4sIG1heF0sIFt2ZWxvY2l0eURhdGEuYnVmZmVyXSk7XG4gIH1cbn0pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztFQUFPLFNBQVMsV0FBVyxLQUFtQyxFQUFBO0VBQzVELEVBQUEsSUFBSSxHQUFNLEdBQUEsUUFBQSxDQUFBO0VBQ1YsRUFBQSxJQUFJLEdBQU0sR0FBQSxRQUFBLENBQUE7RUFFVixFQUFBLEtBQUEsSUFBUyxDQUFJLEdBQUEsQ0FBQSxFQUFHLENBQUksR0FBQSxLQUFBLENBQU0sUUFBUSxDQUFLLEVBQUEsRUFBQTtFQUNyQyxJQUFBLE1BQU0sTUFBTSxLQUFNLENBQUEsQ0FBQSxDQUFBLENBQUE7RUFFbEIsSUFBQSxJQUFJLFFBQVEsUUFBVSxFQUFBO0VBQ3BCLE1BQU0sR0FBQSxHQUFBLEdBQUEsQ0FBQTtFQUFBLEtBQ1IsTUFBQSxJQUFXLFFBQVEsUUFBVSxFQUFBO0VBQzNCLE1BQU0sR0FBQSxHQUFBLEdBQUEsQ0FBQTtFQUdOLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQ3ZCLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQUEsS0FDbEIsTUFBQTtFQUdMLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQ3ZCLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQUEsS0FDekI7RUFBQSxHQUNGO0VBQ0EsRUFBTyxPQUFBLENBQUMsS0FBSyxHQUFHLENBQUEsQ0FBQTtFQUNsQjs7RUNyQkEsTUFBTSxHQUFjLEdBQUEsSUFBQSxDQUFBO0VBRXBCLEdBQUEsQ0FBSSxpQkFBaUIsU0FBVyxFQUFBLE9BQU8sRUFBRSxJQUFBLEVBQU0sU0FBYyxLQUFBO0VBQzNELEVBQUEsTUFBTSxhQUFhLE9BQVEsQ0FBQSxDQUFBLENBQUEsQ0FBQTtFQUMzQixFQUFBLElBQUksZUFBZSxJQUFNLEVBQUE7RUFDdkIsSUFBQSxNQUFNLFFBQVEsT0FBUSxDQUFBLENBQUEsQ0FBQSxDQUFBO0VBQ3RCLElBQUEsTUFBTSxRQUFRLE9BQVEsQ0FBQSxDQUFBLENBQUEsQ0FBQTtFQUN0QixJQUFBLE1BQU0sQ0FBQyxJQUFBLEVBQU0sSUFBSSxDQUFBLEdBQUksV0FBVyxLQUFLLENBQUEsQ0FBQTtFQUNyQyxJQUFBLE1BQU0sQ0FBQyxJQUFBLEVBQU0sSUFBSSxDQUFBLEdBQUksV0FBVyxLQUFLLENBQUEsQ0FBQTtFQUNyQyxJQUFBLE1BQU0sWUFBZSxHQUFBLElBQUksVUFBVyxDQUFBLEtBQUEsQ0FBTSxTQUFTLENBQUMsQ0FBQSxDQUFBO0VBQ3BELElBQUEsS0FBQSxJQUFTLENBQUksR0FBQSxDQUFBLEVBQUcsQ0FBSSxHQUFBLEtBQUEsQ0FBTSxRQUFRLENBQUssRUFBQSxFQUFBO0VBQ3JDLE1BQUEsTUFBTSxDQUFJLEdBQUEsR0FBQSxJQUFPLEtBQU0sQ0FBQSxDQUFBLENBQUEsR0FBSyxTQUFTLElBQU8sR0FBQSxJQUFBLENBQUEsQ0FBQTtFQUM1QyxNQUFBLE1BQU0sQ0FBSSxHQUFBLEdBQUEsSUFBTyxLQUFNLENBQUEsQ0FBQSxDQUFBLEdBQUssU0FBUyxJQUFPLEdBQUEsSUFBQSxDQUFBLENBQUE7RUFDNUMsTUFBYSxZQUFBLENBQUEsR0FBQSxDQUFJLENBQUMsQ0FBRyxFQUFBLENBQUEsRUFBRyxHQUFHLEdBQUcsQ0FBQSxFQUFHLElBQUksQ0FBQyxDQUFBLENBQUE7RUFBQSxLQUN4QztFQUVBLElBQUEsR0FBQSxDQUFJLFdBQVksQ0FBQSxDQUFDLFlBQWEsQ0FBQSxNQUFBLEVBQVEsSUFBTSxFQUFBLElBQUEsRUFBTSxJQUFNLEVBQUEsSUFBSSxDQUFHLEVBQUEsQ0FBQyxZQUFhLENBQUEsTUFBTSxDQUFDLENBQUEsQ0FBQTtFQUFBLEdBQy9FLE1BQUE7RUFDTCxJQUFBLE1BQU0sYUFBYSxPQUFRLENBQUEsQ0FBQSxDQUFBLENBQUE7RUFDM0IsSUFBQSxNQUFNLENBQUMsR0FBQSxFQUFLLEdBQUcsQ0FBQSxHQUFJLFdBQVcsVUFBVSxDQUFBLENBQUE7RUFDeEMsSUFBQSxNQUFNLFlBQWUsR0FBQSxJQUFJLFVBQVcsQ0FBQSxVQUFBLENBQVcsU0FBUyxDQUFDLENBQUEsQ0FBQTtFQUN6RCxJQUFBLEtBQUEsSUFBUyxDQUFJLEdBQUEsQ0FBQSxFQUFHLENBQUksR0FBQSxVQUFBLENBQVcsUUFBUSxDQUFLLEVBQUEsRUFBQTtFQUMxQyxNQUFBLE1BQU0sQ0FBSSxHQUFBLEdBQUEsSUFBTyxVQUFXLENBQUEsQ0FBQSxDQUFBLEdBQUssUUFBUSxHQUFNLEdBQUEsR0FBQSxDQUFBLENBQUE7RUFDL0MsTUFBYSxZQUFBLENBQUEsR0FBQSxDQUFJLENBQUMsQ0FBRyxFQUFBLENBQUEsRUFBRyxHQUFHLEdBQUcsQ0FBQSxFQUFHLElBQUksQ0FBQyxDQUFBLENBQUE7RUFBQSxLQUN4QztFQUVBLElBQUksR0FBQSxDQUFBLFdBQUEsQ0FBWSxDQUFDLFlBQUEsQ0FBYSxNQUFRLEVBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBRyxFQUFBLENBQUMsWUFBYSxDQUFBLE1BQU0sQ0FBQyxDQUFBLENBQUE7RUFBQSxHQUN4RTtFQUNGLENBQUMsQ0FBQTs7Ozs7OyJ9",!1);function h(t){return"number"==typeof t&&!isNaN(t)}function d(t){return t-Math.fround(t)}function f(t,e){if(!t)return!1;if(e=e||devicePixelRatio||1,t instanceof HTMLCanvasElement){const n=t.clientWidth*e,r=t.clientHeight*e;if(n<=0||r<=0)return!1;if(t.width!==n||t.height!==r)return t.width=n,t.height=r,!0}return!1}function p(t,e={}){const n=["webgl","experimental-webgl"];let r=null;function i(t){console.error(t.statusMessage)}t.addEventListener("webglcontextcreationerror",i,!1);for(let i=0;i<n.length;++i){try{r=t.getContext(n[i],e)}catch(t){}if(r)break}return t.removeEventListener("webglcontextcreationerror",i,!1),r&&r.getExtension("OES_texture_float")?r:null}function m(t,e,n){const r=t.createShader(e);if(t.shaderSource(r,n),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS)){const e=t.getShaderInfoLog(r)||"";throw t.deleteShader(r),new Error(e)}return r}function g(t,e,n,r,i){const o=t.createTexture();return t.bindTexture(t.TEXTURE_2D,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),n instanceof Uint8Array?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,r,i,0,t.RGBA,t.UNSIGNED_BYTE,n):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.bindTexture(t.TEXTURE_2D,null),o}function v(t,e){const n=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,n),e&&t.bufferData(t.ARRAY_BUFFER,e,t.STATIC_DRAW),n}function y(t,e,n=1,r=0,i){const[o,s,a,c]=e;let l=0;t.clearColor(o,s,a,c),l|=t.COLOR_BUFFER_BIT,void 0!==n&&(t.clearDepth(n),l|=t.DEPTH_BUFFER_BIT),void 0!==r&&(t.clearStencil(0|r),l|=t.STENCIL_BUFFER_BIT),t.clear(l)}class _{constructor(t,e,n,r){this.vertShader="",this.fragShader="",e&&(this.vertShader=e),n&&(this.fragShader=n),this.program=function(t,e,n){const r=m(t,t.VERTEX_SHADER,e),i=m(t,t.FRAGMENT_SHADER,n),o=t.createProgram();if(null!==o&&(t.attachShader(o,r),t.attachShader(o,i),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)))throw new Error(t.getProgramInfoLog(o)||"");return o}(t,function(t,e={}){return Object.keys(e).map(n=>{e[n]&&(t=t.replace(new RegExp(n,"g"),e[n]+" \n"))}),t}(this.vertShader,r),this.fragShader),this.gl=t,this.textureUnit=0,this.uniformSetters=this.createUniformSetters(),this.attribSetters=this.createAttributeSetters(),this.transfromStack=[]}active(){return this.gl.useProgram(this.program),this}deactive(){return this.gl.deleteProgram(this.program),this}getBindPointForSamplerType(t,e){return e===t.SAMPLER_2D?t.TEXTURE_2D:e===t.SAMPLER_CUBE?t.TEXTURE_CUBE_MAP:void 0}createUniformSetter(t,e){const{gl:n}=this,r=n.getUniformLocation(t,e.name),i=e.type,o=e.size>1&&"[0]"===e.name.substr(-3);if(i===n.FLOAT&&o)return function(t){n.uniform1fv(r,t)};if(i===n.FLOAT)return function(t){n.uniform1f(r,t)};if(i===n.FLOAT_VEC2)return function(t){n.uniform2fv(r,t)};if(i===n.FLOAT_VEC3)return function(t){n.uniform3fv(r,t)};if(i===n.FLOAT_VEC4)return function(t){n.uniform4fv(r,t)};if(i===n.INT&&o)return function(t){n.uniform1iv(r,t)};if(i===n.INT)return function(t){n.uniform1i(r,t)};if(i===n.INT_VEC2)return function(t){n.uniform2iv(r,t)};if(i===n.INT_VEC3)return function(t){n.uniform3iv(r,t)};if(i===n.INT_VEC4)return function(t){n.uniform4iv(r,t)};if(i===n.BOOL)return function(t){n.uniform1iv(r,t)};if(i===n.BOOL_VEC2)return function(t){n.uniform2iv(r,t)};if(i===n.BOOL_VEC3)return function(t){n.uniform3iv(r,t)};if(i===n.BOOL_VEC4)return function(t){n.uniform4iv(r,t)};if(i===n.FLOAT_MAT2)return function(t){n.uniformMatrix2fv(r,!1,t)};if(i===n.FLOAT_MAT3)return function(t){n.uniformMatrix3fv(r,!1,t)};if(i===n.FLOAT_MAT4)return function(t){n.uniformMatrix4fv(r,!1,t)};if((i===n.SAMPLER_2D||i===n.SAMPLER_CUBE)&&o){const t=[];for(let n=0;n<e.size;++n)t.push(this.textureUnit++);return function(t,e){return function(i){n.uniform1iv(r,e),i.forEach((function(r,i){n.activeTexture(n.TEXTURE0+e[i]),void 0!==t&&n.bindTexture(t,r)}))}}(this.getBindPointForSamplerType(n,i),t)}if(i===n.SAMPLER_2D||i===n.SAMPLER_CUBE)return function(t,e){return function(i){n.uniform1i(r,e),n.activeTexture(n.TEXTURE0+e),void 0!==t&&n.bindTexture(t,i)}}(this.getBindPointForSamplerType(n,i),this.textureUnit++);throw new Error("unknown type: 0x"+i.toString(16))}createUniformSetters(){const{gl:t}=this;this.textureUnit=0;const e={};if(null!==this.program){const n=t.getProgramParameter(this.program,t.ACTIVE_UNIFORMS);for(let r=0;r<n;++r){const n=t.getActiveUniform(this.program,r);if(!n)break;let i=n.name;"[0]"===i.substr(-3)&&(i=i.substr(0,i.length-3));const o=this.createUniformSetter(this.program,n);e[i]=o}}return e}createAttribSetter(t){const{gl:e}=this;return function(n){e.bindBuffer(e.ARRAY_BUFFER,n.buffer),e.enableVertexAttribArray(t),void 0===n.numComponents&&void 0===n.size||e.vertexAttribPointer(t,n.numComponents||n.size,n.type||e.FLOAT,n.normalize||!1,n.stride||0,n.offset||0)}}createAttributeSetters(){const{gl:t}=this,e={};if(null!==this.program){const n=t.getProgramParameter(this.program,t.ACTIVE_ATTRIBUTES);for(let r=0;r<n;++r){const n=t.getActiveAttrib(this.program,r);if(!n)break;const i=t.getAttribLocation(this.program,n.name);e[n.name]=this.createAttribSetter(i)}}return e}setAttributes(t,e){return e=e?e.attribSetters||e:this.attribSetters,Object.keys(t).forEach((function(n){const r=e[n];r&&r(t[n])})),this}setUniforms(t,e){return e=e?e.uniformSetters||e:this.uniformSetters,Object.keys(t).forEach((function(n){const r=e[n];r&&r(t[n])})),this}elements(t){return this.elementsBuffer||(this.elementsBuffer=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.elementsBuffer),t.data&&this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,t.data,t.usage||this.gl.STATIC_DRAW),void 0!==t.count&&this.runTimes(t.count),t.primitive&&this.setPrimitive(t.primitive),this}clear(t){return y(this.gl,t),this.transfromStack=[],this}runTimes(t){return this.count=t||0,this}setPrimitive(t){return this.primitive=t||this.gl.TRIANGLES,this}resize(t,e){return void 0===t||void 0===e?(f(this.gl.canvas),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height)):this.gl.viewport(0,0,t,e),this}draw(){throw new Error("should override")}translate(){throw new Error("should override")}rotate(){throw new Error("should override")}scale(){throw new Error("should override")}destroyed(){throw new Error("should override")}}var b="precision highp float;\n#define GLSLIFY 1\nuniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform vec2 u_image_res;uniform vec2 u_range;uniform vec2 u_color_range;uniform vec2 u_display_range;uniform float u_opacity;varying vec2 v_tex_pos;float calcTexture(const vec2 uv){return texture2D(u_image,uv).r;}float bilinear(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=calcTexture(vc);float tr=calcTexture(vc+vec2(px.x,0));float bl=calcTexture(vc+vec2(0,px.y));float br=calcTexture(vc+px);return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getValue(const vec2 uv){float min=u_range.x;float max=u_range.y;float r=bilinear(uv);return r*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}void main(){vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=getValue(globalWGS84);float value_t=(value-u_color_range.x)/(u_color_range.y-u_color_range.x);vec2 ramp_pos=vec2(fract(16.0*value_t),floor(16.0*value_t)/16.0);vec4 color=texture2D(u_color_ramp,ramp_pos);bool display=value<u_display_range.y&&value>u_display_range.x;if(display){gl_FragColor=vec4(floor(255.0*color*u_opacity)/255.0);}else{gl_FragColor=vec4(0.0,0.0,0.0,0.0);}}",x="#define GLSLIFY 1\nattribute vec3 instancePositions;attribute vec3 instancePositions64Low;attribute vec2 a_texCoord;uniform mat4 u_matrix;uniform vec4 u_cameraEye;uniform vec4 u_cameraEye64Low;uniform float u_offset;uniform sampler2D u_image;uniform vec2 u_image_res;uniform vec2 u_range;uniform vec2 u_mapping_range;varying vec2 v_tex_pos;varying float v_value;float calcTexture(const vec2 uv){return texture2D(u_image,uv).r;}float bilinear(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=calcTexture(vc);float tr=calcTexture(vc+vec2(px.x,0));float bl=calcTexture(vc+vec2(0,px.y));float br=calcTexture(vc+px);return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getValue(const vec2 uv){float min=u_mapping_range.x;float max=u_mapping_range.y;float r=bilinear(uv);return r*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}\n#modules-transformZ\nvoid main(){v_tex_pos=a_texCoord;vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=getValue(globalWGS84);float z=transformZ(value,instancePositions);vec4 pos=vec4(instancePositions-u_cameraEye.xyz,0.0);pos+=vec4(instancePositions64Low-u_cameraEye64Low.xyz,0.0);\n#modules-project\n}";class w extends _{constructor(t,e,n,r){super(t,e||x,n||b,r||{}),this.vertShader=x,this.fragShader=b}draw(){if(void 0!==this.checkExt){const t=this.primitive||this.gl.TRIANGLES;this.checkExt?this.gl.drawElements(t,this.count,this.gl.UNSIGNED_INT,0):this.gl.drawElements(t,this.count,this.gl.UNSIGNED_SHORT,0)}else this.checkExt=this.gl.getExtension("OES_element_index_uint");return this}translate(){return this}rotate(){return this}scale(){return this}}function S(t,e){const n=document.createElement("canvas"),r=n.getContext("2d");n.width=256,n.height=1;const{input:i}=function(t){if(Array.isArray(t)&&t.length>3){const e=t[0],n=t[1],r=[];for(let e=3;e<t.length;e+=2){const n=t[e],i=t[e+1];r.push({key:n,value:i})}return{operator:e,interpolation:{name:n[0],base:n[1]},input:r}}return console.warn("[wind-core]: style-parser style config invalid"),{}}(e);if(r&&i&&Array.isArray(i)){const e=i.map(t=>parseFloat(t.key)),n=[Math.min(...e),Math.max(...e)],[o,s]=[t[0]||n[0],t[1]||n[1]],a=r.createLinearGradient(0,0,256,0);for(let t=0;t<i.length;t+=1){const e=i[t].key,n=i[t].value;a.addColorStop((e-o)/(s-o),n)}return r.fillStyle=a,r.fillRect(0,0,256,1),{data:new Uint8Array(r.getImageData(0,0,256,1).data),colorRange:n}}return{}}function M(t,e,n,r){const i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}const A={};function C(t,e,n,r,i){const o=`${t}_${n}`,s=r[n];if(h(s))return A[o]&&delete A[o],s;if(s&&Array.isArray(s)&&(!A[o]||i)&&(A[o]=function(t){if(Array.isArray(t)&&t.length>3){const e=t[0],n=t[1],r=[];for(let e=3;e<t.length;e+=2){const n=t[e],i=t[e+1];r.push({key:n,value:i})}return{operator:e,interpolation:{name:n[0],base:n[1]},input:r}}return console.warn("[wind-core]: style-parser style config invalid"),{}}(s)),A[o]){const{input:t,interpolation:n}=A[o]||{};if(t&&Array.isArray(t)){const r=t.map(t=>t.key),i=t.map(t=>t.value);if(e<=r[0])return i[0];const o=r.length;if(e>=r[o-1])return i[o-1];const s=function(t,e){const n=t.length-1;let r,i,o=0,s=n,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),r=t[a],i=t[a+1],r<=e){if(a===n||e<i)return a;o=a+1}else{if(!(r>e))throw new Error("Input is not a number.");s=a-1}return 0}(r,e),a=r.length-1,c=function(t,e,n,r){let i=0;return"exponential"===t.name?i=M(e,t.base,n,r):"linear"===t.name?i=M(e,1,n,r):"cubic-bezier"===t.name&&console.warn("interpolationFactor"),i}(n,e,r[s],r[s>=a?a:s+1]);return function(t,e,n){return t*(1-n)+e*n}(i[s],i[s>=a?a:s+1],c)}return 1}return 1}var E="precision highp float;\n#define GLSLIFY 1\nuniform sampler2D u_wind;uniform sampler2D u_color_ramp;uniform vec2 u_image_res;uniform vec2 u_wind_min;uniform vec2 u_wind_max;uniform vec2 u_color_range;uniform vec2 u_display_range;uniform float u_opacity;varying vec2 v_tex_pos;vec2 windTexture(const vec2 uv){return texture2D(u_wind,uv).rg;}float bilinearU(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).r;float tr=windTexture(vc+vec2(px.x,0)).r;float bl=windTexture(vc+vec2(0,px.y)).r;float br=windTexture(vc+px).r;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float bilinearV(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).g;float tr=windTexture(vc+vec2(px.x,0.0)).g;float bl=windTexture(vc+vec2(0.0,px.y)).g;float br=windTexture(vc+px).g;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getV(const vec2 uv){float min=u_wind_min.y;float max=u_wind_max.y;float r=bilinearV(uv);return r*(max-min)+min;}float getU(const vec2 uv){float min=u_wind_min.x;float max=u_wind_max.x;float r=bilinearU(uv);return r*(max-min)+min;}float windSpeed(const vec2 uv){float u=getU(uv);float v=getV(uv);return length(vec2(u,v));}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}void main(){vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=windSpeed(globalWGS84);float value_t=(value-u_color_range.x)/(u_color_range.y-u_color_range.x);vec2 ramp_pos=vec2(fract(16.0*value_t),floor(16.0*value_t)/16.0);vec4 color=texture2D(u_color_ramp,ramp_pos);bool display=value<u_display_range.y&&value>u_display_range.x;if(display){gl_FragColor=vec4(floor(255.0*color*u_opacity)/255.0);}else{gl_FragColor=vec4(0.0,0.0,0.0,0.0);}}",T="#define GLSLIFY 1\nattribute vec3 instancePositions;attribute vec3 instancePositions64Low;attribute vec2 a_texCoord;uniform mat4 u_matrix;uniform vec4 u_cameraEye;uniform vec4 u_cameraEye64Low;uniform float u_offset;uniform sampler2D u_wind;uniform vec2 u_image_res;uniform vec2 u_wind_min;uniform vec2 u_wind_max;uniform vec2 u_mapping_range;varying vec2 v_tex_pos;varying float v_value;vec2 windTexture(const vec2 uv){return texture2D(u_wind,uv).rg;}float bilinearU(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).r;float tr=windTexture(vc+vec2(px.x,0)).r;float bl=windTexture(vc+vec2(0,px.y)).r;float br=windTexture(vc+px).r;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float bilinearV(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).g;float tr=windTexture(vc+vec2(px.x,0.0)).g;float bl=windTexture(vc+vec2(0.0,px.y)).g;float br=windTexture(vc+px).g;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getV(const vec2 uv){float min=u_wind_min.y;float max=u_wind_max.y;float r=bilinearV(uv);return r*(max-min)+min;}float getU(const vec2 uv){float min=u_wind_min.x;float max=u_wind_max.x;float r=bilinearU(uv);return r*(max-min)+min;}float windSpeed(const vec2 uv){float u=getU(uv);float v=getV(uv);float min=u_mapping_range.x;float max=u_mapping_range.y;float val=length(vec2(u,v));return val*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}\n#modules-transformZ\nvoid main(){v_tex_pos=a_texCoord;vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=windSpeed(globalWGS84);float z=transformZ(value,instancePositions);vec4 pos=vec4(instancePositions-u_cameraEye.xyz,0.0);pos+=vec4(instancePositions64Low-u_cameraEye64Low.xyz,0.0);\n#modules-project\n}";class I extends _{constructor(t,e,n,r){super(t,e||T,n||E,r||{}),this.vertShader=T,this.fragShader=E}draw(){if(void 0!==this.checkExt){const t=this.primitive||this.gl.TRIANGLES;this.checkExt?this.gl.drawElements(t,this.count,this.gl.UNSIGNED_INT,0):this.gl.drawElements(t,this.count,this.gl.UNSIGNED_SHORT,0)}else this.checkExt=this.gl.getExtension("OES_element_index_uint");return this}translate(){return this}rotate(){return this}scale(){return this}destroyed(){}}const P={renderForm:"r",styleSpec:{"fill-color":["interpolate",["linear"],["get","value"],0,"#3288bd",10,"#66c2a5",20,"#abdda4",30,"#e6f598",40,"#fee08b",50,"#fdae61",60,"#f46d43",100,"#d53e4f"],opacity:1},displayRange:[1/0,1/0],mappingRange:[0,0],widthSegments:1,heightSegments:1,wireframe:!1,createPlaneBuffer:(t,e,n)=>{const[r,i,o,s]=[t[0][0],t[2][0],t[0][1],t[1][1]];return function(t,e,n,r,i,o){const s=e-t,a=r-n,c=s/2,l=a/2,u=Math.floor(i),h=Math.floor(o),f=u+1,p=h+1,m=s/u,g=a/h,v=[],y=[],_=[],b=[],x=[];for(let e=0;e<p;e++){const r=e*g;for(let i=0;i<f;i++){const o=t+i*m/c/2*s,f=n+r/l/2*a;_.push(o,f,0),b.push(d(o),d(f),0),x.push(i/u,e/h)}}for(let t=0;t<h;t++)for(let e=0;e<u;e++){const n=e+f*t,r=e+f*(t+1),i=e+1+f*(t+1),o=e+1+f*t;v.push(n,r,o),v.push(r,i,o)}for(let t=0,e=v.length;t<e;t+=3){const e=v[t],n=v[t+1],r=v[t+2];y.push(e,n,n,r,r,e)}return{uvs:{data:x,size:2},elements:{data:v,count:v.length},wireframeElements:{data:y,count:y.length},position:{data:_,size:3},positionLow:{data:b,size:3}}}(r,i,o,s,e,n)},injectShaderModules:{"#modules-transformZ":"\nfloat transformZ(float value, vec3 pos) {\n return 0.0;\n}\n ","#modules-project":"\ngl_Position = u_matrix * vec4(pos.xy + vec2(u_offset, 0.0), pos.z + z, 1.0);\n "}};let L=0;class R{constructor(t,e){if(this.gl=t,this.uid="ScalarFill_"+L,L++,!this.gl)throw new Error("initialize error");e||(e={}),this.options={...P,...e},this.opacity=this.options.opacity||1}updateOptions(t){this.options={...this.options,...t},this.buildColorRamp(),"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec,!0))}setFillColor(){this.buildColorRamp()}setOpacity(t){this.opacity=t}handleZoom(){"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec))}buildColorRamp(){var t;const{data:e,colorRange:n}=S([],null==(t=this.options.styleSpec)?void 0:t["fill-color"]);n&&(this.colorRange=n),e&&(this.colorRampTexture=g(this.gl,this.gl.NEAREST,e,16,16))}initialize(t){this.drawCommand||("rg"===this.options.renderForm?this.drawCommand=new I(t,void 0,void 0,this.options.injectShaderModules):"r"===this.options.renderForm?this.drawCommand=new w(t,void 0,void 0,this.options.injectShaderModules):console.warn("This type is not supported temporarily")),this.buildColorRamp(),"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec))}initializeVertex(t){let e=0;const n=t.length,r=[];for(;e<n;e++){const n=t[e],i=this.getMercatorCoordinate(n);r.push([i[0],i[1]])}const i=(this.options.createPlaneBuffer||P.createPlaneBuffer)(r,this.options.widthSegments||1,this.options.heightSegments||1);return{indexes:i.elements.data,wireframeIndexes:i.wireframeElements.data,quadBuffer:v(this.gl,new Float32Array(i.position.data)),quad64LowBuffer:v(this.gl,new Float32Array(i.positionLow.data)),texCoordBuffer:v(this.gl,new Float32Array(i.uvs.data))}}getTextureData(t){return new Promise((e,n)=>{if("image"===t.type&&t.url)(function(t){return new Promise((e,n)=>{t||n(new Event("url is null"));const r=new Image;r.crossOrigin="anonymous",r.onload=()=>e(r),r.onerror=n,r.src=t,r.complete&&e(r)})})(t.url).then(n=>{const r={width:n.width,height:n.height,texture:g(this.gl,this.gl.LINEAR,n,n.width,n.height),...this.initializeVertex(t.extent)};"rg"===this.options.renderForm?(r.uMin=t.uMin,r.uMax=t.uMax,r.vMin=t.vMin,r.vMax=t.vMax):"r"===this.options.renderForm?(r.min=t.min,r.max=t.max):console.warn("This type is not supported temporarily"),e(r)}).catch(t=>n(t));else if("jsonArray"===t.type&&t.data){const n=t.data;let r;r=t.extent?t.extent:[[n[0].header.lo1,n[0].header.la1],[n[0].header.lo1,n[0].header.la2],[n[0].header.lo2,n[0].header.la1],[n[0].header.lo2,n[0].header.la2]];const i={width:n[0].header.nx,height:n[0].header.ny,...this.initializeVertex(r)};if(this.worker||(this.worker=new u,this.worker.addEventListener("message",({data:t})=>{"rg"===this.options.renderForm?(i.uMin=t[1],i.uMax=t[2],i.vMin=t[3],i.vMax=t[4],i.texture=g(this.gl,this.gl.LINEAR,new Uint8Array(t[0]),i.width,i.height)):"r"===this.options.renderForm?(i.min=t[1],i.max=t[2],i.texture=g(this.gl,this.gl.LINEAR,new Uint8Array(t[0]),i.width,i.height)):console.warn("This type is not supported temporarily"),e(i)})),"rg"===this.options.renderForm){let t,e;n.forEach(n=>{switch(n.header.parameterCategory+","+n.header.parameterNumber){case"1,2":case"2,2":t=n;break;case"1,3":case"2,3":e=n}});const r=new Float32Array(t.data),i=new Float32Array(e.data);this.worker.postMessage(["rg",r,i])}else if("r"===this.options.renderForm){const t=new Float32Array(n[0].data);this.worker.postMessage(["r",t])}else console.warn("This type is not supported temporarily")}})}setData(t,e){this.gl&&t&&this.getTextureData(t).then(t=>{this.data=t,e&&e(!0),this.data&&this.initialize(this.gl),this.options.triggerRepaint&&(this.handleZoom(),this.options.triggerRepaint())}).catch(t=>{e&&e(!1),console.error(t)})}getData(){return this.data}getMercatorCoordinate([t,e]){return[t,e]}prerender(){}render(t,e,n){if(this.data&&this.drawCommand&&this.data.texture&&this.colorRampTexture){const r=this.opacity,i={u_opacity:h(r)?r:1,u_image_res:[this.data.width,this.data.height],u_matrix:t,u_offset:h(e)?e:0,u_color_ramp:this.colorRampTexture,u_color_range:this.colorRange,u_mapping_range:this.options.mappingRange||[0,0]};if(n&&(i.u_cameraEye=n.cameraEye,i.u_cameraEye64Low=n.cameraEye64Low),"rg"===this.options.renderForm){i.u_wind_min=[this.data.uMin,this.data.vMin],i.u_wind_max=[this.data.uMax,this.data.vMax],i.u_wind=this.data.texture;const t=[Math.sqrt(this.data.uMin*this.data.uMin+this.data.vMin*this.data.vMin),Math.sqrt(this.data.uMin*this.data.uMin+this.data.vMax*this.data.vMax),Math.sqrt(this.data.uMax*this.data.uMax+this.data.vMax*this.data.vMax),Math.sqrt(this.data.uMax*this.data.uMax+this.data.vMin*this.data.vMin)],e=0,n=Math.max(...t);i.u_display_range=this.options.displayRange||[e,n]}else"r"===this.options.renderForm?(i.u_range=[this.data.min,this.data.max],i.u_image=this.data.texture,i.u_display_range=this.options.displayRange||[i.u_range[0]-1,i.u_range[1]+1]):console.warn("This type is not supported temporarily");const o=this.gl.isEnabled(this.gl.DEPTH_TEST);this.gl.enable(this.gl.DEPTH_TEST),this.gl.depthMask(!0),this.gl.depthFunc(this.gl.LEQUAL);const s=this.options.wireframe?this.data.wireframeIndexes:this.data.indexes;this.drawCommand.active().setUniforms(i).setAttributes({instancePositions:{buffer:this.data.quadBuffer,numComponents:3},instancePositions64Low:{buffer:this.data.quad64LowBuffer,numComponents:3},a_texCoord:{buffer:this.data.texCoordBuffer,numComponents:2}}).elements({data:new Uint32Array(s),primitive:this.options.wireframe?this.gl.LINES:this.gl.TRIANGLES,count:null==s?void 0:s.length,usage:this.gl.STATIC_DRAW}).draw(),o||this.gl.disable(this.gl.DEPTH_TEST)}}postrender(){}destroyData(){this.data}destroyed(){this.destroyData(),this.worker&&this.worker.terminate()}}}).call(this,n("2ffc")(t),n("fd40").Buffer,n("eef6"))},"3b98":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"3d2a":function(t,e,n){"use strict";var r=n("5451"),i=n("b92d").findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3f61":function(t,e,n){var r=n("a25b"),i=n("41dc");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"41dc":function(t,e){t.exports=function(t){return null==t}},"42a4":function(t,e,n){var r=n("8325"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw i("Wrong offset");return n}},"42ef":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"442c":function(t,e,n){"use strict";n("149f"),n("6e9f");var r=n("1183"),i=n("f7eb"),o=n("d3f4"),s=n.n(o),a=n("bb7e");e.a=class{constructor(t,e,n){const{altitude:o,isLabel:a,labelMinZoom:c,labelMaxZoom:l,labelLayerName:u,labelVisible:h,canvasSize:d,markSize:f,pointMinZoom:p,pointOrder:m,isToolTip:g,isPointNum:v,sizeType:y,iconFile:_}=e;if(0==t.length)return void console.error("需要绘制的点位数量为0");const b=new r.PointsMaterial({sizeAttenuation:!1,transparent:!0,depthTest:!1});a&&u&&(this.layerLabel=new i.VectorLayer(u,{minZoom:c||15,maxZoom:e.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:h||!1,zIndex:1001}).addTo(n.map),this.all_labels=[]);const x=[];if(this.typeValues={},this.ptcolors={},this.colorIndex=0,this.initTypeValue=-.9,this.canvasSize=d||48,this.markSize=f||40,this.threeLayer=n,this.map=n.map,this._initChildVar(e,n),t.slice(0,1/0).map(t=>{if(1*t.longitude>70&&1*t.longitude<138&&1*t.latitude>0&&1*t.latitude<56){const n=this._getImgType(t.businessType,t.imgSrc,t);if(this._bindDataItem(x,t,n),this.layerLabel){const n=1,r=new i.Marker([parseFloat(t.longitude),parseFloat(t.latitude)],{properties:{name:t.name,type:t.businessType,code:t.code,status:n},symbol:{textFaceName:e.nameFaceName||"microsoft yahei",textName:"{name}",textSize:e.nameFontSize||12,textFill:e.nameFontColor||"#cbd3ff",textDx:void 0!==e.nameDx?e.nameDx:0,textDy:void 0!==e.nameDy?e.nameDy:30}});1==t.visibility&&this.layerLabel.addGeometry(r),this.all_labels.push(r)}}}),this.textures=null,this.m=b,this.dataItems=x,this.point=[],this.shader=null,this.minZoom=p||8,this.maxZoom=e.pointMaxZoom||20,this.order=m||0,this.isToolTip=g||!1,this.customTooltip=e.customTooltip||!1,this.clickFunc=e.clickFunc||null,this.cFunc=e.cFunc||null,this.mouseMoveFunc=e.mouseMoveFunc||null,this.mouseOutFunc=e.mouseOutFunc||null,this.mMoveFunc=e.mMoveFunc||null,this.clickInfoFlag=void 0!==e.clickInfoFlag&&e.clickInfoFlag,this.iconFile=_||null,this.iconW=e.iconW||48,this.iconH=e.iconH||48,this.iconDx=e.iconDx||0,this.iconDy=e.iconDy||0,this.isPointNum=v||!1,this.iconFile&&(this.Infolayer=this.map.getLayer("infoLayer"),this.Infolayer||(this.Infolayer=new i.VectorLayer("infoLayer",{geometryEvents:!1,hitDetect:!1,zIndex:1001,iconCode:null,enableAltitude:!0}).addTo(n.map))),this.clickInfoFlag){const t={custom:!0,dy:e.infoDy||-48,content:"",animation:!1,autoOpenOn:null};this.infoWindow=new i.ui.InfoWindow(t).addTo(this.map)}this.layerPointNumLabel=new i.VectorLayer(i.Util.GUID(),{hitDetect:!1,zIndex:1001}).addTo(n.map),this.selectItems=[],this.funcsNew={},this.fitZoom=null,this.isCtrol=!0,this.selectMesh=[],this.rbush=new s.a,this.GLOBALSCALE=32768,this.XMAX=178,this.YMAX=85,this.MAXZOOM=31,this.SCALES=[];for(let t=0;t<this.MAXZOOM;t++)this.SCALES.push(129202.08021/Math.pow(2,t));this.clusterItemsCache={},this.clusterMinZoom=9,this.clusterMaxZoom=18,this.altitude=o,this.labelMaxZoom=l}_initChildVar(t,e){throw new Error(e,"需要在派生类中实现")}_bindMapEvents(){this.map.on("zooming zoomend",this._setSizeOn,this),this.point.forEach(t=>{t.on("click mousemove mouseout",this._setPointEvent,this)})}_setSizeOn(){const t=this._getRate();this.shader&&(this.shader.uniforms.size1.value=this.markSize*t),this.highlightmaterial&&(this.highlightmaterial.uniforms.size1.value=this.selectMarkSize*t);for(const t in this.funcsNew)this.funcsNew[t]()}_addOtherIcon(t,e){this.Infolayer&&e.iconFile&&new i.Marker([t.coordinate[0],t.coordinate[1]],{properties:{code:t.code},symbol:{markerFile:e.iconFile,markerWidth:e.iconW||this.iconW,markerHeight:e.iconH||this.iconH,markerDx:e.iconDx||this.iconDx,markerDy:e.iconDy||this.iconDy,markerOpacity:1}}).addTo(this.Infolayer)}_addIcon(t){this.Infolayer&&(this.Infolayer.clear(),new i.Marker([t.coordinate[0],t.coordinate[1]],{properties:{code:t.code,altitude:t.height},symbol:{markerFile:this.iconFile,markerWidth:this.iconW,markerHeight:this.iconH,markerDx:this.iconDx,markerDy:this.iconDy,markerOpacity:1}}).addTo(this.Infolayer),this.Infolayer.options.iconCode=t.code)}async addMouseOutFunc(t){await this.mouseOutFunc(t)}async addMMoveFunc(t){await this.mMoveFunc(this.point,t,this.threeLayer)}async addMouseMoveFunc(t){this.clickInfoFlag?await this.mouseMoveFunc(this.infoWindow,t):await this.mouseMoveFunc(t),this.clickInfoFlag&&(!1===this.infosCustom&&this.hideInfoWindows(),this.infoWindow.show({x:t.coordinate.x,y:t.coordinate.y}))}async addContent(t){this.clickInfoFlag&&!this.customTooltip?await this.clickFunc(this.infoWindow,t.target.data):await this.clickFunc(t.target.data),this.iconFile&&this._addIcon(t.target.data),this.clickInfoFlag&&!this.customTooltip&&(!1===this.infosCustom&&this.hideInfoWindows(),this.infoWindow.show({x:t.coordinate.x,y:t.coordinate.y}))}async addCFunc(t){await this.cFunc(t,this.threeLayer)}destroySecObjects(){for(let t=0;t<this.selectMesh.length;t++){const e=this.selectMesh[t];e.object3d.geometry&&e.object3d.geometry.dispose()}this.selectMesh=[]}_setPointEvent(t){const e=t.target;if("mousemove"===t.type&&e){const t=e.data.value;this.isToolTip&&(e.getToolTip()._content=""+t),this.customTooltip&&this.mouseMoveFunc&&this.addMouseMoveFunc(e),this.mMoveFunc&&!1===this.isToolTip&&!1===this.customTooltip&&this.addMMoveFunc(e)}"mouseout"===t.type&&this.customTooltip&&(this.infoWindow.hide(),this.mouseOutFunc&&this.addMouseOutFunc(e)),"click"===t.type&&t&&(this.clickFunc&&!this.cFunc&&this.addContent(t),this.cFunc&&this.addCFunc(t))}_bindDataItem(t,e,n){throw new Error(t,e,n,"需要在派生类中实现")}_getImgType(t,e,n){throw new Error(t,e,"需要在派生类中实现")}_deleteFunsKey(t){if(t){for(const e in this.funcsNew)if(t&&t===e){delete this.funcsNew[e];break}}else for(const t in this.funcsNew)delete this.funcsNew[t]}dispose(t){for(var e in this.isToolTip&&this.point&&this.point.forEach(t=>{t.removeToolTip()}),this.clearIcon(t),this.rbush&&(this.rbush.clear(),delete this.rbush),this.layerLabel&&(this.map.removeLayer(this.layerLabel),delete this.layerLabel,this.all_labels=[]),this.layerPointNumLabel&&this.map&&(this.map.removeLayer(this.layerPointNumLabel),delete this.layerPointNumLabel),this._closeEvent(),this._deleteFunsKey(),this.typeValues)delete this.typeValues[e];this.typeValues={},this.point&&(this.threeLayer.removeMesh(this.point),this.point.forEach(t=>{if(t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose(),t._indexs_hide){for(const e in t._indexs_hide)delete t._indexs_hide[e];delete t._indexs_hide}t._datas=[],t._geometriesAttributes=[],t.toolTip&&delete t.toolTip,t.options.points=[],t.options.positions=[]})),this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this.clickFunc&&delete this.clickFunc,this.mouseMoveFunc&&delete this.mouseMoveFunc,this.mouseOutFunc&&delete this.mouseOutFunc,this.textures&&this.textures.length>0&&(this.textures.forEach(t=>{t.dispose()}),delete this.textures),this.dataItems=[],this.threeLayer=null,this.map=null,delete this.shader,this.m&&(this.m.dispose(),delete this.m),this.selectItems=[]}findItemByCode(t){for(let e=0;e<this.dataItems.length;e++)if(this.dataItems[e].code===t)return e}changePointMinZoom(t){this.point&&(this.point.options.minZoom=t)}_closeEvent(){this.point&&this.map.off("zooming zoomend",this._setSizeOn,this),this.point&&this.point.forEach(t=>{t.off("click mousemove mouseout",this._setPointEvent,this)})}clearIconByCode(t){if(this.Infolayer){const e=this.Infolayer.getGeometries();for(let n=0;n<e.length;n++)if(e[n].properties.code===t){this.Infolayer.removeGeometry(e[n]);break}}}clearIcon(t){void 0!==t&&!0!==t||this.Infolayer&&(this.Infolayer.clear(),this.Infolayer.options.iconCode=null),this.infoWindow&&this.infoWindow.hide()}hideInfoWindows(t){throw new Error("需要在派生类中实现")}async _loadTexture(){throw new Error("需要在派生类中实现")}pointShowHide(t,e,n,r,i){this.point&&(this.layerPointNumLabel&&this.layerPointNumLabel.clear(),this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this._deleteFunsKey(),this.selectItems=[],this.point.show(),this._pointShowHide(t,e,n,r,i))}_pointShowHide(t,e,n,r,i){throw new Error(t,e,n,r,i,"需要在派生类中实现")}_changePtVisible(t){this.layerLabel&&this.layerLabel.clear();const e=this.point.object3d.geometry.attributes.visibility.array;if(0===t.length)for(let t=0;t<this.dataItems.length;t++)1===this.dataItems[t].visibility?(e[t]=1,this.point._indexs_hide[t]=!0,this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(e[t]=.1,this.point._indexs_hide[t]=!1);else{this.dataItems.forEach(t=>{t.visibility=.1}),t.forEach(t=>{this.dataItems[t].visibility=1});for(let t=0;t<this.dataItems.length;t++)1===this.dataItems[t].visibility?(e[t]=1,this.point._indexs_hide[t]=!0,this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(e[t]=.1,this.point._indexs_hide[t]=!1)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}pointShowHideByCode(t,e){if(!this.point)return;this.layerPointNumLabel&&this.layerPointNumLabel.clear(),this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this._deleteFunsKey(),this.point.show();let n=1/0,r=1/0,o=-1/0,s=-1/0;for(let e=0;e<this.dataItems.length;e++){const i=this.dataItems[e];t.includes(i.code)?(n=Math.min(n,this.dataItems[e].coordinate[0]),r=Math.min(r,this.dataItems[e].coordinate[1]),o=Math.max(o,this.dataItems[e].coordinate[0]),s=Math.max(s,this.dataItems[e].coordinate[1]),i.visibility=1):i.visibility=.1}this._changePtVisible([]),e&&this.map.fitExtent(new i.Extent(n,r,o,s),0)}_itemHide(t,e,n,r,i,o){const s=null==n||n,c=null==r||r;let l;e&&"MultiPolygon"===e.getType()&&(l=e.toGeoJSON());const u=this.point.object3d.geometry.attributes.visibility.array;if(t.length>0){for(let t=0;t<this.dataItems.length;t++){const n=this.dataItems[t];let r=!0;if(1*n.status==1?r=!0===s:1*n.status==0&&(r=!0===c),e){let n=!0;"MultiPolygon"===e.getType()?n=a.a.containsCoordinate2(this.dataItems[t].coordinate,l):"Circle"===e.getJSONType()?n=a.a.containsCoordinate1(this.dataItems[t].coordinate,e):"Sector"===e.getJSONType()&&(n=a.a.containsCoordinate3(this.dataItems[t].coordinate,e,this.threeLayer)),r&=!!n}if(i&&i.rangeArr.length>0){const e=1*this.dataItems[t].pvalue;r&=!!a.a.isInLevels(i,e)}n.imgflag==o&&(r?(u[t]=1,this.point._indexs_hide[t]=!0,this.selectItems.push(t),this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(u[t]=.1,this.point._indexs_hide[t]=!1))}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}else{for(let t=0;t<this.dataItems.length;t++)this.dataItems[t].imgflag==o&&(u[t]=.1,this.point._indexs_hide[t]=!1);this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}}_getRate(){let t=this.map.getZoom()-8;return t=t>4?4:t,.2*t+.2}_getMarkSize(t){const e=t.parent;return e.markSize*e._getRate()}async addPoint(){throw new Error("需要在派生类中实现")}pointShowHideShowNumSingle(t,e,n){const r=n||12;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey(),this.selectItems=[],this._pointShowHide(t,e);let o=1/0,s=1/0,a=-1/0,c=-1/0;this.selectItems.forEach(t=>{o=Math.min(o,this.dataItems[t].coordinate[0]),s=Math.min(s,this.dataItems[t].coordinate[1]),a=Math.max(a,this.dataItems[t].coordinate[0]),c=Math.max(c,this.dataItems[t].coordinate[1])});const l=[(o+a)/2,(s+c)/2];this._addClusterLabel(l,this.selectItems.length,{}).on("click",()=>{this.layerPointNumLabel.hide(),this.map.fitExtent(new i.Extent(o,s,a,c),0),setTimeout(()=>{this.point.show()},500)}),this.point.hide(),this.funcsNew.a=()=>{this.map.getZoom()<r?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide())}}_clearClusterCache(){for(const t in this.clusterItemsCache)delete this.clusterItemsCache[t];this.clusterItemsCache={}}pointShowHideShowNumbyCodeMultiple(t,e){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const n=[],r=[];for(let r=0;r<e.length;r++)n.push({code:r,geo:e[r],geojson:e[r].toGeoJSON(),ptnum:0,val:t,ptids:[]});this.dataItems.forEach(t=>{t.visibility=.1}),n.forEach(e=>{for(let n=0;n<this.dataItems.length;n++){const i=this.dataItems[n];t.includes(i.code)&&a.a.containsCoordinate2(this.dataItems[n].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(n),r.push(n),i.visibility=1)}}),n.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t).on("click",t=>{this.selectItems=[];const e=t.target.properties.item;e.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._changePtVisible(e.ptids),this._zoomSelect1(e.ptids,e.geo,r))})}),this._changePtVisible(r),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}pointShowHideShowNumMultiple(t,e){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const n=[],r=[];for(let r=0;r<e.length;r++)n.push({code:r,geo:e[r],geojson:e[r].toGeoJSON(),ptnum:0,val:t,ptids:[]});this.dataItems.forEach(t=>{t.visibility=.1}),n.forEach(e=>{for(let n=0;n<this.dataItems.length;n++){const i=this.dataItems[n];t.filter(t=>t===i.type).length>0&&a.a.containsCoordinate2(this.dataItems[n].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(n),r.push(n),i.visibility=1)}}),n.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t).on("click",t=>{this.selectItems=[];const e=t.target.properties.item;e.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._changePtVisible(e.ptids),this._zoomSelect1(e.ptids,e.geo,r))})}),this._changePtVisible(r),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}_zoomSelect1(t,e,n){let r=1/0,o=1/0,s=-1/0,a=-1/0;t.forEach(t=>{r=Math.min(r,this.dataItems[t].coordinate[0]),o=Math.min(o,this.dataItems[t].coordinate[1]),s=Math.max(s,this.dataItems[t].coordinate[0]),a=Math.max(a,this.dataItems[t].coordinate[1])}),this.layerPointNumLabel.hide(),this.map.fitExtent(new i.Extent(r,o,s,a),0),this.isCtrol=!1,setTimeout(()=>{this.funcsNew.a=()=>{this.fitZoom||(this.fitZoom=this.map.getZoom()),this.map.getZoom()<this.fitZoom-.5&&(this.point.hide(),this.layerPointNumLabel.show(),this._deleteFunsKey("a"),this.fitZoom=null,this.isCtrol=!0,this._changePtVisible(n))}},500)}_addClusterLabelSmall(t,e,n,r,o){const s=r||"#50fcfc",a=o||"#000",c=new i.Marker(t,{properties:{item:n},symbol:[{type:"1",markerType:"ellipse",markerFill:s,markerFillOpacity:1,markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,32],[12,52]]},markerHeight:{stops:[[9,32],[12,52]]}}]});return this.layerPointNumLabel.addGeometry(c),new i.Marker(t,{properties:{name:e},symbol:{textFaceName:"sans-serif",textName:"{name}",textSize:{stops:[[9,12],[12,18],[15,24]]},textFill:a}}).addTo(this.layerPointNumLabel),c}_addClusterLabel(t,e,n,r,o){const s=r||"#50fcfc",a=o||"#000",c=new i.Marker(t,{properties:{item:n},symbol:[{type:"1",markerType:"ellipse",markerFill:s,markerFillOpacity:1,markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,32],[12,52],[15,82]]},markerHeight:{stops:[[9,32],[12,52],[15,82]]}},{type:"2",markerType:"ellipse",markerFill:s,markerFillOpacity:"0.4",markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,54],[12,74],[15,104]]},markerHeight:{stops:[[9,54],[12,74],[15,104]]}}]});return this.layerPointNumLabel.addGeometry(c),new i.Marker(t,{properties:{name:e},symbol:{textFaceName:"sans-serif",textName:"{name}",textSize:{stops:[[9,12],[12,18],[15,24]]},textFill:a}}).addTo(this.layerPointNumLabel),c}getClosestZoom(t){for(let e=0;e<this.MAXZOOM-1;e++){const n=this.SCALES[e],r=this.SCALES[e+1];if(n===t)return e;if(r===t)return e+1;if(t<n&&r<t)return Math.abs(t-n)<=Math.abs(t-r)?e:e+1}}calColNum(t,e,n){this.rbush.clear();let r=[],i=[];for(let t=0;t<this.dataItems.length;t++)if(e&&e.length>0&&e.includes(t)){const e=this.getRect(this.dataItems[t],t);this.rbush.insert(e)}for(let n=0;n<this.dataItems.length;n++)if(e.includes(n))if(t>=18){const t=[n];i.push(t)}else if(!r.includes(n)){const t=this.getRect(this.dataItems[n]),e=this.rbush.search(t),o=[];if(e.forEach(t=>{o.push(t.idx)}),i.length>0){const t=[];for(let e=0;e<i.length;e++)i[e].filter(t=>o.includes(t)).length>0&&t.push(e);if(0===t.length)i.push(o.sort((function(t,e){return t-e})));else if(1===t.length){const e=i[t[0]].concat(o.filter(e=>!i[t[0]].includes(e)));i[t[0]]=e.sort((function(t,e){return t-e}))}else{const e=[],n=[];for(let r=0;r<i.length;r++)t.includes(r)?n.push(i[r]):e.push(i[r]);const r=n.flat(),s=r.concat(o.filter(t=>!r.includes(t)));i=[],e.forEach(t=>{i.push(t)}),i.push(s)}}else i.push(o);r=i.flat()}n.push(i)}testCluster(t){this.layerPointNumLabel.clear(),t.forEach(t=>{if(t.length>1){let e=1/0,n=1/0,r=-1/0,i=-1/0;t.forEach(t=>{e=Math.min(e,this.dataItems[t].coordinate[0]),n=Math.min(n,this.dataItems[t].coordinate[1]),r=Math.max(r,this.dataItems[t].coordinate[0]),i=Math.max(i,this.dataItems[t].coordinate[1]),this.dataItems[t].visibility=.1});const o=[(e+r)/2,(n+i)/2];this._addClusterLabelSmall(o,t.length,{})}else this.dataItems[t[0]].visibility=1}),this._changePtVisible([])}testMinClusterZoom(t){this.layerPointNumLabel.clear(),t.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t)}),this.dataItems.forEach(t=>{t.visibility=.1}),this._changePtVisible([])}getRect(t,e){const n=this.threeLayer.coordinateToVector3(t.coordinate,0),{x:r,y:i}=this.getPixel(n),o=this._getRate(),s=this.markSize*o;return{minX:r-s/2,minY:i-s/2,maxX:r+s/2,maxY:i+s/2,idx:e}}getPixel(t){const e=this.map.getSize(),n=this.threeLayer.getCamera();return a.a.vector2Pixel(t,e,n)}}},4472:function(t,e,n){var r=n("065f"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"450c":function(t,e,n){(e=n("a1a8")(!1)).push([t.i,".compass[data-v-eb938560]{width:28px;height:28px;border:10px solid rgba(0,0,0,.6);border-radius:50%;position:relative;box-sizing:content-box}.compass[data-v-eb938560],.compass-left[data-v-eb938560],.compass-right[data-v-eb938560]{display:flex;justify-content:center;align-items:center}.compass-left[data-v-eb938560],.compass-right[data-v-eb938560]{width:12px;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer;z-index:9999}.compass-left .rk-map-compass-icon[data-v-eb938560],.compass-right .rk-map-compass-icon[data-v-eb938560]{width:16px;height:40px}.compass-left .rk-map-compass-icon[data-v-eb938560] svg,.compass-right .rk-map-compass-icon[data-v-eb938560] svg{width:16px;height:40px;fill:#989898}.compass-left .rk-map-compass-icon[data-v-eb938560]:active svg,.compass-right .rk-map-compass-icon[data-v-eb938560]:active svg{fill:#0f6eff!important}.compass-left[data-v-eb938560]{left:-10px}.compass-right[data-v-eb938560]{right:-10px}.compass-circle[data-v-eb938560]{cursor:pointer;display:flex;justify-content:center;align-items:center}.compass-circle .rk-map-compass-icon[data-v-eb938560]{box-sizing:content-box;border:2px solid rgba(101,120,155,.6);border-radius:50%;width:22px;height:22px}.compass-circle-inner[data-v-eb938560]{display:flex;justify-content:center;align-items:center}",""]),t.exports=e},"45fc":function(t,e,n){(function(e){for(var r=n("1cbe"),i="undefined"==typeof window?e:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],c=i["cancel"+s]||i["cancelRequest"+s],l=0;!a&&l<o.length;l++)a=i[o[l]+"Request"+s],c=i[o[l]+"Cancel"+s]||i[o[l]+"CancelRequest"+s];if(!a||!c){var u=0,h=0,d=[];a=function(t){if(0===d.length){var e=r(),n=Math.max(0,1e3/60-(e-u));u=n+e,setTimeout((function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(n))}return d.push({handle:++h,callback:t,cancelled:!1}),h},c=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}t.exports=function(t){return a.call(i,t)},t.exports.cancel=function(){c.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=a,t.cancelAnimationFrame=c}}).call(this,n("2409"))},"45fd":function(t,e,n){var r=n("11b2"),i=n("9a5f"),o=n("c763"),s=n("cea5");t.exports=function(t,e,n){for(var a=i(e),c=s.f,l=o.f,u=0;u<a.length;u++){var h=a[u];r(t,h)||n&&r(n,h)||c(t,h,l(e,h))}}},"46d7":function(t,e,n){"use strict";function r(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function i(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function o(t){return"Feature"===t.type?t.geometry:t}function s(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n("96a7")},4744:function(t,e,n){"use strict";var r=n("aaee");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"47ab":function(t,e,n){var r=n("2774"),i=n("aaee"),o=n("4472");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"47c9":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("149f"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("1803"),core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("baa4"),core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("3d2a"),core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("3284"),core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("491b"),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5__),_gisCommon__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("bb7e"),_Points__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("0514"),_baseMark_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("f62a"),_pollutionFactors__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("a6a2"),three__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("1183"),maptalks__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("f7eb");class simpleMark extends _baseMark_js__WEBPACK_IMPORTED_MODULE_8__.a{constructor(t,e,n){super(t,e,n),this.InforItems=[],this.curZoom=9,this.clusterMinZoom=9,this.name=e.labelLayerName,this.zoomPara=.05,this.canvasSize=e.canvasSize||40,this._bound=e.bound,this.pLen=t.length-1,this.updateIndex=0}_initChildVar(t,e){!0===t.addValueLabel&&(this.bzlayerNum=new maptalks__WEBPACK_IMPORTED_MODULE_11__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_11__.Util.GUID(),{minZoom:t.valueMinZoom||11,maxZoom:t.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:!1,zIndex:1001}).addTo(e.map),this.bz_all_nums=[],this.valueFaceName=t.valueFaceName||"microsoft yahei",void 0===t.valueFontSize?this.valueFontSize=12:Array.isArray(t.valueFontSize)?this.valueFontSize={stops:t.valueFontSize}:this.valueFontSize=t.valueFontSize,this.valueDy=t.valueDy||0,this.valueDx=t.valueDx||0),!0===t.addPtNumLabel&&(this.bzlayerPtNum=new maptalks__WEBPACK_IMPORTED_MODULE_11__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_11__.Util.GUID(),{minZoom:t.pointMinZoom||11,maxZoom:t.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:!0,zIndex:1005}).addTo(e.map),this.bz_all_ptnums=[],this.ptNumFaceName=t.ptNumFaceName||"microsoft yahei",void 0===t.ptNumFontSize?this.ptNumFontSize=12:Array.isArray(t.ptNumFontSize)?this.ptNumFontSize={stops:t.ptNumFontSize}:this.ptNumFontSize=t.ptNumFontSize,this.ptNumDy=t.ptNumDy||0,this.ptNumDx=t.ptNumDx||0,this.isAddLabelItems={},this.ptNumColor=t.ptNumColor||"#000"),this.interactive=void 0===t.interactive||t.interactive,this.beginSizeZoom=t.beginSizeZoom||3,this.endSizeZoom=t.endSizeZoom||12,this.spanSizeZoom=this.endSizeZoom-this.beginSizeZoom,this.stepSize=1/(this.endSizeZoom-this.beginSizeZoom+1),this.paraName=t.paraName||"pm25",this.typeImgNum=-1,this.highlightmaterial=null,this.selectMarkSize=t.selectSize||this.markSize,t.selectImg&&this._createSelMaterial(t.selectImg),this.infosCustom=void 0!==t.infosCustom&&t.infosCustom}_bindDataItem(t,e,n){const r=isNaN(parseFloat(e.value))?e.value?e.value:"--":e.value,i=parseFloat(e.opavalue)?parseFloat(e.opavalue):1;let o=0;e.imgSrc&&(o=e.imgSrc.length);let s=.9,a="#fff",c=0,l=.9,u="#fff",h=0,d=.9,f="#fff",p=0;if(e.imgColor)if(Array.isArray(e.imgColor))e.imgColor.length>=1&&(s=1.9,a=e.imgColor[0]),e.imgColor.length>=2&&(l=1.9,u=e.imgColor[1]),e.imgColor.length>=3&&(d=1.9,f=e.imgColor[2]);else{const t=e.imgColor;t.b&&(s=1.9,a=t.b),t.m&&(l=1.9,u=t.m),t.f&&(d=1.9,f=t.f)}c=this._pushColor(a),h=this._pushColor(u),p=this._pushColor(f);const m=(parseFloat(e.windDirection)||0)+.01,g=parseFloat(m*(Math.PI/180));if(t.push({coordinate:[parseFloat(e.longitude),parseFloat(e.latitude)],height:0,colorflag:s,colorIndex:c,fcolorflag:d,fcolorIndex:p,midflag:l,mcolorIndex:h,imgnum:o,value:e.name,imgflag:n,rotation:g,visibility:1==e.visibility?1:.1,code:e.code,opavalue:i,rotationflag:1==e.rotationflag?1.9:.1,pvalue:r,status:void 0!==e.status?e.status:1,data:e.data}),this.bzlayerNum){const t=e.valueFontColr||"#000",n=new maptalks__WEBPACK_IMPORTED_MODULE_11__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:r,type:e.businessType,pvalue:r},symbol:{textFaceName:this.valueFaceName,textName:"{name}",textSize:this.valueFontSize,textFill:t,textDx:this.valueDx,textDy:this.valueDy}});1==e.visibility&&this.bzlayerNum.addGeometry(n),this.bz_all_nums.push(n)}if(this.bzlayerPtNum){const t=void 0!==e.ptNumValue?e.ptNumValue:1,n=`${e.longitude},${e.latitude}`;if(t>1&&null==this.isAddLabelItems[n]){const n=new maptalks__WEBPACK_IMPORTED_MODULE_11__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:t,type:e.businessType,pvalue:t},symbol:{textFaceName:this.ptNumFaceName,textName:"{name}",textSize:this.ptNumFontSize,textFill:this.ptNumColor,textDx:this.ptNumDx,textDy:this.ptNumDy}});1==e.visibility&&this.bzlayerPtNum.addGeometry(n),this.bz_all_ptnums.push(n)}}}_pushColor(t){let e=0;const n=t instanceof three__WEBPACK_IMPORTED_MODULE_10__.Color?t:new three__WEBPACK_IMPORTED_MODULE_10__.Color(t),r=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.getIntColor(n);return null==this.ptcolors[r]?(this.ptcolors[r]=this.colorIndex,e=this.colorIndex,this.colorIndex+=1):e=this.ptcolors[r],e}_getRate(){let t=this.map.getZoom()-this.beginSizeZoom;return t=t>this.spanSizeZoom?this.spanSizeZoom:t,t*this.stepSize+this.stepSize}_getImgType(t,e,n){return void 0===this.typeValues[t]&&(0===Object.keys(this.typeValues).length?this.initTypeValue=.9:this.initTypeValue+=this.typeImgNum,this.typeImgNum=e.length,this.typeValues[t]={v:this.initTypeValue,img:e,inImgWidth:parseInt(n.inImgWidth)||16,secImgWidth:parseInt(n.secImgWidth)||16,inOffx:parseInt(n.inOffx)||0,inOffy:parseInt(n.inOffy)||0,secOffx:parseInt(n.secOffx)||0,secOffy:parseInt(n.secOffy)||0}),this.typeValues[t].v}changeLabelTextColor(t){t&&this.all_labels.forEach(e=>{e.updateSymbol({textFill:t})})}_pointShowHide(t,e,n,r,i){this.layerLabel&&this.layerLabel.clear();for(const o in this.typeValues){const s=t.filter(t=>t===o);this._itemHide(s,e,n,r,i,this.typeValues[o].v)}}pointFindByCode(val,isZoom,isAddIcon,zoomPara,iconConfig){const item=this.dataItems.filter(t=>t.code===val);item.length>0&&(isZoom&&("function"==typeof eval(isZoom)?isZoom(item):zoomPara?this.map.setCenterAndZoom(item[0].coordinate,zoomPara):this.map.fitExtent(new maptalks__WEBPACK_IMPORTED_MODULE_11__.Extent(item[0].coordinate[0]-this.zoomPara,item[0].coordinate[1]-this.zoomPara,item[0].coordinate[0]+this.zoomPara,item[0].coordinate[1]+this.zoomPara),0)),isAddIcon&&(iconConfig?this._addOtherIcon(item[0],iconConfig):this.iconFile&&this._addIcon(item[0])))}_isExsitInfo(t){for(let e=0;e<this.InforItems.length;e++){const n=this.InforItems[e];if(n.options.data.code===t)return n}return null}pointAddInfos(t,e,n,r,i){if(void 0===e)return;this.clearIcon(i);const o=[];for(let e=0;e<this.dataItems.length;e++){const n=this.dataItems[e];t.includes(n.code)&&!this._isExsitInfo(n.code)&&o.push(e)}o.length>0&&this.addInfoNew(o,e,n,r)}async _createSelMaterial(t){let e=t;if(t.includes(".svg")){const n=await fetch(t);e=await n.text()}const n=(new DOMParser).parseFromString(e,"image/svg+xml"),r=1*(n.documentElement.getAttribute("width")||1),i=1*(n.documentElement.getAttribute("height")||1)/r,o=parseInt(this.selectMarkSize/i),s=parseInt(o*i),a=await _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.addImageProcess(e);this.secTexture=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.generateTextureOne(a,o,s);const c=this._getRate();this.highlightmaterial=new three__WEBPACK_IMPORTED_MODULE_10__.ShaderMaterial({uniforms:{pointTexture:{value:this.secTexture},size1:{value:this.selectMarkSize*c}},vertexShader:"\n uniform float size1;\n void main() {\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n gl_PointSize = size1 * ( 1.0);\n gl_Position = projectionMatrix * mvPosition;\n }\n ",fragmentShader:"\n uniform sampler2D pointTexture;\n void main() {\n gl_FragColor = texture2D( pointTexture, gl_PointCoord );\n }\n ",transparent:!0,depthTest:!1,depthWrite:!1})}async _loadTexture(){const t=[];for(const e in this.typeValues)if(this.typeValues[e].img&&Array.isArray(this.typeValues[e].img))for(let n=0;n<this.typeValues[e].img.length;n++){const r=this.typeValues[e].img[n];let i=r;if(r.includes(".svg")){const t=await fetch(r);i=await t.text()}const o=(new DOMParser).parseFromString(i,"image/svg+xml"),s=1*(o.documentElement.getAttribute("width")||1),a=1*(o.documentElement.getAttribute("height")||1)/s;let c=parseInt(this.canvasSize/a),l=parseInt(c*a);const u=await _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.addImageProcess(i);0===n?t.push({type:"img",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l}):1===n?(c=parseInt(this.typeValues[e].inImgWidth/a),l=parseInt(c*a),t.push({type:"img1",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l,offx:this.typeValues[e].inOffx,offy:this.typeValues[e].inOffy})):(c=parseInt(this.typeValues[e].secImgWidth/a),l=parseInt(c*a),t.push({type:"img1",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l,offx:this.typeValues[e].secOffx,offy:this.typeValues[e].secOffy}))}return _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.generateTexture(t)}async _loadRGBTexture(){this.colorsArray=new Float32Array(3*Object.keys(this.ptcolors).length);var t=Object.keys(this.ptcolors).map(t=>[t,this.ptcolors[t]]);t.sort((t,e)=>t[1]-e[1]);let e=0;return t.forEach(t=>{const n=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.colorIntToRGB(t[0]);this.colorsArray[3*e]=n.r,this.colorsArray[3*e+1]=n.g,this.colorsArray[3*e+2]=n.b,e+=1}),new three__WEBPACK_IMPORTED_MODULE_10__.DataTexture(this.colorsArray,Object.keys(this.ptcolors).length,1,three__WEBPACK_IMPORTED_MODULE_10__.RGBFormat,three__WEBPACK_IMPORTED_MODULE_10__.FloatType)}async addPoint(){if(!this.dataItems)return null;const t=await this._loadTexture();this.textures||(this.textures=[]),this.textures.push(t.texture),this.rgbTexture=await this._loadRGBTexture();const e=this._getRate();let n;this.m.onBeforeCompile=r=>{n=this._createShaderPol(r,t.texture,t.textureSize,this.markSize*e,this.rgbTexture,Object.keys(this.ptcolors).length),this.shader=n},this.dataItems.forEach(e=>{const n=parseInt(e.imgflag);e.wwItem=[],e.hhItem=[],e.uuItem=[],e.vvItem=[];for(let r=0;r<e.imgnum;r++)e.wwItem.push(t.xys[n+r].w),e.hhItem.push(t.xys[n+r].h),e.uuItem.push(t.xys[n+r].u),e.vvItem.push(t.xys[n+r].v)});const r=new _Points__WEBPACK_IMPORTED_MODULE_7__.a(this.dataItems,{minZoom:this.minZoom,maxZoom:this.maxZoom,bound:this._bound,interactive:this.interactive},this.m,this._getMarkSize,this.threeLayer);return this.bzlayerPtNum&&(r.zoomChange=()=>{if(this.ptNumRate){const t=this._getRate()-this.ptNumRate,e=this.ptNumDx*(1+t),n=this.ptNumDy*(1+t);this.bz_all_ptnums.forEach(t=>{t.updateSymbol({textDx:e,textDy:n})})}else this.ptNumRate=this._getRate()}),this.isToolTip&&r.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),r.object3d.renderOrder=this.order,this.point=r,this.point.parent=this,this.threeLayer.addMesh(this.point),this._bindMapEvents(),r}async addInfoNew(t,e,n,r){if(t.length!==this.InforItems.length)for(let i=0;i<this.dataItems.length;i++)if(t.includes(i)){const t=this.dataItems[i],o={single:!1,custom:!0,dx:n||0,dy:r||-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,data:t,content:""},s=new maptalks__WEBPACK_IMPORTED_MODULE_11__.ui.InfoWindow(o);this.InforItems.push(s),s.addTo(this.map),await e(s,t),s.show({x:t.coordinate[0],y:t.coordinate[1]})}}addInfo(t){if(t.length!==this.InforItems.length)for(let e=0;e<this.dataItems.length;e++)if(t.includes(e)){const t=this.dataItems[e];let n=t.data.infoWindowData;if(t.data.law_num&&t.data.punish_num&&(n=[{key:"案件数",value:t.data.law_num},{key:"处罚金额",value:t.data.punish_num+"万元"}]),!n||!n.length)continue;const r={single:!1,custom:!0,dy:-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:`<div style="background: rgba(0,0,0,0.42); border-radius: 6px; font-size: 12px; color: #ffffff; padding: 6px;display: flex;\n flex-direction: column;\n align-items: center; width: 128px">\n <span>${n[0].key}:${n[0].value}</span>\n <span>${n[1].key}:${n[1].value}</span>\n </div>`},i=new maptalks__WEBPACK_IMPORTED_MODULE_11__.ui.InfoWindow(r);this.InforItems.push(i),i.addTo(this.map).show({x:t.coordinate[0],y:t.coordinate[1]})}}async showInfoWindows(t,e){if(this.InforItems.length>0&&t){const n=this._isExsitInfo(t);e&&await e(n,n.options.data),n.show({x:n.options.data.coordinate[0],y:n.options.data.coordinate[1]})}}hideInfoWindows(t){this.InforItems.length>0&&(t?this.InforItems.forEach(e=>{e.options.data.code===t&&e.hide()}):(this.InforItems.forEach(t=>{t.remove()}),this.InforItems=[]))}pointShowStatisticsByeCodeMultiple(t,e,n,r,i){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this.hideInfoWindows(),this._deleteFunsKey();const o=[],s=[];for(let n=0;n<e.length;n++)o.push({code:n,geo:e[n],geojson:e[n].toGeoJSON(),ptnum:0,val:t,sum:0,ptids:[]});o.forEach(e=>{for(let r=0;r<this.dataItems.length;r++){const i=this.dataItems[r];t.includes(i.code)&&_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.containsCoordinate2(this.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(r),s.push(r),this.dataItems[r].data[n]?(e.sum+=parseFloat(this.dataItems[r].data[n])||0,e.sum=Math.floor(100*e.sum)/100):e.sum+=0)}}),this._clearClusterCache();const a=this.clusterMinZoom;this.clusterItemsCache[a]=o,this.testMinClusterZoom1(this.clusterItemsCache[a],r,i),this.funcsNew.c=()=>{const t=this.getClosestZoom(this.map.pixelToDistance(1,0));if(!(t<9||t>18)&&this.curZoom!==t)if(this.curZoom=t,this.clusterItemsCache[t])if(t===this.clusterMinZoom)this.hideInfoWindows(),this.testMinClusterZoom1(this.clusterItemsCache[t],r,i);else{const e=this.clusterItemsCache[t];this.testCluster1(e,r,i,n)}else{const e=[];o.forEach(n=>{this.calColNum(t,n.ptids,e)}),this.clusterItemsCache[t]=e.flat(),this.testCluster1(this.clusterItemsCache[t],r,i,n)}}}testMinClusterZoom1(t,e,n){this.layerPointNumLabel.clear(),t.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.sum,t,e,n)}),this.dataItems.forEach(t=>{t.visibility=.1}),this._changePtVisible([])}testCluster1(t,e,n,r){this.layerPointNumLabel.clear();const i=[];t.forEach(t=>{if(t.length>1){let i=1/0,o=1/0,s=-1/0,a=-1/0,c=0;t.forEach(t=>{i=Math.min(i,this.dataItems[t].coordinate[0]),o=Math.min(o,this.dataItems[t].coordinate[1]),s=Math.max(s,this.dataItems[t].coordinate[0]),a=Math.max(a,this.dataItems[t].coordinate[1]),this.dataItems[t].visibility=.1,this.dataItems[t].data[r]?(c+=parseFloat(this.dataItems[t].data[r])||0,c=Math.floor(100*c)/100):c+=0});const l=[(i+s)/2,(o+a)/2];this._addClusterLabelSmall(l,c,{},e,n)}else this.dataItems[t[0]].visibility=1,i.push(t[0])}),this._changePtVisible([]),this.hideInfoWindows(),this.addInfo(i)}pointShowStatisticsByeTypeMultiple(t,e,n){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const r=[];for(let n=0;n<e.length;n++)r.push({code:n,geo:e[n],geojson:e[n].toGeoJSON(),sum:0,val:t,ptnum:0});r.forEach(e=>{for(let r=0;r<this.dataItems.length;r++){const i=this.dataItems[r];t.filter(t=>t.includes(i.type)).length>0&&_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.containsCoordinate2(this.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,this.dataItems[r].data[n]?e.sum+=parseFloat(this.dataItems[r].data[n])||0:e.sum+=0)}}),r.forEach(e=>{this._addClusterLabel(e.geo.getCenter(),e.sum,e).on("click",e=>{this.selectItems=[];const n=e.target.properties.item;n.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._pointShowHide(n.val,n.geo),this._zoomSelect(t,n.geo))})}),this._pointShowHide(t),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}showValue(flag,closeForeFlag,where){if(void 0===closeForeFlag&&this.shader){const t=!0===flag?0:1;this.shader.uniforms.flag.value=t}if(where){this.bzlayerNum&&this.bzlayerNum.clear();for(let i=0;i<this.dataItems.length;i++){const item=this.dataItems[i];let boolFlag;try{boolFlag=eval(where.replaceAll("{}",item.pvalue))}catch{boolFlag=!1}1===item.visibility&&!0===boolFlag&&this.bzlayerNum.addGeometry(this.bz_all_nums[i])}}this.bzlayerNum&&(this.bzlayerNum.options.visible=flag)}show(){this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this.bzlayerPtNum&&this.bzlayerPtNum.show();const t=[];for(let e=0;e<this.dataItems.length;e++)t.push(e);this._changePtVisible(t)}hide(){this.pointShowHide([]),this.bzlayerPtNum&&this.bzlayerPtNum.hide()}showName(t){this.layerLabel&&(this.layerLabel.options.visible=t)}getVectorLayerZindex(){return this.layerLabel?this.layerLabel.getZIndex():this.bzlayerNum?this.bzlayerNum.getZIndex():void 0}setVectorLayerZindex(t){return this.layerLabel?this.layerLabel.setZIndex(t):this.bzlayerNum?this.bzlayerNum.setZIndex(t):void 0}setPointsOn(t,e,n){if(!this.point)return;const r=[],i=this.point.object3d.geometry.attributes.visibility.array;for(let n=0;n<this.dataItems.length;n++){const o=this.dataItems[n];o.data[t]&&1*o.data[t]===e&&(r.push(n),i[n]=1,this.point._indexs_hide[n]=!0)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0,n&&n(r)}changePositionValueOne(t,e){if(!this.point)return;this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];this.colorIndex=0,this.paraName=e||this.paraName;const n=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value;let r="#fff",i=0;t.imgColor&&t.imgColor.length>=1&&(r=t.imgColor[0]),i=this._pushColor(r);let o="#fff",s=0;t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]),s=this._pushColor(o);let a="#fff",c=0;t.imgColor&&t.imgColor.length>=3&&(a=t.imgColor[2]),c=this._pushColor(a),void 0!==this.updateIndex&&(this.dataItems[this.updateIndex].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[this.updateIndex].colorIndex=i,this.dataItems[this.updateIndex].fcolorIndex=c,this.dataItems[this.updateIndex].mcolorIndex=s,this.dataItems[this.updateIndex].pvalue=n,this.bz_all_nums[this.updateIndex].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]));try{const t=this.point.object3d.geometry.attributes.colorIndexs.array;this.point.updatepoints(this.dataItems);for(let e=0;e<this.dataItems.length;e++)t[3*e+0]=this.dataItems[e].colorIndex,t[3*e+1]=this.dataItems[e].mcolorIndex,t[3*e+2]=this.dataItems[e].fcolorIndex;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.updateIndex=this.updateIndex+1>this.pLen?0:this.updateIndex+1}catch(t){throw t}}async changePositionValue(t,e){if(this.point){this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];this.colorIndex=0,this.paraName=e||this.paraName,t.slice(0,1/0).map(t=>{const e=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value,n=parseFloat(t.opavalue)?parseFloat(t.opavalue):1;let r="#fff",i=0;t.imgColor&&t.imgColor.length>=1&&(r=t.imgColor[0]),i=this._pushColor(r);let o="#fff",s=0;t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]),s=this._pushColor(o);let a="#fff",c=0;t.imgColor&&t.imgColor.length>=3&&(a=t.imgColor[2]),c=this._pushColor(a);const l=(parseFloat(t.windDirection)||0)+.01,u=parseFloat(l*(Math.PI/180)),h=this.findItemByCode(t.code);void 0!==h&&(this.dataItems[h].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[h].colorIndex=i,this.dataItems[h].rotation=u,this.dataItems[h].fcolorIndex=c,this.dataItems[h].mcolorIndex=s,this.dataItems[h].pvalue=e,this.dataItems[h].opavalue=n,this.layerLabel&&this.all_labels[h].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]),this.Infolayer&&this.Infolayer.options.iconCode===t.code)&&this.Infolayer.getGeometries().forEach(e=>{e.setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)])})});try{const t=this.point.object3d.geometry.attributes.colorIndexs.array,e=this.point.object3d.geometry.attributes.markconfig.array;this.point.updatepoints(this.dataItems),this.rgbTexture=await this._loadRGBTexture(),this.shader.uniforms.colorstexture.value=this.rgbTexture,this.shader.uniforms.colorNum.value=Object.keys(this.ptcolors).length-1;for(let n=0;n<this.dataItems.length;n++)t[3*n+0]=this.dataItems[n].colorIndex,t[3*n+1]=this.dataItems[n].mcolorIndex,t[3*n+2]=this.dataItems[n].fcolorIndex,e[3*n+0]=this.dataItems[n].opavalue,e[3*n+1]=this.dataItems[n].rotation;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.point.object3d.geometry.attributes.markconfig.needsUpdate=!0}catch(t){throw t}}}async changeParaValue(t,e){if(this.point){this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];if(this.colorIndex=0,this.paraName=e||this.paraName,t.slice(0,1/0).map(t=>{const e=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value,n=parseFloat(t.opavalue)?parseFloat(t.opavalue):1;let r="#fff",i=0,o="#fff",s=0,a="#fff",c=0;if(t.imgColor)if(Array.isArray(t.imgColor))t.imgColor.length>=1&&(r=t.imgColor[0]),t.imgColor.length>=2&&(o=t.imgColor[1]),t.imgColor.length>=3&&(a=t.imgColor[2]);else{const e=t.imgColor;e.b&&(r=e.b),e.m&&(o=e.m),e.f&&(a=e.f)}i=this._pushColor(r),s=this._pushColor(o),c=this._pushColor(a);const l=(parseFloat(t.windDirection)||0)+.01,u=parseFloat(l*(Math.PI/180)),h=this.findItemByCode(t.code);if(void 0!==h&&(this.dataItems[h].colorIndex=i,this.dataItems[h].rotation=u,this.dataItems[h].fcolorIndex=c,this.dataItems[h].mcolorIndex=s,this.dataItems[h].pvalue=e,this.dataItems[h].opavalue=n,this.bzlayerNum&&(this.bz_all_nums[h].getProperties().name=e,t.valueFontColr))){const e=t.valueFontColr;this.bz_all_nums[h].updateSymbol({textName:"{name}",textFill:e})}}),this.rgbTexture=await this._loadRGBTexture(),this.shader){this.shader.uniforms.colorstexture.value=this.rgbTexture,this.shader.uniforms.colorNum.value=Object.keys(this.ptcolors).length-1;const t=this.point.object3d.geometry.attributes.colorIndexs.array,e=this.point.object3d.geometry.attributes.markconfig.array;for(let n=0;n<this.dataItems.length;n++)t[3*n+0]=this.dataItems[n].colorIndex,t[3*n+1]=this.dataItems[n].mcolorIndex,t[3*n+2]=this.dataItems[n].fcolorIndex,e[3*n+0]=this.dataItems[n].opavalue,e[3*n+1]=this.dataItems[n].rotation;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.point.object3d.geometry.attributes.markconfig.needsUpdate=!0}}}dispose(t){this.InforItems.length>0&&this.hideInfoWindows(),this.bzlayerNum&&(this.map.removeLayer(this.bzlayerNum),this.bz_all_nums=[]),this.bound&&delete this.bound,this.highlightmaterial&&this.highlightmaterial.dispose(),this.secTexture&&this.secTexture.dispose(),this._geometryCache&&this._geometryCache.dispose(),this.destroySecObjects(),this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];if(this.bzlayerPtNum){this.map.removeLayer(this.bzlayerPtNum),this.bz_all_ptnums=[];for(const t in this.isAddLabelItems)delete this.isAddLabelItems[t];this.isAddLabelItems=null}super.dispose(t)}_createShaderPol(t,e,n,r,i,o){return t.uniforms.texture1={value:e},t.uniforms.textureSize={value:n},t.uniforms.size1={value:r},t.uniforms.flag={value:1},t.uniforms.colorstexture={value:i},t.uniforms.colorNum={value:o-1},t.vertexShader="uniform float size1;\n attribute vec3 colorIndexs;\n attribute vec4 imgconfig;\n attribute vec4 imgv;\n attribute vec4 imgm;\n attribute vec4 imgf;\n attribute float visibility;\n attribute vec3 markconfig; //opavalue,rotation\n\n varying vec3 vColorIndexs;\n varying vec4 vImgv;\n varying vec4 vImgm;\n varying vec4 vImgf;\n varying vec4 vimgconfig;\n varying float vVisible;\n varying vec3 vMarkconfig;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vVisible = visibility;\n vColorIndexs = colorIndexs;\n vImgv = imgv;\n vImgm = imgm;\n vImgf = imgf;\n vimgconfig = imgconfig;\n vMarkconfig = markconfig;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="\n uniform sampler2D texture1;\n uniform float textureSize;\n uniform sampler2D colorstexture;\n uniform float colorNum;\n varying float vVisible;\n varying vec3 vMarkconfig;\n varying vec3 vColorIndexs; // 第一个是背景色索引\n varying vec4 vimgconfig; //num,背景颜色flag,中间颜色flag,前景颜色flag\n varying vec4 vImgv;\n varying vec4 vImgm;\n varying vec4 vImgf;\n uniform int flag;\n "+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n float width = gl_PointCoord.x / textureSize * vImgv.x;\n float height = gl_PointCoord.y / textureSize * vImgv.y;\n float x = vImgv.z;\n float y = 1.0 - vImgv.w;\n vec2 uv = vec2(x + width, y - height);\n\n float xx = x + 0.5 / textureSize * vImgv.x;\n float yy = y - 0.5 / textureSize * vImgv.y;\n float angle = 1.0;\n float s = sin(vMarkconfig.y);\n float c = cos(vMarkconfig.y);\n mat2 rotationMatrix = mat2( c, s,\n -s, c);\n vec2 pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n\n\n vec4 rotatedTexture = texture2D( texture1, uv);\n vec4 texColor;\n if (vimgconfig.y > 1.0) {\n vec3 c = texture2D(colorstexture, vec2(vColorIndexs.x / colorNum, 0.)).rgb;\n texColor = vec4(c, 1.0) * rotatedTexture;\n } else {\n texColor = rotatedTexture;\n }\n // 图片数大于1\n if (vimgconfig.x > 1.0 && flag == 1) {\n /*width = gl_PointCoord.x / textureSize * vImgv1.x;\n height = gl_PointCoord.y / textureSize * vImgv1.y;\n x = vImgv1.z;\n y = 1.0 - vImgv1.w;\n vec4 img = texture2D( texture1, vec2(x + width, y - height) );\n vec4 Ca;\n img.a *= img.r;\n if(vimgconfig.z > 1.0){\n Ca = vec4(vFcolor, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n gl_FragColor = dst;*/\n\n width = gl_PointCoord.x / textureSize * vImgm.x;\n height = gl_PointCoord.y / textureSize * vImgm.y;\n x = vImgm.z;\n y = 1.0 - vImgm.w;\n\n vec4 img;\n if (vMarkconfig.z > 1.0) {\n uv = vec2(x + width, y - height);\n xx = x + 0.5 / textureSize * vImgm.x;\n yy = y - 0.5 / textureSize * vImgm.y;\n pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n img = texture2D( texture1, uv);\n } else {\n img = texture2D( texture1, vec2(x + width, y - height) );\n }\n\n vec4 Ca;\n //img.a *= img.r; //有这一行代码,图片中有黑色的话,会过滤掉\n if(vimgconfig.z > 1.0){\n vec3 c1 = texture2D(colorstexture, vec2(vColorIndexs.y / colorNum, 0.)).rgb;\n Ca = vec4(c1, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n\n if (vimgconfig.x > 2.0) {\n width = gl_PointCoord.x / textureSize * vImgf.x;\n height = gl_PointCoord.y / textureSize * vImgf.y;\n x = vImgf.z;\n y = 1.0 - vImgf.w;\n\n vec4 img1;\n if (vMarkconfig.z > 1.0) {\n uv = vec2(x + width, y - height);\n xx = x + 0.5 / textureSize * vImgf.x;\n yy = y - 0.5 / textureSize * vImgf.y;\n pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n img1 = texture2D( texture1, uv);\n } else {\n img1 = texture2D( texture1, vec2(x + width, y - height) );\n }\n\n vec4 Ca1;\n //img1.a *= img1.r; //有这一行代码,图片中有黑色的话,会过滤掉\n if(vimgconfig.w > 1.0){\n vec3 c1 = texture2D(colorstexture, vec2(vColorIndexs.z / colorNum, 0.)).rgb;\n Ca1 = vec4(c1, 1.0) * img1;\n }\n else{\n Ca1 = img1;\n }\n //Ca.a *= Ca.r;\n vec3 rgb1 = mix(dst.xyz * dst.a, Ca1.xyz, Ca1.a);\n float a1 = Ca1.a + dst.a * (1. - Ca1.a);\n vec4 dst1 = vec4(rgb1 / a1, a1);\n\n gl_FragColor = dst1;\n } else {\n gl_FragColor = dst;\n }\n\n // 第三种\n /*texColor.xyz *= texColor.a; //premultiply source\n gl_FragColor = mix(texColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n\n\n /*vec3 rgb = mix(texColor.xyz * texColor.a, Ca.rgb, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb, a);\n gl_FragColor = dst;*/\n\n // 第一种\n /*vec4 out_Color;\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n gl_FragColor = mix(gl_FragColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n\n } else {\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n gl_FragColor.a *= vMarkconfig.x;\n\n if (vVisible < 0.5) discard;\n "),t}}__webpack_exports__.a=simpleMark},4870:function(t,e,n){"use strict";n("88a3")},"491b":function(t,e,n){"use strict";var r=n("6dec"),i=n("e058"),o=n("2774"),s=n("688d"),a=n("065f"),c=n("41dc"),l=n("b136"),u=n("a47a"),h=n("3f61"),d=n("f189"),f=n("548d"),p=n("20e2"),m=n("cfa6"),g=p("replace"),v=TypeError,y=o("".indexOf),_=o("".replace),b=o("".slice),x=Math.max,w=function(t,e,n){return n>t.length?-1:""===e?n:y(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,S,M,A,C,E,T=s(this),I=0,P=0,L="";if(!c(t)){if((n=l(t))&&(r=u(s(d(t))),!~y(r,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=h(t,g))return i(o,t,T,e);if(m&&n)return _(u(T),t,e)}for(p=u(T),S=u(t),(M=a(e))||(e=u(e)),A=S.length,C=x(1,A),I=w(p,S,0);-1!==I;)E=M?u(e(S,I,p)):f(S,p,I,[],void 0,e),L+=b(p,P,I)+E,P=I+A,I=w(p,S,I+C);return P<p.length&&(L+=b(p,P)),L}})},"4c9f":function(t,e,n){var r=n("e058"),i=n("9bf6"),o=n("f5c1"),s=n("3f61"),a=n("cf6f"),c=n("20e2"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},"4d7d":function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var a=i.test(t);return a||o.test(t)?s(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,s,a,c,l=0,u=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,o=i;return r=i=void 0,l=e,s=t.apply(o,n)}function _(t){return l=t,a=setTimeout(x,e),u?y(t):s}function b(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-l>=o}function x(){var t=f();if(b(t))return w(t);a=setTimeout(x,function(t){var n=e-(t-c);return g?d(n,o-(t-l)):n}(t))}function w(t){return a=void 0,v&&r?y(t):(r=i=void 0,s)}function S(){var t=f(),n=b(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return _(c);if(g)return a=setTimeout(x,e),y(c)}return void 0===a&&(a=setTimeout(x,e)),s}return e=m(e)||0,p(n)&&(u=!!n.leading,o=(g="maxWait"in n)?h(m(n.maxWait)||0,e):o,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=i=a=void 0},S.flush=function(){return void 0===a?s:w(f())},S}}).call(this,n("2409"))},"4e5e":function(t,e,n){var r=n("9887");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"53e9":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},5451:function(t,e,n){"use strict";var r,i,o,s=n("42ef"),a=n("58bc"),c=n("bed0"),l=n("065f"),u=n("9bf6"),h=n("11b2"),d=n("2063"),f=n("597a"),p=n("1f97"),m=n("7ccd"),g=n("cea5").f,v=n("d133"),y=n("d424"),_=n("47ab"),b=n("20e2"),x=n("e435"),w=n("fbfa"),S=w.enforce,M=w.get,A=c.Int8Array,C=A&&A.prototype,E=c.Uint8ClampedArray,T=E&&E.prototype,I=A&&y(A),P=C&&y(C),L=Object.prototype,R=c.TypeError,O=b("toStringTag"),B=x("TYPED_ARRAY_TAG"),k="TypedArrayConstructor",D=s&&!!_&&"Opera"!==d(c.opera),F=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},U=function(t){var e=y(t);if(u(e)){var n=M(e);return n&&h(n,k)?n[k]:U(e)}},z=function(t){if(!u(t))return!1;var e=d(t);return h(N,e)||h(j,e)};for(r in N)(o=(i=c[r])&&i.prototype)?S(o)[k]=i:D=!1;for(r in j)(o=(i=c[r])&&i.prototype)&&(S(o)[k]=i);if((!D||!l(I)||I===Function.prototype)&&(I=function(){throw R("Incorrect invocation")},D))for(r in N)c[r]&&_(c[r],I);if((!D||!P||P===L)&&(P=I.prototype,D))for(r in N)c[r]&&_(c[r].prototype,P);if(D&&y(T)!==P&&_(T,P),a&&!h(P,O))for(r in F=!0,g(P,O,{get:function(){return u(this)?this[B]:void 0}}),N)c[r]&&p(c[r],B,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&B,aTypedArray:function(t){if(z(t))return t;throw R("Target is not a typed array")},aTypedArrayConstructor:function(t){if(l(t)&&(!_||v(I,t)))return t;throw R(f(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(a){if(n)for(var i in N){var o=c[i];if(o&&h(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.prototype[t]=e}catch(t){}}}P[t]&&!n||m(P,t,n?e:D&&C[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(a){if(_){if(n)for(r in N)if((i=c[r])&&h(i,t))try{delete i[t]}catch(t){}if(I[t]&&!n)return;try{return m(I,t,n?e:D&&I[t]||e)}catch(t){}}for(r in N)!(i=c[r])||i[t]&&!n||m(i,t,e)}},getTypedArrayConstructor:U,isView:function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(N,e)||h(j,e)},isTypedArray:z,TypedArray:I,TypedArrayPrototype:P}},"548d":function(t,e,n){var r=n("2774"),i=n("c197"),o=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,d){var f=n+t.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=l),a(d,m,(function(i,a){var l;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,f);case"<":l=h[c(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?s(a,1):r[d-1]+s(a,1):i}l=r[u-1]}return void 0===l?"":l}))}},"562f":function(t,e,n){(function(t,n){var r="[object Map]",i="[object Promise]",o="[object Set]",s="[object WeakMap]",a="[object DataView]",c=/^\[object .+?Constructor\]$/,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,h=l||u||Function("return this")(),d=e&&!e.nodeType&&e,f=d&&"object"==typeof n&&n&&!n.nodeType&&n,p=f&&f.exports===d,m=Function.prototype,g=Object.prototype,v=h["__core-js_shared__"],y=function(){var t=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=p?h.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),E=j(h,"DataView"),T=j(h,"Map"),I=j(h,"Promise"),P=j(h,"Set"),L=j(h,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:c).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&U(new E(new ArrayBuffer(1)))!=a||T&&U(new T)!=r||I&&U(I.resolve())!=i||P&&U(new P)!=o||L&&U(new L)!=s)&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,c=n?z(n):void 0;if(c)switch(c){case O:return a;case B:return r;case k:return i;case D:return o;case F:return s}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==o)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n("2409"),n("adb6")(t))},"566f":function(t,e,n){var r=n("9887"),i=n("bed0");t.exports="process"==r(i.process)},"571a":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"58bc":function(t,e,n){var r=n("bd71");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5925:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){l=n,h=i||{};var s=r(t,e);return m(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i],c=o[a.id];c.refs--,n.push(c)}for(e?m(s=r(t,e)):s=[],i=0;i<n.length;i++)if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(f){var i=c++;r=a||(a=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"597a":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},"5b01":function(t,e,n){var r=n("9bf6"),i=n("1f97");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},"5cb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAKN2lDQ1BzUkdCIElFQzYxOTY2LTIuMQAAeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zBAP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3OMErOIlmCMlaTc/IsW3z2mWUPOfMyhDwZy3PO4mXw5Nwn4405Er6MkWAZF+cI+LkyviZjg3RJhkDGb+SxGXxONgAoktwu5nNTZGwtY5IoMoIt43kA4EjJX/DSL1jMzxPLD8XOzFouEiSniBkmXFOGjZMTi+HPz03ni8XMMA43jSPiMdiZGVkc4XIAZs/8WRR5bRmyIjvYODk4MG0tbb4o1H9d/JuS93aWXoR/7hlEH/jD9ld+mQ0AsKZltdn6h21pFQBd6wFQu/2HzWAvAIqyvnUOfXEeunxeUsTiLGcrq9zcXEsBn2spL+jv+p8Of0NffM9Svt3v5WF485M4knQxQ143bmZ6pkTEyM7icPkM5p+H+B8H/nUeFhH8JL6IL5RFRMumTCBMlrVbyBOIBZlChkD4n5r4D8P+pNm5lona+BHQllgCpSEaQH4eACgqESAJe2Qr0O99C8ZHA/nNi9GZmJ37z4L+fVe4TP7IFiR/jmNHRDK4ElHO7Jr8WgI0IABFQAPqQBvoAxPABLbAEbgAD+ADAkEoiARxYDHgghSQAUQgFxSAtaAYlIKtYCeoBnWgETSDNnAYdIFj4DQ4By6By2AE3AFSMA6egCnwCsxAEISFyBAVUod0IEPIHLKFWJAb5AMFQxFQHJQIJUNCSAIVQOugUqgcqobqoWboW+godBq6AA1Dt6BRaBL6FXoHIzAJpsFasBFsBbNgTzgIjoQXwcnwMjgfLoK3wJVwA3wQ7oRPw5fgEVgKP4GnEYAQETqiizARFsJGQpF4JAkRIauQEqQCaUDakB6kH7mKSJGnyFsUBkVFMVBMlAvKHxWF4qKWoVahNqOqUQdQnag+1FXUKGoK9RFNRmuizdHO6AB0LDoZnYsuRlegm9Ad6LPoEfQ4+hUGg6FjjDGOGH9MHCYVswKzGbMb0445hRnGjGGmsVisOtYc64oNxXKwYmwxtgp7EHsSewU7jn2DI+J0cLY4X1w8TogrxFXgWnAncFdwE7gZvBLeEO+MD8Xz8MvxZfhGfA9+CD+OnyEoE4wJroRIQiphLaGS0EY4S7hLeEEkEvWITsRwooC4hlhJPEQ8TxwlviVRSGYkNimBJCFtIe0nnSLdIr0gk8lGZA9yPFlM3kJuJp8h3ye/UaAqWCoEKPAUVivUKHQqXFF4pohXNFT0VFysmK9YoXhEcUjxqRJeyUiJrcRRWqVUo3RU6YbStDJV2UY5VDlDebNyi/IF5UcULMWI4kPhUYoo+yhnKGNUhKpPZVO51HXURupZ6jgNQzOmBdBSaaW0b2iDtCkVioqdSrRKnkqNynEVKR2hG9ED6On0Mvph+nX6O1UtVU9Vvuom1TbVK6qv1eaoeajx1UrU2tVG1N6pM9R91NPUt6l3qd/TQGmYaYRr5Grs0Tir8XQObY7LHO6ckjmH59zWhDXNNCM0V2ju0xzQnNbS1vLTytKq0jqj9VSbru2hnaq9Q/uE9qQOVcdNR6CzQ+ekzmOGCsOTkc6oZPQxpnQ1df11Jbr1uoO6M3rGelF6hXrtevf0Cfos/ST9Hfq9+lMGOgYhBgUGrQa3DfGGLMMUw12G/YavjYyNYow2GHUZPTJWMw4wzjduNb5rQjZxN1lm0mByzRRjyjJNM91tetkMNrM3SzGrMRsyh80dzAXmu82HLdAWThZCiwaLG0wS05OZw2xljlrSLYMtCy27LJ9ZGVjFW22z6rf6aG1vnW7daH3HhmITaFNo02Pzq62ZLde2xvbaXPJc37mr53bPfW5nbse322N3055qH2K/wb7X/oODo4PIoc1h0tHAMdGx1vEGi8YKY21mnXdCO3k5rXY65vTW2cFZ7HzY+RcXpkuaS4vLo3nG8/jzGueNueq5clzrXaVuDLdEt71uUnddd457g/sDD30PnkeTx4SnqWeq50HPZ17WXiKvDq/XbGf2SvYpb8Tbz7vEe9CH4hPlU+1z31fPN9m31XfKz95vhd8pf7R/kP82/xsBWgHcgOaAqUDHwJWBfUGkoAVB1UEPgs2CRcE9IXBIYMj2kLvzDecL53eFgtCA0O2h98KMw5aFfR+OCQ8Lrwl/GGETURDRv4C6YMmClgWvIr0iyyLvRJlESaJ6oxWjE6Kbo1/HeMeUx0hjrWJXxl6K04gTxHXHY+Oj45vipxf6LNy5cDzBPqE44foi40V5iy4s1licvvj4EsUlnCVHEtGJMYktie85oZwGzvTSgKW1S6e4bO4u7hOeB28Hb5Lvyi/nTyS5JpUnPUp2Td6ePJninlKR8lTAFlQLnqf6p9alvk4LTduf9ik9Jr09A5eRmHFUSBGmCfsytTPzMoezzLOKs6TLnJftXDYlChI1ZUPZi7K7xTTZz9SAxESyXjKa45ZTk/MmNzr3SJ5ynjBvYLnZ8k3LJ/J9879egVrBXdFboFuwtmB0pefK+lXQqqWrelfrry5aPb7Gb82BtYS1aWt/KLQuLC98uS5mXU+RVtGaorH1futbixWKRcU3NrhsqNuI2ijYOLhp7qaqTR9LeCUXS61LK0rfb+ZuvviVzVeVX33akrRlsMyhbM9WzFbh1uvb3LcdKFcuzy8f2x6yvXMHY0fJjpc7l+y8UGFXUbeLsEuyS1oZXNldZVC1tep9dUr1SI1XTXutZu2m2te7ebuv7PHY01anVVda926vYO/Ner/6zgajhop9mH05+x42Rjf2f836urlJo6m06cN+4X7pgYgDfc2Ozc0tmi1lrXCrpHXyYMLBy994f9Pdxmyrb6e3lx4ChySHHn+b+O31w0GHe4+wjrR9Z/hdbQe1o6QT6lzeOdWV0iXtjusePhp4tLfHpafje8vv9x/TPVZzXOV42QnCiaITn07mn5w+lXXq6enk02O9S3rvnIk9c60vvG/wbNDZ8+d8z53p9+w/ed71/LELzheOXmRd7LrkcKlzwH6g4wf7HzoGHQY7hxyHui87Xe4Znjd84or7ldNXva+euxZw7dLI/JHh61HXb95IuCG9ybv56Fb6ree3c27P3FlzF3235J7SvYr7mvcbfjT9sV3qID0+6j068GDBgztj3LEnP2X/9H686CH5YcWEzkTzI9tHxyZ9Jy8/Xvh4/EnWk5mnxT8r/1z7zOTZd794/DIwFTs1/lz0/NOvm1+ov9j/0u5l73TY9P1XGa9mXpe8UX9z4C3rbf+7mHcTM7nvse8rP5h+6PkY9PHup4xPn34D94Tz+49wZioAAAAJcEhZcwAACxIAAAsSAdLdfvwAAALeSURBVHicVZPNaxNBGMbfnZ3srmuakCZpGpNSWjDZYgqW3LzYgkir1kDBHPwHBA96UHrUkwdBT56KFPFv6KEWpBUMtBFaanuoVULSpMQkzUeTNNtssh/OmxrBuQ0zz/PM+76/oZZlAa7JSSIYhiKyvSgBDFiEuIhlOUyOa3CmWWsDNDmO03j+h7a/b3ZQQ/tCXQ87ZJ64QNdljudlKghuSZbdeqdTb6uqKBuGA3heVfVwjd1voAHtCy/xvM/kDJ8oi+6Z23PvBUGwsySLJ8Q6b7fr28nNV6WT4h67J5zrYQxsUHwqJqLw5vStR3fuzce7eheOsllo1Ovg9XpBURRPLBZ782F5+W1yK7Em83zn3FA0ijXiU5VI5MazxcUHkiRBOpOGcrkMzUYD7HY7DA0NwejoKO/xep8/efzod+HouGJxnEixOVhjbGHhRSAQ4Cy4aGClXOkZ+P1+CAaDgH11uVxk9u791x+XlqYl0xyg2FWv3389rCh8tVoFTB4cHISpqSnIHecgEolAu92GWq0GrVYLxsbGiNPtvlqpVDSK47CJ4khLVUkqlYKLxQEhHESuRSD5LQl6V4f+SJkRL0pSgOmyFOfITtRMJsPOLU5VVWg2z3rieDwOiUQCsrkcCDYbsAmAYRiWZZqnqKMIQPP0dDudTuuiKNq63W7vUig0AU6nE6LRKHQ6HSgWi6BpGk7AaDWbv1BHkZxGtZrP53J7V0ZGosyg193h4WHGBA9ejxfGx8fBNE3AnhTy+WSrXj9pc1yTInJIztbm18WZy7MrysSE7PF4YMDhAHYGoiSCz+eDs7MzODw4KO5sJ18SSlWWrFFkFZFDcjY+f5onAO/cbndIFIQeuoQQKJVKnS/r6z/XVleeMuaKqmHUKD3UKDKKqCFySM7G6urD/d3dkD8YnGMmAVbrQa1S2Slks98x8a/wgm10/2fAkENySoVCo1gqpf77VazG3lNZYv9X/QEJM4cEk5QMqQAAAABJRU5ErkJggg=="},"5d0e":function(t,e,n){var r=n("4c9f"),i=n("f5c1");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},"5d56":function(t,e,n){"use strict";(function(t,r,i){n.d(e,"a",(function(){return it}));var o=n("f7eb"),s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
15
19
  /*!
16
20
  * author: sakitam-fdd <smilefdd@gmail.com>
@@ -129,10 +133,18 @@ var i="_maptalks__internal_layer_",o=["MultiPoint","MultiLineString","MultiPolyg
129
133
  * @license MIT
130
134
  */
131
135
  var r=n("3560"),i=n("e248"),o=n("571a");function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(t,o+d)!==l(e,d)){h=!1;break}if(h)return o}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return G(U(e,t.length-n),t,n,r)}function x(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return x(t,e,n,r)}function S(t,e,n,r){return G(z(e),t,n,r)}function M(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,c,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=j(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function k(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:U(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("2409"))},fddf:function(t,e,n){var r=n("cfa6"),i=n("1f1f");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}})},module.exports=e()}).call(this,__webpack_require__(165).setImmediate)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return ct})),n.d(e,"Axios",(function(){return lt})),n.d(e,"AxiosError",(function(){return ut})),n.d(e,"CanceledError",(function(){return ht})),n.d(e,"isCancel",(function(){return dt})),n.d(e,"CancelToken",(function(){return ft})),n.d(e,"VERSION",(function(){return pt})),n.d(e,"all",(function(){return mt})),n.d(e,"Cancel",(function(){return gt})),n.d(e,"isAxiosError",(function(){return vt})),n.d(e,"spread",(function(){return yt})),n.d(e,"toFormData",(function(){return _t})),n.d(e,"AxiosHeaders",(function(){return bt})),n.d(e,"HttpStatusCode",(function(){return xt})),n.d(e,"formToJSON",(function(){return wt})),n.d(e,"getAdapter",(function(){return St})),n.d(e,"mergeConfig",(function(){return Mt}));var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return v})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return b})),n.d(r,"hasStandardBrowserEnv",(function(){return y}));var i=n(0),o=n(85),s=n(32);function a(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function c(t,e){this._pairs=[],t&&Object(s.a)(t,this,e)}const l=c.prototype;l.append=function(t,e){this._pairs.push([t,e])},l.toString=function(t){const e=t?function(e){return t.call(this,e,a)}:a;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var u=c;function h(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d(t,e,n){if(!e)return t;const r=n&&n.encode||h,o=n&&n.serialize;let s;if(s=o?o(e,n):i.a.isURLSearchParams(e)?e.toString():new u(e,n).toString(r),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}var f=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){i.a.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},p=n(1),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const v="undefined"!=typeof window&&"undefined"!=typeof document,y=(_="undefined"!=typeof navigator&&navigator.product,v&&["ReactNative","NativeScript","NS"].indexOf(_)<0);var _;const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var x={...r,...g};var w=function(t){function e(t,n,r,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&i.a.isArray(r)?r.length:s,c)return i.a.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!a;r[s]&&i.a.isObject(r[s])||(r[s]=[]);return e(t,n,r[s],o)&&i.a.isArray(r[s])&&(r[s]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[s])),!a}if(i.a.isFormData(t)&&i.a.isFunction(t.entries)){const n={};return i.a.forEachEntry(t,(t,r)=>{e(function(t){return i.a.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null};const S={transitional:m,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=i.a.isObject(t);o&&i.a.isHTMLForm(t)&&(t=new FormData(t));if(i.a.isFormData(t))return r?JSON.stringify(w(t)):t;if(i.a.isArrayBuffer(t)||i.a.isBuffer(t)||i.a.isStream(t)||i.a.isFile(t)||i.a.isBlob(t))return t;if(i.a.isArrayBufferView(t))return t.buffer;if(i.a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Object(s.a)(t,new x.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return x.isNode&&i.a.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((a=i.a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(s.a)(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(i.a.isString(t))try{return(e||JSON.parse)(t),i.a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||S.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&i.a.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw p.a.from(t,p.a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.a.forEach(["delete","get","head","post","put","patch"],t=>{S.headers[t]={}});var M=S;const A=i.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const C=Symbol("internals");function E(t){return t&&String(t).trim().toLowerCase()}function T(t){return!1===t||null==t?t:i.a.isArray(t)?t.map(T):String(t)}function I(t,e,n,r,o){return i.a.isFunction(r)?r.call(this,e,n):(o&&(e=n),i.a.isString(e)?i.a.isString(r)?-1!==e.indexOf(r):i.a.isRegExp(r)?r.test(e):void 0:void 0)}class P{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=E(e);if(!o)throw new Error("header name must be a non-empty string");const s=i.a.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||e]=T(t))}const s=(t,e)=>i.a.forEach(t,(t,n)=>o(t,n,e));return i.a.isPlainObject(t)||t instanceof this.constructor?s(t,e):i.a.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?s((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&A[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=E(t)){const n=i.a.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(i.a.isFunction(e))return e.call(this,t,n);if(i.a.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=E(t)){const n=i.a.findKey(this,t);return!(!n||void 0===this[n]||e&&!I(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=E(t)){const o=i.a.findKey(n,t);!o||e&&!I(0,n[o],o,e)||(delete n[o],r=!0)}}return i.a.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!I(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return i.a.forEach(this,(r,o)=>{const s=i.a.findKey(n,o);if(s)return e[s]=T(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=T(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return i.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&i.a.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[C]=this[C]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=E(t);e[r]||(!function(t,e){const n=i.a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})})}(n,t),e[r]=!0)}return i.a.isArray(t)?t.forEach(r):r(t),this}}P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.a.reduceDescriptors(P.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),i.a.freezeMethods(P);var L=P;function R(t,e){const n=this||M,r=e||n,o=L.from(r.headers);let s=r.data;return i.a.forEach(t,(function(t){s=t.call(n,s,o.normalize(),e?e.status:void 0)})),o.normalize(),s}function O(t){return!(!t||!t.__CANCEL__)}function B(t,e,n){p.a.call(this,null==t?"canceled":t,p.a.ERR_CANCELED,e,n),this.name="CanceledError"}i.a.inherits(B,p.a,{__CANCEL__:!0});var k=B,D=n(86);var F=x.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];i.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.a.isString(r)&&a.push("path="+r),i.a.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function N(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var j=x.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=i.a.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};var U=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),l=r[s];i||(i=c),n[o]=a,r[o]=c;let u=s,h=0;for(;u!==o;)h+=n[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const d=l&&c-l;return d?Math.round(1e3*h/d):void 0}};function z(t,e){let n=0;const r=U(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a);n=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i};l[e?"download":"upload"]=!0,t(l)}}var G="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=L.from(t.headers).normalize();let s,a,{responseType:c,withXSRFToken:l}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}if(i.a.isFormData(r))if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[t,...e]=a?a.split(";").map(t=>t.trim()).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let h=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const f=N(t.baseURL,t.url);function g(){if(!h)return;const r=L.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new p.a("Request failed with status code "+n.status,[p.a.ERR_BAD_REQUEST,p.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:c&&"text"!==c&&"json"!==c?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h}),h=null}if(h.open(t.method.toUpperCase(),d(f,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new p.a("Request aborted",p.a.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new p.a("Network Error",p.a.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||m;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new p.a(e,r.clarifyTimeoutError?p.a.ETIMEDOUT:p.a.ECONNABORTED,t,h)),h=null},x.hasStandardBrowserEnv&&(l&&i.a.isFunction(l)&&(l=l(t)),l||!1!==l&&j(f))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&F.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in h&&i.a.forEach(o.toJSON(),(function(t,e){h.setRequestHeader(e,t)})),i.a.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),c&&"json"!==c&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",z(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",z(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{h&&(n(!e||e.type?new k(null,t,h):e),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);v&&-1===x.protocols.indexOf(v)?n(new p.a("Unsupported protocol "+v+":",p.a.ERR_BAD_REQUEST,t)):h.send(r||null)}))};const H={http:D.a,xhr:G};i.a.forEach(H,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const W=t=>"- "+t,V=t=>i.a.isFunction(t)||null===t||!1===t;var Z=t=>{t=i.a.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!V(n)&&(r=H[(e=String(n)).toLowerCase()],void 0===r))throw new p.a(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let n=e?t.length>1?"since :\n"+t.map(W).join("\n"):" "+W(t[0]):"as no adapter specified";throw new p.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Q(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new k(null,t)}function X(t){Q(t),t.headers=L.from(t.headers),t.data=R.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Z(t.adapter||M.adapter)(t).then((function(e){return Q(t),e.data=R.call(t,t.transformResponse,e),e.headers=L.from(e.headers),e}),(function(e){return O(e)||(Q(t),e&&e.response&&(e.response.data=R.call(t,t.transformResponse,e.response),e.response.headers=L.from(e.response.headers))),Promise.reject(e)}))}const Y=t=>t instanceof L?t.toJSON():t;function J(t,e){e=e||{};const n={};function r(t,e,n){return i.a.isPlainObject(t)&&i.a.isPlainObject(e)?i.a.merge.call({caseless:n},t,e):i.a.isPlainObject(e)?i.a.merge({},e):i.a.isArray(e)?e.slice():e}function o(t,e,n){return i.a.isUndefined(e)?i.a.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function s(t,e){if(!i.a.isUndefined(e))return r(void 0,e)}function a(t,e){return i.a.isUndefined(e)?i.a.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function c(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(t,e)=>o(Y(t),Y(e),!0)};return i.a.forEach(Object.keys(Object.assign({},t,e)),(function(r){const s=l[r]||o,a=s(t[r],e[r],r);i.a.isUndefined(a)&&s!==c||(n[r]=a)})),n}const q={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{q[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const K={};q.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.7] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new p.a(r(i," has been removed"+(e?" in "+e:"")),p.a.ERR_DEPRECATED);return e&&!K[i]&&(K[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var $={assertOptions:function(t,e,n){if("object"!=typeof t)throw new p.a("options must be an object",p.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new p.a("option "+o+" must be "+n,p.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new p.a("Unknown option "+o,p.a.ERR_BAD_OPTION)}},validators:q};const tt=$.validators;class et{constructor(t){this.defaults=t,this.interceptors={request:new f,response:new f}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=J(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&$.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),null!=r&&(i.a.isFunction(r)?e.paramsSerializer={serialize:r}:$.assertOptions(r,{encode:tt.function,serialize:tt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=o&&i.a.merge(o.common,o[e.method]);o&&i.a.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=L.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let h,d=0;if(!c){const t=[X.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),h=t.length,u=Promise.resolve(e);d<h;)u=u.then(t[d++],t[d++]);return u}h=a.length;let f=e;for(d=0;d<h;){const t=a[d++],e=a[d++];try{f=t(f)}catch(t){e.call(this,t);break}}try{u=X.call(this,f)}catch(t){return Promise.reject(t)}for(d=0,h=l.length;d<h;)u=u.then(l[d++],l[d++]);return u}getUri(t){return d(N((t=J(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}i.a.forEach(["delete","get","head","options"],(function(t){et.prototype[t]=function(e,n){return this.request(J(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.a.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(J(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}et.prototype[t]=e(),et.prototype[t+"Form"]=e(!0)}));var nt=et;class rt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new k(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new rt((function(e){t=e})),cancel:t}}}var it=rt;const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ot).forEach(([t,e])=>{ot[e]=t});var st=ot;const at=function t(e){const n=new nt(e),r=Object(o.a)(nt.prototype.request,n);return i.a.extend(r,nt.prototype,n,{allOwnKeys:!0}),i.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(J(e,n))},r}(M);at.Axios=nt,at.CanceledError=k,at.CancelToken=it,at.isCancel=O,at.VERSION="1.6.7",at.toFormData=s.a,at.AxiosError=p.a,at.Cancel=at.CanceledError,at.all=function(t){return Promise.all(t)},at.spread=function(t){return function(e){return t.apply(null,e)}},at.isAxiosError=function(t){return i.a.isObject(t)&&!0===t.isAxiosError},at.mergeConfig=J,at.AxiosHeaders=L,at.formToJSON=t=>w(i.a.isHTMLForm(t)?new FormData(t):t),at.getAdapter=Z,at.HttpStatusCode=st,at.default=at;var ct=at;const{Axios:lt,AxiosError:ut,CanceledError:ht,isCancel:dt,CancelToken:ft,VERSION:pt,all:mt,Cancel:gt,isAxiosError:vt,spread:yt,toFormData:_t,AxiosHeaders:bt,HttpStatusCode:xt,formToJSON:wt,getAdapter:St,mergeConfig:Mt}=ct},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r,i=n(33),o=n(118),s=void 0!==t?null===(r=t.env)||void 0===r?void 0:r.npm_package_version:void 0,a=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new o.a(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Object(i.a)(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Object(i.b)(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Object(i.b)(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Object(i.a)(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new o.a,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=s,t}()}).call(this,n(166))},function(t,e,n){"use strict";n.d(e,"a",(function(){return J}));var r,i,o=n(33),s=function(t){var e;if(void 0===r){var n="0123456789ABCDEF";for(r={},e=0;e<16;++e)r[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)r[n.charAt(e)]=e;for(e=0;e<" \f\n\r\t \u2028\u2029".length;++e)r[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var i=[],o=0,s=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=r[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},a={decode:function(t){var e;if(void 0===i){for(i=Object.create(null),e=0;e<64;++e)i["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(i["-"]=62,i._=63,e=0;e<"= \f\n\r\t \u2028\u2029".length;++e)i["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],r=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=i[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);r|=s,++o>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,o=0):r<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=a.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return a.decode(t)}},c=1e13,l=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<c?e=0:r-=(e=0|r/c)*c,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=c,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(c+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*c+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),u=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,h=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function d(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var f,p=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?u:h).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,s="";r==o&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^o));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var a=new l(r),c=t+1;c<e;++c)a.mulAdd(256,this.get(c));return s+a.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",s=t+1;s<e;++s){for(var a=this.get(s),c=s==e-1?r:0,l=7;l>=c;--l)o+=a>>l&1?"1":"0";if(o.length>n)return i+d(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return d(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new l,o=0,s=t;s<e;++s){var a=this.get(s);if(i.mulAdd(128,127&a),o+=7,!(128&a)){if(""===r)if((i=i.simplify())instanceof l)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return d(r,n);i=new l,o=0}}return o>0&&(r+=".incomplete"),r},t}(),m=function(){function t(t,e,n,r,i){if(!(r instanceof g))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return d(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return d(this.stream.parseStringISO(e,e+n),t);case 30:return d(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof p?e:new p(e,0);var r=new p(n),i=new g(n),o=t.decodeLength(n),s=n.pos,a=s-r.pos,c=null,l=function(){var e=[];if(null!==o){for(var r=s+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=s-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=l();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=l();for(var u=0;u<c.length;++u)if(c[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(o)}return new t(r,a,o,i,c)},t}(),g=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new l;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),v=n(7),y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_=(1<<26)/y[y.length-1],b=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(i=!0,o=Object(v.b)(n));s>=0;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=Object(v.b)(n));return i?o:"0"},t.prototype.negate=function(){var e=A();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=A();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new w(e):new S(e),this.exp(t,n)},t.prototype.clone=function(){var t=A();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=A();return this.bitwiseTo(t,v.d,e),e},t.prototype.or=function(t){var e=A();return this.bitwiseTo(t,v.f,e),e},t.prototype.xor=function(t){var e=A();return this.bitwiseTo(t,v.g,e),e},t.prototype.andNot=function(t){var e=A();return this.bitwiseTo(t,v.e,e),e},t.prototype.not=function(){for(var t=A(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=A();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=A();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Object(v.c)(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Object(v.a)(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,v.f)},t.prototype.clearBit=function(t){return this.changeBit(t,v.e)},t.prototype.flipBit=function(t){return this.changeBit(t,v.g)},t.prototype.add=function(t){var e=A();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=A();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=A();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=A();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=A();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=A(),n=A();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=R(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new w(e):e.isEven()?new M(e):new S(e);var s=[],a=3,c=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var u=A();for(r.sqrTo(s[1],u);a<=l;)s[a]=A(),r.mulTo(u,s[a-2],s[a]),a+=2}var h,d,f=t.t-1,p=!0,m=A();for(i=O(t[f])-1;f>=0;){for(i>=c?h=t[f]>>i-c&l:(h=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(h|=t[f-1]>>this.DB+i-c)),a=n;0==(1&h);)h>>=1,--a;if((i-=a)<0&&(i+=this.DB,--f),p)s[h].copyTo(o),p=!1;else{for(;a>1;)r.sqrTo(o,m),r.sqrTo(m,o),a-=2;a>0?r.sqrTo(o,m):(d=o,o=m,m=d),r.mulTo(m,s[h],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,m),d=o,o=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=R(1),s=R(0),a=R(0),c=R(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(a.isEven()&&c.isEven()||(a.addTo(this,a),c.subTo(e,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(a,o),s.subTo(c,s)):(i.subTo(r,i),n&&a.subTo(o,a),c.subTo(s,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new x)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=y[y.length-1]){for(e=0;e<y.length;++e)if(n[0]==y[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<y.length;){for(var r=y[e],i=e+1;i<y.length&&r<_;)r*=y[i++];for(r=n.modInt(r);e<i;)if(r%y[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,s=0;--i>=0;){var a=8==r?255&+e[i]:L(e,i);a<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),s=this.s<<n&this.DM,a=this.t-1;a>=0;--a)e[a+o+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=o-1;a>=0;--a)e[a]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=A());var s=A(),a=this.s,c=e.s,l=this.DB-O(i[i.t-1]);l>0?(i.lShiftTo(l,s),o.lShiftTo(l,r)):(i.copyTo(s),o.copyTo(r));var u=s.t,h=s[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-u,y=null==n?A():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--v>=0;){var _=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+m)*p);if((r[g]+=s.am(0,_,r,v,0,u))<_)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),a!=c&&t.ZERO.subTo(n,n)),r.t=u,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=A(),i=A(),o=n.convert(this),s=O(e)-1;for(o.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,o,r);else{var a=r;r=i,i=a}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=R(n),i=A(),o=A(),s="";for(this.divRemTo(r,i,o);i.signum()>0;)s=(n+o.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,o);return o.intValue().toString(t)+s},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,s=0,a=0,c=0;c<e.length;++c){var l=L(e,c);l<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(a=n*a+l,++s>=r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(a,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),v.f,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>y.length&&(e=y.length);for(var o=A(),s=0;s<e;++s){o.fromInt(y[Math.floor(Math.random()*y.length)]);var a=o.modPow(i,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(n)){for(var c=1;c++<r&&0!=a.compareTo(n);)if(0==(a=a.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=a.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=A();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)e(n);else{o<s&&(s=o),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var a=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),v.f,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],c=7&e;a.length=1+(e>>3),n.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},t}(),x=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),w=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),S=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=A();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(b.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=A();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),M=function(){function t(t){this.m=t,this.r2=A(),this.q3=A(),b.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=A();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function A(){return new b(null)}function C(t,e){return new b(t,e)}var E="undefined"!=typeof navigator;E&&"Microsoft Internet Explorer"==navigator.appName?(b.prototype.am=function(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var c=32767&this[t],l=this[t++]>>15,u=a*c+l*s;i=((c=s*c+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+a*l+(i>>>30),n[r++]=1073741823&c}return i},f=30):E&&"Netscape"!=navigator.appName?(b.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},f=26):(b.prototype.am=function(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var c=16383&this[t],l=this[t++]>>14,u=a*c+l*s;i=((c=s*c+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+a*l,n[r++]=268435455&c}return i},f=28),b.prototype.DB=f,b.prototype.DM=(1<<f)-1,b.prototype.DV=1<<f;b.prototype.FV=Math.pow(2,52),b.prototype.F1=52-f,b.prototype.F2=2*f-52;var T,I,P=[];for(T="0".charCodeAt(0),I=0;I<=9;++I)P[T++]=I;for(T="a".charCodeAt(0),I=10;I<36;++I)P[T++]=I;for(T="A".charCodeAt(0),I=10;I<36;++I)P[T++]=I;function L(t,e){var n=P[t.charCodeAt(e)];return null==n?-1:n}function R(t){var e=A();return e.fromInt(t),e}function O(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}b.ZERO=R(0),b.ONE=R(1);var B=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var k,D,F=null;if(null==F){F=[],D=0;var N=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var j=new Uint32Array(256);for(window.crypto.getRandomValues(j),N=0;N<j.length;++N)F[D++]=255&j[N]}var U=0,z=function(t){if((U=U||0)>=256||D>=256)window.removeEventListener?window.removeEventListener("mousemove",z,!1):window.detachEvent&&window.detachEvent("onmousemove",z);else try{var e=t.x+t.y;F[D++]=255&e,U+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",z,!1):window.attachEvent&&window.attachEvent("onmousemove",z))}function G(){if(null==k){for(k=new B;D<256;){var t=Math.floor(65536*Math.random());F[D++]=255&t}for(k.init(F),D=0;D<F.length;++D)F[D]=0;D=0}return k.next()}var H=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=G()},t}();var W=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new H,s=[];e>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new b(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,s=0;s<2*e-o;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16),this.d=C(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,s,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16),this.d=C(n,16),this.p=C(r,16),this.q=C(i,16),this.dmp1=C(o,16),this.dmq1=C(s,16),this.coeff=C(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new H,r=t>>1;this.e=parseInt(e,16);for(var i=new b(e,16);;){for(;this.p=new b(t-r,1,n),0!=this.p.subtract(b.ONE).gcd(i).compareTo(b.ONE)||!this.p.isProbablePrime(10););for(;this.q=new b(r,1,n),0!=this.q.subtract(b.ONE).gcd(i).compareTo(b.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(b.ONE),a=this.q.subtract(b.ONE),c=s.multiply(a);if(0==c.gcd(i).compareTo(b.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=C(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new H,i=t>>1;this.e=parseInt(e,16);var o=new b(e,16),s=this,a=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(b.ONE),r=s.q.subtract(b.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(b.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(a,0)},c=function(){s.q=A(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(b.ONE).gcda(o,(function(t){0==t.compareTo(b.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},l=function(){s.p=A(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(b.ONE).gcda(o,(function(t){0==t.compareTo(b.ONE)&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return C("0001"+r+"00"+t,16)}((V[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=C(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in V)if(V.hasOwnProperty(e)){var n=V[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
136
+ /*!
132
137
 
133
138
  */(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var V={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var Z={};Z.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};
134
-
135
- var Q={};void 0!==Q.asn1&&Q.asn1||(Q.asn1={}),Q.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new b(r,16).xor(t).add(b.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Q.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,c=e.DEREnumerated,l=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var x=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new n(t[x]);if("int"==x)return new r(t[x]);if("bitstr"==x)return new i(t[x]);if("octstr"==x)return new o(t[x]);if("null"==x)return new s(t[x]);if("oid"==x)return new a(t[x]);if("enum"==x)return new c(t[x]);if("utf8str"==x)return new l(t[x]);if("numstr"==x)return new u(t[x]);if("prnstr"==x)return new h(t[x]);if("telstr"==x)return new d(t[x]);if("ia5str"==x)return new f(t[x]);if("utctime"==x)return new p(t[x]);if("gentime"==x)return new m(t[x]);if("seq"==x){for(var w=t[x],S=[],M=0;M<w.length;M++){var A=_(w[M]);S.push(A)}return new g({array:S})}if("set"==x){for(w=t[x],S=[],M=0;M<w.length;M++){A=_(w[M]);S.push(A)}return new v({array:S})}if("tag"==x){var C=t[x];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var E=_(C[2]);return new y({tag:C[0],explicit:C[1],obj:E})}var T={};if(void 0!==C.explicit&&(T.explicit=C.explicit),void 0!==C.tag&&(T.tag=C.tag),void 0===C.obj)throw"obj shall be specified for 'tag'.";return T.obj=_(C.obj),new y(T)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Q.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new b(r,2).toString(10),r=""}return e},Q.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},Q.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Q.asn1.DERAbstractString=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Z.lang.extend(Q.asn1.DERAbstractString,Q.asn1.ASN1Object),Q.asn1.DERAbstractTime=function(t){Q.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var c=r(String(a),3);s=s+"."+(c=c.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var s=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Z.lang.extend(Q.asn1.DERAbstractTime,Q.asn1.ASN1Object),Q.asn1.DERAbstractStructured=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Z.lang.extend(Q.asn1.DERAbstractStructured,Q.asn1.ASN1Object),Q.asn1.DERBoolean=function(){Q.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Z.lang.extend(Q.asn1.DERBoolean,Q.asn1.ASN1Object),Q.asn1.DERInteger=function(t){Q.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DERInteger,Q.asn1.ASN1Object),Q.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Q.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Z.lang.extend(Q.asn1.DERBitString,Q.asn1.ASN1Object),Q.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Q.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Z.lang.extend(Q.asn1.DEROctetString,Q.asn1.DERAbstractString),Q.asn1.DERNull=function(){Q.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Z.lang.extend(Q.asn1.DERNull,Q.asn1.ASN1Object),Q.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};Q.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Q.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Z.lang.extend(Q.asn1.DERObjectIdentifier,Q.asn1.ASN1Object),Q.asn1.DEREnumerated=function(t){Q.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DEREnumerated,Q.asn1.ASN1Object),Q.asn1.DERUTF8String=function(t){Q.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Z.lang.extend(Q.asn1.DERUTF8String,Q.asn1.DERAbstractString),Q.asn1.DERNumericString=function(t){Q.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Z.lang.extend(Q.asn1.DERNumericString,Q.asn1.DERAbstractString),Q.asn1.DERPrintableString=function(t){Q.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Z.lang.extend(Q.asn1.DERPrintableString,Q.asn1.DERAbstractString),Q.asn1.DERTeletexString=function(t){Q.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Z.lang.extend(Q.asn1.DERTeletexString,Q.asn1.DERAbstractString),Q.asn1.DERIA5String=function(t){Q.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Z.lang.extend(Q.asn1.DERIA5String,Q.asn1.DERAbstractString),Q.asn1.DERUTCTime=function(t){Q.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Z.lang.extend(Q.asn1.DERUTCTime,Q.asn1.DERAbstractTime),Q.asn1.DERGeneralizedTime=function(t){Q.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Z.lang.extend(Q.asn1.DERGeneralizedTime,Q.asn1.DERAbstractTime),Q.asn1.DERSequence=function(t){Q.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Z.lang.extend(Q.asn1.DERSequence,Q.asn1.DERAbstractStructured),Q.asn1.DERSet=function(t){Q.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Z.lang.extend(Q.asn1.DERSet,Q.asn1.DERAbstractStructured),Q.asn1.DERTaggedObject=function(t){Q.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Z.lang.extend(Q.asn1.DERTaggedObject,Q.asn1.ASN1Object);var X,Y=(X=function(t,e){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),J=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Y(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?s(t):a.unarmor(t),i=m.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=C(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=C(o,16);var c=i.sub[4].getHexStringValue();this.p=C(c,16);var l=i.sub[5].getHexStringValue();this.q=C(l,16);var u=i.sub[6].getHexStringValue();this.dmp1=C(u,16);var h=i.sub[7].getHexStringValue();this.dmq1=C(h,16);var d=i.sub[8].getHexStringValue();this.coeff=C(d,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var f=i.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=C(e,16),n=f.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=C(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Q.asn1.DERInteger({int:0}),new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e}),new Q.asn1.DERInteger({bigint:this.d}),new Q.asn1.DERInteger({bigint:this.p}),new Q.asn1.DERInteger({bigint:this.q}),new Q.asn1.DERInteger({bigint:this.dmp1}),new Q.asn1.DERInteger({bigint:this.dmq1}),new Q.asn1.DERInteger({bigint:this.coeff})]};return new Q.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Object(o.b)(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Q.asn1.DERSequence({array:[new Q.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Q.asn1.DERNull]}),e=new Q.asn1.DERSequence({array:[new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e})]}),n=new Q.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Q.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Object(o.b)(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(W)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:e.prefixCls+"-app-setting-layout"},[r("a-layout-header",{class:e.headerClasses},[r("div",{class:e.prefixCls+"-header-"+e.theme+"-inner "+e.prefixCls+"-header-inner"},[r("div",{class:e.prefixCls+"-app-setting-header-title"},[e._v("个人设置")]),e._v(" "),r("div",{ref:"rightDom",class:e.prefixCls+"-header-right"},[r("div",{class:e.prefixCls+"-header-right-nav"}),e._v(" "),r("div",{class:e.prefixCls+"-header-right-extra"},[r("HeaderInfoGroup",{attrs:{theme:e.theme}}),e._v(" "),r("AppUser",{attrs:{theme:e.theme,userName:e.userNameModify,userAvatar:e.userAvatar}})],1)])])]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-box"},[r("div",{class:e.prefixCls+"-app-setting-tips"},[r("div",{class:e.prefixCls+"-app-setting-tips-left",on:{click:e.goBack}},[r("a-icon",{attrs:{type:"left"}}),e._v("\n 返回\n ")],1),e._v(" "),e.tipsState?r("div",{class:e.prefixCls+"-app-setting-tips-right"},[r("span",[r("a-icon",{staticClass:"tips-icon",attrs:{type:"info-circle",theme:"filled"}}),e._v("\n 你好!您已进入个人设置模块,修改密码将改变全局系统密码\n ")],1),e._v(" "),r("span",[r("a-icon",{staticClass:"close-icon",attrs:{type:"close"},on:{click:function(){return e.tipsState=!1}}})],1)]):e._e()]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting"},[r("div",{class:e.prefixCls+"-app-setting-left"},e._l(e.settingMes,(function(t,n){return r("div",{key:n,class:e.prefixCls+"-app-setting-left-item "+(n===e.settingMes.length-1?"":"mb40")+" "+(e.defaultActive===n?"active":""),on:{click:function(t){return e.hanldeSelect(n)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right"},[0===e.defaultActive?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("个人资料")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("名称")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"nameForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"name"}},[r("a-input",{attrs:{disabled:e.editNameState},model:{value:e.userNameMes.name,callback:function(t){e.$set(e.userNameMes,"name",t)},expression:"userNameMes.name"}})],1)],1),e._v(" "),e.editNameState?r("a-button",{on:{click:function(){e.editNameState=!1}}},[e._v("\n 编辑\n ")]):r("a-button",{attrs:{type:"primary"},on:{click:e.handleEditName}},[e._v(" 保存 ")])],1)]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定手机号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v(e._s(e.phoneMes))]),e._v(" "),1===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",[r("a-form-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1)],1),e._v(" "),r("a-button",{on:{click:function(t){e.delPhone(2)}}},[e._v("更换手机号")])],1):e._e(),e._v(" "),2===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"verCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"verCode"}},[r("a-input",{model:{value:e.userNameMes.verCode,callback:function(t){e.$set(e.userNameMes,"verCode",t)},expression:"userNameMes.verCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(3)}}},[e._v(" 下一步 ")])],1)]):e._e(),e._v(" "),3===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newPhoneForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"newPhone"}},[r("a-input",{model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(4)}}},[e._v(" 下一步 ")])],1):e._e(),e._v(" "),4===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newVerCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newVerCode"}},[r("a-input",{model:{value:e.userNameMes.newVerCode,callback:function(t){e.$set(e.userNameMes,"newVerCode",t)},expression:"userNameMes.newVerCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendNewPhoneVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:e.verPhone}},[e._v(" 绑定 ")]),e._v(" "),r("a-button",{on:{click:e.backStep}},[e._v("返回")])],1)]):e._e()]),e._v(" "),e.userMes.wechatSwitch||e.userMes.wechatgzhSwitch?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定第三方账号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("\n 绑定第三方帐号,可以直接扫码登录系统。如果当前帐号在对应站点处于登录状态,需退出登录后,才能重新绑定。\n ")]),e._v(" "),e.userMes.wechatSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除微信绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatSwitch&&!e.wxUnionid||e.userMes.wechatgzhSwitch&&!e.wxUnionid?r("a-space",{attrs:{direction:"vertical"}},[e.userMes.wechatSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addWechat}},[e._v("微信绑定")])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addPublicWechat}},[e._v("绑定")])],1):e._e(),e._v(" "),r("a-modal",{attrs:{visible:e.visible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handleWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"},attrs:{id:"qrcode-container-app-setting"}})]),e._v(" "),r("a-modal",{attrs:{visible:e.publicVisible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handlePublicWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"}},[r("img",{attrs:{src:e.wxInfo.qrcodeUrl}})])])],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),1===e.defaultActive?r("div",{class:e.prefixCls+"-app-setting-right-password"},[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("修改密码")]),e._v(" "),r("a-form-model",{ref:"forgetForm",attrs:{model:e.passwordForm,rules:e.passWordRule}},[r("a-form-model-item",{attrs:{prop:"passWord"}},[r("a-input-password",{attrs:{placeholder:"当前密码",type:"password"},model:{value:e.passwordForm.passWord,callback:function(t){e.$set(e.passwordForm,"passWord",t)},expression:"passwordForm.passWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newPassWord"}},[r("a-input-password",{attrs:{placeholder:"新密码",type:"password"},model:{value:e.passwordForm.newPassWord,callback:function(t){e.$set(e.passwordForm,"newPassWord",t)},expression:"passwordForm.newPassWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"repeatPassWord"}},[r("a-input-password",{attrs:{placeholder:"确认新密码",type:"password"},model:{value:e.passwordForm.repeatPassWord,callback:function(t){e.$set(e.passwordForm,"repeatPassWord",t)},expression:"passwordForm.repeatPassWord"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:e.verPas}},[e._v(" 保存 ")])],1):e._e()])])]),e._v(" "),r("a-modal",{attrs:{visible:e.wechatModel,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.delWeChat,cancel:function(){e.wechatModel=!1}}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示")],1),e._v(" "),r("div",{staticClass:"modal-item"},[e._v("您将解绑微信账号,解除后无法使用此微信号登录")])]),e._v(" "),r("a-modal",{attrs:{visible:e.reloadState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:function(t){return e.delPhone(1)},cancel:function(){e.reloadState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改绑定手机号,确定需要重新登录,是否继续?")])],1),e._v(" "),r("a-modal",{attrs:{visible:e.reloadPasState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.savePass,cancel:function(){e.reloadPasState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改密码,确定需要重新登录,是否继续?")])],1)],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t._v(" "),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},i=[]},function(t,e,n){"use strict";n.r(e);var r=n(120),i=n(80);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThreeLayer=e.BaseObject=e.three=e.maptalks=e.Loading=e.amapLayer=e.getCache=e.setCache=e.IepNav=e.AppNav=e.Sidebar=e.HeaderInfoGroup=e.AppExternal=e.AppLogo=e.iamGoToPage=e.microApp=e.AppUser=e.RkVersionList=e.BlockView=e.appTrack=e.frameInterface=e.Request=e.GMap=e.AppLayout=e.install=e.toType=void 0;var r=J(n(69)),i=J(n(13)),o=J(n(23)),s=J(n(39)),a=J(n(40)),c=J(n(4)),l=J(n(134)),u=J(n(50)),h=J(n(135)),d=n(136),f=J(n(203)),p=n(204),m=n(342),g=J(m),v=n(344),y=n(17),_=J(y),b=n(378),x=n(43),w=J(n(116)),S=J(n(379)),M=J(n(384)),A=J(n(385)),C=J(n(386)),E=J(n(387)),T=J(n(78)),I=J(n(182)),P=J(n(179));n(388);var L=n(115),R=J(L),O=n(407),B=J(O),k=J(n(184)),D=J(n(408)),F=J(n(409)),N=J(n(410)),j=J(n(22)),U=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(12)),z=J(n(55)),G=J(n(183)),H=J(n(411)),W=J(n(414)),V=n(415),Z=n(65),Q=n(8),X=n(5),Y=J(n(164));function J(t){return t&&t.__esModule?t:{default:t}}var q=e.toType=function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},K={appId:"rk-web-core",loadView:void 0,store:{},filters:[],vueConfig:{},authToken:void 0,svgFile:"https://at.alicdn.com/t/font_614860_f0motpq03e.js",isNeedMapTalks:!1,mapOptions:{},routerOptions:{},oauthType:"iam",microOptions:{},extension:!1,axiosAuthKey:void 0,depositRouter:!0,routesWhiteListFirstIsRedirect:!1,requestLoading:!1,iamJumpIsFullPath:!1,routes:[],routesWhiteList:[],requestError:function(){},routerTrusteeship:!0,dynamicStructRouter:function(t,e,n,r,i){},requestResponseDataFunc:null,requestRequestDataFunc:null},$=function(){function t(e,n){(0,s.default)(this,t),e&&n&&(this.vueInstance=e,this.basicRouter=f.default,this.initOptions(n))}return(0,a.default)(t,[{key:"initOptions",value:function(t){var e=(0,o.default)(K);this.basicOptions=(0,h.default)((0,x.mergeProps)(K,t),e),window.__RK_WEB_CORE_APPID__=this.basicOptions.appId,window.__RK_WEB_CORE_AXIOS_AUTH_KEY=this.basicOptions.axiosAuthKey,this.storeInstance=this.basicOptions.store,this.useInstance(),this.filterInstance(),this.vueConfigPick()}},{key:"getRequestInstance",value:function(){return _.default}},{key:"useInstance",value:function(){var t=this;if(this.vueInstance.use(this.basicRouter),this.vueInstance.use(D.default),this.storeInstance.registerModule("user",g.default),this.routerInstance=(0,p.routerInit)(this.basicRouter,this.basicOptions.routerOptions),this.vueInstance.prototype.$isExtension=this.basicOptions.extension,this.vueInstance.prototype.$getDb=G.default.getLocalRecord,window.$requestError=this.basicOptions.requestError,window.$requestLoading=this.basicOptions.requestLoading,window.$requestResponseDataFunc=this.basicOptions.requestResponseDataFunc,window.$requestRequestDataFunc=this.basicOptions.requestRequestDataFunc,this.vueInstance.prototype.$saveDb=G.default.saveIndexDb,this.vueInstance.prototype.$logout=y.logOut,this.vueInstance.prototype.$authorize=y.authorize,this.vueInstance.prototype.$iamGoToPage=x.iamGoToPage,this.vueInstance.prototype.$treeRouter=V.treeRouter,this.vueInstance.prototype.$dynamicChangeRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"replace",n=j.default.parse(window.location.search.replace("?",""));if("object"===q(t)){var r=j.default.stringify((0,i.default)(n,t)),o=window.location,s=o.origin,a=o.pathname,c=s+a;"replace"===e?window.history.replaceState("",document.title,c+"?"+r):window.history.pushState("",document.title,c+"?"+r)}},this.vueInstance.prototype.$clearDynamicRouteParams=function(){var t=window.location,e=t.origin+t.pathname;window.history.replaceState("",document.title,e)},this.vueInstance.prototype.$getDynamicRouteParams=function(){return j.default.parse(window.location.search.replace("?",""))},this.tempPkRouter=(0,p.pkRouter)(this.basicRouter,this.basicOptions.routerOptions),!(0,c.default)(this.basicOptions.routesWhiteList)){var e=this.basicOptions.routesWhiteList.map((function(e){return{path:e,component:t.basicOptions.loadView?t.basicOptions.loadView(e):(0,x.loadView)(e,t.basicOptions.routerPathPrefix,t.basicOptions.routerContext)}}));this.tempPkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(e)))}this.vueInstance.prototype.$pkRouter=this.tempPkRouter,this.vueInstance.prototype.$basicOptions=this.basicOptions;var n=[];if(window.__MICRO_APP_ENVIRONMENT__?d.version.includes("0.13")&&(n=X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST)):n=d.version.includes("0.13")&&X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST),!(0,c.default)(n))if(this.storeInstance.commit("user/SET_MENU_LIST",n),this.basicOptions.routerTrusteeship)(0,Z.setAsyncRoutes)(this.routerInstance,this.storeInstance,n,p.pkRouter,this.basicOptions);else if((0,u.default)(this.basicOptions.dynamicStructRouter)){var o=this.basicOptions.dynamicStructRouter((0,Z.businessSystemToTree)(n));if(!o&&!(0,l.default)(o))return console.error("Routing menu construct build failed");p.pkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(o),[x.redirectRouter,x.noAllowRouter])),this.storeInstance.commit("user/SET_ROUTERS",o),this.storeInstance.commit("user/SET_APP_ROUTERS",o)}else console.error("basicOptions.dynamicStructRouter must is a function");(0,v.registerPermission)(this,this.tempPkRouter),this.basicOptions.isNeedMapTalks&&this.loadAMap()}},{key:"loadAMap",value:function(){var t=this;this.routerInstance.onReady((function(){(0,R.default)((0,x.mergeProps)({svgFile:t.basicOptions.svgFile,zoom:9.6},t.basicOptions.mapOptions))}))}},{key:"filterInstance",value:function(){var t=this;(0,o.default)(this.basicOptions.filters).forEach((function(e){t.vueInstance.filter(e,t.basicOptions.filters[e])}))}},{key:"vueConfigPick",value:function(){var t=this;(0,o.default)(this.basicOptions.vueConfig).forEach((function(e){t.vueInstance.config[e]=t.basicOptions.vueConfig[e]}))}},{key:"mount",value:function(){return(0,N.default)("RK-WEB-CORE",d.version),{version:d.version,router:this.routerInstance,store:this.storeInstance,resetRouter:(0,p.pkRouter)(this.basicRouter),request:this.getRequestInstance(),axios:w.default,vueInstance:this.vueInstance,bootstrap:(0,b.noLogin)(this.routerInstance,this.basicOptions.authToken),action:D.default,utils:(0,F.default)(this.storeInstance,this.routerInstance,this.vueInstance)}}},{key:"loadMicro",value:function(){return{micro:B.default,microOne:O.microOne,microTwo:O.microTwo,microThree:O.microThree}}}]),t}(),tt=function(t){t.use(S.default),t.use(M.default),t.use(H.default),t.use(A.default),t.use(C.default),t.use(E.default),t.use(I.default),t.use(P.default)};"undefined"!=typeof window&&window.Vue&&tt(window.Vue),S.default.install=function(t){t.component(S.default.name,S.default)},M.default.install=function(t){t.component("AppUser",M.default)},H.default.install=function(t){t.component(H.default.name,H.default)},A.default.install=function(t){t.component("AppLogo",A.default)},C.default.install=function(t){t.component("AppExternal",C.default)},T.default.install=function(t){t.component("Sidebar",T.default)},E.default.install=function(t){t.component("HeaderInfoGroup",E.default)},I.default.install=function(t){t.component("AppNav",I.default)},P.default.install=function(t){t.component("IepNav",P.default)};e.install=tt,e.AppLayout=S.default,e.GMap=L.GMap,e.Request=_.default,e.frameInterface=U,e.appTrack=function(t,e){return(0,z.default)(t,e,null,!1)},e.BlockView=W.default,e.RkVersionList=H.default,e.AppUser=M.default,e.microApp=k.default,e.iamGoToPage=x.iamGoToPage,e.AppLogo=A.default,e.AppExternal=C.default,e.HeaderInfoGroup=E.default,e.Sidebar=T.default,e.AppNav=I.default,e.IepNav=P.default,e.setCache=Q.setCache,e.getCache=Q.getCache,e.amapLayer=L.amapLayer,e.Loading=Y.default,e.maptalks=L.maptalks,e.three=L.three,e.BaseObject=L.BaseObject,e.ThreeLayer=L.ThreeLayer,e.default=function(t,e){return new $(t,e)}},function(t,e,n){t.exports={default:n(187),__esModule:!0}},function(t,e,n){t.exports=!n(18)&&!n(35)((function(){return 7!=Object.defineProperty(n(90)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(27)},function(t,e,n){var r=n(36),i=n(37),o=n(191)(!1),s=n(94)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36),i=n(38),o=n(94)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(24);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(48),i=n(16)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(16)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){var r=n(9),i=n(6),o=n(35);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},function(t,e,n){t.exports={default:n(201),__esModule:!0}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();function o(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var a=Object.prototype,c=a.hasOwnProperty,l=a.toString,u=i.Symbol,h=a.propertyIsEnumerable,d=u?u.isConcatSpreadable:void 0,f=Math.max;function p(t){return g(t)||function(t){return function(t){return v(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}(t)}(t)&&c.call(t,"callee")&&(!h.call(t,"callee")||"[object Arguments]"==l.call(t))}(t)||!!(d&&t&&t[d])}function m(t){if("string"==typeof t||function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==l.call(t)}(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var g=Array.isArray;function v(t){return!!t&&"object"==typeof t}var y,_,b=(y=function(t,e){return null==t?{}:function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=t[s];n(a,s)&&(o[s]=a)}return o}(t=Object(t),e,(function(e,n){return n in t}))}(t,function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=p),o||(o=[]);++a<c;){var l=e[a];n>0&&r(l)?n>1?t(l,n-1,r,i,o):s(o,l):i||(o[o.length]=l)}return o}(e,1),m))},_=f(void 0===_?y.length-1:_,0),function(){for(var t=arguments,e=-1,n=f(t.length-_,0),r=Array(n);++e<n;)r[e]=t[_+e];e=-1;for(var i=Array(_+1);++e<_;)i[e]=t[e];return i[_]=r,o(y,this,i)});t.exports=b}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.version="0.15.3"},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(24),i=n(57),o=n(16)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(26),a=n(210),c=n(127),l=n(90),u=n(15),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},f=function(t){delete v[t]},"process"==n(59)(h)?r=function(t){h.nextTick(s(y,t,1))}:m&&m.now?r=function(t){m.now(s(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(24),i=n(20),o=n(100);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(15),i=n(6),o=n(19),s=n(18),a=n(16)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(42)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){"use strict";var r=n(42)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},function(t,e,n){"use strict";var r=n(103),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:s,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},function(t,e,n){"use strict";var r=n(19).f,i=n(92),o=n(101),s=n(26),a=n(99),c=n(62),l=n(89),u=n(137),h=n(142),d=n(18),f=n(104).fastKey,p=n(105),m=d?"_s":"size",g=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){a(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&c(r,n,t[l],t)}));return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){p(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(15),i=n(9),o=n(104),s=n(35),a=n(27),c=n(101),l=n(62),u=n(99),h=n(20),d=n(60),f=n(19).f,p=n(236)(0),m=n(18);t.exports=function(t,e,n,g,v,y){var _=r[t],b=_,x=v?"set":"add",w=b&&b.prototype,S={};return m&&"function"==typeof b&&(y||w.forEach&&!s((function(){(new b).entries().next()})))?(b=e((function(e,n){u(e,b,t,"_c"),e._c=new _,null!=n&&l(n,v,e[x],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||a(b.prototype,t,(function(n,r){if(u(this,b,t),!e&&y&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i}))})),y||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=g.getConstructor(e,t,v,x),c(b.prototype,n),o.NEED=!0),d(b,t),S[t]=b,i(i.G+i.W+i.F,S),y||g.setStrong(b,t,v),b}},function(t,e,n){var r=n(59);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(72),i=n(240);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(9);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(9),i=n(57),o=n(26),s=n(62);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),null==t?new this:(n=[],e?(r=0,a=o(c,arguments[2],2),s(t,!1,(function(t){n.push(a(t,r++))}))):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(52),i=r.slice,o=r.pluck,s=r.each,a=r.bind,c=r.create,l=r.isList,u=r.isFunction,h=r.isObject;t.exports={createStore:f};var d={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return f.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return f(this.storage,this.plugins,t)}};function f(t,e,n){n||(n=""),t&&!l(t)&&(t=[t]),e&&!l(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",f=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=c({_namespacePrefix:r,_namespaceRegexp:f,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return s(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var a=[o].concat(e);return t.apply(r,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(l(t))s(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!u(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!h(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,r){if(!u(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d,{plugins:[]});return p.raw={},s(p,(function(t,e){u(t)&&(p.raw[e]=a(p,t))})),s(t,(function(t){p._addStorage(t)})),s(e,(function(t){p._addPlugin(t)})),p}},function(t,e,n){var r=n(52).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(52),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:c,clearAll:function(){a((function(t,e){c(e)}))}};var s=i.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function c(t){t&&l(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,e,n){var r=n(52).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){t.exports={default:n(251),__esModule:!0}},function(t,e,n){var r=n(18),i=n(49),o=n(37),s=n(61).f;t.exports=function(t){return function(e){for(var n,a=o(e),c=i(a),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},function(t,e,n){"use strict";e.__esModule=!0;var r=o(n(255)),i=o(n(53));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(Array.isArray(t))return t;if((0,r.default)(Object(t)))return function(t,e){var n=[],r=!0,o=!1,s=void 0;try{for(var a,c=(0,i.default)(t);!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw s}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){var n,r,i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,c=s.call(Object),l=o.toString,u=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=l.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=u(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},function(t,e,n){t.exports={default:n(258),__esModule:!0}},function(t,e,n){var r=n(126),i=n(96).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),i=(r=u).lib,o=i.WordArray,s=i.Hasher,a=r.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=0;l<80;l++){if(l<16)c[l]=0|t[e+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+a+c[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=s._createHelper(l),r.HmacSHA1=s._createHmacHelper(l),u.SHA1)},function(t,e,n){var r;t.exports=(r=n(2),n(75),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,_=s.high,b=s.low,x=a.high,w=a.low,S=u.high,M=u.low,A=h.high,C=h.low,E=d.high,T=d.low,I=f,P=p,L=m,R=g,O=v,B=y,k=_,D=b,F=x,N=w,j=S,U=M,z=A,G=C,H=E,W=T,V=0;V<80;V++){var Z,Q,X=l[V];if(V<16)Q=X.high=0|t[e+2*V],Z=X.low=0|t[e+2*V+1];else{var Y=l[V-15],J=Y.high,q=Y.low,K=(J>>>1|q<<31)^(J>>>8|q<<24)^J>>>7,$=(q>>>1|J<<31)^(q>>>8|J<<24)^(q>>>7|J<<25),tt=l[V-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[V-7],st=ot.high,at=ot.low,ct=l[V-16],lt=ct.high,ut=ct.low;Q=(Q=(Q=K+st+((Z=$+at)>>>0<$>>>0?1:0))+rt+((Z+=it)>>>0<it>>>0?1:0))+lt+((Z+=ut)>>>0<ut>>>0?1:0),X.high=Q,X.low=Z}var ht,dt=F&j^~F&z,ft=N&U^~N&G,pt=I&L^I&O^L&O,mt=P&R^P&B^R&B,gt=(I>>>28|P<<4)^(I<<30|P>>>2)^(I<<25|P>>>7),vt=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),yt=(F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9),_t=(N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9),bt=c[V],xt=bt.high,wt=bt.low,St=H+yt+((ht=W+_t)>>>0<W>>>0?1:0),Mt=vt+mt;H=z,W=G,z=j,G=U,j=F,U=N,F=k+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+xt+((ht+=wt)>>>0<wt>>>0?1:0))+Q+((ht+=Z)>>>0<Z>>>0?1:0))+((N=D+ht|0)>>>0<D>>>0?1:0)|0,k=O,D=B,O=L,B=R,L=I,R=P,I=St+(gt+pt+(Mt>>>0<vt>>>0?1:0))+((P=ht+Mt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+P,r.high=f+I+(p>>>0<P>>>0?1:0),g=i.low=g+R,i.high=m+L+(g>>>0<R>>>0?1:0),y=o.low=y+B,o.high=v+O+(y>>>0<B>>>0?1:0),b=s.low=b+D,s.high=_+k+(b>>>0<D>>>0?1:0),w=a.low=w+N,a.high=x+F+(w>>>0<N>>>0?1:0),M=u.low=M+U,u.high=S+j+(M>>>0<U>>>0?1:0),C=h.low=C+G,h.high=A+z+(C>>>0<G>>>0?1:0),T=d.low=T+W,d.high=E+H+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),r.SHA512)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(296)),i=o(n(300));function o(t){return t&&t.__esModule?t:{default:t}}e.default={install:function(t){t.use(r.default)},directive:r.default,service:i.default}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(297),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;var r=c(n(21)),i=c(n(168)),o=c(n(298)),s=c(n(299)),a=n(77);function c(t){return t&&t.__esModule?t:{default:t}}var l=1,u=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),u=(0,s.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");u>0&&(i||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(307)),i=s(n(310)),o=s(n(311));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,o.default)(t)||"[object Object]"!=(0,i.default)(t))return!1;if(null===(0,r.default)(t))return!0;for(var e=t;null!==(0,r.default)(e);)e=(0,r.default)(e);return(0,r.default)(t)===e}},function(t,e,n){t.exports={default:n(328),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WindIcon",render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1646186453304",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1115",width:"200",height:"200"},class:"rk-web-core-normal-icon"},[t("path",{attrs:{d:"M489.728 787.456a32 32 0 0 0 58.848 0L760.16 296.128a32 32 0 0 0-41.536-42.144l-200 82.368-195.584-84.064a32 32 0 0 0-42.08 41.856z","p-id":"1116"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"skin",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[t("path",{attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=u(n(25)),o=u(n(330)),s=u(n(331)),a=u(n(332)),c=u(n(333)),l=u(n(111));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Skin",props:{visible:i.default.bool.def(!1)},data:function(){return{localVisible:!1,colorList:c.default}},computed:{skin:function(){return this.$store.state.user.skin}},watch:{visible:{handler:function(t){this.localVisible=t},deep:!0,immediate:!0}},methods:{onClose:function(){this.$emit("close")},changeSkin:function(t){this.$store.commit("user/SET_SKIN",{style:this.skin.style===t?"":t,color:this.skin.color}),this.onClose()},changeColor:function(t){document.documentElement.style.setProperty("--antd-wave-shadow-color",t),document.documentElement.style.setProperty("--antd-wave-shadow-color-o",l.default.formatColor(t,.1)),this.$store.commit("user/SET_SKIN",{color:t,style:this.skin.style}),this.onClose()}},render:function(){var t=this,e=arguments[0],n={props:{wrapClassName:r.prefixCls+"-drawer",title:"",placement:"right",closable:!1,visible:this.localVisible},on:{close:function(){return t.onClose()}}},i=this.colorList.map((function(n){return e("a-tooltip",[e("template",{slot:"title"},[n.key]),e("div",{class:[r.prefixCls+"-skin-color-item",t.skin.color===n.color?r.prefixCls+"-skin-active":null],on:{click:function(){return t.changeColor(n.color)}}},[e("span",{style:{backgroundColor:n.color}}),t.skin.color===n.color?e("div",{class:r.prefixCls+"-skin-color-mask"},[e("a-icon",{attrs:{type:"check"}})]):null])])}));return e("a-drawer",n,[e("div",{class:"theme"},[e(o.default,{attrs:{title:"主题风格设置",closable:!0},on:{close:function(){return t.onClose()}}},[e("div",{class:r.prefixCls+"-skin-style"},[e("div",{on:{click:function(){return t.changeSkin("dark")}},class:[r.prefixCls+"-skin-style-item","dark"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(s.default),"dark"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["暗色"])]),e("div",{on:{click:function(){return t.changeSkin("light")}},class:[r.prefixCls+"-skin-style-item","light"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(a.default),"light"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["亮色"])])])]),e(o.default,{attrs:{title:"系统主色设置"}},[e("div",{class:r.prefixCls+"-skin-color"},[i])])])])}}},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(14)),i=n(3),o=m(n(113)),s=m(n(4)),a=m(n(114)),c=m(n(67)),l=m(n(178)),u=m(n(68)),h=m(n(55)),d=m(n(111)),f=m(n(179)),p=m(n(182));function m(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapAndBasicHeader",inject:["slotsList","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1},navList:{type:Array,default:function(){return[]}}},data:function(){return{currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},computed:{skin:function(){return this.$store.state.user.skin.color}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=o>-1?o:0,t.$store.commit("user/SET_NAV_INDEX",t.currentIndex)}}),{immediate:!0,deep:!0})},watch:{skin:{handler:function(t){this.propsList.nav&&this.renderNavActive(t,d.default.toNum3(t))},immediate:!0}},methods:{setChildrenWidthAndResize:function(){if(this.navList&&!(0,s.default)(this.navList)){var t=this.navList.filter((function(t){return 1===t.type}));this.menuItemSizes=t,this.overflowedItems=[]}},onResize:function(t){var e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var i=this.$store.state.user.skin;i&&!(0,s.default)(i.color)?this.renderNavActive(i.color,d.default.toNum3(i.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,s.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){l.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,o){var s="dark"!==t.theme?(0,r.default)([i.prefixCls+"-header-right-nav-item",n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,r.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,o)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,h.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){n.propsList.nav&&l.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,h.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.theme,n=this.fixed,s=this.slotsList,l=this.propsList,h=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-"+e,i.prefixCls+"-header-"+l.navVersion+"-"+e,i.prefixCls+"-header-"+l.navVersion,i.prefixCls+"-header-"+l.navVersion+"-"+l.navTheme,i.prefixCls+"-header-"+l.navTheme,n?i.prefixCls+"-header-fixed":"",i.prefixCls+"-header-inner-"+this.currentIndex]);return t("a-layout-header",{class:h},[t("div",{class:[i.prefixCls+"-header-"+e+"-inner",i.prefixCls+"-header-inner"]},[s.logo?s.logo:t(o.default,{attrs:{prefix:"basic",theme:e}}),s.prefix,t("div",{class:i.prefixCls+"-header-right",ref:"rightDom"},[l.nav?"v1"===l.navVersion?t(f.default,{attrs:{theme:e}}):t(p.default,{attrs:{theme:e,mode:l.navTheme}}):null,l.right?t("div",{class:i.prefixCls+"-header-right-extra"},[s.header,t(a.default,{attrs:{theme:e}}),s.extends,t(c.default,{attrs:{theme:e}}),s.user?s.user:t(u.default,{attrs:{theme:e}})]):null]),s.suffix]),this.slotsList.headerBottom])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=u(n(30)),o=u(n(31)),s=n(8),a=n(5),c=n(12),l=u(n(14));function u(t){return t&&t.__esModule?t:{default:t}}var h,d="data:image/webp;base64,UklGRk4KAABXRUJQVlA4WAoAAAAwAAAAPwAAPwAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANkFMUEhMAwAADaAtybZp26rW51rHuLZt27Zt27Zt27Zt27bv4eY11+j9YWnvOX4gIiaA9iUcTTHTDAvNM8vk1QHwV8dnn37y9dc9jsmDflc4E6+58tSJ5kMmm2vueSatjHv20Y6Qop+MxHSbb0NAuKQ6IsImnHHO1Ra+79ofMbw/LMW8uyxMBCEzmkrCEVPsvsZH178u8z6TasP2XwPcJNo2IHyadTd56aJei+gbkVY8knAq9LXkMeKwJc54xoi+MPfDlyMVRn8akZY49vUz3Ly94v8JziC8Sn/LfNgxExzVY96O/T/VebgZJbRIe6584Cjz1qw2xSmkCuWU0ppbHNZh3orSROeRBlBWWVpru326Fc0UOok0gBIXac0Vjvtf0cyPxCuUuvC9hp3TzGorLY4ouTjxzUfM65QmPIhUKV0afNglPYq62Is0gNIXaZmFL6mz2kIrYWRoHP7M2+bADniRg3zElle7rDbj/GS74edfCDYlVfOwNOVSD+ATb4mRqbHPXeNYk8hGMc3CD7EaoVwIrfTcVBOR9XzdMwnlI6YZNhNeZOQTTjofoXwIzbUgImMx9yy5zTpRbpMMJfOByq0g+1Bm//0+PLeeiUIZhbq+njWzrz6cP5tQgw8WMDIVIL76YcIJQqULhQCi+HXUt5qpfCFEA436c1zXPJReNA19As+tpNK1aDwLDy8yVSiTsI43sM6793DLxO0qDO5YYWq3LLza+TRyffnhpuQZehglFDdsNEEog6j8dRNy3N559lC3DNxOx2rUX7HI4qkonVfffJ+Gbh0XHjUsVLIwPxWr1eH22LtHZ3AqSjQOzph491SUKlXv+JoWQ7WjV18lFSVKA16+D3kzwrr222nVZCpJ+ICXr8ASrbqNOmr7VRyVw6svX4XVaN2LH/Zfe9dwK4Grcv39WI12k/UcPslxg5Opn8KrfsoorEb7Lj/9reMWDcf6wbHinROREn0Z2ONnLXn00HCpjyIq/Hvy65gHfRthvZc8t+W6U0YEWBsRYbLOR69FVqPv3fTatV+ussfkiHBJDQI3E4y98mnDItGfjvjqlnsXW23uaScoaCqM3376/Jk3kJTo71ARHQ8/0z1kstnnnnuCISL+6P36869++qcAw4O2AVZQOCC8BAAA0BUAnQEqQABAAD5tLJJGpCIhoTAUCwCADYlsALElQX4Bxr0MfC+aBS/8jsxxs4Vvie+aT7APMh50e5AewtvJHlLXe7+LQSHh39GDPb9SewP+r/pAey30AP1PSO88Jm4eK/divBnLnHrz4CVEn6AxAZjff34I/VSZtrOPtclJYA9AbN52d961SZIkPoPsASAVkvDN9uDDdCn9QGtBQgHej972sJ4ZgA87s4gft5odSw1cDTkFuVIAAP7/OkF2JfyXlUqa8sMsM+cPy8TEO+WtIS+RueaS3TlAr6SNyT/4tfZoEnBzFJz3oxBBvWuXuNpy35PSR/7rhoh0m4xGhyrgqGk+YTGhqIx6dJnMP0/AonghGybbxS+bXsXUU0jdC7adMIFiaAX2SHV37RJkHsmMzcCozzVHVKL5IkRjAJ2jz2NZ3skOvfXA6Ik3OYAhwHkU4bFqp7C5OzpfS+TwA4Z0728VAU2m9uSn8vghqhi1+NIbM5MGl+7NelaUTqvMcT7NMXlH8CpkVExt/N+h11LZy5V9ypUla0IU2j4cQlfnQ+8VzGqtCgxQfxSaV3Z6iJEL8uot3FvIdXJVO0pz1eZT2GKMMDO4E4OHWr0rO5JaZaUIZ4hEACBSHzXfiGelUmyTY7sGf2APWkZs3cKmAoo5zqyWRvo8b73XHT89H76av1P5E8f3w9FFpn3y3ip+fLllYa8uWygj0CR8w8DXN7xUyWVR65gRyo/0Y//54yK/fs8xAW3WtpLgrBPj8Z1R3PaHxsoLC9hcGyiAWW3vi7ZwIex/bknwePmjwbtZkemX9qrWm6OoGs3rydXgLH8PBYZgy06DLr7t3DeMTYudDqk64DUviNPlSIw/QdBTtUu4gCNWGUN1AvNI20NKcVG8AROIBdfNw/EKl5ndo/bdzGLVh5Z/5x6B5aEa7li35K+gIFTUCRY28rbqscfWSIpOKXiOHk8sqM5F/xHcabsuPE8yEDhm3PPPD6r/M2ZJfn/28zq0t7kF0fAz/+/k/01qEldX/pr/3je/h4f/HbtG20fn7/5+P9V/8c0y1BE/9mhkOGb3Kgv4hFi8X/Zjf+qjNsAP/e+/721/qdBPqYg2KDenvxcU8fKcOEhmWP0fGru4dWmba6XnQqvj6yU/uyBXsR7ADCif7pTtpD5nfbO5AnXVP9JUKqqTINt/+4k8+bgfnN2XuUkrOGwcO3Hyw3+r/u6UT6HUIu09yWbBtmFZLqk9my7ZrKWvidcuXKeRxRrq1gpYUXIY7SXNnibsp0NGV3hTTbQb1CwIXH2XbfobV4BpWO6FFYE3EEBMnS2UoIuo+cFw5o7U0UiZu/f4kf5sGHiQey4pEi0aP7r+4Qr9rw1Fu/DZm1NBrCn/rN/YOv6rTvsuq5RuRWj5/WyF/dHtvNXAWBA8p+NgsDkhglrla4Am6BMMg6BqmOhl42xNVUv/5W6seYyqRaqYIc5Jmwjfe7wV948cc6+gzcYbRRo33W3EjCyuX8t9ZlDcb/nE9Pw9E1isHwVJSjdF0v+zRl3FQH+zNKcvK/r99LnWhQWXaowpq8WYUAWYJsjn5AphibAaFwrX7YzpngkGDwv85praR2z/EGqoiMHssNjRWwAA";e.default={name:"HeaderExtend",props:{theme:{type:String,default:"light"}},data:function(){return{projectList:[]}},computed:{currentCode:function(){return(0,s.getCache)("CLIENT_ID",s.sessionEngine)}},mounted:function(){this.getProject()},methods:{getProject:(h=(0,o.default)(i.default.mark((function t(){var e,n,r=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getByCuser)();case 2:e=t.sent,(n=e.data).forEach((function(t,e){r.currentCode===t.code&&n.unshift(n.splice(e,1)[0])})),this.projectList=n;case 6:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)}),goToPage:function(t){var e=a.localStore.get("IAM_OATH_TYPE");if(t.domain)if(t.domain.indexOf("http")>-1||t.domain.indexOf("https")>-1){var n={redirectUri:t.domain,clientId:t.code,scope:"all",state:"hello"};e&&"idp"===e&&(n=(0,r.default)(n,{oauthType:e})),(0,c.iamRedirect)(n).then((function(t){0===t.code&&window.location.replace(t.data,"_self")}))}else this.$router.push(t.domain)}},render:function(){var t=this,e=arguments[0],n=this.projectList.length?this.projectList.map((function(n){var r=(0,l.default)(["header-extend-content-footer-item",t.currentCode===n.code?"header-extend-content-footer-item-active":""]);return e("div",{class:r,on:{click:function(){return t.goToPage(n)}}},["dark"===t.theme?n.whiteIcon?e("img",{attrs:{src:n.whiteIcon,alt:""}}):e("a-avatar",{slot:"avatar"}):n.icon?e("img",{attrs:{src:n.icon,alt:""}}):e("a-avatar",{slot:"avatar"}),e("span",[n.name])])})):e("div",{class:"header-extend-content-footer-item"},[e("a-skeleton",{attrs:{avatar:!0,active:!0,paragraph:{rows:0}}})]);return e("div",{class:"header-extend"},[e("a-popover",{attrs:{trigger:"hover","arrow-point-at-center":!0,overlayClassName:"header-extend-popover app-dropdown-"+this.theme}},[e("div",{class:"header-extend-content",slot:"content"},[e("div",{class:"header-extend-content-header"},[e("img",{attrs:{src:d,alt:""}}),e("div",{class:"header-extend-content-header-title"},[e("span",["智慧环保"]),e("span",["creative"])])]),e("div",{class:"header-extend-content-footer"},[e("a-scrollbar",[e("div",{class:"header-extend-content-footer-inner"},[n])])])]),e("div",{class:"header-extend-inner"},[e("a-icon",{attrs:{type:"caret-down"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(355)),i=a(n(39)),o=a(n(40)),s=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t),this.c=Math.min,this.h=r.default,this.m=Math.max,this.n=Math.abs,this.j=.85,this.k=10,this.l=4,this.opt={},this.opt.currentIndex=1}return(0,o.default)(t,[{key:"calcAVGSpeed",value:function(t){var e=(this.l*this.j*t+this.k*(1-this.j)*t)/(this.k*this.l*20);return e=this.m(this.n(e),2.5)*this.h(e)}},{key:"getCurSpeed",value:function(t,e){return this.n(t)>this.n(this.j*e)?this.l*this.opt.avgSpeed:this.k*this.opt.avgSpeed}},{key:"_calCurve",value:function(t,e,n,r,i,o){i.bezierCurveTo(t+o,e,n-o,r,n,r)}},{key:"_initCanvas",value:function(t,e,n){var r=window.devicePixelRatio,i=t.getContext("2d");t.width=e*r,t.height=n*r,t.style.width=e+20+"px",t.style.height=n+"px",i.scale(r,r)}},{key:"resize",value:function(){this.opt.timer&&cancelAnimationFrame(this.opt.timer),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height)}},{key:"_toggle",value:function(t){return this.opt.tabWidthList&&this.opt&&this.opt.tabWidthList&&this.opt.tabWidthList.length&&(!this.opt.animating||t!==this.opt.nextIndex)&&(this.opt.animating=!0,this.opt.distance=this.opt.tabWidthList[t]-this.opt.tabWidthList[this.opt.currentIndex],this.opt.avgSpeed=this.calcAVGSpeed(this.opt.distance),this.opt.curDisX=0,this.opt.nextIndex=t),!1}},{key:"_createPattern",value:function(t){var e=document.createElement("canvas");e.width=140,e.height=63,e.style.width="140px",e.style.height="63px";var n=e.getContext("2d");n.scale(1,1),n.lineWidth=.4;for(var r=.8,i=1;30>i;i++)n.strokeStyle="RGBA(22, 120, 160, "+r+")",n.beginPath(),n.moveTo(0,3*i),n.lineTo(140,3*i),n.stroke(),n.closePath(),10<i&&(r-=.1);var o=t.getContext("2d").createPattern(e,"repeat-x");this.opt.pattern=o,e=null}},{key:"_drawHightlight",value:function(t){var e=this.opt.canvas.getContext("2d");e.clearRect(0,0,2*this.opt.width,2*this.opt.height),e.shadowColor="rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+",1)",e.shadowBlur=5,e.strokeStyle=this.opt.color,e.lineWidth=.8,e.fillStyle="none",this._draw(e,!1);var n=e.createLinearGradient(this.opt.tabWidthList[this.opt.currentIndex]-this.opt.tabWidth/2,0,this.opt.tabWidthList[this.opt.currentIndex+1]+this.opt.tabWidth/2,this.opt.height),r=t-.3,i=this.c(1,this.m(0,0+r)),o=this.c(1,this.m(0,0+r+.1)),s=this.c(1,0+r+.3),a=this.c(1,0+r+.3+.1),c=1-i;n.addColorStop(i,"rgba(0,0,0,0)"),n.addColorStop(o,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(s,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(a,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,0)"),e.lineWidth=1.5,e.strokeStyle=n,e.fillStyle=this.opt.pattern,this._draw(e,!0)}},{key:"draw",value:function(t){this._drawHightlight(t),this.opt.timer=requestAnimationFrame(function(){this.draw((t+.005)%1.6)}.bind(this))}},{key:"_draw",value:function(t,e){var n=this.opt.currentIndex,r=this.opt.tabHeight,i=.5,o=0,s=this.opt.tabWidthList[n]-(e?this.opt.tabWidth/2:0);if(t.beginPath(),t.moveTo(s,this.opt.height+10),t.lineTo(s,r+i),this.opt.animating){var a=this.getCurSpeed(this.opt.curDisX,this.opt.distance);o=this.c(this.n(this.opt.distance),this.n(this.opt.curDisX+a))*this.h(a)}if(t.lineTo(0+this.opt.tabWidthList[n]+o-20,r+i),this._calCurve(0+this.opt.tabWidthList[n]+o-20,r+i,0+this.opt.tabWidthList[n]+o+20,3,t,20),this.opt.animating){var c=this.opt.tabWidthList[this.opt.nextIndex+1]-this.opt.tabWidthList[this.opt.nextIndex];t.lineTo(0+this.opt.tabWidthList[n]+c+o-20,3),this._calCurve(0+this.opt.tabWidthList[n]+c+o-20,3,0+this.opt.tabWidthList[n]+c+o+20,r+i,t,20)}else t.lineTo(0+this.opt.tabWidthList[n+1]+o-20,3),this._calCurve(0+this.opt.tabWidthList[n+1]+o-20,3,0+this.opt.tabWidthList[n+1]+o+20,r+i,t,20);e&&(t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,r+i),t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,this.opt.height)),t.closePath(),t.stroke(),e&&t.fill(),this.opt.animating&&e&&(this.opt.curDisX=o,this.n(o)>=this.n(this.opt.distance)&&(this.opt.animating=!1,this.opt.currentIndex=this.opt.nextIndex))}},{key:"initTabs",value:function(){var t=this.opt.navItemList[this.opt.currentIndex];if(!(0,s.default)(t)){this.opt.tabHeight=t.offsetHeight,this.opt.tabWidth=t.offsetWidth,this.opt.height=.9*t.offsetHeight,this.opt.tabWidthList=[],this.opt.width=0;for(var e=[],n=0;n<this.opt.navItemList.length;n++){var r=this.opt.navItemList[n];e.push(0===n?r.offsetLeft+10:r.offsetLeft),this.opt.width+=r.offsetWidth}this.opt.tabWidthList=[].concat(e,[this.opt.navItemList[this.opt.navItemList.length-1].offsetLeft+this.opt.navItemList[this.opt.navItemList.length-1].offsetWidth-16]),this.opt.canvas.style.left="-10px"}}},{key:"drawNav",value:function(t){this.opt.canvas=t.canvas,this.opt.navItem=t.navItem,this.opt.navCount=t.navCount,this.opt.rgb=t.rgb,this.opt.color=t.color,this.opt.navWidthList=t.navWidthList,this.opt.navItemList=t.navItemList,(0,s.default)(this.opt.canvas)||(this.initTabs(),this._toggle(t.index),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0),window.addEventListener("resize",function(){this.resize()}.bind(this),!1))}}]),t}();e.default=new c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(4)),i=n(3),o=n(43),s=h(n(111)),a=h(n(178)),c=h(n(14)),l=h(n(55)),u=h(n(180));h(n(181));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"IepNav",props:{theme:{type:String,default:"dark"}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,r.default)(t.navList)&&n.length){var o=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=o[0].path;var s=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=s>-1?s:0,t.$nextTick((function(){t.onResize()}))}}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,r.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var i=Math.round(t.width/e);i>0?(this.menuItemSizes=n.slice(0,i-1),this.overflowedItems=n.slice(i-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var o=this.$store.state.user.skin;o&&!(0,r.default)(o.color)?this.renderNavActive(o.color,s.default.toNum3(o.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,r.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){a.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,r.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,r){var s="dark"!==t.theme?(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,r)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,l.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){a.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,l.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.$props,n=e.theme;e.version;return t("div",{class:[i.prefixCls+"-header-right-nav","dark"===n?i.prefixCls+"-header-dark":""],ref:"navDom"},[t("canvas",{attrs:{id:"navCanvas"},style:"position: absolute; z-index: -1"}),this.renderNav(),(0,r.default)(this.overflowedItems)?null:t(u.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(n(14)),o=a(n(359)),s=a(n(360));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Nav",props:{columns:{type:Array,default:function(){return[]}}},data:function(){return{visible:!1}},methods:{handleChange:function(t){this.visible=t},onNavClick:function(){this.visible=!1}},render:function(){var t=this,e=arguments[0],n=this.columns,a=this.visible,c=this.handleChange,l=n&&n.length?n.filter((function(t){return 1===t.type})).map((function(n,r){return e(o.default,{attrs:{index:r,title:n.meta.name,path:n.path,"data-source":n.children},on:{navClick:function(){return t.onNavClick()}}})})):null,u=(0,i.default)([r.prefixCls+"-dropdown-menu",a?r.prefixCls+"-dropdown-menu-actove":""]);return e("a-popover",{attrs:{trigger:["hover"],overlayClassName:r.prefixCls+"-dropdown"},on:{visibleChange:c}},[e("div",{class:u},[e(s.default)]),e("div",{class:r.prefixCls+"-dropdown-content",slot:"content"},[e("a-scrollbar",[e("div",{class:r.prefixCls+"-dropdown-content-inner"},[l])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(110),o=(r=i)&&r.__esModule?r:{default:r};var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(25)),i=n(3),o=u(n(361)),s=u(n(4)),a=u(n(46)),c=u(n(55)),l=u(n(180));u(n(181));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppNav",props:{mode:r.default.oneOf(["iep","park"]).def("iep"),theme:r.default.oneOf(["dark","light"]).def("dark")},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[],selectedKeys:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));if(t.currentIndex=o>-1?o:0,r.length>=2){var c=(0,a.default)(r,{layout:"BlankLayout"});(0,s.default)(c)?t.selectedKeys=[r[r.length-1].path]:t.selectedKeys=[c.path]}else t.selectedKeys=[r[0].path]}t.$nextTick((function(){t.onResize()}))}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[]}},renderNav:function(){var t=this,e=this.$createElement,n=this.$props,r=n.mode,a=n.theme;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,c){var l=(0,s.default)(n.children)?null:n.children.map((function(n){return 1===n.type?e("a-menu-item",{key:n.path,on:{click:function(){return t.handleTap(n,c)}}},[e("span",[n.meta.title])]):null})),u=n.path===t.currentPath?e("div",{class:[i.prefixCls+"-nav-item",i.prefixCls+"-nav-item-active"]},"iep"===r?[e("span",[" ",n.meta.title])]:[e(o.default),e("span",[" ",n.meta.title])]):e("div",{class:[i.prefixCls+"-nav-item"]},[e("span",[" ",n.meta.title])]),h="SidebarWrapper"===n.layout?e("a-dropdown",{attrs:{overlayClassName:i.prefixCls+"-nav-item-dropdown"}},[u,e("a-menu",{slot:"overlay",class:[i.prefixCls+"-nav-menu",i.prefixCls+"-nav-menu-"+a],attrs:{selectedKeys:t.selectedKeys}},[l])]):u;return e("div",{ref:"navItem",class:[i.prefixCls+"-nav-"+t.theme,i.prefixCls+"-nav-"+t.mode],on:{click:function(){return t.handleTap(n,c)}}},[h])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,c.default)(this,{},null,!1),window.open(r,"_blank")}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){1!==t.meta.functionType&&(0,c.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:[i.prefixCls+"-nav",i.prefixCls+"-header-right-nav"],ref:"navDom"},[this.renderNav(),(0,s.default)(this.overflowedItems)?null:t(l.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(41)),i=a(n(39)),o=a(n(40)),s=n(122);function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"saveIndexDb",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r,i){(new t).initIndexedDb().then((function(t){var o=t.transaction(n,"readwrite").objectStore(n);"array"===(0,s.toType)(e)?e.map((function(t){o.put(t)})):o.put(e),t.onsuccess=function(e){r(t)},t.onerror=function(t){i(t)}}))}))}},{key:"initIndexedDb",value:function(){return new r.default((function(t,e){var n=window.indexedDB.open("rk-web-core",1);n.onupgradeneeded=function(e){var n=e.target.result;if(!n.objectStoreNames.contains("app_db")){var r=n.createObjectStore("app_db",{keyPath:"tag"});r.createIndex("tag","tag",{unique:!0}),r.createIndex("value","value",{unique:!1}),r.createIndex("remarks","remarks",{unique:!1})}if(n.objectStoreNames.contains("rk_db"))t(n);else{var i=n.createObjectStore("rk_db",{keyPath:"tag"});i.createIndex("tag","tag",{unique:!0}),i.createIndex("val","val",{unique:!1}),i.createIndex("desc","desc",{unique:!1}),i.createIndex("created","created",{unique:!1}),i.createIndex("isTop","isTop",{unique:!1}),t(n)}},n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onerror=function(t){console.log("Can not open indexedDB",t)}}))}},{key:"getLocalRecord",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r){(new t).initIndexedDb().then((function(t){var i=t.transaction(n,"readwrite").objectStore(n).get(e);i.onsuccess=function(t){r(t.target.result)},i.onerror=function(t){r()}}))}))}}]),t}();e.default=new c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"EventCenterForMicroApp",(function(){return he})),n.d(e,"MicroApp",(function(){return tr})),n.d(e,"getActiveApps",(function(){return Qn})),n.d(e,"getAllApps",(function(){return Xn})),n.d(e,"getAppStatus",(function(){return $n})),n.d(e,"preFetch",(function(){return Vn})),n.d(e,"pureCreateElement",(function(){return J})),n.d(e,"reload",(function(){return qn})),n.d(e,"removeDomScope",(function(){return X})),n.d(e,"renderApp",(function(){return Kn})),n.d(e,"unmountAllApps",(function(){return Jn})),n.d(e,"unmountApp",(function(){return Yn})),n.d(e,"version",(function(){return r}));const r="1.0.0-rc.4",i="undefined"!=typeof window,o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Function("return this")(),s=()=>!1,a=Array.isArray,c=Object.assign,l=Object.defineProperty,u=Object.defineProperties,h=Object.prototype.toString,d=Object.prototype.hasOwnProperty,f=t=>h.call(t);function p(t){return void 0===t}function m(t){return null===t}function g(t){return"string"==typeof t}function v(t){return"boolean"==typeof t}function y(t){return"number"==typeof t}function _(t){return"function"==typeof t}function b(t){return"[object Object]"===f(t)}function x(t){return!m(t)&&"object"==typeof t}function w(t){return"[object Promise]"===f(t)}function S(t){var e;if(_(t)){const n=t.toString();return(null===(e=t.prototype)||void 0===e?void 0:e.constructor)===t&&Object.getOwnPropertyNames(t.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n)}return!1}function M(t){var e;return t instanceof URL||!!(null===(e=t)||void 0===e?void 0:e.href)}function A(t){var e;return t instanceof Element||g(null===(e=t)||void 0===e?void 0:e.tagName)}function C(t){var e;return t instanceof Node||y(null===(e=t)||void 0===e?void 0:e.nodeType)}function E(t){return"[object HTMLLinkElement]"===f(t)}function T(t){return"[object HTMLStyleElement]"===f(t)}function I(t){return"[object HTMLScriptElement]"===f(t)}function P(t){return A(t)&&"MICRO-APP-BODY"===t.tagName.toUpperCase()}function L(t,e,n){if(null==t)throw new TypeError("includes target is null or undefined");const r=Object(t),i=parseInt(r.length,10)||0;if(0===i)return!1;n=parseInt(n,10)||0;let o=Math.max(n>=0?n:i+n,0);for(;o<i;){if(e===r[o]||e!=e&&r[o]!=r[o])return!0;o++}return!1}function R(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.error(`[micro-app]${r} ${t}`,...n):console.error("[micro-app]"+r,t,...n)}function O(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.warn(`[micro-app]${r} ${t}`,...n):console.warn("[micro-app]"+r,t,...n)}function B(t,...e){Promise.resolve().then(t.bind(null,...e))}const k=function(){class t extends URL{}return(e,n)=>n?new t(""+e,n):new t(""+e)}();function D(t){return t.startsWith("//")?`${o.location.protocol}${t}`:t}function F(t,e=null){if(!g(t)||!t)return"";try{const{origin:e,pathname:n,search:r}=k(D(t),(window.rawWindow||window).location.href);if(/\.(\w+)$/.test(n))return`${e}${n}${r}`;const i=`${e}${n}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(i)?`${i}${r}`:""}catch(t){return R(t,e),""}}function N(t){return g(t)&&t?t.replace(/(^\d+)|([^\w\d-_])/gi,""):""}function j(t){const{origin:e,pathname:n}=k(t);if(/\.(\w+)$/.test(n)){const t=`${e}${n}`.split("/");return t.pop(),t.join("/")+"/"}return`${e}${n}/`.replace(/\/\/$/,"/")}function U(t,e){return!t||/^((((ht|f)tps?)|file):)?\/\//.test(t)||/^(data|blob):/.test(t)?t:k(t,j(D(e))).toString()}function z(t,e,n,r){let i=0;function o(){++i===t.length&&r&&r()}t.forEach((t,r)=>{w(t)?t.then(t=>{e({data:t,index:r}),o()}).catch(t=>{n({error:t,index:r}),o()}):(e({data:t,index:r}),o())})}const G=o.requestIdleCallback||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))})}),1)};function H(t){return new Promise(e=>{G(()=>{t(e)})})}let W=null;function V(t){W=t}function Z(){return W}let Q=!1;function X(t){V(null),t&&!Q&&(Q=!0,B(()=>{Q=!1}))}function Y(t){W===t||Q||(V(t),B(()=>{V(null)}))}function J(t,e){const n=(window.rawDocument||document).createElement(t,e);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n.__PURE_ELEMENT__=!0,n}function q(t){return!t||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(t)}function K(t){return/^body$/i.test(t)||/^head$/i.test(t)||/^html$/i.test(t)||/^title$/i.test(t)||/^:root$/i.test(t)}function $(t){return function(t){return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot}(t)?t.host:t}function tt(t){return t?t.replace(/^\s+|\s+$/g,""):""}function et(){return navigator.userAgent.indexOf("Firefox")>-1}function nt(t){const e={},n=t.split("&");for(const t of n){const n=t.indexOf("="),r=n<0?t:t.slice(0,n),i=n<0?null:t.slice(n+1);if(r in e){let t=e[r];a(t)||(t=e[r]=[t]),t.push(i)}else e[r]=i}return e}function rt(t){let e="";for(const n in t){const r=t[n];if(m(r))e+=(e.length?"&":"")+n;else{(a(r)?r:[r]).forEach(t=>{p(t)||(e+=(e.length?"&":"")+n,m(t)||(e+="="+t))})}}return e}function it(){const t=new Set;return{add:function(e){return t.add(e),()=>!!t.has(e)&&t.delete(e)},list:()=>t}}function ot(t){const e=t.attributes,n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,e[t].value);return n}function st(t,e){t?t.push(()=>H(t=>{e(),t()})):e()}function at(t){return(null==t?void 0:t.reduce((t,e)=>t.then(e),Promise.resolve()))||null}function ct(t){return t.startsWith("inline-")}function lt(t,e,n,...r){try{_(t)&&t(...r)}catch(t){R(`An error occurred in app ${e} window.${n} \n`,null,t)}}function ut(t,e,n,r){var i;if(!t)return R("element does not exist in lifecycle "+n,e);t=$(t),X();const o=c({name:e,container:t},r&&{error:r}),s=new CustomEvent(n,{detail:o});!function(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},target:{get:()=>e}})}(s,t),_(null===(i=er.options.lifeCycles)||void 0===i?void 0:i[n])&&er.options.lifeCycles[n](s),t.dispatchEvent(s)}function ht(t,e,n={}){var r;const i=new CustomEvent(e,{detail:n});null===(r=t.sandBox)||void 0===r||r.microAppWindow.dispatchEvent(i)}function dt(t,e=null,n={}){return X(),_(er.options.fetch)?er.options.fetch(t,n,e):window.fetch(t,n).then(t=>t.text())}class ft{static getInstance(){return this.instance||(this.instance=new ft),this.instance}run(t,e){const n=t.name,r=t.ssrUrl||t.url;(r.includes(".js")?Promise.resolve(`<micro-app-head><script src='${r}'><\/script></micro-app-head><micro-app-body></micro-app-body>`):dt(r,n,{cache:"no-cache"})).then(i=>{if(!i){const e="html is empty, please check in detail";return t.onerror(new Error(e)),R(e,n)}i=this.formatHTML(r,i,n),e(i,t)}).catch(e=>{R(`Failed to fetch data from ${t.url}, micro-app stop rendering`,n,e),t.onLoadError(e)})}formatHTML(t,e,n){return this.processHtml(t,e,n,er.options.plugins).replace(/<head[^>]*>[\s\S]*?<\/head>/i,t=>t.replace(/<head/i,"<micro-app-head").replace(/<\/head>/i,"</micro-app-head>")).replace(/<body[^>]*>[\s\S]*?<\/body>/i,t=>t.replace(/<body/i,"<micro-app-body").replace(/<\/body>/i,"</micro-app-body>"))}processHtml(t,e,n,r){var i;if(!r)return e;const o=[];return r.global&&o.push(...r.global),(null===(i=r.modules)||void 0===i?void 0:i[n])&&o.push(...r.modules[n]),o.length>0?o.reduce((e,n)=>b(n)&&_(n.processHtml)?n.processHtml(e,t):e,e):e}}const pt=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,mt=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function gt(t,e){t=e?`${e} ${t}`:t;const n=new Error(t);throw n.reason=t,e&&(n.filename=e),n}class vt{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForRuleWithChildRule(/^@media *([^{]+)/,"@media"),this.supportsRule=this.createMatcherForRuleWithChildRule(/^@supports *([^{]+)/,"@supports"),this.documentRule=this.createMatcherForRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"@document"),this.hostRule=this.createMatcherForRuleWithChildRule(/^@host\s*/,"@host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace"),this.containerRule=this.createMatcherForRuleWithChildRule(/^@container *([^{]+)/,"@container")}exec(t,e,n,r){return this.cssText=t,this.prefix=e,this.baseURI=n,this.linkPath=r||"",this.matchRules(),et()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&"}"!==this.cssText.charAt(0)&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):gt("selector missing",this.linkPath)}formatSelector(t){const e=this.commonMatch(/^[^{]+/,t);return!!e&&e[0].replace(/(^|,[\n\s]*)([^,]+)/g,(t,e,n)=>(n=tt(n),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(n))||pt.test(n)||(n=mt.test(n)?n.replace(mt,this.prefix+" micro-app-body"):this.prefix+" "+n),e+n))}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),!!this.matchCloseBrace()||gt("Declaration missing '}'",this.linkPath)):gt("Declaration missing '{'",this.linkPath)}matchAllDeclarations(t=1){let e=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^{}/])*/,!0)[0];if(e&&(this.scopecssDisableNextLine||this.scopecssDisable&&!this.scopecssDisableSelectors.length||(e=e.replace(/url\(["']?([^)"']+)["']?\)/gm,(t,e)=>/^((data|blob):|#)/.test(e)||/^(https?:)?\/\//.test(e)?t:(/^((\.\.?\/)|[^/])/.test(e)&&this.linkPath&&(this.baseURI=function(t){const e=t.split("/");return e.pop(),D(e.join("/")+"/")}(this.linkPath)),`url("${U(e,this.baseURI)}")`))),this.recordResult(e)),this.scopecssDisableNextLine=!1,this.cssText){if("}"===this.cssText.charAt(0)){if(!t)return;return t>1&&this.commonMatch(/}+/),this.matchAllDeclarations(t-1)}return"/"===this.cssText.charAt(0)&&("*"===this.cssText.charAt(1)?this.matchComments():this.commonMatch(/\/+/)),"{"===this.cssText.charAt(0)&&(this.commonMatch(/{+\s*/),t++),this.matchAllDeclarations(t)}}matchAtRule(){return"@"===this.cssText[0]&&(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.containerRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^[^{]+/))return gt("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return gt("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const e=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),this.commonMatch(/^,\s*/);return!!e.length&&(this.styleDeclarations(),this.matchLeadingSpaces(),!0)}customMediaRule(){return!!this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)&&(this.matchLeadingSpaces(),!0)}pageRule(){return!!this.commonMatch(/^@page */)&&(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page"))}fontFaceRule(){return!!this.commonMatch(/^@font-face\s*/)&&this.commonHandlerForAtRuleWithSelfRule("font-face")}createMatcherForRuleWithChildRule(t,e){return()=>!!this.commonMatch(t)&&(this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(e+" missing '}'",this.linkPath)):gt(e+" missing '{'",this.linkPath))}createMatcherForNoneBraceAtRule(t){const e=new RegExp("^@"+t+"\\s*([^;]+);");return()=>!!this.commonMatch(e)&&(this.matchLeadingSpaces(),!0)}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(`@${t} missing '}'`,this.linkPath)):gt(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if("/"!==this.cssText.charAt(0)||"*"!==this.cssText.charAt(1))return!1;this.scopecssDisableNextLine=!1;let t=2;for(;""!==this.cssText.charAt(t)&&("*"!==this.cssText.charAt(t)||"/"!==this.cssText.charAt(t+1));)++t;if(t+=2,""===this.cssText.charAt(t-1))return gt("End of comment missing",this.linkPath);let e=this.cssText.slice(2,t-2);if(this.recordResult(`/*${e}*/`),e=tt(e.replace(/^\s*!/,"")),"scopecss-disable-next-line"===e)this.scopecssDisableNextLine=!0;else if(/^scopecss-disable/.test(e))if("scopecss-disable"===e)this.scopecssDisable=!0;else{this.scopecssDisable=!0;e.replace("scopecss-disable","").split(",").forEach(t=>{this.scopecssDisableSelectors.push(tt(t))})}else"scopecss-enable"===e&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]);return this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,e=!1){const n=t.exec(this.cssText);if(!n)return;const r=n[0];return this.cssText=this.cssText.slice(r.length),e||this.recordResult(r),n}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){et()?this.result+=encodeURIComponent(t):this.result+=t}}function yt(t,e,n,r,i){if(!t.__MICRO_APP_HAS_SCOPED__){t.__MICRO_APP_HAS_SCOPED__=!0;let o=null;try{o=_t.exec(t.textContent,n,r,i),_t.reset()}catch(t){_t.reset(),R("An error occurred while parsing CSS:\n",e,t)}o&&(t.textContent=o)}}let _t;function bt(t,e,n){if(e.scopecss){const r=xt(e.name);if(_t||(_t=new vt),t.textContent)yt(t,e.name,r,e.url,n);else{const i=new MutationObserver((function(){i.disconnect(),t.textContent&&!t.hasAttribute("data-styled")&&yt(t,e.name,r,e.url,n)}));i.observe(t,{childList:!0})}}return t}function xt(t,e=!1){const n=e?"\\":"";return`${er.tagName}${n}[name=${t}${n}]`}function wt(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},srcElement:{get:()=>e},target:{get:()=>e}})}function St(t){const e=new CustomEvent("load");wt(e,t),_(t.onload)?t.onload(e):t.dispatchEvent(e)}function Mt(t){const e=new CustomEvent("error");wt(e,t),_(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var At,Ct,Et,Tt,It,Pt,Lt=function(){const t=new Map,e=new Map;function n(t){return{setInfo(e,n){t.set(e,n)},getInfo(e){var n;return null!==(n=t.get(e))&&void 0!==n?n:null},hasInfo:e=>t.has(e),deleteInfo:e=>t.delete(e)}}return{link:n(t),script:Object.assign(Object.assign({},n(e)),{deleteInlineInfo(t){t.forEach(t=>{ct(t)&&e.delete(t)})}})}}();function Rt(t,e,n,r=!1){const i=t.getAttribute("rel");let o=t.getAttribute("href"),s=null;if("stylesheet"===i&&o){o=U(o,n.url);let e=Lt.link.getInfo(o);const i={attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",appSpace:{[n.name]:i}},Lt.link.setInfo(o,e),r)return{address:o,linkInfo:e};n.source.links.add(o),s=document.createComment(`link element with href=${o} move to micro-app-head as style element`),e.appSpace[n.name].placeholder=s}else i&&["prefetch","preload","prerender"].includes(i)?r?s=document.createComment(`link element with rel=${i}${o?" & href="+o:""} removed by micro-app`):null==e||e.removeChild(t):o&&Gn.rawSetAttribute.call(t,"href",U(o,n.url));return r?{replaceComment:s}:s?null==e?void 0:e.replaceChild(s,t):void 0}function Ot(t,e,n,r){const i=Array.from(e.source.links),o=i.map(t=>{const n=Lt.link.getInfo(t);return n.code?n.code:dt(t,e.name)}),s=r?[]:null;z(o,t=>{st(s,()=>function(t,e,n,r){const i=Lt.link.getInfo(t);i.code=e;const o=i.appSpace[r.name],s=o.placeholder;if(s){const e=J("style");Bt(r,t,e,i,o.attrs),s.parentNode?s.parentNode.replaceChild(e,s):n.appendChild(e),o.placeholder=null}}(i[t.index],t.data,n,e))},t=>{R(t,e.name)},()=>{r?r.then(()=>{s.push(()=>Promise.resolve(e.onLoad({html:t}))),at(s)}):e.onLoad({html:t})})}function Bt(t,e,n,r,i){if(t.scopecss){const i=r.appSpace[t.name];if(i.prefix=i.prefix||xt(t.name),i.parsedCode)n.textContent=i.parsedCode;else{const o=function(t,e,n){const r=n.appSpace;for(const n in r)if(n!==t){const t=r[n];if(t.parsedCode)return t.parsedCode.replace(new RegExp(xt(n,!0),"g"),e)}}(t.name,i.prefix,r);o?n.textContent=o:(n.textContent=r.code,bt(n,t,e)),i.parsedCode=n.textContent}}else n.textContent=r.code;!function(t,e){e.forEach((e,n)=>{"rel"!==n&&("href"===n&&(n="data-origin-href"),Gn.rawSetAttribute.call(t,n,e))})}(n,i)}!function(t){t.NAME="name",t.URL="url"}(At||(At={})),function(t){t.CREATED="created",t.LOADING="loading",t.LOAD_FAILED="load_failed",t.BEFORE_MOUNT="before_mount",t.MOUNTING="mounting",t.MOUNTED="mounted",t.UNMOUNT="unmount"}(Ct||(Ct={})),function(t){t.CREATED="created",t.BEFOREMOUNT="beforemount",t.MOUNTED="mounted",t.UNMOUNT="unmount",t.ERROR="error",t.BEFORESHOW="beforeshow",t.AFTERSHOW="aftershow",t.AFTERHIDDEN="afterhidden"}(Et||(Et={})),function(t){t.ONMOUNT="onmount",t.ONUNMOUNT="onunmount"}(Tt||(Tt={})),function(t){t.KEEP_ALIVE_SHOW="keep_alive_show",t.KEEP_ALIVE_HIDDEN="keep_alive_hidden"}(It||(It={})),function(t){t.DESTROY="destroy",t.DESTORY="destory",t.INLINE="inline",t.DISABLESCOPECSS="disableScopecss",t.DISABLESANDBOX="disableSandbox",t.DISABLE_SCOPECSS="disable-scopecss",t.DISABLE_SANDBOX="disable-sandbox",t.DISABLE_MEMORY_ROUTER="disable-memory-router",t.DISABLE_PATCH_REQUEST="disable-patch-request",t.KEEP_ROUTER_STATE="keep-router-state",t.HIDDEN_ROUTER="hidden-router",t.KEEP_ALIVE="keep-alive",t.CLEAR_DATA="clear-data",t.SSR="ssr",t.FIBER="fiber"}(Pt||(Pt={}));const kt=[1,2,3],Dt=["search","native","native-scope","pure"],Ft=["popstate","hashchange","load","beforeunload","unload","unmount","appstate-change","statechange","mounted"],Nt=["onpopstate","onhashchange","onload","onbeforeunload","onunload","onerror"],jt=["DOMContentLoaded","readystatechange"],Ut=["onreadystatechange"],zt=["window","self","globalThis"],Gt=["rawWindow","rawDocument"],Ht="window,self,globalThis,document,Document,Array,Object,String,Boolean,Math,Number,Symbol,Date,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,navigator,undefined,location,history",Wt=["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"];function Vt(t,e){return e.appSpace[t.name].module&&(!t.useSandbox||t.iframe)}function Zt(t,e){return t.inline||e.appSpace[t.name].inline||Vt(t,e)||function(t,e){return e.appSpace[t.name].attrs.has("id")}(t,e)}function Qt(t){return t.iframe?t.sandBox.microAppWindow:Gn.rawWindow}function Xt(t,e,n){return function(t,e,n){const r=e.appSpace;for(const e in r)if(e!==t.name){const t=r[e];if(t.parsedCode===n&&t.parsedFunction)return t.parsedFunction}}(t,e,n)||function(t,e){return new(Qt(t).Function)(e)}(t,n)}function Yt(){const t="inline-"+Math.random().toString(36).substr(2,15);return Lt.script.hasInfo(t)?Yt():t}function Jt(t,e){return t.useSandbox&&!Vt(t,e)}function qt(t,e){return Jt(t,e)?t.iframe?"iframe":"with":"disable"}function Kt(t,e,n,r=!1){var i;let o=null,s=t.getAttribute("src");if(s&&(s=U(s,n.url)),t.hasAttribute("exclude")||te(s,n.name))o=document.createComment("script element with exclude attribute removed by micro-app");else{if(t.type&&!Wt.includes(t.type)||t.hasAttribute("ignore")||ee(s,n.name))return(null===(i=Gn.rawDocument)||void 0===i?void 0:i.currentScript)&&delete Gn.rawDocument.currentScript,null;if(Gn.supportModuleScript&&t.noModule||!Gn.supportModuleScript&&"module"===t.type)o=document.createComment((t.noModule?"noModule":"module")+" script ignored by micro-app");else if(s){let e=Lt.script.getInfo(s);const i={async:t.hasAttribute("async"),defer:t.defer||"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",isExternal:!0,appSpace:{[n.name]:i}},Lt.script.setInfo(s,e),r)return{address:s,scriptInfo:e};n.source.scripts.add(s),o=document.createComment(`script with src='${s}' extract by micro-app`)}else if(t.textContent){const e=Yt(),i={code:t.textContent,isExternal:!1,appSpace:{[n.name]:{async:!1,defer:"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)}}};if(r)return{address:e,scriptInfo:i};n.source.scripts.add(e),Lt.script.setInfo(e,i),o=document.createComment("inline script extract by micro-app")}else r||(o=document.createComment("script element removed by micro-app"))}return r?{replaceComment:o}:null==e?void 0:e.replaceChild(o,t)}function $t(t){var e,n,r;return[...(null===(e=er.options.plugins)||void 0===e?void 0:e.global)||[],...(null===(r=null===(n=er.options.plugins)||void 0===n?void 0:n.modules)||void 0===r?void 0:r[t])||[]]}function te(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.excludeChecker&&e.excludeChecker(t))}function ee(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.ignoreChecker&&e.ignoreChecker(t))}function ne(t,e){const n=Array.from(e.source.scripts),r=[],i=[];for(const t of n){const n=Lt.script.getInfo(t),o=n.appSpace[e.name];(!o.defer&&!o.async||e.isPrefetch&&!e.isPrerender)&&(r.push(n.code?n.code:dt(t,e.name)),i.push([t,n]))}const o=e.isPrefetch||e.fiber?[]:null;r.length?z(r,t=>{st(o,()=>function(t,e,n,r){if(e.code=n,r.isPrefetch&&2===r.prefetchLevel){const i=e.appSpace[r.name];if(!i.parsedCode&&(i.parsedCode=ie(t,r,n,e),i.sandboxType=qt(r,e),!Zt(r,e)))try{i.parsedFunction=Xt(r,e,i.parsedCode)}catch(t){R("Something went wrong while handling preloaded resources",r.name,"\n",t)}}}(i[t.index][0],i[t.index][1],t.data,e))},t=>{R(t,e.name)},()=>{o?(o.push(()=>Promise.resolve(e.onLoad({html:t}))),at(o)):e.onLoad({html:t})}):e.onLoad({html:t})}function re(t,e,n,r,i){try{!function(t){!function(t){t.sandBox&&(Gn.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow)}(t)}(e);const o=n.appSpace[e.name],s=qt(e,n);if(o.parsedCode&&o.sandboxType===s||(o.parsedCode=ie(t,e,n.code,n),o.sandboxType=s,o.parsedFunction=null),Zt(e,n)){const s=i||J("script");if(function(t,e,n,r,i,o){if(n){if(Gn.rawSetAttribute.call(r,"type","module"),ct(t)?r.textContent=e:r.src=t,o){const e=()=>{o.moduleCount&&o.moduleCount--,o(0===o.moduleCount)};ct(t)?B(e):r.onload=e}}else r.textContent=e;!function(t,e){e.forEach((e,n)=>{"type"===n&&"module"===e||"defer"===n||"async"===n||("src"===n&&(n="data-origin-src"),Gn.rawSetAttribute.call(t,n,e))})}(r,i)}(t,o.parsedCode,Vt(e,n),s,o.attrs,r),!i){const t=e.iframe?e.sandBox.microBody:e.querySelector("micro-app-body");null==t||t.appendChild(s)}}else!function(t,e){const n=e.appSpace[t.name];n.parsedFunction||(n.parsedFunction=Xt(t,e,n.parsedCode));n.parsedFunction.call(Qt(t))}(e,n)}catch(n){throw console.error(`[micro-app from ${i?"runDynamicScript":"runScript"}] app ${e.name}: `,n,t),n}}function ie(t,e,n,r){return b(er.options.plugins)&&(n=function(t,e,n,r){var i;const o=oe(r.global,e,t);return oe(null===(i=r.modules)||void 0===i?void 0:i[n],o,t)}(t,n,e.name,er.options.plugins)),Jt(e,r)?e.iframe?`(function(window,self,global,location){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyLocation);`:`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${Ht}){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(proxyWindow,${Ht})}})(window.__MICRO_APP_PROXY_WINDOW__);`:n}function oe(t,e,n){return a(t)?t.reduce((t,e)=>b(e)&&_(e.loader)?e.loader(t,n):t,e):e}function se(t,e){const n=e.parseHtmlString(t),r=Gn.rawElementQuerySelector.call(n,"micro-app-head"),i=Gn.rawElementQuerySelector.call(n,"micro-app-body");if(!r||!i){const t=`element ${r?"body":"head"} is missing`;return e.onerror(new Error(t)),R(t,e.name)}const o=e.isPrefetch||e.fiber?[]:null;!function t(e,n,r,i){const o=Array.from(e.children);o.length&&o.forEach(e=>{t(e,n,r,i)});for(const t of o)E(t)?t.hasAttribute("exclude")||te(t.getAttribute("href"),n.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),t):t.hasAttribute("ignore")||ee(t.getAttribute("href"),n.name)?t.hasAttribute("href")&&Gn.rawSetAttribute.call(t,"href",U(t.getAttribute("href"),n.url)):Rt(t,e,n):T(t)?t.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),t):n.scopecss&&!t.hasAttribute("ignore")&&st(i,()=>bt(t,n)):I(t)?Kt(t,e,n):"[object HTMLImageElement]"===f(t)&&t.hasAttribute("src")&&Gn.rawSetAttribute.call(t,"src",U(t.getAttribute("src"),n.url))}(n,e,r,o);const s=at(o);e.source.links.size?Ot(n,e,r,s):s?s.then(()=>e.onLoad({html:n})):e.onLoad({html:n}),e.source.scripts.size?ne(n,e):e.onLoad({html:n})}const ae=new class{constructor(){this.eventList=new Map,this.queue=[],this.recordStep={},this.process=()=>{var t,e;let n;const r=this.recordStep,i=this.queue;for(this.recordStep={},this.queue=[];n=i.shift();){const i=this.eventList.get(n),o=i.tempData,s=i.force;let a;if(i.tempData=null,i.force=!1,s||!this.isEqual(i.data,o)){i.data=o||i.data;for(const t of i.callbacks){const e=t(i.data);e&&(null!=a?a:a=[]).push(e)}null===(e=(t=r[n]).dispatchDataEvent)||void 0===e||e.call(t),r[n].nextStepList.forEach(t=>t(a))}}}}isLegalName(t){return!!t||(R("event-center: Invalid name"),!1)}enqueue(t,e,n){this.recordStep[t]?(this.recordStep[t].nextStepList.push(e),n&&(this.recordStep[t].dispatchDataEvent=n)):this.recordStep[t]={nextStepList:[e],dispatchDataEvent:n},!this.queue.includes(t)&&1===this.queue.push(t)&&B(this.process)}isEqual(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==e[n])return!1;return!0}on(t,e,n=!1){if(this.isLegalName(t)){if(!_(e))return R("event-center: Invalid callback function");let r=this.eventList.get(t);r?n&&Object.keys(r.data).length&&(!this.queue.includes(t)||this.isEqual(r.data,r.tempData))&&e(r.data):(r={data:{},callbacks:new Set},this.eventList.set(t,r)),r.callbacks.add(e)}}off(t,e){if(this.isLegalName(t)){const n=this.eventList.get(t);n&&(_(e)?n.callbacks.delete(e):n.callbacks.clear())}}clearData(t){if(this.isLegalName(t)){const e=this.eventList.get(t);e&&(e.data={})}}dispatch(t,e,n,r,i){if(this.isLegalName(t)){if(!b(e))return R("event-center: data must be object");let o=this.eventList.get(t);o?(o.tempData=c({},o.tempData||o.data,e),!o.force&&(o.force=!!r)):(o={data:e,callbacks:new Set},this.eventList.set(t,o),o.force=!0),this.enqueue(t,n,i)}}getData(t){var e;const n=this.eventList.get(t);return null!==(e=null==n?void 0:n.data)&&void 0!==e?e:null}};function ce(t,e){return g(t)&&t?e?`__from_base_app_${t}__`:`__from_micro_app_${t}__`:""}class le{addGlobalDataListener(t,e){const n=this.appName;n&&(t.__APP_NAME__=n,t.__AUTO_TRIGGER__=e),ae.on("global",t,e)}removeGlobalDataListener(t){_(t)&&ae.off("global",t)}setGlobalData(t,e,n){X(),ae.dispatch("global",t,t=>_(e)&&e(t),n)}forceSetGlobalData(t,e){this.setGlobalData(t,e,!0)}getGlobalData(){return ae.getData("global")}clearGlobalData(){ae.clearData("global")}clearGlobalDataListener(){const t=this.appName,e=ae.eventList.get("global");if(e)for(const n of e.callbacks)(t&&t===n.__APP_NAME__||!t&&!n.__APP_NAME__)&&e.callbacks.delete(n)}}class ue extends le{addDataListener(t,e,n){ae.on(ce(N(t),!1),e,n)}removeDataListener(t,e){_(e)&&ae.off(ce(N(t),!1),e)}getData(t,e=!1){return ae.getData(ce(N(t),e))}setData(t,e,n,r){ae.dispatch(ce(N(t),!0),e,t=>_(n)&&n(t),r)}forceSetData(t,e,n){this.setData(t,e,n,!0)}clearData(t,e=!0){ae.clearData(ce(N(t),e))}clearDataListener(t){ae.off(ce(N(t),!1))}}class he extends le{constructor(t){super(),this.appName=N(t),!this.appName&&R("Invalid appName "+t)}addDataListener(t,e){t.__AUTO_TRIGGER__=e,ae.on(ce(this.appName,!0),t,e)}removeDataListener(t){_(t)&&ae.off(ce(this.appName,!0),t)}getData(t=!0){return ae.getData(ce(this.appName,t))}dispatch(t,e,n){X(),ae.dispatch(ce(this.appName,!1),t,t=>_(e)&&e(t),n,()=>{const e=Tn.get(this.appName);if((null==e?void 0:e.container)&&b(t)){const t=new CustomEvent("datachange",{detail:{data:ae.getData(ce(this.appName,!1))}});$(e.container).dispatchEvent(t)}})}forceDispatch(t,e){this.dispatch(t,e,!0)}clearData(t=!1){ae.clearData(ce(this.appName,t))}clearDataListener(){ae.off(ce(this.appName,!0))}}function de(t){var e,n;if(t){t.umdDataListeners={global:new Set(null===(e=t.umdDataListeners)||void 0===e?void 0:e.global),normal:new Set(null===(n=t.umdDataListeners)||void 0===n?void 0:n.normal)};const r=ae.eventList.get("global");if(r)for(const e of r.callbacks)t.appName===e.__APP_NAME__&&t.umdDataListeners.global.add(e);const i=ae.eventList.get(ce(t.appName,!0));if(i)for(const e of i.callbacks)t.umdDataListeners.normal.add(e)}}function fe(t){if(null==t?void 0:t.umdDataListeners){for(const e of t.umdDataListeners.global)t.addGlobalDataListener(e,e.__AUTO_TRIGGER__);for(const e of t.umdDataListeners.normal)t.addDataListener(e,e.__AUTO_TRIGGER__);pe(t)}}function pe(t){null==t||delete t.umdDataListeners}class me{constructor(){this.appInstanceMap=Tn}static getInstance(){return this.instance||(this.instance=new me),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,e){this.appInstanceMap.set(t,e)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function ge(){ve(),me.getInstance().getAll().forEach(t=>{t.container&&$(t.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&me.getInstance().clear()}function ve(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",ge,!1)}function ye(t){return v(t.__MICRO_APP_IS_BOUND_FUNCTION__)?t.__MICRO_APP_IS_BOUND_FUNCTION__:t.__MICRO_APP_IS_BOUND_FUNCTION__=_(e=t)&&0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");var e}function _e(t,e,n="WINDOW"){if(_(t)&&!function(t){return v(t.__MICRO_APP_IS_CONSTRUCTOR__)?t.__MICRO_APP_IS_CONSTRUCTOR__:t.__MICRO_APP_IS_CONSTRUCTOR__=S(t)}(t)&&!ye(t)){const r=`__MICRO_APP_BOUND_${n}_FUNCTION__`;if(t[r])return t[r];const i=t.bind(e);for(const e in t)i[e]=t[e];return t.hasOwnProperty("prototype")&&l(i,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t[r]=i}return t}function be(t,e,n){const{proxyDocument:r,documentEffect:i}=function(t,e){const n=new Map,r=new Map;let i=null,o=null;const{rawDocument:s,rawCreateElement:a,rawCreateElementNS:c,rawAddEventListener:l,rawRemoveEventListener:u}=Gn;function h(e,n){const r=a.call(s,e,n);return r.__MICRO_APP_NAME__=t,r}function d(e,n,r){const i=c.call(s,e,n,r);return i.__MICRO_APP_NAME__=t,i}function f(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),l.call(s,t,e,r)}function p(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),u.call(s,t,e,r)}const m=()=>{r.clear(),o=null},g=(()=>{var t;const e=new Map([["onclick",t=>{_(i)&&u.call(s,"click",i,!1),_(t)&&l.call(s,"click",t,!1),i=t}]]),n=(null===(t=er.options)||void 0===t?void 0:t.customProxyDocumentProps)||new Map;return new Map([...e,...n])})(),v=new Proxy(s,{get:(n,r)=>{var o;return Y(t),"createElement"===r?h:"createElementNS"===r?d:r===Symbol.toStringTag?"ProxyDocument":"defaultView"===r?e.proxyWindow:"onclick"===r?i:"addEventListener"===r?f:"removeEventListener"===r?p:"microAppElement"===r?null===(o=Tn.get(t))||void 0===o?void 0:o.container:"__MICRO_APP_NAME__"===r?t:_e(Reflect.get(n,r),s,"DOCUMENT")},set:(t,e,n)=>{if(g.has(e)){g.get(e)(n)}else"microAppElement"!==e&&Reflect.set(t,e,n);return!0}});return{proxyDocument:v,documentEffect:{reset:m,record:()=>{o=i||o,n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{o&&!i&&(v.onclick=o),r.forEach((t,e)=>{for(const n of t)v.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),m()},release:()=>{_(i)&&u.call(s,"click",i),i=null,n.size&&(n.forEach((t,e)=>{for(const n of t)u.call(s,e,n)}),n.clear())}}}}(t,n),o=function(t,e){const{rawDocument:n,rawRootDocument:r}=Gn;class i{static[Symbol.hasInstance](t){let n=t;for(;n;)if(n=Object.getPrototypeOf(n),n===i.prototype)return!0;return t===e||t instanceof r}}return Object.setPrototypeOf(i,r),Object.setPrototypeOf(i.prototype,new Proxy(r.prototype,{get:(e,r)=>(Y(t),_e(Reflect.get(e,r),n,"DOCUMENT")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})),i}(t,r);return u(e,{document:{configurable:!1,enumerable:!0,get:()=>r},Document:{configurable:!1,enumerable:!1,get:()=>o}}),i}function xe(t,e,n){return function(t){const e=Gn.rawWindow;Object.getOwnPropertyNames(e).filter(t=>/^on/.test(t)&&!Nt.includes(t)).forEach(n=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,writable:!0};l(t,n,{enumerable:r,configurable:!0,get:()=>e[n],set:(null!=i?i:o)?t=>{e[n]=t}:void 0})})}(e),function(t,e,n){const r=Gn.rawWindow,i=new Map,o=new Proxy(e,{get:(e,i)=>(Y(t),Reflect.has(e,i)||g(i)&&/^__MICRO_APP_/.test(i)||L(n.scopeProperties,i)?(L(Gt,i)&&X(),Reflect.get(e,i)):_e(Reflect.get(r,i),r)),set:(t,e,i)=>{if(L(n.rawWindowScopeKeyList,e))Reflect.set(r,e,i);else if(d.call(t,e)||!d.call(r,e)||L(n.scopeProperties,e))Reflect.has(t,e)&&!L(n.scopeProperties,e)||n.injectedKeys.add(e),Reflect.set(t,e,i);else{const o=Object.getOwnPropertyDescriptor(r,e),{configurable:s,enumerable:a,writable:c,set:u}=o;l(t,e,{value:i,configurable:s,enumerable:a,writable:null!=c?c:!!u}),n.injectedKeys.add(e)}return(L(n.escapeProperties,e)||L(n.staticEscapeProperties,e)&&!Reflect.has(r,e))&&!L(n.scopeProperties,e)&&(!Reflect.has(r,e)&&n.escapeKeys.add(e),Reflect.set(r,e,i)),!0},has:(t,e)=>L(n.scopeProperties,e)?n.injectedKeys.has(e)?Reflect.has(t,e):!!t[e]:Reflect.has(t,e)||Reflect.has(r,e),getOwnPropertyDescriptor:(t,e)=>{if(d.call(t,e))return i.set(e,"target"),Object.getOwnPropertyDescriptor(t,e);if(d.call(r,e)){i.set(e,"rawWindow");const t=Object.getOwnPropertyDescriptor(r,e);return t&&!t.configurable&&(t.configurable=!0),t}},defineProperty:(t,e,n)=>"rawWindow"===i.get(e)?Reflect.defineProperty(r,e,n):Reflect.defineProperty(t,e,n),ownKeys:t=>Reflect.ownKeys(r).concat(Reflect.ownKeys(t)).filter((function(t){return!(t in this)&&(this[t]=!0)}),Object.create(null)),deleteProperty:(t,e)=>!d.call(t,e)||(n.injectedKeys.has(e)&&n.injectedKeys.delete(e),n.escapeKeys.has(e)&&Reflect.deleteProperty(r,e),Reflect.deleteProperty(t,e))});n.proxyWindow=o}(t,e,n),function(t,e){const n=new Map,r=new Map,i=new Map,o=new Map,{rawWindow:s,rawAddEventListener:a,rawRemoveEventListener:c,rawDispatchEvent:l,rawSetInterval:u,rawSetTimeout:h,rawClearInterval:d,rawClearTimeout:f}=Gn;function p(t){var n;return Ft.includes(t)&&(null===(n=Tn.get(e))||void 0===n?void 0:n.container)?$(Tn.get(e).container):s}t.addEventListener=function(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),a.call(p(t),t,e,r)},t.removeEventListener=function(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),c.call(p(t),t,e,r)},t.dispatchEvent=function(t){return l.call(p(null==t?void 0:t.type),t)},t.setInterval=function(t,e,...n){const r=u.call(s,t,e,...n);return i.set(r,{handler:t,timeout:e,args:n}),r},t.setTimeout=function(t,e,...n){const r=h.call(s,t,e,...n);return o.set(r,{handler:t,timeout:e,args:n}),r},t.clearInterval=function(t){i.delete(t),d.call(s,t)},t.clearTimeout=function(t){o.delete(t),f.call(s,t)};const m=()=>{r.clear()};return{reset:m,record:()=>{n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{r.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),m()},release:t=>{n.size&&(n.forEach((t,e)=>{for(const n of t)c.call(p(e),e,n)}),n.clear()),t&&(i.forEach((t,e)=>{d.call(s,e)}),o.forEach((t,e)=>{f.call(s,e)}),i.clear(),o.clear())}}}(e,t)}function we(t,e){if(ke(t)){const n=Gn.rawWindow.history.state,r={microAppState:c({},null==n?void 0:n.microAppState,{[t]:e})};return c({},n,r)}return e}function Se(t){var e;const n=Gn.rawWindow.history.state;return ke(t)?(null===(e=null==n?void 0:n.microAppState)||void 0===e?void 0:e[t])||null:n}const Me=/&/g,Ae=/=/g,Ce=/%M1/g,Ee=/%M2/g;function Te(t){return encodeURIComponent(Pe(t).replace(Me,"%M1").replace(Ae,"%M2"))}function Ie(t){return Pe(t).replace(Ce,"&").replace(Ee,"=")}function Pe(t){try{const e=decodeURIComponent(t);return t===e||Ce.test(e)||Ee.test(e)?e:Pe(e)}catch(e){return t}}function Le(t){var e,n;if(Fe(t))return null;const r=Gn.rawWindow.location;if(ke(t)){const i=Oe(r.search,r.hash),o=(null===(e=i.hashQuery)||void 0===e?void 0:e[t])||(null===(n=i.searchQuery)||void 0===n?void 0:n[t]);return g(o)?Ie(o):null}return r.pathname+r.search+r.hash}function Re(t,e){const n=e.pathname+e.search+e.hash;let r=!1;if(ke(t)){let{pathname:e,search:i,hash:o}=Gn.rawWindow.location;const s=Oe(i,o),a=Te(n);if(o&&!i){r=!0,s.hashQuery?s.hashQuery[t]=a:s.hashQuery={[t]:a};const e=o.includes("?")?o.slice(0,o.indexOf("?")+1):o+"?";o=e+rt(s.hashQuery)}else s.searchQuery?s.searchQuery[t]=a:s.searchQuery={[t]:a},i="?"+rt(s.searchQuery);return{fullPath:e+i+o,isAttach2Hash:r}}return{fullPath:n,isAttach2Hash:r}}function Oe(t,e){const n={};return""!==t&&"?"!==t&&(n.searchQuery=nt(t.slice(1))),e.includes("?")&&(n.hashQuery=nt(e.slice(e.indexOf("?")+1))),n}function Be(t){const e=Tn.get(t);return!(!e||e.isPrefetch)}function ke(t){const e=Tn.get(t);return!(!e||!e.sandBox||"search"!==e.routerMode)}function De(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native"!==e.routerMode)}function Fe(t){const e=Tn.get(t);return!(!e||!e.sandBox||"pure"!==e.routerMode)}function Ne(t){return De(t)||function(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native-scope"!==e.routerMode)}(t)}function je(t,e){const n=(e?"native":t)||er.options["disable-memory-router"]&&"native"||er.options["router-mode"]||"search";return Dt.includes(n)?n:"search"}function Ue(t){const e=Gn.rawWindow,n=e=>{Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(t)&&!e.onlyForBrowser&&ze(t,Le(t))};return e.addEventListener("popstate",n),()=>{e.removeEventListener("popstate",n)}}function ze(t,e){const n=Tn.get(t),r=n.sandBox.proxyWindow,i=n.sandBox.microAppWindow;let o=!1;const s=r.location.href;if(e){const n=r.location.hash;hn(t,e,i.location),o=r.location.hash!==n}!function(t,e,n){const r=new PopStateEvent("popstate",{state:Se(t)});n.dispatchEvent(r),Pn(t)||_(e.onpopstate)&&e.onpopstate(r)}(t,r,i),o&&function(t,e,n,r){const i=new HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:r});n.dispatchEvent(i),Pn(t)||_(e.onhashchange)&&e.onhashchange(i)}(t,r,i,s),X()}function Ge(t,e,n){X(),Be(t)&&(function(t){const e=new PopStateEvent("popstate",{state:null});t&&(e.onlyForBrowser=!0),Gn.rawWindow.dispatchEvent(e)}(e),n&&function(t){const e=new HashChangeEvent("hashchange",{newURL:Gn.rawWindow.location.href,oldURL:t});Gn.rawWindow.dispatchEvent(e)}(n))}function He(t,e){const n=Gn.rawWindow.history;function r(n){return function(...r){var i,o,s;if(g(r[2])||M(r[2])){const a=k(r[2],e.href),c=a.pathname+a.search+a.hash;Fe(t)||Ve(t,n,Re(t,a),!0,we(t,r[0]),r[1]),c!==e.fullPath&&hn(t,c,e),null===(s=null===(i=Tn.get(t))||void 0===i?void 0:(o=i.sandBox).updateIframeBase)||void 0===s||s.call(o)}else We(t,n,r[2],r[0],r[1])}}const i=r("pushState"),o=r("replaceState");return Pn(t)?{pushState:i,replaceState:o}:new Proxy(n,{get:(e,n)=>"state"===n?Se(t):"pushState"===n?i:"replaceState"===n?o:_e(Reflect.get(e,n),e,"HISTORY"),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})}function We(t,e,n,r=null,i=""){if(Be(t)){("pushState"===e?Gn.rawPushState:Gn.rawReplaceState).call(Gn.rawWindow.history,r,i,n)}}function Ve(t,e,n,r,i,o){if(Be(t)){const s=Gn.rawWindow.location,a=s.pathname+s.search+s.hash,c=n.isAttach2Hash&&a!==n.fullPath?s.href:null;We(t,e,n.fullPath,i,o),a!==n.fullPath&&ke(t)&&Ge(t,r,c)}}function Ze(t,e,n){Ve(t,"replaceState",e,!0,n)}function Qe(t){const e=Gn.rawWindow;return function(...n){var r;if((null===(r=e.history.state)||void 0===r?void 0:r.microAppState)&&(!b(n[0])||!n[0].microAppState)&&(g(n[2])||M(n[2]))){const t=e.location.href;k(n[2],t).href===t&&(n[0]=c({},n[0],{microAppState:e.history.state.microAppState}))}t.apply(e.history,n),Qn({excludeHiddenApp:!0,excludePreRender:!0}).forEach(t=>{if(ke(t)&&!Le(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}),X()}}function Xe(){const t=Gn.rawWindow;t.history.pushState=Qe(Gn.rawPushState),t.history.replaceState=Qe(Gn.rawReplaceState)}function Ye(){const t=Gn.rawWindow;t.history.pushState=Gn.rawPushState,t.history.replaceState=Gn.rawReplaceState}const{router:Je,executeNavigationGuard:qe,clearRouterWhenUnmount:Ke}=function(){function t(t,e,n,r){const i=e.sandBox.proxyWindow.location,o=k(n.path,i.href),s=i.pathname+i.search+i.hash,a=o.pathname+o.search+o.hash;if(s!==a||Le(t)!==a){if(!Fe(t)){!function(t,e,n,r){Ve(t,e,Re(t,n),!1,we(t,null!=r?r:null)),X()}(t,r&&!1!==n.replace||!0===n.replace?"replaceState":"pushState",o,n.state)}(Ne(t)||Fe(t))&&ze(t,a)}}function e(e){return function(n){return new Promise((r,i)=>{const o=N(n.name);if(o&&g(n.path))if(Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(o)){const i=Tn.get(o);r(i.sandBox.sandboxReady.then(()=>t(o,i,n,e)))}else i(R("navigation failed, app does not exist or is inactive"));else i(R("navigation failed, name & path are required when use router."+(e?"replace":"push")))})}}function n(t){return function(...e){return Gn.rawWindow.history[t](...e)}}const r=it(),i=it();function o(t,e,n,r){X();for(const i of r)_(i)?i(e,n,t):b(i)&&_(i[t])&&i[t](e,n)}function a(t){if(ke(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}const c=Object.assign(Object.assign({current:new Map,encode:Te,decode:Ie,push:e(!1),replace:e(!0),go:n("go"),back:n("back"),forward:n("forward"),beforeEach:r.add,afterEach:i.add,attachToURL:function(t){(t=N(t))&&Qn().includes(t)&&a(t)},attachAllToURL:function({includeHiddenApp:t=!1,includePreRender:e=!1}){Qn({excludeHiddenApp:!t,excludePreRender:!e}).forEach(t=>a(t))}},function(){const t=function(){const t=new Map;return{add:function(e,n){return t.set(e,n),()=>!!t.has(e)&&t.delete(e)},get:e=>t.get(e),delete:e=>!!t.has(e)&&t.delete(e)}}();return{setDefaultPage:function(e){const n=N(e.name);return n&&e.path?t.add(n,e.path):s},removeDefaultPage:function(e){return!!(e=N(e))&&t.delete(e)},getDefaultPage:t.get}}()),function(){let t=null;return{setBaseAppRouter:function(e){x(e)&&(t=new Proxy(e,{get:(t,e)=>(X(),_e(Reflect.get(t,e),t,"BASEROUTER")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)}))},getBaseAppRouter:()=>t}}());return{router:c,executeNavigationGuard:function(t,e,n){c.current.set(t,e),o(t,e,n,r.list()),G(()=>{o(t,e,n,i.list())})},clearRouterWhenUnmount:function(t){c.current.delete(t)}}}(),$e=["getComputedStyle","visualViewport","matchMedia","ResizeObserver","IntersectionObserver"],tn=[/animationFrame$/i,/mutationObserver$/i,/height$|width$/i,/offset$/i,/selection$/i,/^range/i,/^screen/i,/^scroll/i,/X$|Y$/],en=["body","head","html","title"],nn=["host","hostname","port","protocol","origin"],rn=["childElementCount","children","firstElementChild","firstChild","lastElementChild","activeElement","fullscreenElement","pictureInPictureElement","pointerLockElement","styleSheets"],on=["append","contains","replaceChildren","createRange","getSelection","elementFromPoint","elementsFromPoint","getAnimations"],sn=["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],an=["execCommand","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],cn=["href","pathname","search","hash","host","hostname","port","protocol","search","origin","fullPath"];function ln(t,e,n,r,i,o){const s=Gn.rawWindow.location,a=!!n,c=k(e);function u(){return a?n.location:c}function h(e,n){const r=k(e,v.href);if(r.origin===v.origin){const e=Re(t,r);if(ke(t)){if(r.pathname===v.pathname&&r.search===v.search){let i=null;return r.hash!==v.hash&&(e.isAttach2Hash&&(i=s.href),We(t,n,e.fullPath)),void(r.hash?Ge(t,!1,i):g())}if(e.isAttach2Hash)return We(t,n,e.fullPath),void g()}return e.fullPath}return e}function d(n,r){const i=k(n,e);i[r]===v[r]&&v.hash?Ge(t,!1):(We(t,i[r]===v[r]?"replaceState":"pushState",Re(t,i).fullPath),g())}const f=e=>function(n){if(Be(t)){const t=h(n,"assign"===e?"pushState":"replaceState");t&&s[e](k(t,s.origin).href)}},p=f("assign"),m=f("replace"),g=t=>s.reload(t);l(u(),"fullPath",{enumerable:!0,configurable:!0,get:()=>v.pathname+v.search+v.hash});const v=new Proxy({},{get:(e,n)=>{const c=u();if("assign"===n)return p;if("replace"===n)return m;if("reload"===n)return g;if("self"===n)return c;if("fullPath"===n)return c.fullPath;if(De(t))return _e(Reflect.get(s,n),s,"LOCATION");if(a){if(nn.includes(n))return r[n];if("href"===n)return c[n].replace(i,o)}return _e(Reflect.get(c,n),c,"LOCATION")},set:(n,r,i)=>{if(Be(t)){const n=u();if("href"===r){const t=h(i,"pushState");t&&(s.href=k(t,s.origin).href)}else if("pathname"===r)if(Ne(t))s.pathname=i;else{d(("/"+i).replace(/^\/+/,"/")+v.search+v.hash,"pathname")}else if("search"===r)if(Ne(t))s.search=i;else{d(v.pathname+("?"+i).replace(/^\?+/,"?")+v.hash,"search")}else if("hash"===r)if(Ne(t))s.hash=i;else{const n=v.pathname+v.search+("#"+i).replace(/^#+/,"#"),r=k(n,e);r.hash!==v.hash&&Ve(t,"pushState",Re(t,r),!1)}else Reflect.set(n,r,i)}return!0}});return v}function un(t,e){const n=c({name:t},e);for(const t of cn)n[t]=e[t];return n}function hn(t,e,n,r){var i;const o=un(t,n),s=k(e,n.href);if(Pn(t)){const e=Tn.get(t).sandBox.microAppWindow;null===(i=e.rawReplaceState)||void 0===i||i.call(e.history,Se(t),"",s.href)}else{let t=s.href;n.self.origin!==s.origin&&(t=t.replace(s.origin,n.self.origin)),n.self.href=t}const a=un(t,n);("auto"===r||o.fullPath!==a.fullPath&&"prevent"!==r)&&qe(t,a,o)}function dn(t,e,n){const r=Le(t);r?hn(t,r,e,"auto"):fn(t,e,n)}function fn(t,e,n){n&&hn(t,n,e,"prevent"),Fe(t)||Ze(t,Re(t,e),we(t,null)),function(t,e){qe(t,un(t,e),un(t,e))}(t,e)}function pn(t,e,n,r){if(!Ne(t)){if(!r){const{pathname:r,search:i,hash:o}=k(e);hn(t,r+i+o,n,"prevent")}Fe(t)||mn(t)}Ke(t)}function mn(t){Ze(t,function(t,e){var n,r,i,o;let{pathname:s,search:a,hash:c}=e||Gn.rawWindow.location,l=!1;if(ke(t)){const e=Oe(a,c);if(null===(n=e.hashQuery)||void 0===n?void 0:n[t]){l=!0,null===(r=e.hashQuery)||void 0===r||delete r[t];const n=rt(e.hashQuery);c=c.slice(0,c.indexOf("?")+Number(Boolean(n)))+n}else if(null===(i=e.searchQuery)||void 0===i?void 0:i[t]){null===(o=e.searchQuery)||void 0===o||delete o[t];const n=rt(e.searchQuery);a=n?"?"+n:""}}return{fullPath:s+a+c,isAttach2Hash:l}}(t),function(t,e){return ke(t)?(b(null==e?void 0:e.microAppState)&&(p(e.microAppState[t])||delete e.microAppState[t],Object.keys(e.microAppState).length||delete e.microAppState),c({},e)):e}(t,Gn.rawWindow.history.state))}class gn{}function vn(t,e){const n=Array.from(t.children);n.length&&n.forEach(t=>{vn(t,e)});for(const t of n)yn(t,e)}function yn(t,e){var n,r;const i=null===(r=null===(n=Tn.get(e))||void 0===n?void 0:n.sandBox)||void 0===r?void 0:r.proxyWindow;return C(t)&&!t.__MICRO_APP_NAME__&&!t.__PURE_ELEMENT__&&i&&u(t,{baseURI:{configurable:!0,get:()=>i.location.href},__MICRO_APP_NAME__:{configurable:!0,writable:!0,value:e}}),t}function _n(t,e){const n=p(e)?Gn.rawWindow.fetch:e;return _(n)?function(e,r,...i){return(g(e)||M(e))&&(e=k(e,t).toString()),X(),n.call(Gn.rawWindow,e,r,...i)}:n}function bn(t,e){const n=p(e)?Gn.rawWindow.XMLHttpRequest:e;return S(n)?class extends n{open(e,n,...r){(g(n)&&!/^f(ile|tp):\/\//.test(n)||M(n))&&(n=k(n,t).toString()),X(),super.open(e,n,...r)}}:n}const{createMicroEventSource:xn,clearMicroEventSource:wn}=function(){let t;return{createMicroEventSource:function(e,n,r){const i=p(r)?Gn.rawWindow.EventSource:r;return S(i)?class extends i{constructor(r,i,...o){if((g(r)||M(r))&&(r=k(r,n).toString()),X(),super(r,i,...o),t){const n=t.get(e);n?n.add(this):t.set(e,new Set([this]))}else t=new Map([[e,new Set([this])]])}close(){var n;super.close(),null===(n=t.get(e))||void 0===n||n.delete(this)}}:i},clearMicroEventSource:function(e){const n=null==t?void 0:t.get(e);(null==n?void 0:n.size)&&(n.forEach(t=>{t.close()}),n.clear())}}}();class Sn extends class{constructor(){this.rawWindowScopeKeyList=["location"],this.staticEscapeProperties=["System","__cjsWrapper"],this.staticScopeProperties=["webpackJsonp","webpackHotUpdate","Vue","onpopstate","onhashchange"],this.scopeProperties=Array.from(this.staticScopeProperties),this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.injectReactHMRProperty()}injectReactHMRProperty(){0}}{constructor(t,e){super(),this.active=!1,this.microAppWindow=new gn,this.patchWith(n=>{this.getSpecialProperties(t),this.patchRouter(t,e,this.microAppWindow),this.windowEffect=xe(t,this.microAppWindow,this),this.documentEffect=be(t,this.microAppWindow,this),this.setMappingPropertiesWithRawDescriptor(this.microAppWindow),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}start({umdMode:t,baseroute:e,defaultPage:n,disablePatchRequest:r}){this.active||(this.active=!0,this.initRouteState(n),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=e),t||this.initGlobalKeysWhenStart(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow,r),1==++Gn.activeSandbox&&(Nn(),Xe()),1==++Sn.activeCount&&window.__MICRO_APP_ENVIRONMENT__&&(ve(),window.addEventListener("unmount",ge,!1)),Gn.rawWindow._babelPolyfill&&(Gn.rawWindow._babelPolyfill=!1))}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({umdMode:t,clearData:r,destroy:n},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(wn(this.microAppWindow.__MICRO_APP_NAME__),this.injectedKeys.forEach(t=>{Reflect.deleteProperty(this.microAppWindow,t)}),this.injectedKeys.clear(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--Sn.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="with",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){this.windowEffect.reset(),this.documentEffect.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){this.windowEffect.record(),this.documentEffect.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){this.windowEffect.rebuild(),this.documentEffect.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({umdMode:t=!1,clearData:e=!1,isPrerender:n=!1,keepAlive:r=!1,destroy:i=!1}){var o,s,a;this.windowEffect.release(!t&&!r&&!n||i),this.documentEffect.release(),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearDataListener(),null===(s=this.microAppWindow.microApp)||void 0===s||s.clearGlobalDataListener(),e&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(a=this.microAppWindow.microApp)||void 0===a||a.clearData())}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&(a(e.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(e.scopeProperties)),a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties)))}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchWith(t){this.sandboxReady=new Promise(e=>t(e))}setMappingPropertiesWithRawDescriptor(t){let e,n;const r=Gn.rawWindow;r===r.parent?e=n=this.proxyWindow:(e=r.top,n=r.parent),u(t,{top:this.createDescriptorForMicroAppWindow("top",e),parent:this.createDescriptorForMicroAppWindow("parent",n)}),zt.forEach(e=>{l(t,e,this.createDescriptorForMicroAppWindow(e,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,e){const{configurable:n=!0,enumerable:r=!0,writable:i,set:o}=Object.getOwnPropertyDescriptor(Gn.rawWindow,t)||{writable:!0};return{value:e,configurable:n,enumerable:r,writable:null!=i?i:!!o}}initGlobalKeysWhenStart(t,e,n,r){n.hasOwnProperty=t=>d.call(n,t)||d.call(Gn.rawWindow,t),this.setHijackProperty(t,n),r||this.patchRequestApi(t,e,n),this.setScopeProperties(n)}setHijackProperty(t,e){let n,r;u(e,{eval:{configurable:!0,enumerable:!1,get:()=>(Y(t),n||Gn.rawWindow.eval),set:t=>{n=t}},Image:{configurable:!0,enumerable:!1,get:()=>(Y(t),r||Gn.ImageProxy),set:t=>{r=t}}})}patchRequestApi(t,e,n){let r=_n(e),i=bn(e),o=xn(t,e);u(n,{fetch:{configurable:!0,enumerable:!0,get:()=>r,set(t){r=_n(e,t)}},XMLHttpRequest:{configurable:!0,enumerable:!0,get:()=>i,set(t){i=bn(e,t)}},EventSource:{configurable:!0,enumerable:!0,get:()=>o,set(n){o=xn(t,e,n)}}})}setScopeProperties(t){this.scopeProperties.forEach(e=>{Reflect.set(t,e,t[e])})}patchRouter(t,e,n){const{microLocation:r,microHistory:i}=function(t,e){const n=ln(t,e);return{microLocation:n,microHistory:He(t,n)}}(t,e);u(n,{location:{configurable:!1,enumerable:!0,get:()=>r,set:t=>{Gn.rawWindow.location=t}},history:{configurable:!0,enumerable:!0,get:()=>i}})}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}function Mn(t,e,n){return function(t,e){const n=Gn.rawWindow;$e.forEach(t=>{e[t]=_e(n[t],n)}),Object.getOwnPropertyNames(e).filter(t=>(tn.some(r=>{if(r.test(t)&&t in e.parent){if(_(n[t]))e[t]=_e(n[t],n);else{const{configurable:r,enumerable:i}=Object.getOwnPropertyDescriptor(e,t)||{configurable:!0,enumerable:!0};r&&l(e,t,{configurable:r,enumerable:i,get:()=>n[t],set:e=>{n[t]=e}})}return!0}return!1}),/^on/.test(t)&&!Nt.includes(t))).forEach(r=>{const{enumerable:i,writable:o,set:s}=Object.getOwnPropertyDescriptor(e,r)||{enumerable:!0,writable:!0};try{l(e,r,{enumerable:i,configurable:!0,get:()=>n[r],set:(null!=o?o:s)?t=>{n[r]=_(t)?t.bind(e):t}:void 0})}catch(e){O(e,t)}})}(t,e),function(t,e){const n=Gn.rawWindow,r=new Set,i=new Proxy(t,{get:(t,o)=>"location"===o?e.proxyLocation:L(zt,o)?i:r.has(o)?Reflect.get(t,o):L(e.escapeProperties,o)&&!Reflect.has(t,o)?_e(Reflect.get(n,o),n):_e(Reflect.get(t,o),t),set:(t,i,o)=>"location"===i?Reflect.set(n,i,o):(Reflect.has(t,i)||r.add(i),Reflect.set(t,i,o),L(e.escapeProperties,i)&&(!Reflect.has(n,i)&&e.escapeKeys.add(i),Reflect.set(n,i,o)),!0),has:(t,e)=>e in t,deleteProperty:(t,r)=>!Reflect.has(t,r)||(e.escapeKeys.has(r)&&Reflect.deleteProperty(n,r),Reflect.deleteProperty(t,r))});e.proxyWindow=i}(e,n),function(t){const{rawWindow:e,rawAddEventListener:n,rawRemoveEventListener:r}=Gn,i=new Map,o=new Map;function s(n){return Ft.includes(n)?t:e}t.addEventListener=function(t,e,r){const o=i.get(t);o?o.add(e):i.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),n.call(s(t),t,e,r)},t.removeEventListener=function(t,e,n){const o=i.get(t);(null==o?void 0:o.size)&&o.has(e)&&o.delete(e),r.call(s(t),t,e,n)};const a=()=>{o.clear()};return{reset:a,record:()=>{i.forEach((t,e)=>{if(t.size){const n=o.get(e)||[];o.set(e,new Set([...n,...t]))}})},rebuild:()=>{o.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),a()},release:()=>{i.size&&(i.forEach((t,e)=>{for(const n of t)r.call(s(e),e,n)}),i.clear())}}}(e)}function An(t,e,n){return function(t,e){const n=Gn.rawDocument,r=e.Document,i=e.document,o=r.prototype.createElement,s=r.prototype.createElementNS,a=r.prototype.createTextNode,c=r.prototype.createDocumentFragment,l=r.prototype.createComment,u=r.prototype.querySelector,h=r.prototype.querySelectorAll,d=r.prototype.getElementById,f=r.prototype.getElementsByClassName,p=r.prototype.getElementsByTagName,m=r.prototype.getElementsByName,g=r.prototype.elementFromPoint,v=r.prototype.caretRangeFromPoint;function y(t){return i!==t?t:n}function _(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return u.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelector(e))&&void 0!==r?r:null}function b(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return h.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelectorAll(e))&&void 0!==r?r:[]}r.prototype.caretRangeFromPoint=function(e,r){const i=g.call(n,e,r),o=v.call(n,e,r);return yn(i,t),o},r.prototype.createElement=function(e,n){return yn(o.call(this,e,n),t)},r.prototype.createElementNS=function(e,n,r){return yn(s.call(this,e,n,r),t)},r.prototype.createTextNode=function(e){return yn(a.call(this,e),t)},r.prototype.createDocumentFragment=function(){return yn(c.call(this),t)},r.prototype.createComment=function(e){return yn(l.call(this,e),t)},r.prototype.querySelector=_,r.prototype.querySelectorAll=b,r.prototype.getElementById=function(t){const e=y(this);if(q(t))return d.call(e,t);try{return _.call(this,"#"+t)}catch(n){return d.call(e,t)}},r.prototype.getElementsByClassName=function(t){const e=y(this);if(q(t))return f.call(e,t);try{return b.call(this,"."+t)}catch(n){return f.call(e,t)}},r.prototype.getElementsByTagName=function(t){const e=y(this);if(K(t)||q(t))return p.call(e,t);if(/^script|base$/i.test(t))return p.call(i,t);try{return b.call(this,t)}catch(n){return p.call(e,t)}},r.prototype.getElementsByName=function(t){const e=y(this);if(q(t))return m.call(e,t);try{return b.call(this,`[name=${t}]`)}catch(n){return m.call(e,t)}}}(t,e),function(t,e,n){const r=Gn.rawDocument,i=e.Document,o=e.document,s=(t,e)=>{const{enumerable:n}=Object.getOwnPropertyDescriptor(i.prototype,t)||{enumerable:!0};return{configurable:!0,enumerable:n,get:e}};u(i.prototype,(()=>{const e={};return[["documentURI",()=>n.proxyLocation.href],["URL",()=>n.proxyLocation.href],["documentElement",()=>r.documentElement],["scrollingElement",()=>r.scrollingElement],["forms",()=>i.prototype.querySelectorAll.call(o,"form")],["images",()=>i.prototype.querySelectorAll.call(o,"img")],["links",()=>i.prototype.querySelectorAll.call(o,"a")],["microAppElement",()=>{var e;return null===(e=Tn.get(t))||void 0===e?void 0:e.container}],["__MICRO_APP_NAME__",()=>t]].forEach(t=>{e[t[0]]=s(t[0],t[1])}),rn.forEach(t=>{e[t]=s(t,()=>r[t])}),on.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),sn.forEach(t=>{e[t]=s(t,()=>r[t])}),an.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),e})()),en.forEach(e=>{l(o,e,{enumerable:!0,configurable:!0,get:()=>(Y(t),r[e]),set:t=>{r[e]=t}})})}(t,e,n),function(t,e){const{rawDocument:n,rawAddEventListener:r,rawRemoveEventListener:i}=Gn,o=new Map,s=new Map;let a=null,c=null;const u=e.Document,h=e.document;function d(t,e){return jt.includes(t)?e:n}function f(t){return"onclick"===t?t=>{_(a)&&i.call(n,"click",a,!1),_(t)?(a=t.bind(h),r.call(n,"click",a,!1)):a=t}:e=>{n[t]=_(e)?e.bind(h):e}}u.prototype.addEventListener=function(t,e,n){const i=_(e)?e.__MICRO_APP_BOUND_FUNCTION__=e.__MICRO_APP_BOUND_FUNCTION__||e.bind(this):e,s=o.get(t);s?s.add(e):o.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=n),r.call(d(t,this),t,i,n)},u.prototype.removeEventListener=function(t,e,n){const r=o.get(t);(null==r?void 0:r.size)&&r.has(e)&&r.delete(e);const s=(null==e?void 0:e.__MICRO_APP_BOUND_FUNCTION__)||e;i.call(d(t,this),t,s,n)},Object.getOwnPropertyNames(u.prototype).filter(t=>/^on/.test(t)&&!Ut.includes(t)).forEach(e=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(u.prototype,e)||{enumerable:!0,writable:!0};try{l(u.prototype,e,{enumerable:r,configurable:!0,get:()=>"onclick"===e?a:n[e],set:(null!=i?i:o)?f(e):void 0})}catch(e){O(e,t)}});const p=()=>{s.clear(),c=null};return{reset:p,record:()=>{c=a||c,o.forEach((t,e)=>{if(t.size){const n=s.get(e)||[];s.set(e,new Set([...n,...t]))}})},rebuild:()=>{c&&!a&&(h.onclick=c),s.forEach((t,e)=>{for(const n of t)h.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),p()},release:()=>{_(a)&&i.call(n,"click",a),a=null,o.size&&(o.forEach((t,e)=>{for(const n of t)i.call(d(e,h),e,(null==n?void 0:n.__MICRO_APP_BOUND_FUNCTION__)||n)}),o.clear())}}}(t,e)}function Cn(t,e,n,r){!function(t,e,n){const r=Gn.rawRootElement,i=Gn.rawDocument,o=e.document,s=e.Node,a=e.Element,c=s.prototype.appendChild,u=s.prototype.insertBefore,h=s.prototype.replaceChild,d=s.prototype.removeChild,p=a.prototype.append,m=a.prototype.prepend,g=a.prototype.insertAdjacentElement,v=s.prototype.cloneNode,y=Object.getOwnPropertyDescriptor(a.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(s.prototype,"parentNode"),b=Object.getOwnPropertyDescriptor(s.prototype,"ownerDocument"),x=t=>(I(t)||function(t){return"[object HTMLBaseElement]"===f(t)}(t))&&t.__PURE_ELEMENT__,w=t=>t===n.microHead?i.head:t===n.microBody?i.body:t;s.prototype.getRootNode=function(){return o},s.prototype.appendChild=function(e){return yn(e,t),x(e)?c.call(this,e):r.prototype.appendChild.call(w(this),e)},s.prototype.insertBefore=function(e,n){return yn(e,t),x(e)?u.call(this,e,n):r.prototype.insertBefore.call(w(this),e,n)},s.prototype.replaceChild=function(e,n){return yn(e,t),x(e)?h.call(this,e,n):r.prototype.replaceChild.call(w(this),e,n)},s.prototype.removeChild=function(t){return x(t)||this.contains(t)?d.call(this,t):r.prototype.removeChild.call(w(this),t)},a.prototype.append=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?p.call(this,...t):r.prototype.append.call(w(this),...t)},a.prototype.prepend=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?m.call(this,...t):r.prototype.prepend.call(w(this),...t)},a.prototype.insertAdjacentElement=function(e,n){return yn(n,t),x(n)?g.call(this,e,n):r.prototype.insertAdjacentElement.call(w(this),e,n)},s.prototype.cloneNode=function(e){return yn(v.call(this,e),t)},l(s.prototype,"ownerDocument",{configurable:!0,enumerable:!0,get(){return this.__PURE_ELEMENT__?b.get.call(this):o}}),l(a.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return y.get.call(this)},set(e){y.set.call(this,e),Array.from(this.children).forEach(e=>{A(e)&&yn(e,t)})}}),l(s.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var e,n,r;Y(t);const i=_.get.call(this);return P(i)&&(null===(e=Tn.get(t))||void 0===e?void 0:e.container)?(null===(r=(n=er.options).getRootElementParentNode)||void 0===r?void 0:r.call(n,this,t))||Gn.rawDocument.body:i}});const S=new Proxy(e.Image,{construct(e,n){const r=new e(...n);return yn(r,t),r}});l(e,"Image",{configurable:!0,writable:!0,value:S})}(t,n,r),function(t,e){const n=e.Element,r=n.prototype.setAttribute;n.prototype.setAttribute=function(e,n){(("src"===e||"srcset"===e)&&/^(img|script)$/i.test(this.tagName)||"href"===e&&/^link$/i.test(this.tagName))&&(n=U(n,t)),r.call(this,e,n)};[[e.HTMLImageElement.prototype,"src"],[e.HTMLScriptElement.prototype,"src"],[e.HTMLLinkElement.prototype,"href"]].forEach(([e,n])=>{const{enumerable:r,configurable:i,get:o,set:s}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,configurable:!0};l(e,n,{enumerable:r,configurable:i,get:function(){return null==o?void 0:o.call(this)},set:function(e){null==s||s.call(this,U(e,t))}})})}(e,n)}Sn.activeCount=0;class En{constructor(t,e){this.active=!1,this.escapeProperties=[],this.escapeKeys=new Set,this.updateIframeBase=()=>{var t;null===(t=this.baseElement)||void 0===t||t.setAttribute("href",k(this.url).origin+this.proxyLocation.pathname)},this.appName=t,this.url=e;const n=Gn.rawWindow.location,r=n.protocol+"//"+n.host;this.deleteIframeElement=this.createIframeElement(t,r+n.pathname),this.microAppWindow=this.iframe.contentWindow,this.patchIframe(this.microAppWindow,n=>{this.createIframeTemplate(this.microAppWindow),this.getSpecialProperties(t),this.proxyLocation=function(t,e,n,r){const i=k(e),o=i.protocol+"//"+i.host,s=i.pathname+i.search+i.hash,a=n.history;return n.rawReplaceState=a.replaceState,c(a,He(t,n.location)),hn(t,s,n.location,"prevent"),ln(t,e,n,i,r,o)}(t,e,this.microAppWindow,r),this.windowEffect=Mn(t,this.microAppWindow,this),this.documentEffect=An(t,this.microAppWindow,this),Cn(t,e,this.microAppWindow,this),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}createIframeElement(t,e){this.iframe=J("iframe");const n={src:er.options.iframeSrc||e,style:"display: none",id:t};return Object.keys(n).forEach(t=>this.iframe.setAttribute(t,n[t])),Gn.rawDocument.body.appendChild(this.iframe),()=>B(()=>{var t,e;null===(e=null===(t=this.iframe)||void 0===t?void 0:t.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null})}start({baseroute:t,defaultPage:e,disablePatchRequest:n}){this.active||(this.active=!0,this.initRouteState(e),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t),n||this.createIframeBase(),1==++Gn.activeSandbox&&(Nn(),Xe()),++En.activeCount)}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({clearData:r},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(this.deleteIframeElement(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--En.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="iframe",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,location:this.proxyLocation,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.reset(),null===(e=this.documentEffect)||void 0===e||e.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.record(),null===(e=this.documentEffect)||void 0===e||e.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.rebuild(),null===(e=this.documentEffect)||void 0===e||e.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({clearData:t=!1}){var e,n,r,i,o;null===(e=this.windowEffect)||void 0===e||e.release(),null===(n=this.documentEffect)||void 0===n||n.release(),null===(r=this.microAppWindow.microApp)||void 0===r||r.clearDataListener(),null===(i=this.microAppWindow.microApp)||void 0===i||i.clearGlobalDataListener(),t&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearData())}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchIframe(t,e){const n=t.document;this.sandboxReady=new Promise(r=>{!function i(){setTimeout(()=>{try{t.document===n?i():(t.stop(),e(r))}catch(t){i()}},0)}()})}createIframeTemplate(t){const e=t.document;!function(t){for(;null==t?void 0:t.firstChild;)t.removeChild(t.firstChild)}(e);const n=e.createElement("html");n.innerHTML="<head></head><body></body>",e.appendChild(n),this.microBody=e.body,this.microHead=e.head}createIframeBase(){this.baseElement=J("base"),this.updateIframeBase(),this.microHead.appendChild(this.baseElement)}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties))}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}En.activeCount=0;const Tn=new Map;class In{constructor({name:t,url:e,container:n,scopecss:r,useSandbox:i,inline:o,iframe:s,ssrUrl:a,isPrefetch:c,prefetchLevel:l,routerMode:u}){this.state=Ct.CREATED,this.keepAliveState=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.lifeCycleState=null,this.umdMode=!1,this.sandBox=null,this.fiber=!1,Tn.set(t,this),this.name=t,this.url=e,this.useSandbox=i,this.scopecss=this.useSandbox&&r,this.iframe=null!=s&&s,this.inline=this.getInlineModeState(o),this.routerMode=u||"search",this.container=null!=n?n:null,this.ssrUrl=null!=a?a:"",this.isPrefetch=null!=c&&c,this.isPrerender=3===l,this.prefetchLevel=l,this.source={html:null,links:new Set,scripts:new Set},this.loadSourceCode(),this.createSandbox()}loadSourceCode(){this.setAppState(Ct.LOADING),ft.getInstance().run(this,se)}onLoad({html:t,defaultPage:e,routerMode:n,baseroute:r,disablePatchRequest:i}){var o;if(2==++this.loadSourceLevel)if(this.source.html=t,this.isPrefetch||this.isUnmounted()){if(this.isPrerender){const t=J("div");t.setAttribute("prerender","true"),null===(o=this.sandBox)||void 0===o||o.setPreRenderState(!0),this.mount({container:t,inline:this.inline,fiber:!0,defaultPage:e||"",disablePatchRequest:null!=i&&i,routerMode:n,baseroute:r||""})}}else $(this.container).mount(this)}onLoadError(t){this.loadSourceLevel=-1,this.isUnmounted()||(this.onerror(t),this.setAppState(Ct.LOAD_FAILED))}mount({container:t,inline:e,routerMode:n,defaultPage:r,baseroute:i,disablePatchRequest:o,fiber:s}){if(2!==this.loadSourceLevel)return this.container=t,this.isPrerender=!1,ht(this,"statechange",{appState:Ct.LOADING}),this.setAppState(Ct.LOADING);this.createSandbox(),this.setAppState(Ct.BEFORE_MOUNT);const a=()=>{var a,c,l,u,h,d,m,v;if(this.isPrerender&&(v=this.container,"[object HTMLDivElement]"===f(v))&&this.container.hasAttribute("prerender"))null===(a=this.sandBox)||void 0===a||a.rebuildEffectSnapshot(),this.cloneContainer(t,this.container,!1),this.container=t,null===(c=this.preRenderEvents)||void 0===c||c.forEach(t=>t()),this.isPrerender=!1,this.preRenderEvents=null,Je.attachToURL(this.name),null===(l=this.sandBox)||void 0===l||l.setPreRenderState(!1);else{this.container=t,this.inline=this.getInlineModeState(e),this.fiber=s,this.routerMode=n;const a=()=>{this.setLifeCycleState(Et.BEFOREMOUNT),ut(this.container,this.name,Et.BEFOREMOUNT)};if(this.isPrerender?(null!==(u=this.preRenderEvents)&&void 0!==u?u:this.preRenderEvents=[]).push(a):a(),this.setAppState(Ct.MOUNTING),ht(this,"statechange",{appState:Ct.MOUNTING}),this.cloneContainer(this.container,this.source.html,!this.umdMode),null===(h=this.sandBox)||void 0===h||h.start({umdMode:this.umdMode,baseroute:i,defaultPage:r,disablePatchRequest:o}),this.umdMode){null===(m=this.sandBox)||void 0===m||m.rebuildEffectSnapshot();try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else null===(d=this.sandBox)||void 0===d||d.actionBeforeExecScripts(this.container),function(t,e){const n=t.fiber?[]:null,r=Array.from(t.source.scripts),i=[],o=[];for(const s of r){const r=Lt.script.getInfo(s),a=r.appSpace[t.name];a.defer||a.async?(!r.isExternal||r.code||Vt(t,r)?i.push(r.code):i.push(dt(s,t.name)),o.push([s,r]),Vt(t,r)&&(e.moduleCount=e.moduleCount?++e.moduleCount:1)):st(n,()=>{re(s,t,r),e(!1)})}i.length?z(i,t=>{const e=o[t.index][1];e.code=e.code||t.data},n=>{e.errorCount=e.errorCount?++e.errorCount:1,R(n,t.name)},()=>{o.forEach(([r,i])=>{g(i.code)&&st(n,()=>{re(r,t,i,e),!Vt(t,i)&&e(!1)})}),n?(n.push(()=>Promise.resolve(e(p(e.moduleCount)||e.errorCount===i.length))),at(n)):e(p(e.moduleCount)||e.errorCount===i.length)}):n?(n.push(()=>Promise.resolve(e(!0))),at(n)):e(!0)}(this,t=>{if(!this.umdMode){const{mount:e,unmount:n}=this.getUmdLibraryHooks();if(this.umdHookUnmount=n,_(e)&&_(n)){this.umdHookMount=e,this.sandBox.markUmdMode(this.umdMode=!0);try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else!0===t&&this.handleMounted()}})}};this.sandBox?this.sandBox.sandboxReady.then(a):a()}handleMounted(t){var e,n;const r=()=>{w(t)?t.then(()=>this.dispatchMountedEvent()).catch(t=>{R("An error occurred in window.mount \n",this.name,t),this.dispatchMountedEvent()}):this.dispatchMountedEvent()};this.isPrerender?(null===(e=this.preRenderEvents)||void 0===e||e.push(r),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({isPrerender:!0})):r()}dispatchMountedEvent(){var t;this.isUnmounted()||(this.setAppState(Ct.MOUNTED),lt(this.getMicroAppGlobalHook(Tt.ONMOUNT),this.name,Tt.ONMOUNT,er.getData(this.name,!0)),ht(this,"statechange",{appState:Ct.MOUNTED}),ht(this,"mounted"),this.setLifeCycleState(Et.MOUNTED),ut(this.container,this.name,Et.MOUNTED),this.isHidden()&&(null===(t=this.sandBox)||void 0===t||t.recordAndReleaseEffect({keepAlive:!0})))}unmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;t=t||this.state===Ct.LOAD_FAILED,this.setAppState(Ct.UNMOUNT);let o=null;try{o=null===(i=this.umdHookUnmount)||void 0===i?void 0:i.call(this,er.getData(this.name,!0))}catch(t){R("An error occurred in window.unmount \n",this.name,t)}ht(this,"statechange",{appState:Ct.UNMOUNT}),ht(this,"unmount"),lt(this.getMicroAppGlobalHook(Tt.ONUNMOUNT),this.name,Tt.ONUNMOUNT),this.handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:o})}handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:i}){const o=()=>this.actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r});w(i)?(X(),i.then(o).catch(o)):o()}actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;this.umdMode&&this.container&&!t&&this.cloneContainer(this.source.html,this.container,!1),null===(i=this.sandBox)||void 0===i||i.stop({umdMode:this.umdMode,keepRouteState:n&&!t,destroy:t,clearData:e||t}),this.setLifeCycleState(Et.UNMOUNT),ut(this.container,this.name,Et.UNMOUNT),this.clearOptions(t),null==r||r()}clearOptions(t){this.container.innerHTML="",this.container=null,this.isPrerender=!1,this.preRenderEvents=null,this.setKeepAliveState(null),this.iframe&&!this.umdMode&&(this.sandBox=null),t&&this.actionsForCompletelyDestroy(),X()}actionsForCompletelyDestroy(){var t,e;null===(e=null===(t=this.sandBox)||void 0===t?void 0:t.deleteIframeElement)||void 0===e||e.call(t),Lt.script.deleteInlineInfo(this.source.scripts),Tn.delete(this.name)}hiddenKeepAliveApp(t){var e,n;this.setKeepAliveState(It.KEEP_ALIVE_HIDDEN),ht(this,"appstate-change",{appState:"afterhidden"}),this.setLifeCycleState(Et.AFTERHIDDEN),ut(this.container,this.name,Et.AFTERHIDDEN),ke(this.name)&&(null===(e=this.sandBox)||void 0===e||e.removeRouteInfoForKeepAliveApp()),2!==this.loadSourceLevel?$(this.container).unmount():(this.container=this.cloneContainer(J("div"),this.container,!1),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({keepAlive:!0})),null==t||t()}showKeepAliveApp(t){var e,n;null===(e=this.sandBox)||void 0===e||e.rebuildEffectSnapshot(),ht(this,"appstate-change",{appState:"beforeshow"}),ut(t,this.name,Et.BEFORESHOW),this.setKeepAliveState(It.KEEP_ALIVE_SHOW),this.container=this.cloneContainer(t,this.container,!1),ke(this.name)&&(null===(n=this.sandBox)||void 0===n||n.setRouteInfoForKeepAliveApp()),ht(this,"appstate-change",{appState:"aftershow"}),this.setLifeCycleState(Et.AFTERSHOW),ut(this.container,this.name,Et.AFTERSHOW)}onerror(t){this.setLifeCycleState(Et.ERROR),ht(this,"statechange",{appState:Ct.LOAD_FAILED}),ut(this.container,this.name,Et.ERROR,t)}parseHtmlString(t){var e;return(new((null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)?this.sandBox.proxyWindow.DOMParser:Gn.rawWindow.DOMParser)).parseFromString(t,"text/html").body}cloneContainer(t,e,n){return e&&(t.innerHTML="",Array.from(n?this.parseHtmlString(e.innerHTML).childNodes:e.childNodes).forEach(e=>{t.appendChild(e)})),t}createSandbox(){this.useSandbox&&!this.sandBox&&(this.sandBox=this.iframe?new En(this.name,this.url):new Sn(this.name,this.url))}setAppState(t){var e;this.state=t,null===(e=this.sandBox)||void 0===e||e.setStaticAppState(t)}getAppState(){return this.state}setLifeCycleState(t){this.lifeCycleState=t}getLifeCycleState(){return this.lifeCycleState||""}setKeepAliveState(t){this.keepAliveState=t}getKeepAliveState(){return this.keepAliveState}isUnmounted(){return Ct.UNMOUNT===this.state}isHidden(){return It.KEEP_ALIVE_HIDDEN===this.keepAliveState}getUmdLibraryHooks(){if(!this.isUnmounted()&&this.sandBox){const t=$(this.container).getAttribute("library")||"micro-app-"+this.name,e=this.sandBox.proxyWindow;return x(e[t])?e[t]:{mount:e.mount,unmount:e.unmount}}return{}}getMicroAppGlobalHook(t){var e,n;const r=null===(n=null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n[t];return _(r)?r:null}querySelector(t){return this.container?Gn.rawElementQuerySelector.call(this.container,t):null}querySelectorAll(t){return this.container?Gn.rawElementQuerySelectorAll.call(this.container,t):[]}getInlineModeState(t){var e;return null!==(e=this.iframe||t)&&void 0!==e&&e}}function Pn(t){var e,n;return null!==(n=null===(e=Tn.get(t))||void 0===e?void 0:e.iframe)&&void 0!==n&&n}const Ln=new WeakMap;function Rn(t){var e;return null!==(e=Ln.get(t))&&void 0!==e?e:t}function On(t,e){if(Ln.has(t))return Ln.get(t);if(T(t)){if(t.hasAttribute("exclude")){const e=document.createComment("style element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}return e.scopecss&&!t.hasAttribute("ignore")?bt(t,e):t}if(E(t)){if(t.hasAttribute("exclude")||te(t.getAttribute("href"),e.name)){const e=document.createComment("link element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}if(t.hasAttribute("ignore")||ee(t.getAttribute("href"),e.name)||t.href&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.href))return t;const{address:n,linkInfo:r,replaceComment:i}=Rt(t,null,e,!0);if(n&&r){const i=function(t,e,n,r){const i=J("style"),o=()=>{Bt(e,t,i,n,n.appSpace[e.name].attrs),St(r)};return n.code?B(o):dt(t,e.name).then(t=>{n.code=t,o()}).catch(t=>{R(t,e.name),Mt(r)}),i}(n,e,r,t);return Ln.set(t,i),i}return i?(Ln.set(t,i),i):t}if(I(t)){if(t.src&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.src))return t;const{replaceComment:n,address:r,scriptInfo:i}=Kt(t,null,e,!0)||{};if(r&&i){const n=i.isExternal?function(t,e,n,r){const i=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app"),o=()=>St(r),s=()=>{const s=Object.getOwnPropertyDescriptor(Gn.rawDocument,"currentScript");s&&!s.configurable||Object.defineProperty(Gn.rawDocument,"currentScript",{value:r,configurable:!0}),re(t,e,n,o,i),!Vt(e,n)&&o()};return n.code||Vt(e,n)?B(s):dt(t,e.name).then(t=>{n.code=t,s()}).catch(t=>{R(t,e.name),Mt(r)}),i}(r,e,i,t):function(t,e,n){const r=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app");return re(t,e,n,void 0,r),r}(r,e,i);return Ln.set(t,n),n}return n?(Ln.set(t,n),n):t}return t}function Bn(t,e,n,r,i){const o=kn(n,r,t);if(o){if(!Pn(t.name)&&P(o)&&e!==Gn.rawRemoveChild){const e=Object.getOwnPropertyDescriptor(r,"parentNode");e&&!e.configurable||r.__MICRO_APP_HAS_DPN__||u(r,{parentNode:{configurable:!0,get(){var e,n;const r=Gn.rawParentNodeDesc.get.call(this);return P(r)&&t.container?(null===(n=(e=er.options).getRootElementParentNode)||void 0===n?void 0:n.call(e,this,t.name))||document.body:r}},__MICRO_APP_HAS_DPN__:{configurable:!0,get:()=>!0}})}if(i&&!o.contains(i)){if(e===Gn.rawInsertBefore&&n.contains(i)){const t=Array.from(n.childNodes).indexOf(i);if(o.childNodes[t])return Dn(e,o,r,o.childNodes[t])}return Gn.rawAppendChild.call(o,r)}return e!==Gn.rawRemoveChild||o.contains(r)?Dn(e,o,r,i):n.contains(r)?e.call(n,r):r}return Dn(e,n,r,i)}function kn(t,e,n){if(n){if(t===document.head)return n.iframe&&I(e)?n.sandBox.microHead:n.querySelector("micro-app-head");if(t===document.body||t===document.body.parentNode)return n.iframe&&I(e)?n.sandBox.microBody:n.querySelector("micro-app-body");if(n.iframe&&I(e))return n.sandBox.microBody}return null}function Dn(t,e,n,r){return(i=t)===Gn.rawAppend||i===Gn.rawPrepend?t.call(e,n):t.call(e,n,r);var i}function Fn(t,e,n,r){const i=Z();if(C(e)&&!e.__PURE_ELEMENT__&&(e.__MICRO_APP_NAME__||i)){e.__MICRO_APP_NAME__=e.__MICRO_APP_NAME__||i;const o=Tn.get(e.__MICRO_APP_NAME__);if(T(e)){t.getRootNode()instanceof ShadowRoot&&e.setAttribute("ignore","true")}if(null==o?void 0:o.container)return function(t,e){A(e)&&(/^(img|script)$/i.test(e.tagName)?(e.hasAttribute("src")&&Gn.rawSetAttribute.call(e,"src",U(e.getAttribute("src"),t.url)),e.hasAttribute("srcset")&&Gn.rawSetAttribute.call(e,"srcset",U(e.getAttribute("srcset"),t.url))):/^link$/i.test(e.tagName)&&e.hasAttribute("href")&&Gn.rawSetAttribute.call(e,"href",U(e.getAttribute("href"),t.url)))}(o,e),Bn(o,r,t,On(e,o),n&&Rn(n))}return r===Gn.rawAppend||r===Gn.rawPrepend?r.call(t,e):r.call(t,e,n)}function Nn(){!function(){const t=Gn.rawDocument,e=Gn.rawRootDocument;function n(e){return function(t){return"[object ProxyDocument]"===f(t)}(e)?t:e}function r(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelector(e))&&void 0!==i?i:null:Gn.rawQuerySelector.call(o,e)}function i(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelectorAll(e))&&void 0!==i?i:[]:Gn.rawQuerySelectorAll.call(o,e)}e.prototype.createElement=function(t,e){return jn(Gn.rawCreateElement.call(n(this),t,e))},e.prototype.createElementNS=function(t,e,r){return jn(Gn.rawCreateElementNS.call(n(this),t,e,r))},e.prototype.createDocumentFragment=function(){return jn(Gn.rawCreateDocumentFragment.call(n(this)))},e.prototype.createComment=function(t){return jn(Gn.rawCreateComment.call(n(this),t))},e.prototype.querySelector=r,e.prototype.querySelectorAll=i,e.prototype.getElementById=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementById.call(e,t);try{return r.call(e,"#"+t)}catch(n){return Gn.rawGetElementById.call(e,t)}},e.prototype.getElementsByClassName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByClassName.call(e,t);try{return i.call(e,"."+t)}catch(n){return Gn.rawGetElementsByClassName.call(e,t)}},e.prototype.getElementsByTagName=function(t){var e;const r=n(this),o=Z();if(!o||K(t)||q(t)||!(null===(e=Tn.get(o))||void 0===e?void 0:e.inline)&&/^script$/i.test(t))return Gn.rawGetElementsByTagName.call(r,t);try{return i.call(r,t)}catch(e){return Gn.rawGetElementsByTagName.call(r,t)}},e.prototype.getElementsByName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByName.call(e,t);try{return i.call(e,`[name=${t}]`)}catch(n){return Gn.rawGetElementsByName.call(e,t)}}}();const t=Gn.rawRootElement,e=Gn.rawRootNode;function n(t){const e=Z();if((t===document.body||t===document.head)&&e){const n=Tn.get(e);if(null==n?void 0:n.container){if(t===document.body)return n.querySelector("micro-app-body");if(t===document.head)return n.querySelector("micro-app-head")}}return t}t.prototype.appendChild=function(t){return Fn(this,t,null,Gn.rawAppendChild)},t.prototype.insertBefore=function(t,e){return Fn(this,t,e,Gn.rawInsertBefore)},t.prototype.replaceChild=function(t,e){return Fn(this,t,e,Gn.rawReplaceChild)},t.prototype.append=function(...t){let e=0;for(;e<t.length;){let n=t[e];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawAppend),e++}},t.prototype.prepend=function(...t){let e=t.length;for(;e>0;){let n=t[e-1];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawPrepend),e--}},t.prototype.removeChild=function(t){if(null==t?void 0:t.__MICRO_APP_NAME__){const e=Tn.get(t.__MICRO_APP_NAME__);if(null==e?void 0:e.container)return Bn(e,Gn.rawRemoveChild,this,Rn(t));try{return Gn.rawRemoveChild.call(this,t)}catch(e){return(null==t?void 0:t.parentNode)&&Gn.rawRemoveChild.call(t.parentNode,t)}}return Gn.rawRemoveChild.call(this,t)},t.prototype.insertAdjacentElement=function(t,e){var n;if((null==e?void 0:e.__MICRO_APP_NAME__)&&A(e)){const r=Tn.get(e.__MICRO_APP_NAME__);if(null==r?void 0:r.container){const i=On(e,r);if(!A(i))return e;const o=null!==(n=kn(this,i,r))&&void 0!==n?n:this;return Gn.rawInsertAdjacentElement.call(o,t,i)}}return Gn.rawInsertAdjacentElement.call(this,t,e)},t.prototype.cloneNode=function(t){const e=Gn.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(e.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),e},t.prototype.querySelector=function(t){var e;return Gn.rawElementQuerySelector.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.querySelectorAll=function(t){var e;return Gn.rawElementQuerySelectorAll.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.setAttribute=function(t,e){const n=this.__MICRO_APP_NAME__||Z();if(n&&Tn.has(n)&&(("src"===t||"srcset"===t)&&/^(img|script|video|audio|source|embed)$/i.test(this.tagName)||"href"===t&&/^link$/i.test(this.tagName))){e=U(e,Tn.get(n).url)}Gn.rawSetAttribute.call(this,t,e)},l(t.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return Gn.rawInnerHTMLDesc.get.call(this)},set(t){Gn.rawInnerHTMLDesc.set.call(this,t);const e=Z();Array.from(this.children).forEach(t=>{A(t)&&e&&(t.__MICRO_APP_NAME__=e)})}}),l(e.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var t,e,n;const r=Z();if(r&&this===Gn.rawDocument.firstElementChild){const i=null===(n=null===(e=null===(t=Tn.get(r))||void 0===t?void 0:t.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n.document;if(i)return i}return Gn.rawParentNodeDesc.get.call(this)}})}function jn(t){const e=Z();return e&&(t.__MICRO_APP_NAME__=e),t}function Un(){X(),function(){const t=Gn.rawRootDocument;t.prototype.createElement=Gn.rawCreateElement,t.prototype.createElementNS=Gn.rawCreateElementNS,t.prototype.createDocumentFragment=Gn.rawCreateDocumentFragment,t.prototype.querySelector=Gn.rawQuerySelector,t.prototype.querySelectorAll=Gn.rawQuerySelectorAll,t.prototype.getElementById=Gn.rawGetElementById,t.prototype.getElementsByClassName=Gn.rawGetElementsByClassName,t.prototype.getElementsByTagName=Gn.rawGetElementsByTagName,t.prototype.getElementsByName=Gn.rawGetElementsByName}();const t=Gn.rawRootElement,e=Gn.rawRootNode;t.prototype.appendChild=Gn.rawAppendChild,t.prototype.insertBefore=Gn.rawInsertBefore,t.prototype.replaceChild=Gn.rawReplaceChild,t.prototype.removeChild=Gn.rawRemoveChild,t.prototype.append=Gn.rawAppend,t.prototype.prepend=Gn.rawPrepend,t.prototype.cloneNode=Gn.rawCloneNode,t.prototype.querySelector=Gn.rawElementQuerySelector,t.prototype.querySelectorAll=Gn.rawElementQuerySelectorAll,t.prototype.setAttribute=Gn.rawSetAttribute,l(t.prototype,"innerHTML",Gn.rawInnerHTMLDesc),l(e.prototype,"parentNode",Gn.rawParentNodeDesc)}let zn=!1;const Gn={activeSandbox:0};function Hn(){if(i){const t=window.rawWindow||Function("return window")(),e=window.rawDocument||Function("return document")(),n=t.Document||Function("return Document")(),r=t.Element,i=t.Node,o=t.EventTarget,s=r.prototype.setAttribute,a=r.prototype.appendChild,l=r.prototype.insertBefore,u=r.prototype.replaceChild,h=r.prototype.removeChild,d=r.prototype.append,f=r.prototype.prepend,p=r.prototype.cloneNode,m=r.prototype.querySelector,g=r.prototype.querySelectorAll,v=r.prototype.insertAdjacentElement,y=Object.getOwnPropertyDescriptor(r.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(i.prototype,"parentNode"),b=n.prototype.createElement,x=n.prototype.createElementNS,w=n.prototype.createTextNode,S=n.prototype.createDocumentFragment,M=n.prototype.createComment,A=n.prototype.querySelector,C=n.prototype.querySelectorAll,E=n.prototype.getElementById,T=n.prototype.getElementsByClassName,I=n.prototype.getElementsByTagName,P=n.prototype.getElementsByName,L=new Proxy(Image,{construct(t,e){const n=new t(...e),r=Z();return r&&(n.__MICRO_APP_NAME__=r),n}}),R=t.setInterval,O=t.setTimeout,B=t.clearInterval,k=t.clearTimeout,D=t.history.pushState,F=t.history.replaceState,N=o.prototype.addEventListener,j=o.prototype.removeEventListener,U=o.prototype.dispatchEvent;window.__MICRO_APP_BASE_APPLICATION__=!0,c(Gn,{supportModuleScript:"noModule"in document.createElement("script"),rawWindow:t,rawDocument:e,rawRootDocument:n,rawRootElement:r,rawRootNode:i,rawSetAttribute:s,rawAppendChild:a,rawInsertBefore:l,rawReplaceChild:u,rawRemoveChild:h,rawAppend:d,rawPrepend:f,rawCloneNode:p,rawElementQuerySelector:m,rawElementQuerySelectorAll:g,rawInsertAdjacentElement:v,rawInnerHTMLDesc:y,rawParentNodeDesc:_,rawCreateElement:b,rawCreateElementNS:x,rawCreateDocumentFragment:S,rawCreateTextNode:w,rawCreateComment:M,rawQuerySelector:A,rawQuerySelectorAll:C,rawGetElementById:E,rawGetElementsByClassName:T,rawGetElementsByTagName:I,rawGetElementsByName:P,ImageProxy:L,rawSetInterval:R,rawSetTimeout:O,rawClearInterval:B,rawClearTimeout:k,rawPushState:D,rawReplaceState:F,rawAddEventListener:N,rawRemoveEventListener:j,rawDispatchEvent:U}),function(){if(!zn){zn=!0;const t=J("style");Gn.rawSetAttribute.call(t,"type","text/css"),t.textContent=`\n${er.tagName}, micro-app-body { display: block; } \nmicro-app-head { display: none; }`,Gn.rawDocument.head.appendChild(t)}}()}}function Wn(t){class e extends(function(){var t;return(null===(t=window.rawWindow)||void 0===t?void 0:t.HTMLElement)||window.HTMLElement}()){constructor(){super(...arguments),this.isWaiting=!1,this.cacheData=null,this.connectedCount=0,this.connectStateMap=new Map,this.appName="",this.appUrl="",this.ssrUrl="",this.version=r,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const t=N(this.getAttribute("name")),e=F(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",t)&&this.legalAttribute("url",e)){const n=Tn.get(t);if(t!==this.appName&&n&&!n.isUnmounted()&&!n.isHidden()&&!n.isPrefetch)return this.setAttribute("name",this.appName),R(`app name conflict, an app named ${t} is running`);t===this.appName&&e===this.appUrl||(t===this.appName?this.unmount(!0,()=>{this.actionsForAttributeChange(t,e,n)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(t,e,n)):this.unmount(!1,()=>{this.actionsForAttributeChange(t,e,n)}))}else t!==this.appName&&this.setAttribute("name",this.appName)}}static get observedAttributes(){return["name","url"]}connectedCallback(){const t=++this.connectedCount;this.connectStateMap.set(t,!0);const e=this.appName&&this.appUrl;B(()=>{this.connectStateMap.get(t)&&(ut(this,this.appName,Et.CREATED),e&&this.handleConnected())})}disconnectedCallback(){this.connectStateMap.set(this.connectedCount,!1),this.handleDisconnected()}reload(t){return new Promise(e=>{const n=()=>{this.removeEventListener(Et.MOUNTED,n),this.removeEventListener(Et.AFTERSHOW,n),e(!0)};this.addEventListener(Et.MOUNTED,n),this.addEventListener(Et.AFTERSHOW,n),this.handleDisconnected(t,()=>{this.handleConnected()})})}handleDisconnected(t=!1,e){const n=Tn.get(this.appName);!n||n.isUnmounted()||n.isHidden()||(this.getKeepAliveModeResult()&&!t?this.handleHiddenKeepAliveApp(e):this.unmount(t,e))}attributeChangedCallback(t,e,n){if(this.legalAttribute(t,n)&&this[t===At.NAME?"appName":"appUrl"]!==n)if(t!==At.URL||this.appUrl&&this.connectStateMap.get(this.connectedCount))if(t!==At.NAME||this.appName&&this.connectStateMap.get(this.connectedCount))this.isWaiting||(this.isWaiting=!0,B(this.handleAttributeUpdate));else{const t=N(n);if(!t)return R("Invalid attribute name "+n,this.appName);this.cacheData&&(er.setData(t,this.cacheData),this.cacheData=null),this.appName=t,t!==n&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else{if(!(n=F(n,this.appName)))return R("Invalid attribute url "+n,this.appName);this.appUrl=n,this.handleInitialNameAndUrl()}}handleInitialNameAndUrl(){this.connectStateMap.get(this.connectedCount)&&this.handleConnected()}handleConnected(){if(this.appName&&this.appUrl)if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&_(this.attachShadow)&&this.attachShadow({mode:"open"}),this.updateSsrUrl(this.appUrl),Tn.has(this.appName)){const t=Tn.get(this.appName),e=t.ssrUrl||t.url,n=this.ssrUrl||this.appUrl;t.isHidden()&&t.url===this.appUrl?this.handleShowKeepAliveApp(t):e===n&&(t.isUnmounted()||t.isPrefetch&&this.sameCoreOptions(t))?this.handleMount(t):t.isPrefetch||t.isUnmounted()?this.handleCreateApp():R(`app name conflict, an app named: ${this.appName} with url: ${e} is running`)}else this.handleCreateApp()}actionsForAttributeChange(t,e,n){var r;this.updateSsrUrl(e),this.appName=t,this.appUrl=e,(null!==(r=this.shadowRoot)&&void 0!==r?r:this).innerHTML="",t!==this.getAttribute("name")&&this.setAttribute("name",this.appName),n?n.isHidden()?n.url===this.appUrl?this.handleShowKeepAliveApp(n):R(`app name conflict, an app named ${this.appName} is running`):n.url===this.appUrl&&n.ssrUrl===this.ssrUrl?this.handleMount(n):this.handleCreateApp():this.handleCreateApp()}legalAttribute(t,e){return!(!g(e)||!e)||(R(`unexpected attribute ${t}, please check again`,this.appName),!1)}handleCreateApp(){const t=()=>{var t;return new In({name:this.appName,url:this.appUrl,container:null!==(t=this.shadowRoot)&&void 0!==t?t:this,scopecss:this.useScopecss(),useSandbox:this.useSandbox(),inline:this.getDisposeResult("inline"),iframe:this.getDisposeResult("iframe"),ssrUrl:this.ssrUrl,routerMode:this.getMemoryRouterMode()})},e=Tn.get(this.appName);e?e.isPrerender?this.unmount(!0,t):(e.actionsForCompletelyDestroy(),t()):t()}handleMount(t){t.isPrefetch=!1,t.setAppState(Ct.BEFORE_MOUNT),B(()=>this.mount(t))}mount(t){var e;t.mount({container:null!==(e=this.shadowRoot)&&void 0!==e?e:this,inline:this.getDisposeResult("inline"),routerMode:this.getMemoryRouterMode(),baseroute:this.getBaseRouteCompatible(),defaultPage:this.getDefaultPage(),disablePatchRequest:this.getDisposeResult("disable-patch-request"),fiber:this.getDisposeResult("fiber")})}unmount(t,e){const n=Tn.get(this.appName);n&&!n.isUnmounted()&&n.unmount({destroy:t||this.getDestroyCompatibleResult(),clearData:this.getDisposeResult("clear-data"),keepRouteState:this.getDisposeResult("keep-router-state"),unmountcb:e})}handleHiddenKeepAliveApp(t){const e=Tn.get(this.appName);!e||e.isUnmounted()||e.isHidden()||e.hiddenKeepAliveApp(t)}handleShowKeepAliveApp(t){B(()=>{var e;return t.showKeepAliveApp(null!==(e=this.shadowRoot)&&void 0!==e?e:this)})}getDisposeResult(t){return(this.compatibleProperties(t)||!!er.options[t])&&this.compatibleDisableProperties(t)}compatibleProperties(t){return"disable-scopecss"===t?this.hasAttribute("disable-scopecss")||this.hasAttribute("disableScopecss"):"disable-sandbox"===t?this.hasAttribute("disable-sandbox")||this.hasAttribute("disableSandbox"):this.hasAttribute(t)}compatibleDisableProperties(t){return"disable-scopecss"===t?"false"!==this.getAttribute("disable-scopecss")&&"false"!==this.getAttribute("disableScopecss"):"disable-sandbox"===t?"false"!==this.getAttribute("disable-sandbox")&&"false"!==this.getAttribute("disableSandbox"):"false"!==this.getAttribute(t)}useScopecss(){return!(this.getDisposeResult("disable-scopecss")||this.getDisposeResult("shadowDOM"))}useSandbox(){return!this.getDisposeResult("disable-sandbox")}sameCoreOptions(t){return t.scopecss===this.useScopecss()&&t.useSandbox===this.useSandbox()&&t.iframe===this.getDisposeResult("iframe")}getBaseRouteCompatible(){var t,e;return null!==(e=null!==(t=this.getAttribute("baseroute"))&&void 0!==t?t:this.getAttribute("baseurl"))&&void 0!==e?e:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}updateSsrUrl(t){if(this.getDisposeResult("ssr"))if(this.getDisposeResult("disable-memory-router")||this.getDisposeResult("disableSandbox")){const e=Gn.rawWindow.location;this.ssrUrl=U(e.pathname+e.search,t)}else{let e=function(t,e){const n=Le(t);if(!n)return"";const r=k(n,e);return r.origin+r.pathname+r.search}(this.appName,t);const n=this.getDefaultPage();if(!e&&n){const r=k(n,t);e=r.origin+r.pathname+r.search}this.ssrUrl=e}else this.ssrUrl&&(this.ssrUrl="")}getDefaultPage(){return Je.getDefaultPage(this.appName)||this.getAttribute("default-page")||this.getAttribute("defaultPage")||""}getMemoryRouterMode(){return je(this.getAttribute("router-mode"),this.compatibleProperties("disable-memory-router")&&this.compatibleDisableProperties("disable-memory-router"))}setAttribute(t,e){if("data"===t)if(b(e)){const t={};Object.getOwnPropertyNames(e).forEach(n=>{g(n)&&0===n.indexOf("__")||(t[n]=e[n])}),this.data=t}else"[object Object]"!==e&&O("property data must be an object",this.appName);else Gn.rawSetAttribute.call(this,t,e)}set data(t){this.appName?er.setData(this.appName,t):this.cacheData=t}get data(){return this.appName?er.getData(this.appName,!0):this.cacheData?this.cacheData:null}get publicPath(){return j(this.appUrl)}get baseRoute(){return this.getBaseRouteCompatible()}}Gn.rawWindow.customElements.define(t,e)}function Vn(t,e){if(!i)return R("preFetch is only supported in browser environment");G(()=>{const n=y(e)?e:er.options.prefetchDelay;setTimeout(()=>{!function(t){_(t)&&(t=t()),a(t)&&t.reduce((t,e)=>t.then(()=>{return t=e,H(e=>{var n,r,i,o,s,a;if(b(t)&&navigator.onLine)if(t.name=N(t.name),t.url=F(t.url,t.name),t.name&&t.url&&!Tn.has(t.name)){const l=new In({name:t.name,url:t.url,isPrefetch:!0,scopecss:!(null!==(r=null!==(n=t["disable-scopecss"])&&void 0!==n?n:t.disableScopecss)&&void 0!==r?r:er.options["disable-scopecss"]),useSandbox:!(null!==(o=null!==(i=t["disable-sandbox"])&&void 0!==i?i:t.disableSandbox)&&void 0!==o?o:er.options["disable-sandbox"]),inline:null!==(s=t.inline)&&void 0!==s?s:er.options.inline,iframe:null!==(a=t.iframe)&&void 0!==a?a:er.options.iframe,prefetchLevel:t.level&&kt.includes(t.level)?t.level:er.options.prefetchLevel&&kt.includes(er.options.prefetchLevel)?er.options.prefetchLevel:2}),u=l.onLoad,h=l.onLoadError;l.onLoad=n=>{l.isPrerender&&c(n,{defaultPage:t["default-page"],routerMode:je(t["router-mode"]),baseroute:t.baseroute,disablePatchRequest:t["disable-patch-request"]}),e(),u.call(l,n)},l.onLoadError=(...t)=>{e(),h.call(l,...t)}}else e();else e()});var t}),Promise.resolve())}(t)},y(n)?n:3e3)})}function Zn(t,e,n){if(a(t)){const r=t.filter(t=>g(t)&&t.includes("."+e)&&!n.hasInfo(t));z(r.map(t=>dt(t)),t=>{const i=r[t.index];"js"===e?n.hasInfo(i)||n.setInfo(i,{code:t.data,isExternal:!1,appSpace:{}}):n.hasInfo(i)||n.setInfo(i,{code:t.data,appSpace:{}})},t=>{R(t)})}}function Qn({excludeHiddenApp:t=!1,excludePreRender:e=!1}={}){const n=[];return Tn.forEach((r,i)=>{r.isUnmounted()||r.isPrefetch&&(!r.isPrerender||e)||t&&r.isHidden()||n.push(i)}),n}function Xn(){return Array.from(Tn.keys())}function Yn(t,e){const n=Tn.get(N(t));return new Promise(r=>{if(n)if(n.isUnmounted()||n.isPrefetch)n.isPrerender?n.unmount({destroy:!!(null==e?void 0:e.destroy),clearData:!!(null==e?void 0:e.clearData),keepRouteState:!1,unmountcb:r.bind(null,!0)}):((null==e?void 0:e.destroy)&&n.actionsForCompletelyDestroy(),r(!0));else if(n.isHidden())(null==e?void 0:e.destroy)?n.unmount({destroy:!0,clearData:!0,keepRouteState:!0,unmountcb:r.bind(null,!0)}):(null==e?void 0:e.clearAliveState)?n.unmount({destroy:!1,clearData:!!e.clearData,keepRouteState:!0,unmountcb:r.bind(null,!0)}):r(!0);else{const t=$(n.container),i=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)},o=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)};if(t.addEventListener(Et.UNMOUNT,i),t.addEventListener(Et.AFTERHIDDEN,o),null==e?void 0:e.destroy){let e,n;t.hasAttribute("destroy")&&(e=t.getAttribute("destroy")),t.hasAttribute("destory")&&(n=t.getAttribute("destory")),t.setAttribute("destroy","true"),t.parentNode.removeChild(t),t.removeAttribute("destroy"),g(e)&&t.setAttribute("destroy",e),g(n)&&t.setAttribute("destory",n)}else if((null==e?void 0:e.clearAliveState)&&t.hasAttribute("keep-alive")){const n=t.getAttribute("keep-alive");t.removeAttribute("keep-alive");let r=null;e.clearData&&(r=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),t.setAttribute("keep-alive",n),g(r)&&t.setAttribute("clear-data",r)}else{let n=null;(null==e?void 0:e.clearData)&&(n=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),g(n)&&t.setAttribute("clear-data",n)}}else O(`app ${t} does not exist`),r(!1)})}function Jn(t){return Array.from(Tn.keys()).reduce((e,n)=>e.then(()=>Yn(n,t)),Promise.resolve(!0))}function qn(t,e){return new Promise(n=>{const r=Tn.get(N(t));if(r){const i=r.container&&$(r.container);i?n(i.reload(e)):(O(`app ${t} is not rendered, cannot use reload`),n(!1))}else O(`app ${t} does not exist`),n(!1)})}function Kn(t){return new Promise(e=>{if(!b(t))return R("renderApp options must be an object");const n=A(t.container)?t.container:g(t.container)?document.querySelector(t.container):null;if(!A(n))return R("Target container is not a DOM element.");const r=J(er.tagName);for(const e in t)if("onDataChange"===e)_(t[e])&&r.addEventListener("datachange",t[e]);else if("lifeCycles"===e){const n=t[e];if(b(n))for(const t in n)t.toUpperCase()in Et&&_(n[t])&&r.addEventListener(t.toLowerCase(),n[t])}else"container"!==e&&r.setAttribute(e,t[e]);const i=()=>{s(),e(!0)},o=()=>{s(),e(!1)},s=()=>{r.removeEventListener(Et.MOUNTED,i),r.removeEventListener(Et.ERROR,o)};r.addEventListener(Et.MOUNTED,i),r.addEventListener(Et.ERROR,o),n.appendChild(r)})}function $n(t){const e=Tn.get(N(t));if(e)return e.getLifeCycleState();O(`app ${t} does not exist`)}class tr extends ue{constructor(){super(...arguments),this.tagName="micro-app",this.hasInit=!1,this.options={},this.router=Je,this.preFetch=Vn,this.unmountApp=Yn,this.unmountAllApps=Jn,this.getActiveApps=Qn,this.getAllApps=Xn,this.reload=qn,this.renderApp=Kn,this.getAppStatus=$n}start(t){var e,n,r;if(!i||!window.customElements)return R("micro-app is not supported in this environment");if(this.hasInit)return R("microApp.start executed repeatedly");if(this.hasInit=!0,null==t?void 0:t.tagName){if(!/^micro-app(-\S+)?/.test(t.tagName))return R(t.tagName+" is invalid tagName");this.tagName=t.tagName}if(Hn(),Gn.rawWindow.customElements.get(this.tagName))return O(`element ${this.tagName} is already defined`);if(b(t)&&(this.options=t,t["disable-scopecss"]=null!==(e=t["disable-scopecss"])&&void 0!==e?e:t.disableScopecss,t["disable-sandbox"]=null!==(n=t["disable-sandbox"])&&void 0!==n?n:t.disableSandbox,t.preFetchApps&&Vn(t.preFetchApps),t.globalAssets&&(b(r=t.globalAssets)&&G(()=>{Zn(r.js,"js",Lt.script),Zn(r.css,"css",Lt.link)})),b(t.plugins))){const e=t.plugins.modules;if(b(e))for(const t in e){const n=N(t);n&&t!==n&&(e[n]=e[t],delete e[t])}}Wn(this.tagName)}}const er=new tr;e.default=er}.call(this,n(10))},function(t,e,n){"use strict";n.r(e);var r=n(119),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(341);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,"67ce9f3a",null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(30)),i=u(n(31)),o=n(12),s=n(8),a=u(n(336)),c=u(n(339)),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}var h,d=new c.default,f=(h=(0,i.default)(r.default.mark((function t(e){var n,i,c,u;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getTimestamp)();case 2:return n=t.sent,i=n.data,c=window.__RK_WEB_CORE_APPID__&&(0,s.getCache)("CLIENT_ID",s.sessionEngine)?(0,s.getCache)("CLIENT_ID",s.sessionEngine):l.sessionStore.get("CLIENT_ID"),t.next=7,(0,o.getPk)({code:c});case 7:return u=t.sent,d.setPublicKey(u.data),t.abrupt("return",d.encrypt((0,a.default)(e)+" "+i));case 10:case"end":return t.stop()}}),t,void 0)}))),function(t){return h.apply(this,arguments)});e.default=function(t){return f(t)}},function(t,e,n){n(34),n(193),t.exports=n(6).Array.from},function(t,e,n){var r=n(87),i=n(88);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(92),i=n(58),o=n(60),s={};n(27)(s,n(16)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(19),i=n(24),o=n(49);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){var r=n(37),i=n(70),o=n(192);t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(87),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){"use strict";var r=n(26),i=n(9),o=n(38),s=n(129),a=n(130),c=n(70),l=n(194),u=n(97);i(i.S+i.F*!n(131)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&a(y))for(n=new f(e=c(d.length));e>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(i=h.next()).done;v++)l(n,v,g?s(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(19),i=n(58);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){t.exports={default:n(196),__esModule:!0}},function(t,e,n){n(197),t.exports=n(6).Object.assign},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(198)})},function(t,e,n){"use strict";var r=n(18),i=n(49),o=n(98),s=n(61),a=n(38),c=n(93),l=Object.assign;t.exports=!l||n(35)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,d=s.f;l>u;)for(var f,p=c(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;g>v;)f=m[v++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:l},function(t,e,n){n(200),t.exports=n(6).Object.keys},function(t,e,n){var r=n(38),i=n(49);n(132)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(202);var r=n(6).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(18),"Object",{defineProperty:n(19).f})},function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}n.r(e),n.d(e,"NavigationFailureType",(function(){return yt})),n.d(e,"RouterLink",(function(){return Z})),n.d(e,"RouterView",(function(){return x})),n.d(e,"START_LOCATION",(function(){return m})),n.d(e,"default",(function(){return Vt})),n.d(e,"isNavigationFailure",(function(){return Mt})),n.d(e,"version",(function(){return Qt}));var i=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,a=function(t){return encodeURIComponent(t).replace(i,o).replace(s,",")};function c(t){try{return decodeURIComponent(t)}catch(t){0}return t}var l=function(t){return null==t||"object"==typeof t?t:String(t)};function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return a(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(a(e)):r.push(a(e)+"="+a(t)))})),r.join("&")}return a(e)+"="+a(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=p(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:v(e,i),matched:t?g(t):[]};return n&&(s.redirectedFrom=v(n,i)),Object.freeze(s)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var m=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function v(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function y(t,e,n){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&_(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params))))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?_(o,s):String(o)===String(s)}))}function b(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var a=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[c],m=p&&p.component;return m?(p.configProps&&w(m,s,p.route,p.configProps),a(m,s,i)):a()}var g=l.matched[h],v=g&&g.components[c];if(!g||!v)return u[c]=null,a();u[c]={component:v},s.registerRouteInstance=function(t,e){var n=g.instances[c];(e&&n!==t||!e&&n===t)&&(g.instances[c]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){g.instances[c]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[c]&&(g.instances[c]=t.componentInstance),b(l)};var y=g.props&&g.props[c];return y&&(r(u[c],{route:l,configProps:y}),w(v,s,l,y)),a(v,s,i)}};function w(t,e,n,i){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(o){o=e.props=r({},o);var s=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(s[a]=o[a],delete o[a])}}function S(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=U,E=R,T=function(t,e){return B(R(t,e),e)},I=B,P=j,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=L.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];s&&(r.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,b="?"===g||"*"===g,x=n[2]||a,w=p||m;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:w?D(w):v?".*":"[^"+k(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function O(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function B(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",N(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?O:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(A(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function N(t){return t&&t.sensitive?"":"i"}function j(t,e,n){A(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=k(a);else{var c=k(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=k(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",F(new RegExp("^"+o,N(n)),e)}function U(t,e,n){return A(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}(t,e):A(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(U(t[i],e,n).source);return F(new RegExp("(?:"+r.join("|")+")",N(n)),e)}(t,e,n):function(t,e,n){return j(R(t,n),e,n)}(t,e,n)}C.parse=E,C.compile=T,C.tokensToFunction=I,C.tokensToRegExp=P;var z=Object.create(null);function G(t,e,n){e=e||{};try{var r=z[t]||(z[t]=C.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function H(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var s=(o=r({},t)).params;return s&&"object"==typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=G(c,a,e.path)}else 0;return o}var h=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",f=h.path?S(h.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||u;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(l):l(s)}return r}(h.query,o.query,i&&i.options.parseQuery),m=o.hash||h.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:p,hash:m}}var W,V=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,c=o.href,l={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,m=null==h?"router-link-exact-active":h,g=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,_=a.redirectedFrom?f(null,H(a.redirectedFrom),null,n):a;l[v]=y(i,_,this.exactPath),l[g]=this.exact||this.exactPath?l[v]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,_);var b=l[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(s,V):n.push(s,V))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var S={class:l},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:a,navigate:x,isActive:l[g],isExactActive:l[v]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:c,"aria-current":b};else{var A=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(A){A.isStatic=!1;var C=A.data=r({},A.data);for(var E in C.on=C.on||{},C.on){var T=C.on[E];E in w&&(C.on[E]=Array.isArray(T)?T:[T])}for(var I in w)I in C.on?C.on[I].push(w[I]):C.on[I]=x;var P=A.data.attrs=r({},A.data.attrs);P.href=c,P["aria-current"]=b}else S.on=w}return t(this.tag,S,this.$slots.default)}};function Q(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var X="undefined"!=typeof window;function Y(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,s){var a=i.path,c=i.name;0;var l=i.pathToRegexpOptions||{},u=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,l.strict);"boolean"==typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var h={path:u,regex:J(u,l),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,h,o)}));n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){0;var p={path:d[f],children:i.children};t(e,n,r,p,o,h.path||"/")}c&&(r[c]||(r[c]=h))}(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function J(t,e){return C(t,[],e)}function q(t,e){var n=Y(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=H(t,n,!1,e),l=a.name;if(l){var u=o[l];if(!u)return c(null,a);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in a.params)&&h.indexOf(d)>-1&&(a.params[d]=n.params[d]);return a.path=G(u.path,a.params),c(u,a,s)}if(a.path){a.params={};for(var f=0;f<r.length;f++){var p=r[f],m=i[p];if(K(m.regex,a.path,a.params))return c(m,a,s)}}return c(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(f(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,d=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,d=a.hasOwnProperty("hash")?a.hash:d,p=a.hasOwnProperty("params")?a.params:p,l){o[l];return s({_normalized:!0,name:l,query:h,hash:d,params:p},void 0,n)}if(u){var m=function(t,e){return S(t,e.parent?e.parent.path:"/",!0)}(u,t);return s({_normalized:!0,path:G(m,p),query:h,hash:d},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:G(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,c(o,e)}return c(null,e)}(0,n,t.matchAs):f(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Y([e||t],r,i,o,n),n&&n.alias.length&&Y(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Y(t,r,i,o)}}}function K(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var $=X&&window.performance&&window.performance.now?window.performance:Date;function tt(){return $.now().toFixed(3)}var et=tt();function nt(){return et}function rt(t){return et=t}var it=Object.create(null);function ot(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=nt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function st(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=nt();if(t)return it[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){ft(t,o)})).catch((function(t){0})):ft(s,o))}))}}function at(){var t=nt();t&&(it[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){at(),t.state&&t.state.key&&rt(t.state.key)}function lt(t){return ht(t.x)||ht(t.y)}function ut(t){return{x:ht(t.x)?t.x:window.pageXOffset,y:ht(t.y)?t.y:window.pageYOffset}}function ht(t){return"number"==typeof t}var dt=/^#\d/;function ft(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=dt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ht((n=o).x)?n.x:0,y:ht(n.y)?n.y:0})}else lt(t)&&(e=ut(t))}else r&&lt(t)&&(e=ut(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var pt,mt=X&&((-1===(pt=window.navigator.userAgent).indexOf("Android 2.")&&-1===pt.indexOf("Android 4.0")||-1===pt.indexOf("Mobile Safari")||-1!==pt.indexOf("Chrome")||-1!==pt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function gt(t,e){at();var n=window.history;try{if(e){var i=r({},n.state);i.key=nt(),n.replaceState(i,"",t)}else n.pushState({key:rt(tt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function vt(t){gt(t,!0)}var yt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _t(t,e){return xt(t,e,yt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function bt(t,e){return xt(t,e,yt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function xt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var wt=["params","query","hash"];function St(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Mt(t,e){return St(t)&&t._isRouter&&(null==e||t.type===e)}function At(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Et(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var c,l=Pt((function(e){var i;((i=e).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:W.extend(e),n.components[a]=e,--o<=0&&r()})),u=Pt((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=St(t)?t:new Error(e),r(s))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),i||r()}}function Et(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t,e){this.router=t,this.base=function(t){if(!t)if(X){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Rt(t,e,n,r){var i=Et(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=W.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Lt.prototype.onError=function(t){this.errorCbs.push(t)},Lt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Mt(t,yt.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Lt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!Mt(t)&&St(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(y(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),t.hash&&st(this.router,i,t,!1),a(((s=xt(o=i,t,yt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=u.updated,d=u.deactivated,f=u.activated,p=[].concat(function(t){return Rt(t,"beforeRouteLeave",Ot,!0)}(d),this.router.beforeHooks,function(t){return Rt(t,"beforeRouteUpdate",Ot)}(h),f.map((function(t){return t.beforeEnter})),Ct(f)),m=function(e,n){if(r.pending!==t)return a(bt(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return xt(t,e,yt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):St(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(_t(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};At(p,m,(function(){At(function(t){return Rt(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),m,(function(){if(r.pending!==t)return a(bt(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){b(t)}))}))}))},Lt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Lt.prototype.setupListeners=function(){},Lt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=m,this.pending=null};var Bt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=kt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=mt&&n;r&&this.listeners.push(ot());var i=function(){var n=t.current,i=kt(t.base);t.current===m&&i===t._startLocation||t.transitionTo(i,(function(t){r&&st(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){vt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(kt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?gt(e):vt(e)}},e.prototype.getCurrentLocation=function(){return kt(this.base)},e}(Lt);function kt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(M(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Dt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=kt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(ot());var r=function(){var e=t.current;Ft()&&t.transitionTo(Nt(),(function(r){n&&st(t.router,r,e,!0),mt||zt(r.fullPath)}))},i=mt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ut(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){zt(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Nt()!==e&&(t?Ut(e):zt(e))},e.prototype.getCurrentLocation=function(){return Nt()},e}(Lt);function Ft(){var t=Nt();return"/"===t.charAt(0)||(zt("/"+t),!1)}function Nt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function jt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ut(t){mt?gt(jt(t)):window.location.hash=t}function zt(t){mt?vt(jt(t)):window.location.replace(jt(t))}var Gt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Mt(t,yt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Lt),Ht=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),X||(e="abstract"),this.mode=e,e){case"history":this.history=new Bt(this,t.base);break;case"hash":this.history=new Dt(this,t.base,this.fallback);break;case"abstract":this.history=new Gt(this,t.base);break;default:0}},Wt={currentRoute:{configurable:!0}};Ht.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Wt.currentRoute.get=function(){return this.history&&this.history.current},Ht.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Bt||n instanceof Dt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;mt&&i&&"fullPath"in t&&st(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ht.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Ht.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Ht.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Ht.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ht.prototype.onError=function(t){this.history.onError(t)},Ht.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ht.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ht.prototype.go=function(t){this.history.go(t)},Ht.prototype.back=function(){this.go(-1)},Ht.prototype.forward=function(){this.go(1)},Ht.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ht.prototype.resolve=function(t,e,n){var r=H(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ht.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ht.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Ht.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ht.prototype,Wt);var Vt=Ht;function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ht.install=function t(e){if(!t.installed||W!==e){t.installed=!0,W=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",x),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ht.version="3.6.5",Ht.isNavigationFailure=Mt,Ht.NavigationFailureType=yt,Ht.START_LOCATION=m,X&&window.Vue&&window.Vue.use(Ht);var Qt="3.6.5"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkRouter=e.routerInit=void 0;var r=c(n(13)),i=c(n(205)),o=c(n(302)),s=c(n(327)),a=c(n(185));function c(t){return t&&t.__esModule?t:{default:t}}e.routerInit=function(t,e){var n=t.prototype.push,r=t.prototype.replace;t.prototype.push=function(t,e,r){return e||r?n.call(this,t,e,r):n.call(this,t).catch((function(t){return t}))},t.prototype.replace=function(t,e,n){return e||n?r.call(this,t,e,n):r.call(this,t).catch((function(t){return t}))};var i=l(t,e);return u(i),i};var l=e.pkRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[{path:"/404",component:i.default},{path:"/noAllow",component:o.default},{path:"/rkWebCoreSetting",component:a.default},{path:"/refresh",component:s.default,hidden:!0}],c=function(){return new t((0,r.default)({},e,{mode:"history",routes:n,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}))},l=c(),u=c();return l.matcher=u.matcher,l},u=function(t){t.onError((function(e){console.log("\n *************************ROUTER ERROR BEGIN**********************************\n\n "+e+"\n\n *************************ROUTER ERROR FINAL**********************************\n ");var n=e.message.match(/Loading chunk (\w)+ failed/g),r=t.history.pending.fullPath;n&&t.replace(r).then()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},s=n(17);e.default={render:function(){var t=arguments[0];return t("a-result",{attrs:{status:"404",title:"404","sub-title":"Sorry, the page you visited does not exist."}},[t("a-button",{attrs:{type:"primary"},slot:"extra",on:{click:this.toHome}},["Back Home"])])},methods:{toHome:function(){(0,o.default)(this.$store.state.user.addRouters[0].children)?(0,s.logOut)():this.$router.replace({path:"/"})}}}},function(t,e,n){n(74),n(34),n(51),n(209),n(213),n(214),t.exports=n(6).Promise},function(t,e,n){"use strict";var r=n(208),i=n(137),o=n(48),s=n(37);t.exports=n(89)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r,i,o,s,a=n(56),c=n(15),l=n(26),u=n(72),h=n(9),d=n(20),f=n(57),p=n(99),m=n(62),g=n(138),v=n(139).set,y=n(211)(),_=n(100),b=n(140),x=n(212),w=n(141),S=c.TypeError,M=c.process,A=M&&M.versions,C=A&&A.v8||"",E=c.Promise,T="process"==u(M),I=function(){},P=i=_.f,L=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(16)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==C.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(i||(2==t._h&&D(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=R(n))?o.call(n,c,l):c(n)):l(r)}catch(t){u&&!s&&u.exit(),l(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){v.call(c,(function(){var e,n,r,i=t._v,o=k(t);if(o&&(e=b((function(){T?M.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=T||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){v.call(c,(function(){var e;T?M.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=R(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,l(N,r,1),l(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,O(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};L||(E=function(t){p(this,E,"Promise","_h"),f(t),r.call(this);try{t(l(N,this,1),l(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(E.prototype,{then:function(t,e){var n=P(g(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(N,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===E||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!L,{Promise:E}),n(60)(E,"Promise"),n(142)("Promise"),s=n(6).Promise,h(h.S+h.F*!L,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===s?E:this,t)}}),h(h.S+h.F*!(L&&n(131)((function(t){E.all(t).catch(I)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then((function(t){c||(c=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),i=n(139).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(59)(s);t.exports=function(){var t,e,n,l=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){i.call(r,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(15).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),i=n(6),o=n(15),s=n(138),a=n(141);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(9),i=n(100),o=n(140);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";(function(t){
139
+ /**
140
+ * @fileOverview
141
+ * @name asn1-1.0.js
142
+ * @author Kenji Urushima kenji.urushima@gmail.com
143
+ * @version asn1 1.0.13 (2017-Jun-02)
144
+ * @since jsrsasign 2.1
145
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
146
+ */
147
+ var Q={};void 0!==Q.asn1&&Q.asn1||(Q.asn1={}),Q.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new b(r,16).xor(t).add(b.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Q.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,c=e.DEREnumerated,l=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var x=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new n(t[x]);if("int"==x)return new r(t[x]);if("bitstr"==x)return new i(t[x]);if("octstr"==x)return new o(t[x]);if("null"==x)return new s(t[x]);if("oid"==x)return new a(t[x]);if("enum"==x)return new c(t[x]);if("utf8str"==x)return new l(t[x]);if("numstr"==x)return new u(t[x]);if("prnstr"==x)return new h(t[x]);if("telstr"==x)return new d(t[x]);if("ia5str"==x)return new f(t[x]);if("utctime"==x)return new p(t[x]);if("gentime"==x)return new m(t[x]);if("seq"==x){for(var w=t[x],S=[],M=0;M<w.length;M++){var A=_(w[M]);S.push(A)}return new g({array:S})}if("set"==x){for(w=t[x],S=[],M=0;M<w.length;M++){A=_(w[M]);S.push(A)}return new v({array:S})}if("tag"==x){var C=t[x];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var E=_(C[2]);return new y({tag:C[0],explicit:C[1],obj:E})}var T={};if(void 0!==C.explicit&&(T.explicit=C.explicit),void 0!==C.tag&&(T.tag=C.tag),void 0===C.obj)throw"obj shall be specified for 'tag'.";return T.obj=_(C.obj),new y(T)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Q.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new b(r,2).toString(10),r=""}return e},Q.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},Q.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Q.asn1.DERAbstractString=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Z.lang.extend(Q.asn1.DERAbstractString,Q.asn1.ASN1Object),Q.asn1.DERAbstractTime=function(t){Q.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var c=r(String(a),3);s=s+"."+(c=c.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var s=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Z.lang.extend(Q.asn1.DERAbstractTime,Q.asn1.ASN1Object),Q.asn1.DERAbstractStructured=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Z.lang.extend(Q.asn1.DERAbstractStructured,Q.asn1.ASN1Object),Q.asn1.DERBoolean=function(){Q.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Z.lang.extend(Q.asn1.DERBoolean,Q.asn1.ASN1Object),Q.asn1.DERInteger=function(t){Q.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DERInteger,Q.asn1.ASN1Object),Q.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Q.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Z.lang.extend(Q.asn1.DERBitString,Q.asn1.ASN1Object),Q.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Q.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Z.lang.extend(Q.asn1.DEROctetString,Q.asn1.DERAbstractString),Q.asn1.DERNull=function(){Q.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Z.lang.extend(Q.asn1.DERNull,Q.asn1.ASN1Object),Q.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};Q.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Q.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Z.lang.extend(Q.asn1.DERObjectIdentifier,Q.asn1.ASN1Object),Q.asn1.DEREnumerated=function(t){Q.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DEREnumerated,Q.asn1.ASN1Object),Q.asn1.DERUTF8String=function(t){Q.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Z.lang.extend(Q.asn1.DERUTF8String,Q.asn1.DERAbstractString),Q.asn1.DERNumericString=function(t){Q.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Z.lang.extend(Q.asn1.DERNumericString,Q.asn1.DERAbstractString),Q.asn1.DERPrintableString=function(t){Q.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Z.lang.extend(Q.asn1.DERPrintableString,Q.asn1.DERAbstractString),Q.asn1.DERTeletexString=function(t){Q.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Z.lang.extend(Q.asn1.DERTeletexString,Q.asn1.DERAbstractString),Q.asn1.DERIA5String=function(t){Q.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Z.lang.extend(Q.asn1.DERIA5String,Q.asn1.DERAbstractString),Q.asn1.DERUTCTime=function(t){Q.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Z.lang.extend(Q.asn1.DERUTCTime,Q.asn1.DERAbstractTime),Q.asn1.DERGeneralizedTime=function(t){Q.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Z.lang.extend(Q.asn1.DERGeneralizedTime,Q.asn1.DERAbstractTime),Q.asn1.DERSequence=function(t){Q.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Z.lang.extend(Q.asn1.DERSequence,Q.asn1.DERAbstractStructured),Q.asn1.DERSet=function(t){Q.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Z.lang.extend(Q.asn1.DERSet,Q.asn1.DERAbstractStructured),Q.asn1.DERTaggedObject=function(t){Q.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Z.lang.extend(Q.asn1.DERTaggedObject,Q.asn1.ASN1Object);var X,Y=(X=function(t,e){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),J=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Y(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?s(t):a.unarmor(t),i=m.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=C(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=C(o,16);var c=i.sub[4].getHexStringValue();this.p=C(c,16);var l=i.sub[5].getHexStringValue();this.q=C(l,16);var u=i.sub[6].getHexStringValue();this.dmp1=C(u,16);var h=i.sub[7].getHexStringValue();this.dmq1=C(h,16);var d=i.sub[8].getHexStringValue();this.coeff=C(d,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var f=i.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=C(e,16),n=f.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=C(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Q.asn1.DERInteger({int:0}),new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e}),new Q.asn1.DERInteger({bigint:this.d}),new Q.asn1.DERInteger({bigint:this.p}),new Q.asn1.DERInteger({bigint:this.q}),new Q.asn1.DERInteger({bigint:this.dmp1}),new Q.asn1.DERInteger({bigint:this.dmq1}),new Q.asn1.DERInteger({bigint:this.coeff})]};return new Q.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Object(o.b)(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Q.asn1.DERSequence({array:[new Q.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Q.asn1.DERNull]}),e=new Q.asn1.DERSequence({array:[new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e})]}),n=new Q.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Q.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Object(o.b)(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(W)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:e.prefixCls+"-app-setting-layout"},[r("a-layout-header",{class:e.headerClasses},[r("div",{class:e.prefixCls+"-header-"+e.theme+"-inner "+e.prefixCls+"-header-inner"},[r("div",{class:e.prefixCls+"-app-setting-header-title"},[e._v("个人设置")]),e._v(" "),r("div",{ref:"rightDom",class:e.prefixCls+"-header-right"},[r("div",{class:e.prefixCls+"-header-right-nav"}),e._v(" "),r("div",{class:e.prefixCls+"-header-right-extra"},[r("HeaderInfoGroup",{attrs:{theme:e.theme}}),e._v(" "),r("AppUser",{attrs:{theme:e.theme,userName:e.userNameModify,userAvatar:e.userAvatar}})],1)])])]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-box"},[r("div",{class:e.prefixCls+"-app-setting-tips"},[r("div",{class:e.prefixCls+"-app-setting-tips-left",on:{click:e.goBack}},[r("a-icon",{attrs:{type:"left"}}),e._v("\n 返回\n ")],1),e._v(" "),e.tipsState?r("div",{class:e.prefixCls+"-app-setting-tips-right"},[r("span",[r("a-icon",{staticClass:"tips-icon",attrs:{type:"info-circle",theme:"filled"}}),e._v("\n 你好!您已进入个人设置模块,修改密码将改变全局系统密码\n ")],1),e._v(" "),r("span",[r("a-icon",{staticClass:"close-icon",attrs:{type:"close"},on:{click:function(){return e.tipsState=!1}}})],1)]):e._e()]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting"},[r("div",{class:e.prefixCls+"-app-setting-left"},e._l(e.settingMes,(function(t,n){return r("div",{key:n,class:e.prefixCls+"-app-setting-left-item "+(n===e.settingMes.length-1?"":"mb40")+" "+(e.defaultActive===n?"active":""),on:{click:function(t){return e.hanldeSelect(n)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right"},[0===e.defaultActive?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("个人资料")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("名称")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"nameForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"name"}},[r("a-input",{attrs:{disabled:e.editNameState},model:{value:e.userNameMes.name,callback:function(t){e.$set(e.userNameMes,"name",t)},expression:"userNameMes.name"}})],1)],1),e._v(" "),e.editNameState?r("a-button",{on:{click:function(){e.editNameState=!1}}},[e._v("\n 编辑\n ")]):r("a-button",{attrs:{type:"primary"},on:{click:e.handleEditName}},[e._v(" 保存 ")])],1)]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定手机号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v(e._s(e.phoneMes))]),e._v(" "),1===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",[r("a-form-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1)],1),e._v(" "),r("a-button",{on:{click:function(t){e.delPhone(2)}}},[e._v("更换手机号")])],1):e._e(),e._v(" "),2===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"verCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"verCode"}},[r("a-input",{model:{value:e.userNameMes.verCode,callback:function(t){e.$set(e.userNameMes,"verCode",t)},expression:"userNameMes.verCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(3)}}},[e._v(" 下一步 ")])],1)]):e._e(),e._v(" "),3===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newPhoneForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"newPhone"}},[r("a-input",{model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(4)}}},[e._v(" 下一步 ")])],1):e._e(),e._v(" "),4===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newVerCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newVerCode"}},[r("a-input",{model:{value:e.userNameMes.newVerCode,callback:function(t){e.$set(e.userNameMes,"newVerCode",t)},expression:"userNameMes.newVerCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendNewPhoneVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:e.verPhone}},[e._v(" 绑定 ")]),e._v(" "),r("a-button",{on:{click:e.backStep}},[e._v("返回")])],1)]):e._e()]),e._v(" "),e.userMes.wechatSwitch||e.userMes.wechatgzhSwitch?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定第三方账号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("\n 绑定第三方帐号,可以直接扫码登录系统。如果当前帐号在对应站点处于登录状态,需退出登录后,才能重新绑定。\n ")]),e._v(" "),e.userMes.wechatSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除微信绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatSwitch&&!e.wxUnionid||e.userMes.wechatgzhSwitch&&!e.wxUnionid?r("a-space",{attrs:{direction:"vertical"}},[e.userMes.wechatSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addWechat}},[e._v("微信绑定")])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addPublicWechat}},[e._v("绑定")])],1):e._e(),e._v(" "),r("a-modal",{attrs:{visible:e.visible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handleWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"},attrs:{id:"qrcode-container-app-setting"}})]),e._v(" "),r("a-modal",{attrs:{visible:e.publicVisible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handlePublicWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"}},[r("img",{attrs:{src:e.wxInfo.qrcodeUrl}})])])],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),1===e.defaultActive?r("div",{class:e.prefixCls+"-app-setting-right-password"},[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("修改密码")]),e._v(" "),r("a-form-model",{ref:"forgetForm",attrs:{model:e.passwordForm,rules:e.passWordRule}},[r("a-form-model-item",{attrs:{prop:"passWord"}},[r("a-input-password",{attrs:{placeholder:"当前密码",type:"password"},model:{value:e.passwordForm.passWord,callback:function(t){e.$set(e.passwordForm,"passWord",t)},expression:"passwordForm.passWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newPassWord"}},[r("a-input-password",{attrs:{placeholder:"新密码",type:"password"},model:{value:e.passwordForm.newPassWord,callback:function(t){e.$set(e.passwordForm,"newPassWord",t)},expression:"passwordForm.newPassWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"repeatPassWord"}},[r("a-input-password",{attrs:{placeholder:"确认新密码",type:"password"},model:{value:e.passwordForm.repeatPassWord,callback:function(t){e.$set(e.passwordForm,"repeatPassWord",t)},expression:"passwordForm.repeatPassWord"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:e.verPas}},[e._v(" 保存 ")])],1):e._e()])])]),e._v(" "),r("a-modal",{attrs:{visible:e.wechatModel,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.delWeChat,cancel:function(){e.wechatModel=!1}}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示")],1),e._v(" "),r("div",{staticClass:"modal-item"},[e._v("您将解绑微信账号,解除后无法使用此微信号登录")])]),e._v(" "),r("a-modal",{attrs:{visible:e.reloadState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:function(t){return e.delPhone(1)},cancel:function(){e.reloadState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改绑定手机号,确定需要重新登录,是否继续?")])],1),e._v(" "),r("a-modal",{attrs:{visible:e.reloadPasState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.savePass,cancel:function(){e.reloadPasState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改密码,确定需要重新登录,是否继续?")])],1)],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t._v(" "),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},i=[]},function(t,e,n){"use strict";n.r(e);var r=n(120),i=n(80);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThreeLayer=e.BaseObject=e.three=e.maptalks=e.Loading=e.amapLayer=e.getCache=e.setCache=e.IepNav=e.AppNav=e.Sidebar=e.HeaderInfoGroup=e.AppExternal=e.AppLogo=e.iamGoToPage=e.microApp=e.AppUser=e.RkVersionList=e.BlockView=e.appTrack=e.frameInterface=e.Request=e.GMap=e.AppLayout=e.install=e.toType=void 0;var r=J(n(69)),i=J(n(13)),o=J(n(23)),s=J(n(39)),a=J(n(40)),c=J(n(4)),l=J(n(134)),u=J(n(50)),h=J(n(135)),d=n(136),f=J(n(203)),p=n(204),m=n(342),g=J(m),v=n(344),y=n(17),_=J(y),b=n(378),x=n(43),w=J(n(116)),S=J(n(379)),M=J(n(384)),A=J(n(385)),C=J(n(386)),E=J(n(387)),T=J(n(78)),I=J(n(182)),P=J(n(179));n(388);var L=n(115),R=J(L),O=n(407),B=J(O),k=J(n(184)),D=J(n(408)),F=J(n(409)),N=J(n(410)),j=J(n(22)),U=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(12)),z=J(n(55)),G=J(n(183)),H=J(n(411)),W=J(n(414)),V=n(415),Z=n(65),Q=n(8),X=n(5),Y=J(n(164));function J(t){return t&&t.__esModule?t:{default:t}}var q=e.toType=function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},K={appId:"rk-web-core",loadView:void 0,store:{},filters:[],vueConfig:{},authToken:void 0,svgFile:"https://at.alicdn.com/t/font_614860_f0motpq03e.js",isNeedMapTalks:!1,mapOptions:{},routerOptions:{},oauthType:"iam",microOptions:{},extension:!1,axiosAuthKey:void 0,depositRouter:!0,routesWhiteListFirstIsRedirect:!1,requestLoading:!1,iamJumpIsFullPath:!1,routes:[],routesWhiteList:[],requestError:function(){},routerTrusteeship:!0,dynamicStructRouter:function(t,e,n,r,i){},requestResponseDataFunc:null,requestRequestDataFunc:null},$=function(){function t(e,n){(0,s.default)(this,t),e&&n&&(this.vueInstance=e,this.basicRouter=f.default,this.initOptions(n))}return(0,a.default)(t,[{key:"initOptions",value:function(t){var e=(0,o.default)(K);this.basicOptions=(0,h.default)((0,x.mergeProps)(K,t),e),window.__RK_WEB_CORE_APPID__=this.basicOptions.appId,window.__RK_WEB_CORE_AXIOS_AUTH_KEY=this.basicOptions.axiosAuthKey,this.storeInstance=this.basicOptions.store,this.useInstance(),this.filterInstance(),this.vueConfigPick()}},{key:"getRequestInstance",value:function(){return _.default}},{key:"useInstance",value:function(){var t=this;if(this.vueInstance.use(this.basicRouter),this.vueInstance.use(D.default),this.storeInstance.registerModule("user",g.default),this.routerInstance=(0,p.routerInit)(this.basicRouter,this.basicOptions.routerOptions),this.vueInstance.prototype.$isExtension=this.basicOptions.extension,this.vueInstance.prototype.$getDb=G.default.getLocalRecord,window.$requestError=this.basicOptions.requestError,window.$requestLoading=this.basicOptions.requestLoading,window.$requestResponseDataFunc=this.basicOptions.requestResponseDataFunc,window.$requestRequestDataFunc=this.basicOptions.requestRequestDataFunc,this.vueInstance.prototype.$saveDb=G.default.saveIndexDb,this.vueInstance.prototype.$logout=y.logOut,this.vueInstance.prototype.$authorize=y.authorize,this.vueInstance.prototype.$iamGoToPage=x.iamGoToPage,this.vueInstance.prototype.$treeRouter=V.treeRouter,this.vueInstance.prototype.$dynamicChangeRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"replace",n=j.default.parse(window.location.search.replace("?",""));if("object"===q(t)){var r=j.default.stringify((0,i.default)(n,t)),o=window.location,s=o.origin,a=o.pathname,c=s+a;"replace"===e?window.history.replaceState("",document.title,c+"?"+r):window.history.pushState("",document.title,c+"?"+r)}},this.vueInstance.prototype.$clearDynamicRouteParams=function(){var t=window.location,e=t.origin+t.pathname;window.history.replaceState("",document.title,e)},this.vueInstance.prototype.$getDynamicRouteParams=function(){return j.default.parse(window.location.search.replace("?",""))},this.tempPkRouter=(0,p.pkRouter)(this.basicRouter,this.basicOptions.routerOptions),!(0,c.default)(this.basicOptions.routesWhiteList)){var e=this.basicOptions.routesWhiteList.map((function(e){return{path:e,component:t.basicOptions.loadView?t.basicOptions.loadView(e):(0,x.loadView)(e,t.basicOptions.routerPathPrefix,t.basicOptions.routerContext)}}));this.tempPkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(e)))}this.vueInstance.prototype.$pkRouter=this.tempPkRouter,this.vueInstance.prototype.$basicOptions=this.basicOptions;var n=[];if(window.__MICRO_APP_ENVIRONMENT__?d.version.includes("0.13")&&(n=X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST)):n=d.version.includes("0.13")&&X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST),!(0,c.default)(n))if(this.storeInstance.commit("user/SET_MENU_LIST",n),this.basicOptions.routerTrusteeship)(0,Z.setAsyncRoutes)(this.routerInstance,this.storeInstance,n,p.pkRouter,this.basicOptions);else if((0,u.default)(this.basicOptions.dynamicStructRouter)){var o=this.basicOptions.dynamicStructRouter((0,Z.businessSystemToTree)(n));if(!o&&!(0,l.default)(o))return console.error("Routing menu construct build failed");p.pkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(o),[x.redirectRouter,x.noAllowRouter])),this.storeInstance.commit("user/SET_ROUTERS",o),this.storeInstance.commit("user/SET_APP_ROUTERS",o)}else console.error("basicOptions.dynamicStructRouter must is a function");(0,v.registerPermission)(this,this.tempPkRouter),this.basicOptions.isNeedMapTalks&&this.loadAMap()}},{key:"loadAMap",value:function(){var t=this;this.routerInstance.onReady((function(){(0,R.default)((0,x.mergeProps)({svgFile:t.basicOptions.svgFile,zoom:9.6},t.basicOptions.mapOptions))}))}},{key:"filterInstance",value:function(){var t=this;(0,o.default)(this.basicOptions.filters).forEach((function(e){t.vueInstance.filter(e,t.basicOptions.filters[e])}))}},{key:"vueConfigPick",value:function(){var t=this;(0,o.default)(this.basicOptions.vueConfig).forEach((function(e){t.vueInstance.config[e]=t.basicOptions.vueConfig[e]}))}},{key:"mount",value:function(){return(0,N.default)("RK-WEB-CORE",d.version),{version:d.version,router:this.routerInstance,store:this.storeInstance,resetRouter:(0,p.pkRouter)(this.basicRouter),request:this.getRequestInstance(),axios:w.default,vueInstance:this.vueInstance,bootstrap:(0,b.noLogin)(this.routerInstance,this.basicOptions.authToken),action:D.default,utils:(0,F.default)(this.storeInstance,this.routerInstance,this.vueInstance)}}},{key:"loadMicro",value:function(){return{micro:B.default,microOne:O.microOne,microTwo:O.microTwo,microThree:O.microThree}}}]),t}(),tt=function(t){t.use(S.default),t.use(M.default),t.use(H.default),t.use(A.default),t.use(C.default),t.use(E.default),t.use(I.default),t.use(P.default)};"undefined"!=typeof window&&window.Vue&&tt(window.Vue),S.default.install=function(t){t.component(S.default.name,S.default)},M.default.install=function(t){t.component("AppUser",M.default)},H.default.install=function(t){t.component(H.default.name,H.default)},A.default.install=function(t){t.component("AppLogo",A.default)},C.default.install=function(t){t.component("AppExternal",C.default)},T.default.install=function(t){t.component("Sidebar",T.default)},E.default.install=function(t){t.component("HeaderInfoGroup",E.default)},I.default.install=function(t){t.component("AppNav",I.default)},P.default.install=function(t){t.component("IepNav",P.default)};e.install=tt,e.AppLayout=S.default,e.GMap=L.GMap,e.Request=_.default,e.frameInterface=U,e.appTrack=function(t,e){return(0,z.default)(t,e,null,!1)},e.BlockView=W.default,e.RkVersionList=H.default,e.AppUser=M.default,e.microApp=k.default,e.iamGoToPage=x.iamGoToPage,e.AppLogo=A.default,e.AppExternal=C.default,e.HeaderInfoGroup=E.default,e.Sidebar=T.default,e.AppNav=I.default,e.IepNav=P.default,e.setCache=Q.setCache,e.getCache=Q.getCache,e.amapLayer=L.amapLayer,e.Loading=Y.default,e.maptalks=L.maptalks,e.three=L.three,e.BaseObject=L.BaseObject,e.ThreeLayer=L.ThreeLayer,e.default=function(t,e){return new $(t,e)}},function(t,e,n){t.exports={default:n(187),__esModule:!0}},function(t,e,n){t.exports=!n(18)&&!n(35)((function(){return 7!=Object.defineProperty(n(90)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(27)},function(t,e,n){var r=n(36),i=n(37),o=n(191)(!1),s=n(94)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36),i=n(38),o=n(94)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(24);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(48),i=n(16)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(16)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){var r=n(9),i=n(6),o=n(35);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},function(t,e,n){t.exports={default:n(201),__esModule:!0}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();function o(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var a=Object.prototype,c=a.hasOwnProperty,l=a.toString,u=i.Symbol,h=a.propertyIsEnumerable,d=u?u.isConcatSpreadable:void 0,f=Math.max;function p(t){return g(t)||function(t){return function(t){return v(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}(t)}(t)&&c.call(t,"callee")&&(!h.call(t,"callee")||"[object Arguments]"==l.call(t))}(t)||!!(d&&t&&t[d])}function m(t){if("string"==typeof t||function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==l.call(t)}(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var g=Array.isArray;function v(t){return!!t&&"object"==typeof t}var y,_,b=(y=function(t,e){return null==t?{}:function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=t[s];n(a,s)&&(o[s]=a)}return o}(t=Object(t),e,(function(e,n){return n in t}))}(t,function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=p),o||(o=[]);++a<c;){var l=e[a];n>0&&r(l)?n>1?t(l,n-1,r,i,o):s(o,l):i||(o[o.length]=l)}return o}(e,1),m))},_=f(void 0===_?y.length-1:_,0),function(){for(var t=arguments,e=-1,n=f(t.length-_,0),r=Array(n);++e<n;)r[e]=t[_+e];e=-1;for(var i=Array(_+1);++e<_;)i[e]=t[e];return i[_]=r,o(y,this,i)});t.exports=b}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.version="0.15.5"},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(24),i=n(57),o=n(16)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(26),a=n(210),c=n(127),l=n(90),u=n(15),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},f=function(t){delete v[t]},"process"==n(59)(h)?r=function(t){h.nextTick(s(y,t,1))}:m&&m.now?r=function(t){m.now(s(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(24),i=n(20),o=n(100);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(15),i=n(6),o=n(19),s=n(18),a=n(16)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(42)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){"use strict";var r=n(42)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},function(t,e,n){"use strict";var r=n(103),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:s,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},function(t,e,n){"use strict";var r=n(19).f,i=n(92),o=n(101),s=n(26),a=n(99),c=n(62),l=n(89),u=n(137),h=n(142),d=n(18),f=n(104).fastKey,p=n(105),m=d?"_s":"size",g=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){a(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&c(r,n,t[l],t)}));return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){p(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(15),i=n(9),o=n(104),s=n(35),a=n(27),c=n(101),l=n(62),u=n(99),h=n(20),d=n(60),f=n(19).f,p=n(236)(0),m=n(18);t.exports=function(t,e,n,g,v,y){var _=r[t],b=_,x=v?"set":"add",w=b&&b.prototype,S={};return m&&"function"==typeof b&&(y||w.forEach&&!s((function(){(new b).entries().next()})))?(b=e((function(e,n){u(e,b,t,"_c"),e._c=new _,null!=n&&l(n,v,e[x],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||a(b.prototype,t,(function(n,r){if(u(this,b,t),!e&&y&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i}))})),y||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=g.getConstructor(e,t,v,x),c(b.prototype,n),o.NEED=!0),d(b,t),S[t]=b,i(i.G+i.W+i.F,S),y||g.setStrong(b,t,v),b}},function(t,e,n){var r=n(59);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(72),i=n(240);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(9);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(9),i=n(57),o=n(26),s=n(62);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),null==t?new this:(n=[],e?(r=0,a=o(c,arguments[2],2),s(t,!1,(function(t){n.push(a(t,r++))}))):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(52),i=r.slice,o=r.pluck,s=r.each,a=r.bind,c=r.create,l=r.isList,u=r.isFunction,h=r.isObject;t.exports={createStore:f};var d={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return f.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return f(this.storage,this.plugins,t)}};function f(t,e,n){n||(n=""),t&&!l(t)&&(t=[t]),e&&!l(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",f=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=c({_namespacePrefix:r,_namespaceRegexp:f,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return s(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var a=[o].concat(e);return t.apply(r,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(l(t))s(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!u(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!h(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,r){if(!u(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d,{plugins:[]});return p.raw={},s(p,(function(t,e){u(t)&&(p.raw[e]=a(p,t))})),s(t,(function(t){p._addStorage(t)})),s(e,(function(t){p._addPlugin(t)})),p}},function(t,e,n){var r=n(52).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(52),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:c,clearAll:function(){a((function(t,e){c(e)}))}};var s=i.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function c(t){t&&l(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,e,n){var r=n(52).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){t.exports={default:n(251),__esModule:!0}},function(t,e,n){var r=n(18),i=n(49),o=n(37),s=n(61).f;t.exports=function(t){return function(e){for(var n,a=o(e),c=i(a),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},function(t,e,n){"use strict";e.__esModule=!0;var r=o(n(255)),i=o(n(53));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(Array.isArray(t))return t;if((0,r.default)(Object(t)))return function(t,e){var n=[],r=!0,o=!1,s=void 0;try{for(var a,c=(0,i.default)(t);!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw s}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){var n,r,i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,c=s.call(Object),l=o.toString,u=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=l.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=u(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},function(t,e,n){t.exports={default:n(258),__esModule:!0}},function(t,e,n){var r=n(126),i=n(96).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),i=(r=u).lib,o=i.WordArray,s=i.Hasher,a=r.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=0;l<80;l++){if(l<16)c[l]=0|t[e+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+a+c[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=s._createHelper(l),r.HmacSHA1=s._createHmacHelper(l),u.SHA1)},function(t,e,n){var r;t.exports=(r=n(2),n(75),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,_=s.high,b=s.low,x=a.high,w=a.low,S=u.high,M=u.low,A=h.high,C=h.low,E=d.high,T=d.low,I=f,P=p,L=m,R=g,O=v,B=y,k=_,D=b,F=x,N=w,j=S,U=M,z=A,G=C,H=E,W=T,V=0;V<80;V++){var Z,Q,X=l[V];if(V<16)Q=X.high=0|t[e+2*V],Z=X.low=0|t[e+2*V+1];else{var Y=l[V-15],J=Y.high,q=Y.low,K=(J>>>1|q<<31)^(J>>>8|q<<24)^J>>>7,$=(q>>>1|J<<31)^(q>>>8|J<<24)^(q>>>7|J<<25),tt=l[V-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[V-7],st=ot.high,at=ot.low,ct=l[V-16],lt=ct.high,ut=ct.low;Q=(Q=(Q=K+st+((Z=$+at)>>>0<$>>>0?1:0))+rt+((Z+=it)>>>0<it>>>0?1:0))+lt+((Z+=ut)>>>0<ut>>>0?1:0),X.high=Q,X.low=Z}var ht,dt=F&j^~F&z,ft=N&U^~N&G,pt=I&L^I&O^L&O,mt=P&R^P&B^R&B,gt=(I>>>28|P<<4)^(I<<30|P>>>2)^(I<<25|P>>>7),vt=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),yt=(F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9),_t=(N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9),bt=c[V],xt=bt.high,wt=bt.low,St=H+yt+((ht=W+_t)>>>0<W>>>0?1:0),Mt=vt+mt;H=z,W=G,z=j,G=U,j=F,U=N,F=k+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+xt+((ht+=wt)>>>0<wt>>>0?1:0))+Q+((ht+=Z)>>>0<Z>>>0?1:0))+((N=D+ht|0)>>>0<D>>>0?1:0)|0,k=O,D=B,O=L,B=R,L=I,R=P,I=St+(gt+pt+(Mt>>>0<vt>>>0?1:0))+((P=ht+Mt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+P,r.high=f+I+(p>>>0<P>>>0?1:0),g=i.low=g+R,i.high=m+L+(g>>>0<R>>>0?1:0),y=o.low=y+B,o.high=v+O+(y>>>0<B>>>0?1:0),b=s.low=b+D,s.high=_+k+(b>>>0<D>>>0?1:0),w=a.low=w+N,a.high=x+F+(w>>>0<N>>>0?1:0),M=u.low=M+U,u.high=S+j+(M>>>0<U>>>0?1:0),C=h.low=C+G,h.high=A+z+(C>>>0<G>>>0?1:0),T=d.low=T+W,d.high=E+H+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),r.SHA512)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(296)),i=o(n(300));function o(t){return t&&t.__esModule?t:{default:t}}e.default={install:function(t){t.use(r.default)},directive:r.default,service:i.default}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(297),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;var r=c(n(21)),i=c(n(168)),o=c(n(298)),s=c(n(299)),a=n(77);function c(t){return t&&t.__esModule?t:{default:t}}var l=1,u=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),u=(0,s.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");u>0&&(i||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(307)),i=s(n(310)),o=s(n(311));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,o.default)(t)||"[object Object]"!=(0,i.default)(t))return!1;if(null===(0,r.default)(t))return!0;for(var e=t;null!==(0,r.default)(e);)e=(0,r.default)(e);return(0,r.default)(t)===e}},function(t,e,n){t.exports={default:n(328),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WindIcon",render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1646186453304",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1115",width:"200",height:"200"},class:"rk-web-core-normal-icon"},[t("path",{attrs:{d:"M489.728 787.456a32 32 0 0 0 58.848 0L760.16 296.128a32 32 0 0 0-41.536-42.144l-200 82.368-195.584-84.064a32 32 0 0 0-42.08 41.856z","p-id":"1116"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"skin",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[t("path",{attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=u(n(25)),o=u(n(330)),s=u(n(331)),a=u(n(332)),c=u(n(333)),l=u(n(111));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Skin",props:{visible:i.default.bool.def(!1)},data:function(){return{localVisible:!1,colorList:c.default}},computed:{skin:function(){return this.$store.state.user.skin}},watch:{visible:{handler:function(t){this.localVisible=t},deep:!0,immediate:!0}},methods:{onClose:function(){this.$emit("close")},changeSkin:function(t){this.$store.commit("user/SET_SKIN",{style:this.skin.style===t?"":t,color:this.skin.color}),this.onClose()},changeColor:function(t){document.documentElement.style.setProperty("--antd-wave-shadow-color",t),document.documentElement.style.setProperty("--antd-wave-shadow-color-o",l.default.formatColor(t,.1)),this.$store.commit("user/SET_SKIN",{color:t,style:this.skin.style}),this.onClose()}},render:function(){var t=this,e=arguments[0],n={props:{wrapClassName:r.prefixCls+"-drawer",title:"",placement:"right",closable:!1,visible:this.localVisible},on:{close:function(){return t.onClose()}}},i=this.colorList.map((function(n){return e("a-tooltip",[e("template",{slot:"title"},[n.key]),e("div",{class:[r.prefixCls+"-skin-color-item",t.skin.color===n.color?r.prefixCls+"-skin-active":null],on:{click:function(){return t.changeColor(n.color)}}},[e("span",{style:{backgroundColor:n.color}}),t.skin.color===n.color?e("div",{class:r.prefixCls+"-skin-color-mask"},[e("a-icon",{attrs:{type:"check"}})]):null])])}));return e("a-drawer",n,[e("div",{class:"theme"},[e(o.default,{attrs:{title:"主题风格设置",closable:!0},on:{close:function(){return t.onClose()}}},[e("div",{class:r.prefixCls+"-skin-style"},[e("div",{on:{click:function(){return t.changeSkin("dark")}},class:[r.prefixCls+"-skin-style-item","dark"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(s.default),"dark"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["暗色"])]),e("div",{on:{click:function(){return t.changeSkin("light")}},class:[r.prefixCls+"-skin-style-item","light"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(a.default),"light"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["亮色"])])])]),e(o.default,{attrs:{title:"系统主色设置"}},[e("div",{class:r.prefixCls+"-skin-color"},[i])])])])}}},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(14)),i=n(3),o=m(n(113)),s=m(n(4)),a=m(n(114)),c=m(n(67)),l=m(n(178)),u=m(n(68)),h=m(n(55)),d=m(n(111)),f=m(n(179)),p=m(n(182));function m(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapAndBasicHeader",inject:["slotsList","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1},navList:{type:Array,default:function(){return[]}}},data:function(){return{currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},computed:{skin:function(){return this.$store.state.user.skin.color}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=o>-1?o:0,t.$store.commit("user/SET_NAV_INDEX",t.currentIndex)}}),{immediate:!0,deep:!0})},watch:{skin:{handler:function(t){this.propsList.nav&&this.renderNavActive(t,d.default.toNum3(t))},immediate:!0}},methods:{setChildrenWidthAndResize:function(){if(this.navList&&!(0,s.default)(this.navList)){var t=this.navList.filter((function(t){return 1===t.type}));this.menuItemSizes=t,this.overflowedItems=[]}},onResize:function(t){var e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var i=this.$store.state.user.skin;i&&!(0,s.default)(i.color)?this.renderNavActive(i.color,d.default.toNum3(i.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,s.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){l.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,o){var s="dark"!==t.theme?(0,r.default)([i.prefixCls+"-header-right-nav-item",n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,r.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,o)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,h.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){n.propsList.nav&&l.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,h.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.theme,n=this.fixed,s=this.slotsList,l=this.propsList,h=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-"+e,i.prefixCls+"-header-"+l.navVersion+"-"+e,i.prefixCls+"-header-"+l.navVersion,i.prefixCls+"-header-"+l.navVersion+"-"+l.navTheme,i.prefixCls+"-header-"+l.navTheme,n?i.prefixCls+"-header-fixed":"",i.prefixCls+"-header-inner-"+this.currentIndex]);return t("a-layout-header",{class:h},[t("div",{class:[i.prefixCls+"-header-"+e+"-inner",i.prefixCls+"-header-inner"]},[s.logo?s.logo:t(o.default,{attrs:{prefix:"basic",theme:e}}),s.prefix,t("div",{class:i.prefixCls+"-header-right",ref:"rightDom"},[l.nav?"v1"===l.navVersion?t(f.default,{attrs:{theme:e}}):t(p.default,{attrs:{theme:e,mode:l.navTheme}}):null,l.right?t("div",{class:i.prefixCls+"-header-right-extra"},[s.header,t(a.default,{attrs:{theme:e}}),s.extends,t(c.default,{attrs:{theme:e}}),s.user?s.user:t(u.default,{attrs:{theme:e}})]):null]),s.suffix]),this.slotsList.headerBottom])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=u(n(30)),o=u(n(31)),s=n(8),a=n(5),c=n(12),l=u(n(14));function u(t){return t&&t.__esModule?t:{default:t}}var h,d="data:image/webp;base64,UklGRk4KAABXRUJQVlA4WAoAAAAwAAAAPwAAPwAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANkFMUEhMAwAADaAtybZp26rW51rHuLZt27Zt27Zt27Zt27bv4eY11+j9YWnvOX4gIiaA9iUcTTHTDAvNM8vk1QHwV8dnn37y9dc9jsmDflc4E6+58tSJ5kMmm2vueSatjHv20Y6Qop+MxHSbb0NAuKQ6IsImnHHO1Ra+79ofMbw/LMW8uyxMBCEzmkrCEVPsvsZH178u8z6TasP2XwPcJNo2IHyadTd56aJei+gbkVY8knAq9LXkMeKwJc54xoi+MPfDlyMVRn8akZY49vUz3Ly94v8JziC8Sn/LfNgxExzVY96O/T/VebgZJbRIe6584Cjz1qw2xSmkCuWU0ppbHNZh3orSROeRBlBWWVpru326Fc0UOok0gBIXac0Vjvtf0cyPxCuUuvC9hp3TzGorLY4ouTjxzUfM65QmPIhUKV0afNglPYq62Is0gNIXaZmFL6mz2kIrYWRoHP7M2+bADniRg3zElle7rDbj/GS74edfCDYlVfOwNOVSD+ATb4mRqbHPXeNYk8hGMc3CD7EaoVwIrfTcVBOR9XzdMwnlI6YZNhNeZOQTTjofoXwIzbUgImMx9yy5zTpRbpMMJfOByq0g+1Bm//0+PLeeiUIZhbq+njWzrz6cP5tQgw8WMDIVIL76YcIJQqULhQCi+HXUt5qpfCFEA436c1zXPJReNA19As+tpNK1aDwLDy8yVSiTsI43sM6793DLxO0qDO5YYWq3LLza+TRyffnhpuQZehglFDdsNEEog6j8dRNy3N559lC3DNxOx2rUX7HI4qkonVfffJ+Gbh0XHjUsVLIwPxWr1eH22LtHZ3AqSjQOzph491SUKlXv+JoWQ7WjV18lFSVKA16+D3kzwrr222nVZCpJ+ICXr8ASrbqNOmr7VRyVw6svX4XVaN2LH/Zfe9dwK4Grcv39WI12k/UcPslxg5Opn8KrfsoorEb7Lj/9reMWDcf6wbHinROREn0Z2ONnLXn00HCpjyIq/Hvy65gHfRthvZc8t+W6U0YEWBsRYbLOR69FVqPv3fTatV+ussfkiHBJDQI3E4y98mnDItGfjvjqlnsXW23uaScoaCqM3376/Jk3kJTo71ARHQ8/0z1kstnnnnuCISL+6P36869++qcAw4O2AVZQOCC8BAAA0BUAnQEqQABAAD5tLJJGpCIhoTAUCwCADYlsALElQX4Bxr0MfC+aBS/8jsxxs4Vvie+aT7APMh50e5AewtvJHlLXe7+LQSHh39GDPb9SewP+r/pAey30AP1PSO88Jm4eK/divBnLnHrz4CVEn6AxAZjff34I/VSZtrOPtclJYA9AbN52d961SZIkPoPsASAVkvDN9uDDdCn9QGtBQgHej972sJ4ZgA87s4gft5odSw1cDTkFuVIAAP7/OkF2JfyXlUqa8sMsM+cPy8TEO+WtIS+RueaS3TlAr6SNyT/4tfZoEnBzFJz3oxBBvWuXuNpy35PSR/7rhoh0m4xGhyrgqGk+YTGhqIx6dJnMP0/AonghGybbxS+bXsXUU0jdC7adMIFiaAX2SHV37RJkHsmMzcCozzVHVKL5IkRjAJ2jz2NZ3skOvfXA6Ik3OYAhwHkU4bFqp7C5OzpfS+TwA4Z0728VAU2m9uSn8vghqhi1+NIbM5MGl+7NelaUTqvMcT7NMXlH8CpkVExt/N+h11LZy5V9ypUla0IU2j4cQlfnQ+8VzGqtCgxQfxSaV3Z6iJEL8uot3FvIdXJVO0pz1eZT2GKMMDO4E4OHWr0rO5JaZaUIZ4hEACBSHzXfiGelUmyTY7sGf2APWkZs3cKmAoo5zqyWRvo8b73XHT89H76av1P5E8f3w9FFpn3y3ip+fLllYa8uWygj0CR8w8DXN7xUyWVR65gRyo/0Y//54yK/fs8xAW3WtpLgrBPj8Z1R3PaHxsoLC9hcGyiAWW3vi7ZwIex/bknwePmjwbtZkemX9qrWm6OoGs3rydXgLH8PBYZgy06DLr7t3DeMTYudDqk64DUviNPlSIw/QdBTtUu4gCNWGUN1AvNI20NKcVG8AROIBdfNw/EKl5ndo/bdzGLVh5Z/5x6B5aEa7li35K+gIFTUCRY28rbqscfWSIpOKXiOHk8sqM5F/xHcabsuPE8yEDhm3PPPD6r/M2ZJfn/28zq0t7kF0fAz/+/k/01qEldX/pr/3je/h4f/HbtG20fn7/5+P9V/8c0y1BE/9mhkOGb3Kgv4hFi8X/Zjf+qjNsAP/e+/721/qdBPqYg2KDenvxcU8fKcOEhmWP0fGru4dWmba6XnQqvj6yU/uyBXsR7ADCif7pTtpD5nfbO5AnXVP9JUKqqTINt/+4k8+bgfnN2XuUkrOGwcO3Hyw3+r/u6UT6HUIu09yWbBtmFZLqk9my7ZrKWvidcuXKeRxRrq1gpYUXIY7SXNnibsp0NGV3hTTbQb1CwIXH2XbfobV4BpWO6FFYE3EEBMnS2UoIuo+cFw5o7U0UiZu/f4kf5sGHiQey4pEi0aP7r+4Qr9rw1Fu/DZm1NBrCn/rN/YOv6rTvsuq5RuRWj5/WyF/dHtvNXAWBA8p+NgsDkhglrla4Am6BMMg6BqmOhl42xNVUv/5W6seYyqRaqYIc5Jmwjfe7wV948cc6+gzcYbRRo33W3EjCyuX8t9ZlDcb/nE9Pw9E1isHwVJSjdF0v+zRl3FQH+zNKcvK/r99LnWhQWXaowpq8WYUAWYJsjn5AphibAaFwrX7YzpngkGDwv85praR2z/EGqoiMHssNjRWwAA";e.default={name:"HeaderExtend",props:{theme:{type:String,default:"light"}},data:function(){return{projectList:[]}},computed:{currentCode:function(){return(0,s.getCache)("CLIENT_ID",s.sessionEngine)}},mounted:function(){this.getProject()},methods:{getProject:(h=(0,o.default)(i.default.mark((function t(){var e,n,r=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getByCuser)();case 2:e=t.sent,(n=e.data).forEach((function(t,e){r.currentCode===t.code&&n.unshift(n.splice(e,1)[0])})),this.projectList=n;case 6:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)}),goToPage:function(t){var e=a.localStore.get("IAM_OATH_TYPE");if(t.domain)if(t.domain.indexOf("http")>-1||t.domain.indexOf("https")>-1){var n={redirectUri:t.domain,clientId:t.code,scope:"all",state:"hello"};e&&"idp"===e&&(n=(0,r.default)(n,{oauthType:e})),(0,c.iamRedirect)(n).then((function(t){0===t.code&&window.location.replace(t.data,"_self")}))}else this.$router.push(t.domain)}},render:function(){var t=this,e=arguments[0],n=this.projectList.length?this.projectList.map((function(n){var r=(0,l.default)(["header-extend-content-footer-item",t.currentCode===n.code?"header-extend-content-footer-item-active":""]);return e("div",{class:r,on:{click:function(){return t.goToPage(n)}}},["dark"===t.theme?n.whiteIcon?e("img",{attrs:{src:n.whiteIcon,alt:""}}):e("a-avatar",{slot:"avatar"}):n.icon?e("img",{attrs:{src:n.icon,alt:""}}):e("a-avatar",{slot:"avatar"}),e("span",[n.name])])})):e("div",{class:"header-extend-content-footer-item"},[e("a-skeleton",{attrs:{avatar:!0,active:!0,paragraph:{rows:0}}})]);return e("div",{class:"header-extend"},[e("a-popover",{attrs:{trigger:"hover","arrow-point-at-center":!0,overlayClassName:"header-extend-popover app-dropdown-"+this.theme}},[e("div",{class:"header-extend-content",slot:"content"},[e("div",{class:"header-extend-content-header"},[e("img",{attrs:{src:d,alt:""}}),e("div",{class:"header-extend-content-header-title"},[e("span",["智慧环保"]),e("span",["creative"])])]),e("div",{class:"header-extend-content-footer"},[e("a-scrollbar",[e("div",{class:"header-extend-content-footer-inner"},[n])])])]),e("div",{class:"header-extend-inner"},[e("a-icon",{attrs:{type:"caret-down"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(355)),i=a(n(39)),o=a(n(40)),s=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t),this.c=Math.min,this.h=r.default,this.m=Math.max,this.n=Math.abs,this.j=.85,this.k=10,this.l=4,this.opt={},this.opt.currentIndex=1}return(0,o.default)(t,[{key:"calcAVGSpeed",value:function(t){var e=(this.l*this.j*t+this.k*(1-this.j)*t)/(this.k*this.l*20);return e=this.m(this.n(e),2.5)*this.h(e)}},{key:"getCurSpeed",value:function(t,e){return this.n(t)>this.n(this.j*e)?this.l*this.opt.avgSpeed:this.k*this.opt.avgSpeed}},{key:"_calCurve",value:function(t,e,n,r,i,o){i.bezierCurveTo(t+o,e,n-o,r,n,r)}},{key:"_initCanvas",value:function(t,e,n){var r=window.devicePixelRatio,i=t.getContext("2d");t.width=e*r,t.height=n*r,t.style.width=e+20+"px",t.style.height=n+"px",i.scale(r,r)}},{key:"resize",value:function(){this.opt.timer&&cancelAnimationFrame(this.opt.timer),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height)}},{key:"_toggle",value:function(t){return this.opt.tabWidthList&&this.opt&&this.opt.tabWidthList&&this.opt.tabWidthList.length&&(!this.opt.animating||t!==this.opt.nextIndex)&&(this.opt.animating=!0,this.opt.distance=this.opt.tabWidthList[t]-this.opt.tabWidthList[this.opt.currentIndex],this.opt.avgSpeed=this.calcAVGSpeed(this.opt.distance),this.opt.curDisX=0,this.opt.nextIndex=t),!1}},{key:"_createPattern",value:function(t){var e=document.createElement("canvas");e.width=140,e.height=63,e.style.width="140px",e.style.height="63px";var n=e.getContext("2d");n.scale(1,1),n.lineWidth=.4;for(var r=.8,i=1;30>i;i++)n.strokeStyle="RGBA(22, 120, 160, "+r+")",n.beginPath(),n.moveTo(0,3*i),n.lineTo(140,3*i),n.stroke(),n.closePath(),10<i&&(r-=.1);var o=t.getContext("2d").createPattern(e,"repeat-x");this.opt.pattern=o,e=null}},{key:"_drawHightlight",value:function(t){var e=this.opt.canvas.getContext("2d");e.clearRect(0,0,2*this.opt.width,2*this.opt.height),e.shadowColor="rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+",1)",e.shadowBlur=5,e.strokeStyle=this.opt.color,e.lineWidth=.8,e.fillStyle="none",this._draw(e,!1);var n=e.createLinearGradient(this.opt.tabWidthList[this.opt.currentIndex]-this.opt.tabWidth/2,0,this.opt.tabWidthList[this.opt.currentIndex+1]+this.opt.tabWidth/2,this.opt.height),r=t-.3,i=this.c(1,this.m(0,0+r)),o=this.c(1,this.m(0,0+r+.1)),s=this.c(1,0+r+.3),a=this.c(1,0+r+.3+.1),c=1-i;n.addColorStop(i,"rgba(0,0,0,0)"),n.addColorStop(o,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(s,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(a,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,0)"),e.lineWidth=1.5,e.strokeStyle=n,e.fillStyle=this.opt.pattern,this._draw(e,!0)}},{key:"draw",value:function(t){this._drawHightlight(t),this.opt.timer=requestAnimationFrame(function(){this.draw((t+.005)%1.6)}.bind(this))}},{key:"_draw",value:function(t,e){var n=this.opt.currentIndex,r=this.opt.tabHeight,i=.5,o=0,s=this.opt.tabWidthList[n]-(e?this.opt.tabWidth/2:0);if(t.beginPath(),t.moveTo(s,this.opt.height+10),t.lineTo(s,r+i),this.opt.animating){var a=this.getCurSpeed(this.opt.curDisX,this.opt.distance);o=this.c(this.n(this.opt.distance),this.n(this.opt.curDisX+a))*this.h(a)}if(t.lineTo(0+this.opt.tabWidthList[n]+o-20,r+i),this._calCurve(0+this.opt.tabWidthList[n]+o-20,r+i,0+this.opt.tabWidthList[n]+o+20,3,t,20),this.opt.animating){var c=this.opt.tabWidthList[this.opt.nextIndex+1]-this.opt.tabWidthList[this.opt.nextIndex];t.lineTo(0+this.opt.tabWidthList[n]+c+o-20,3),this._calCurve(0+this.opt.tabWidthList[n]+c+o-20,3,0+this.opt.tabWidthList[n]+c+o+20,r+i,t,20)}else t.lineTo(0+this.opt.tabWidthList[n+1]+o-20,3),this._calCurve(0+this.opt.tabWidthList[n+1]+o-20,3,0+this.opt.tabWidthList[n+1]+o+20,r+i,t,20);e&&(t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,r+i),t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,this.opt.height)),t.closePath(),t.stroke(),e&&t.fill(),this.opt.animating&&e&&(this.opt.curDisX=o,this.n(o)>=this.n(this.opt.distance)&&(this.opt.animating=!1,this.opt.currentIndex=this.opt.nextIndex))}},{key:"initTabs",value:function(){var t=this.opt.navItemList[this.opt.currentIndex];if(!(0,s.default)(t)){this.opt.tabHeight=t.offsetHeight,this.opt.tabWidth=t.offsetWidth,this.opt.height=.9*t.offsetHeight,this.opt.tabWidthList=[],this.opt.width=0;for(var e=[],n=0;n<this.opt.navItemList.length;n++){var r=this.opt.navItemList[n];e.push(0===n?r.offsetLeft+10:r.offsetLeft),this.opt.width+=r.offsetWidth}this.opt.tabWidthList=[].concat(e,[this.opt.navItemList[this.opt.navItemList.length-1].offsetLeft+this.opt.navItemList[this.opt.navItemList.length-1].offsetWidth-16]),this.opt.canvas.style.left="-10px"}}},{key:"drawNav",value:function(t){this.opt.canvas=t.canvas,this.opt.navItem=t.navItem,this.opt.navCount=t.navCount,this.opt.rgb=t.rgb,this.opt.color=t.color,this.opt.navWidthList=t.navWidthList,this.opt.navItemList=t.navItemList,(0,s.default)(this.opt.canvas)||(this.initTabs(),this._toggle(t.index),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0),window.addEventListener("resize",function(){this.resize()}.bind(this),!1))}}]),t}();e.default=new c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(4)),i=n(3),o=n(43),s=h(n(111)),a=h(n(178)),c=h(n(14)),l=h(n(55)),u=h(n(180));h(n(181));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"IepNav",props:{theme:{type:String,default:"dark"}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,r.default)(t.navList)&&n.length){var o=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=o[0].path;var s=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=s>-1?s:0,t.$nextTick((function(){t.onResize()}))}}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,r.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var i=Math.round(t.width/e);i>0?(this.menuItemSizes=n.slice(0,i-1),this.overflowedItems=n.slice(i-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var o=this.$store.state.user.skin;o&&!(0,r.default)(o.color)?this.renderNavActive(o.color,s.default.toNum3(o.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,r.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){a.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,r.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,r){var s="dark"!==t.theme?(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,r)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,l.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){a.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,l.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.$props,n=e.theme;e.version;return t("div",{class:[i.prefixCls+"-header-right-nav","dark"===n?i.prefixCls+"-header-dark":""],ref:"navDom"},[t("canvas",{attrs:{id:"navCanvas"},style:"position: absolute; z-index: -1"}),this.renderNav(),(0,r.default)(this.overflowedItems)?null:t(u.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(n(14)),o=a(n(359)),s=a(n(360));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Nav",props:{columns:{type:Array,default:function(){return[]}}},data:function(){return{visible:!1}},methods:{handleChange:function(t){this.visible=t},onNavClick:function(){this.visible=!1}},render:function(){var t=this,e=arguments[0],n=this.columns,a=this.visible,c=this.handleChange,l=n&&n.length?n.filter((function(t){return 1===t.type})).map((function(n,r){return e(o.default,{attrs:{index:r,title:n.meta.name,path:n.path,"data-source":n.children},on:{navClick:function(){return t.onNavClick()}}})})):null,u=(0,i.default)([r.prefixCls+"-dropdown-menu",a?r.prefixCls+"-dropdown-menu-actove":""]);return e("a-popover",{attrs:{trigger:["hover"],overlayClassName:r.prefixCls+"-dropdown"},on:{visibleChange:c}},[e("div",{class:u},[e(s.default)]),e("div",{class:r.prefixCls+"-dropdown-content",slot:"content"},[e("a-scrollbar",[e("div",{class:r.prefixCls+"-dropdown-content-inner"},[l])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(110),o=(r=i)&&r.__esModule?r:{default:r};var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(25)),i=n(3),o=u(n(361)),s=u(n(4)),a=u(n(46)),c=u(n(55)),l=u(n(180));u(n(181));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppNav",props:{mode:r.default.oneOf(["iep","park"]).def("iep"),theme:r.default.oneOf(["dark","light"]).def("dark")},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[],selectedKeys:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));if(t.currentIndex=o>-1?o:0,r.length>=2){var c=(0,a.default)(r,{layout:"BlankLayout"});(0,s.default)(c)?t.selectedKeys=[r[r.length-1].path]:t.selectedKeys=[c.path]}else t.selectedKeys=[r[0].path]}t.$nextTick((function(){t.onResize()}))}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[]}},renderNav:function(){var t=this,e=this.$createElement,n=this.$props,r=n.mode,a=n.theme;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,c){var l=(0,s.default)(n.children)?null:n.children.map((function(n){return 1===n.type?e("a-menu-item",{key:n.path,on:{click:function(){return t.handleTap(n,c)}}},[e("span",[n.meta.title])]):null})),u=n.path===t.currentPath?e("div",{class:[i.prefixCls+"-nav-item",i.prefixCls+"-nav-item-active"]},"iep"===r?[e("span",[" ",n.meta.title])]:[e(o.default),e("span",[" ",n.meta.title])]):e("div",{class:[i.prefixCls+"-nav-item"]},[e("span",[" ",n.meta.title])]),h="SidebarWrapper"===n.layout?e("a-dropdown",{attrs:{overlayClassName:i.prefixCls+"-nav-item-dropdown"}},[u,e("a-menu",{slot:"overlay",class:[i.prefixCls+"-nav-menu",i.prefixCls+"-nav-menu-"+a],attrs:{selectedKeys:t.selectedKeys}},[l])]):u;return e("div",{ref:"navItem",class:[i.prefixCls+"-nav-"+t.theme,i.prefixCls+"-nav-"+t.mode],on:{click:function(){return t.handleTap(n,c)}}},[h])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,c.default)(this,{},null,!1),window.open(r,"_blank")}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){1!==t.meta.functionType&&(0,c.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:[i.prefixCls+"-nav",i.prefixCls+"-header-right-nav"],ref:"navDom"},[this.renderNav(),(0,s.default)(this.overflowedItems)?null:t(l.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(41)),i=a(n(39)),o=a(n(40)),s=n(122);function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"saveIndexDb",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r,i){(new t).initIndexedDb().then((function(t){var o=t.transaction(n,"readwrite").objectStore(n);"array"===(0,s.toType)(e)?e.map((function(t){o.put(t)})):o.put(e),t.onsuccess=function(e){r(t)},t.onerror=function(t){i(t)}}))}))}},{key:"initIndexedDb",value:function(){return new r.default((function(t,e){var n=window.indexedDB.open("rk-web-core",1);n.onupgradeneeded=function(e){var n=e.target.result;if(!n.objectStoreNames.contains("app_db")){var r=n.createObjectStore("app_db",{keyPath:"tag"});r.createIndex("tag","tag",{unique:!0}),r.createIndex("value","value",{unique:!1}),r.createIndex("remarks","remarks",{unique:!1})}if(n.objectStoreNames.contains("rk_db"))t(n);else{var i=n.createObjectStore("rk_db",{keyPath:"tag"});i.createIndex("tag","tag",{unique:!0}),i.createIndex("val","val",{unique:!1}),i.createIndex("desc","desc",{unique:!1}),i.createIndex("created","created",{unique:!1}),i.createIndex("isTop","isTop",{unique:!1}),t(n)}},n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onerror=function(t){console.log("Can not open indexedDB",t)}}))}},{key:"getLocalRecord",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r){(new t).initIndexedDb().then((function(t){var i=t.transaction(n,"readwrite").objectStore(n).get(e);i.onsuccess=function(t){r(t.target.result)},i.onerror=function(t){r()}}))}))}}]),t}();e.default=new c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"EventCenterForMicroApp",(function(){return he})),n.d(e,"MicroApp",(function(){return tr})),n.d(e,"getActiveApps",(function(){return Qn})),n.d(e,"getAllApps",(function(){return Xn})),n.d(e,"getAppStatus",(function(){return $n})),n.d(e,"preFetch",(function(){return Vn})),n.d(e,"pureCreateElement",(function(){return J})),n.d(e,"reload",(function(){return qn})),n.d(e,"removeDomScope",(function(){return X})),n.d(e,"renderApp",(function(){return Kn})),n.d(e,"unmountAllApps",(function(){return Jn})),n.d(e,"unmountApp",(function(){return Yn})),n.d(e,"version",(function(){return r}));const r="1.0.0-rc.4",i="undefined"!=typeof window,o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Function("return this")(),s=()=>!1,a=Array.isArray,c=Object.assign,l=Object.defineProperty,u=Object.defineProperties,h=Object.prototype.toString,d=Object.prototype.hasOwnProperty,f=t=>h.call(t);function p(t){return void 0===t}function m(t){return null===t}function g(t){return"string"==typeof t}function v(t){return"boolean"==typeof t}function y(t){return"number"==typeof t}function _(t){return"function"==typeof t}function b(t){return"[object Object]"===f(t)}function x(t){return!m(t)&&"object"==typeof t}function w(t){return"[object Promise]"===f(t)}function S(t){var e;if(_(t)){const n=t.toString();return(null===(e=t.prototype)||void 0===e?void 0:e.constructor)===t&&Object.getOwnPropertyNames(t.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n)}return!1}function M(t){var e;return t instanceof URL||!!(null===(e=t)||void 0===e?void 0:e.href)}function A(t){var e;return t instanceof Element||g(null===(e=t)||void 0===e?void 0:e.tagName)}function C(t){var e;return t instanceof Node||y(null===(e=t)||void 0===e?void 0:e.nodeType)}function E(t){return"[object HTMLLinkElement]"===f(t)}function T(t){return"[object HTMLStyleElement]"===f(t)}function I(t){return"[object HTMLScriptElement]"===f(t)}function P(t){return A(t)&&"MICRO-APP-BODY"===t.tagName.toUpperCase()}function L(t,e,n){if(null==t)throw new TypeError("includes target is null or undefined");const r=Object(t),i=parseInt(r.length,10)||0;if(0===i)return!1;n=parseInt(n,10)||0;let o=Math.max(n>=0?n:i+n,0);for(;o<i;){if(e===r[o]||e!=e&&r[o]!=r[o])return!0;o++}return!1}function R(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.error(`[micro-app]${r} ${t}`,...n):console.error("[micro-app]"+r,t,...n)}function O(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.warn(`[micro-app]${r} ${t}`,...n):console.warn("[micro-app]"+r,t,...n)}function B(t,...e){Promise.resolve().then(t.bind(null,...e))}const k=function(){class t extends URL{}return(e,n)=>n?new t(""+e,n):new t(""+e)}();function D(t){return t.startsWith("//")?`${o.location.protocol}${t}`:t}function F(t,e=null){if(!g(t)||!t)return"";try{const{origin:e,pathname:n,search:r}=k(D(t),(window.rawWindow||window).location.href);if(/\.(\w+)$/.test(n))return`${e}${n}${r}`;const i=`${e}${n}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(i)?`${i}${r}`:""}catch(t){return R(t,e),""}}function N(t){return g(t)&&t?t.replace(/(^\d+)|([^\w\d-_])/gi,""):""}function j(t){const{origin:e,pathname:n}=k(t);if(/\.(\w+)$/.test(n)){const t=`${e}${n}`.split("/");return t.pop(),t.join("/")+"/"}return`${e}${n}/`.replace(/\/\/$/,"/")}function U(t,e){return!t||/^((((ht|f)tps?)|file):)?\/\//.test(t)||/^(data|blob):/.test(t)?t:k(t,j(D(e))).toString()}function z(t,e,n,r){let i=0;function o(){++i===t.length&&r&&r()}t.forEach((t,r)=>{w(t)?t.then(t=>{e({data:t,index:r}),o()}).catch(t=>{n({error:t,index:r}),o()}):(e({data:t,index:r}),o())})}const G=o.requestIdleCallback||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))})}),1)};function H(t){return new Promise(e=>{G(()=>{t(e)})})}let W=null;function V(t){W=t}function Z(){return W}let Q=!1;function X(t){V(null),t&&!Q&&(Q=!0,B(()=>{Q=!1}))}function Y(t){W===t||Q||(V(t),B(()=>{V(null)}))}function J(t,e){const n=(window.rawDocument||document).createElement(t,e);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n.__PURE_ELEMENT__=!0,n}function q(t){return!t||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(t)}function K(t){return/^body$/i.test(t)||/^head$/i.test(t)||/^html$/i.test(t)||/^title$/i.test(t)||/^:root$/i.test(t)}function $(t){return function(t){return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot}(t)?t.host:t}function tt(t){return t?t.replace(/^\s+|\s+$/g,""):""}function et(){return navigator.userAgent.indexOf("Firefox")>-1}function nt(t){const e={},n=t.split("&");for(const t of n){const n=t.indexOf("="),r=n<0?t:t.slice(0,n),i=n<0?null:t.slice(n+1);if(r in e){let t=e[r];a(t)||(t=e[r]=[t]),t.push(i)}else e[r]=i}return e}function rt(t){let e="";for(const n in t){const r=t[n];if(m(r))e+=(e.length?"&":"")+n;else{(a(r)?r:[r]).forEach(t=>{p(t)||(e+=(e.length?"&":"")+n,m(t)||(e+="="+t))})}}return e}function it(){const t=new Set;return{add:function(e){return t.add(e),()=>!!t.has(e)&&t.delete(e)},list:()=>t}}function ot(t){const e=t.attributes,n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,e[t].value);return n}function st(t,e){t?t.push(()=>H(t=>{e(),t()})):e()}function at(t){return(null==t?void 0:t.reduce((t,e)=>t.then(e),Promise.resolve()))||null}function ct(t){return t.startsWith("inline-")}function lt(t,e,n,...r){try{_(t)&&t(...r)}catch(t){R(`An error occurred in app ${e} window.${n} \n`,null,t)}}function ut(t,e,n,r){var i;if(!t)return R("element does not exist in lifecycle "+n,e);t=$(t),X();const o=c({name:e,container:t},r&&{error:r}),s=new CustomEvent(n,{detail:o});!function(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},target:{get:()=>e}})}(s,t),_(null===(i=er.options.lifeCycles)||void 0===i?void 0:i[n])&&er.options.lifeCycles[n](s),t.dispatchEvent(s)}function ht(t,e,n={}){var r;const i=new CustomEvent(e,{detail:n});null===(r=t.sandBox)||void 0===r||r.microAppWindow.dispatchEvent(i)}function dt(t,e=null,n={}){return X(),_(er.options.fetch)?er.options.fetch(t,n,e):window.fetch(t,n).then(t=>t.text())}class ft{static getInstance(){return this.instance||(this.instance=new ft),this.instance}run(t,e){const n=t.name,r=t.ssrUrl||t.url;(r.includes(".js")?Promise.resolve(`<micro-app-head><script src='${r}'><\/script></micro-app-head><micro-app-body></micro-app-body>`):dt(r,n,{cache:"no-cache"})).then(i=>{if(!i){const e="html is empty, please check in detail";return t.onerror(new Error(e)),R(e,n)}i=this.formatHTML(r,i,n),e(i,t)}).catch(e=>{R(`Failed to fetch data from ${t.url}, micro-app stop rendering`,n,e),t.onLoadError(e)})}formatHTML(t,e,n){return this.processHtml(t,e,n,er.options.plugins).replace(/<head[^>]*>[\s\S]*?<\/head>/i,t=>t.replace(/<head/i,"<micro-app-head").replace(/<\/head>/i,"</micro-app-head>")).replace(/<body[^>]*>[\s\S]*?<\/body>/i,t=>t.replace(/<body/i,"<micro-app-body").replace(/<\/body>/i,"</micro-app-body>"))}processHtml(t,e,n,r){var i;if(!r)return e;const o=[];return r.global&&o.push(...r.global),(null===(i=r.modules)||void 0===i?void 0:i[n])&&o.push(...r.modules[n]),o.length>0?o.reduce((e,n)=>b(n)&&_(n.processHtml)?n.processHtml(e,t):e,e):e}}const pt=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,mt=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function gt(t,e){t=e?`${e} ${t}`:t;const n=new Error(t);throw n.reason=t,e&&(n.filename=e),n}class vt{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForRuleWithChildRule(/^@media *([^{]+)/,"@media"),this.supportsRule=this.createMatcherForRuleWithChildRule(/^@supports *([^{]+)/,"@supports"),this.documentRule=this.createMatcherForRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"@document"),this.hostRule=this.createMatcherForRuleWithChildRule(/^@host\s*/,"@host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace"),this.containerRule=this.createMatcherForRuleWithChildRule(/^@container *([^{]+)/,"@container")}exec(t,e,n,r){return this.cssText=t,this.prefix=e,this.baseURI=n,this.linkPath=r||"",this.matchRules(),et()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&"}"!==this.cssText.charAt(0)&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):gt("selector missing",this.linkPath)}formatSelector(t){const e=this.commonMatch(/^[^{]+/,t);return!!e&&e[0].replace(/(^|,[\n\s]*)([^,]+)/g,(t,e,n)=>(n=tt(n),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(n))||pt.test(n)||(n=mt.test(n)?n.replace(mt,this.prefix+" micro-app-body"):this.prefix+" "+n),e+n))}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),!!this.matchCloseBrace()||gt("Declaration missing '}'",this.linkPath)):gt("Declaration missing '{'",this.linkPath)}matchAllDeclarations(t=1){let e=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^{}/])*/,!0)[0];if(e&&(this.scopecssDisableNextLine||this.scopecssDisable&&!this.scopecssDisableSelectors.length||(e=e.replace(/url\(["']?([^)"']+)["']?\)/gm,(t,e)=>/^((data|blob):|#)/.test(e)||/^(https?:)?\/\//.test(e)?t:(/^((\.\.?\/)|[^/])/.test(e)&&this.linkPath&&(this.baseURI=function(t){const e=t.split("/");return e.pop(),D(e.join("/")+"/")}(this.linkPath)),`url("${U(e,this.baseURI)}")`))),this.recordResult(e)),this.scopecssDisableNextLine=!1,this.cssText){if("}"===this.cssText.charAt(0)){if(!t)return;return t>1&&this.commonMatch(/}+/),this.matchAllDeclarations(t-1)}return"/"===this.cssText.charAt(0)&&("*"===this.cssText.charAt(1)?this.matchComments():this.commonMatch(/\/+/)),"{"===this.cssText.charAt(0)&&(this.commonMatch(/{+\s*/),t++),this.matchAllDeclarations(t)}}matchAtRule(){return"@"===this.cssText[0]&&(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.containerRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^[^{]+/))return gt("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return gt("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const e=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),this.commonMatch(/^,\s*/);return!!e.length&&(this.styleDeclarations(),this.matchLeadingSpaces(),!0)}customMediaRule(){return!!this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)&&(this.matchLeadingSpaces(),!0)}pageRule(){return!!this.commonMatch(/^@page */)&&(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page"))}fontFaceRule(){return!!this.commonMatch(/^@font-face\s*/)&&this.commonHandlerForAtRuleWithSelfRule("font-face")}createMatcherForRuleWithChildRule(t,e){return()=>!!this.commonMatch(t)&&(this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(e+" missing '}'",this.linkPath)):gt(e+" missing '{'",this.linkPath))}createMatcherForNoneBraceAtRule(t){const e=new RegExp("^@"+t+"\\s*([^;]+);");return()=>!!this.commonMatch(e)&&(this.matchLeadingSpaces(),!0)}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(`@${t} missing '}'`,this.linkPath)):gt(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if("/"!==this.cssText.charAt(0)||"*"!==this.cssText.charAt(1))return!1;this.scopecssDisableNextLine=!1;let t=2;for(;""!==this.cssText.charAt(t)&&("*"!==this.cssText.charAt(t)||"/"!==this.cssText.charAt(t+1));)++t;if(t+=2,""===this.cssText.charAt(t-1))return gt("End of comment missing",this.linkPath);let e=this.cssText.slice(2,t-2);if(this.recordResult(`/*${e}*/`),e=tt(e.replace(/^\s*!/,"")),"scopecss-disable-next-line"===e)this.scopecssDisableNextLine=!0;else if(/^scopecss-disable/.test(e))if("scopecss-disable"===e)this.scopecssDisable=!0;else{this.scopecssDisable=!0;e.replace("scopecss-disable","").split(",").forEach(t=>{this.scopecssDisableSelectors.push(tt(t))})}else"scopecss-enable"===e&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]);return this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,e=!1){const n=t.exec(this.cssText);if(!n)return;const r=n[0];return this.cssText=this.cssText.slice(r.length),e||this.recordResult(r),n}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){et()?this.result+=encodeURIComponent(t):this.result+=t}}function yt(t,e,n,r,i){if(!t.__MICRO_APP_HAS_SCOPED__){t.__MICRO_APP_HAS_SCOPED__=!0;let o=null;try{o=_t.exec(t.textContent,n,r,i),_t.reset()}catch(t){_t.reset(),R("An error occurred while parsing CSS:\n",e,t)}o&&(t.textContent=o)}}let _t;function bt(t,e,n){if(e.scopecss){const r=xt(e.name);if(_t||(_t=new vt),t.textContent)yt(t,e.name,r,e.url,n);else{const i=new MutationObserver((function(){i.disconnect(),t.textContent&&!t.hasAttribute("data-styled")&&yt(t,e.name,r,e.url,n)}));i.observe(t,{childList:!0})}}return t}function xt(t,e=!1){const n=e?"\\":"";return`${er.tagName}${n}[name=${t}${n}]`}function wt(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},srcElement:{get:()=>e},target:{get:()=>e}})}function St(t){const e=new CustomEvent("load");wt(e,t),_(t.onload)?t.onload(e):t.dispatchEvent(e)}function Mt(t){const e=new CustomEvent("error");wt(e,t),_(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var At,Ct,Et,Tt,It,Pt,Lt=function(){const t=new Map,e=new Map;function n(t){return{setInfo(e,n){t.set(e,n)},getInfo(e){var n;return null!==(n=t.get(e))&&void 0!==n?n:null},hasInfo:e=>t.has(e),deleteInfo:e=>t.delete(e)}}return{link:n(t),script:Object.assign(Object.assign({},n(e)),{deleteInlineInfo(t){t.forEach(t=>{ct(t)&&e.delete(t)})}})}}();function Rt(t,e,n,r=!1){const i=t.getAttribute("rel");let o=t.getAttribute("href"),s=null;if("stylesheet"===i&&o){o=U(o,n.url);let e=Lt.link.getInfo(o);const i={attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",appSpace:{[n.name]:i}},Lt.link.setInfo(o,e),r)return{address:o,linkInfo:e};n.source.links.add(o),s=document.createComment(`link element with href=${o} move to micro-app-head as style element`),e.appSpace[n.name].placeholder=s}else i&&["prefetch","preload","prerender"].includes(i)?r?s=document.createComment(`link element with rel=${i}${o?" & href="+o:""} removed by micro-app`):null==e||e.removeChild(t):o&&Gn.rawSetAttribute.call(t,"href",U(o,n.url));return r?{replaceComment:s}:s?null==e?void 0:e.replaceChild(s,t):void 0}function Ot(t,e,n,r){const i=Array.from(e.source.links),o=i.map(t=>{const n=Lt.link.getInfo(t);return n.code?n.code:dt(t,e.name)}),s=r?[]:null;z(o,t=>{st(s,()=>function(t,e,n,r){const i=Lt.link.getInfo(t);i.code=e;const o=i.appSpace[r.name],s=o.placeholder;if(s){const e=J("style");Bt(r,t,e,i,o.attrs),s.parentNode?s.parentNode.replaceChild(e,s):n.appendChild(e),o.placeholder=null}}(i[t.index],t.data,n,e))},t=>{R(t,e.name)},()=>{r?r.then(()=>{s.push(()=>Promise.resolve(e.onLoad({html:t}))),at(s)}):e.onLoad({html:t})})}function Bt(t,e,n,r,i){if(t.scopecss){const i=r.appSpace[t.name];if(i.prefix=i.prefix||xt(t.name),i.parsedCode)n.textContent=i.parsedCode;else{const o=function(t,e,n){const r=n.appSpace;for(const n in r)if(n!==t){const t=r[n];if(t.parsedCode)return t.parsedCode.replace(new RegExp(xt(n,!0),"g"),e)}}(t.name,i.prefix,r);o?n.textContent=o:(n.textContent=r.code,bt(n,t,e)),i.parsedCode=n.textContent}}else n.textContent=r.code;!function(t,e){e.forEach((e,n)=>{"rel"!==n&&("href"===n&&(n="data-origin-href"),Gn.rawSetAttribute.call(t,n,e))})}(n,i)}!function(t){t.NAME="name",t.URL="url"}(At||(At={})),function(t){t.CREATED="created",t.LOADING="loading",t.LOAD_FAILED="load_failed",t.BEFORE_MOUNT="before_mount",t.MOUNTING="mounting",t.MOUNTED="mounted",t.UNMOUNT="unmount"}(Ct||(Ct={})),function(t){t.CREATED="created",t.BEFOREMOUNT="beforemount",t.MOUNTED="mounted",t.UNMOUNT="unmount",t.ERROR="error",t.BEFORESHOW="beforeshow",t.AFTERSHOW="aftershow",t.AFTERHIDDEN="afterhidden"}(Et||(Et={})),function(t){t.ONMOUNT="onmount",t.ONUNMOUNT="onunmount"}(Tt||(Tt={})),function(t){t.KEEP_ALIVE_SHOW="keep_alive_show",t.KEEP_ALIVE_HIDDEN="keep_alive_hidden"}(It||(It={})),function(t){t.DESTROY="destroy",t.DESTORY="destory",t.INLINE="inline",t.DISABLESCOPECSS="disableScopecss",t.DISABLESANDBOX="disableSandbox",t.DISABLE_SCOPECSS="disable-scopecss",t.DISABLE_SANDBOX="disable-sandbox",t.DISABLE_MEMORY_ROUTER="disable-memory-router",t.DISABLE_PATCH_REQUEST="disable-patch-request",t.KEEP_ROUTER_STATE="keep-router-state",t.HIDDEN_ROUTER="hidden-router",t.KEEP_ALIVE="keep-alive",t.CLEAR_DATA="clear-data",t.SSR="ssr",t.FIBER="fiber"}(Pt||(Pt={}));const kt=[1,2,3],Dt=["search","native","native-scope","pure"],Ft=["popstate","hashchange","load","beforeunload","unload","unmount","appstate-change","statechange","mounted"],Nt=["onpopstate","onhashchange","onload","onbeforeunload","onunload","onerror"],jt=["DOMContentLoaded","readystatechange"],Ut=["onreadystatechange"],zt=["window","self","globalThis"],Gt=["rawWindow","rawDocument"],Ht="window,self,globalThis,document,Document,Array,Object,String,Boolean,Math,Number,Symbol,Date,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,navigator,undefined,location,history",Wt=["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"];function Vt(t,e){return e.appSpace[t.name].module&&(!t.useSandbox||t.iframe)}function Zt(t,e){return t.inline||e.appSpace[t.name].inline||Vt(t,e)||function(t,e){return e.appSpace[t.name].attrs.has("id")}(t,e)}function Qt(t){return t.iframe?t.sandBox.microAppWindow:Gn.rawWindow}function Xt(t,e,n){return function(t,e,n){const r=e.appSpace;for(const e in r)if(e!==t.name){const t=r[e];if(t.parsedCode===n&&t.parsedFunction)return t.parsedFunction}}(t,e,n)||function(t,e){return new(Qt(t).Function)(e)}(t,n)}function Yt(){const t="inline-"+Math.random().toString(36).substr(2,15);return Lt.script.hasInfo(t)?Yt():t}function Jt(t,e){return t.useSandbox&&!Vt(t,e)}function qt(t,e){return Jt(t,e)?t.iframe?"iframe":"with":"disable"}function Kt(t,e,n,r=!1){var i;let o=null,s=t.getAttribute("src");if(s&&(s=U(s,n.url)),t.hasAttribute("exclude")||te(s,n.name))o=document.createComment("script element with exclude attribute removed by micro-app");else{if(t.type&&!Wt.includes(t.type)||t.hasAttribute("ignore")||ee(s,n.name))return(null===(i=Gn.rawDocument)||void 0===i?void 0:i.currentScript)&&delete Gn.rawDocument.currentScript,null;if(Gn.supportModuleScript&&t.noModule||!Gn.supportModuleScript&&"module"===t.type)o=document.createComment((t.noModule?"noModule":"module")+" script ignored by micro-app");else if(s){let e=Lt.script.getInfo(s);const i={async:t.hasAttribute("async"),defer:t.defer||"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",isExternal:!0,appSpace:{[n.name]:i}},Lt.script.setInfo(s,e),r)return{address:s,scriptInfo:e};n.source.scripts.add(s),o=document.createComment(`script with src='${s}' extract by micro-app`)}else if(t.textContent){const e=Yt(),i={code:t.textContent,isExternal:!1,appSpace:{[n.name]:{async:!1,defer:"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)}}};if(r)return{address:e,scriptInfo:i};n.source.scripts.add(e),Lt.script.setInfo(e,i),o=document.createComment("inline script extract by micro-app")}else r||(o=document.createComment("script element removed by micro-app"))}return r?{replaceComment:o}:null==e?void 0:e.replaceChild(o,t)}function $t(t){var e,n,r;return[...(null===(e=er.options.plugins)||void 0===e?void 0:e.global)||[],...(null===(r=null===(n=er.options.plugins)||void 0===n?void 0:n.modules)||void 0===r?void 0:r[t])||[]]}function te(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.excludeChecker&&e.excludeChecker(t))}function ee(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.ignoreChecker&&e.ignoreChecker(t))}function ne(t,e){const n=Array.from(e.source.scripts),r=[],i=[];for(const t of n){const n=Lt.script.getInfo(t),o=n.appSpace[e.name];(!o.defer&&!o.async||e.isPrefetch&&!e.isPrerender)&&(r.push(n.code?n.code:dt(t,e.name)),i.push([t,n]))}const o=e.isPrefetch||e.fiber?[]:null;r.length?z(r,t=>{st(o,()=>function(t,e,n,r){if(e.code=n,r.isPrefetch&&2===r.prefetchLevel){const i=e.appSpace[r.name];if(!i.parsedCode&&(i.parsedCode=ie(t,r,n,e),i.sandboxType=qt(r,e),!Zt(r,e)))try{i.parsedFunction=Xt(r,e,i.parsedCode)}catch(t){R("Something went wrong while handling preloaded resources",r.name,"\n",t)}}}(i[t.index][0],i[t.index][1],t.data,e))},t=>{R(t,e.name)},()=>{o?(o.push(()=>Promise.resolve(e.onLoad({html:t}))),at(o)):e.onLoad({html:t})}):e.onLoad({html:t})}function re(t,e,n,r,i){try{!function(t){!function(t){t.sandBox&&(Gn.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow)}(t)}(e);const o=n.appSpace[e.name],s=qt(e,n);if(o.parsedCode&&o.sandboxType===s||(o.parsedCode=ie(t,e,n.code,n),o.sandboxType=s,o.parsedFunction=null),Zt(e,n)){const s=i||J("script");if(function(t,e,n,r,i,o){if(n){if(Gn.rawSetAttribute.call(r,"type","module"),ct(t)?r.textContent=e:r.src=t,o){const e=()=>{o.moduleCount&&o.moduleCount--,o(0===o.moduleCount)};ct(t)?B(e):r.onload=e}}else r.textContent=e;!function(t,e){e.forEach((e,n)=>{"type"===n&&"module"===e||"defer"===n||"async"===n||("src"===n&&(n="data-origin-src"),Gn.rawSetAttribute.call(t,n,e))})}(r,i)}(t,o.parsedCode,Vt(e,n),s,o.attrs,r),!i){const t=e.iframe?e.sandBox.microBody:e.querySelector("micro-app-body");null==t||t.appendChild(s)}}else!function(t,e){const n=e.appSpace[t.name];n.parsedFunction||(n.parsedFunction=Xt(t,e,n.parsedCode));n.parsedFunction.call(Qt(t))}(e,n)}catch(n){throw console.error(`[micro-app from ${i?"runDynamicScript":"runScript"}] app ${e.name}: `,n,t),n}}function ie(t,e,n,r){return b(er.options.plugins)&&(n=function(t,e,n,r){var i;const o=oe(r.global,e,t);return oe(null===(i=r.modules)||void 0===i?void 0:i[n],o,t)}(t,n,e.name,er.options.plugins)),Jt(e,r)?e.iframe?`(function(window,self,global,location){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyLocation);`:`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${Ht}){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(proxyWindow,${Ht})}})(window.__MICRO_APP_PROXY_WINDOW__);`:n}function oe(t,e,n){return a(t)?t.reduce((t,e)=>b(e)&&_(e.loader)?e.loader(t,n):t,e):e}function se(t,e){const n=e.parseHtmlString(t),r=Gn.rawElementQuerySelector.call(n,"micro-app-head"),i=Gn.rawElementQuerySelector.call(n,"micro-app-body");if(!r||!i){const t=`element ${r?"body":"head"} is missing`;return e.onerror(new Error(t)),R(t,e.name)}const o=e.isPrefetch||e.fiber?[]:null;!function t(e,n,r,i){const o=Array.from(e.children);o.length&&o.forEach(e=>{t(e,n,r,i)});for(const t of o)E(t)?t.hasAttribute("exclude")||te(t.getAttribute("href"),n.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),t):t.hasAttribute("ignore")||ee(t.getAttribute("href"),n.name)?t.hasAttribute("href")&&Gn.rawSetAttribute.call(t,"href",U(t.getAttribute("href"),n.url)):Rt(t,e,n):T(t)?t.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),t):n.scopecss&&!t.hasAttribute("ignore")&&st(i,()=>bt(t,n)):I(t)?Kt(t,e,n):"[object HTMLImageElement]"===f(t)&&t.hasAttribute("src")&&Gn.rawSetAttribute.call(t,"src",U(t.getAttribute("src"),n.url))}(n,e,r,o);const s=at(o);e.source.links.size?Ot(n,e,r,s):s?s.then(()=>e.onLoad({html:n})):e.onLoad({html:n}),e.source.scripts.size?ne(n,e):e.onLoad({html:n})}const ae=new class{constructor(){this.eventList=new Map,this.queue=[],this.recordStep={},this.process=()=>{var t,e;let n;const r=this.recordStep,i=this.queue;for(this.recordStep={},this.queue=[];n=i.shift();){const i=this.eventList.get(n),o=i.tempData,s=i.force;let a;if(i.tempData=null,i.force=!1,s||!this.isEqual(i.data,o)){i.data=o||i.data;for(const t of i.callbacks){const e=t(i.data);e&&(null!=a?a:a=[]).push(e)}null===(e=(t=r[n]).dispatchDataEvent)||void 0===e||e.call(t),r[n].nextStepList.forEach(t=>t(a))}}}}isLegalName(t){return!!t||(R("event-center: Invalid name"),!1)}enqueue(t,e,n){this.recordStep[t]?(this.recordStep[t].nextStepList.push(e),n&&(this.recordStep[t].dispatchDataEvent=n)):this.recordStep[t]={nextStepList:[e],dispatchDataEvent:n},!this.queue.includes(t)&&1===this.queue.push(t)&&B(this.process)}isEqual(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==e[n])return!1;return!0}on(t,e,n=!1){if(this.isLegalName(t)){if(!_(e))return R("event-center: Invalid callback function");let r=this.eventList.get(t);r?n&&Object.keys(r.data).length&&(!this.queue.includes(t)||this.isEqual(r.data,r.tempData))&&e(r.data):(r={data:{},callbacks:new Set},this.eventList.set(t,r)),r.callbacks.add(e)}}off(t,e){if(this.isLegalName(t)){const n=this.eventList.get(t);n&&(_(e)?n.callbacks.delete(e):n.callbacks.clear())}}clearData(t){if(this.isLegalName(t)){const e=this.eventList.get(t);e&&(e.data={})}}dispatch(t,e,n,r,i){if(this.isLegalName(t)){if(!b(e))return R("event-center: data must be object");let o=this.eventList.get(t);o?(o.tempData=c({},o.tempData||o.data,e),!o.force&&(o.force=!!r)):(o={data:e,callbacks:new Set},this.eventList.set(t,o),o.force=!0),this.enqueue(t,n,i)}}getData(t){var e;const n=this.eventList.get(t);return null!==(e=null==n?void 0:n.data)&&void 0!==e?e:null}};function ce(t,e){return g(t)&&t?e?`__from_base_app_${t}__`:`__from_micro_app_${t}__`:""}class le{addGlobalDataListener(t,e){const n=this.appName;n&&(t.__APP_NAME__=n,t.__AUTO_TRIGGER__=e),ae.on("global",t,e)}removeGlobalDataListener(t){_(t)&&ae.off("global",t)}setGlobalData(t,e,n){X(),ae.dispatch("global",t,t=>_(e)&&e(t),n)}forceSetGlobalData(t,e){this.setGlobalData(t,e,!0)}getGlobalData(){return ae.getData("global")}clearGlobalData(){ae.clearData("global")}clearGlobalDataListener(){const t=this.appName,e=ae.eventList.get("global");if(e)for(const n of e.callbacks)(t&&t===n.__APP_NAME__||!t&&!n.__APP_NAME__)&&e.callbacks.delete(n)}}class ue extends le{addDataListener(t,e,n){ae.on(ce(N(t),!1),e,n)}removeDataListener(t,e){_(e)&&ae.off(ce(N(t),!1),e)}getData(t,e=!1){return ae.getData(ce(N(t),e))}setData(t,e,n,r){ae.dispatch(ce(N(t),!0),e,t=>_(n)&&n(t),r)}forceSetData(t,e,n){this.setData(t,e,n,!0)}clearData(t,e=!0){ae.clearData(ce(N(t),e))}clearDataListener(t){ae.off(ce(N(t),!1))}}class he extends le{constructor(t){super(),this.appName=N(t),!this.appName&&R("Invalid appName "+t)}addDataListener(t,e){t.__AUTO_TRIGGER__=e,ae.on(ce(this.appName,!0),t,e)}removeDataListener(t){_(t)&&ae.off(ce(this.appName,!0),t)}getData(t=!0){return ae.getData(ce(this.appName,t))}dispatch(t,e,n){X(),ae.dispatch(ce(this.appName,!1),t,t=>_(e)&&e(t),n,()=>{const e=Tn.get(this.appName);if((null==e?void 0:e.container)&&b(t)){const t=new CustomEvent("datachange",{detail:{data:ae.getData(ce(this.appName,!1))}});$(e.container).dispatchEvent(t)}})}forceDispatch(t,e){this.dispatch(t,e,!0)}clearData(t=!1){ae.clearData(ce(this.appName,t))}clearDataListener(){ae.off(ce(this.appName,!0))}}function de(t){var e,n;if(t){t.umdDataListeners={global:new Set(null===(e=t.umdDataListeners)||void 0===e?void 0:e.global),normal:new Set(null===(n=t.umdDataListeners)||void 0===n?void 0:n.normal)};const r=ae.eventList.get("global");if(r)for(const e of r.callbacks)t.appName===e.__APP_NAME__&&t.umdDataListeners.global.add(e);const i=ae.eventList.get(ce(t.appName,!0));if(i)for(const e of i.callbacks)t.umdDataListeners.normal.add(e)}}function fe(t){if(null==t?void 0:t.umdDataListeners){for(const e of t.umdDataListeners.global)t.addGlobalDataListener(e,e.__AUTO_TRIGGER__);for(const e of t.umdDataListeners.normal)t.addDataListener(e,e.__AUTO_TRIGGER__);pe(t)}}function pe(t){null==t||delete t.umdDataListeners}class me{constructor(){this.appInstanceMap=Tn}static getInstance(){return this.instance||(this.instance=new me),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,e){this.appInstanceMap.set(t,e)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function ge(){ve(),me.getInstance().getAll().forEach(t=>{t.container&&$(t.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&me.getInstance().clear()}function ve(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",ge,!1)}function ye(t){return v(t.__MICRO_APP_IS_BOUND_FUNCTION__)?t.__MICRO_APP_IS_BOUND_FUNCTION__:t.__MICRO_APP_IS_BOUND_FUNCTION__=_(e=t)&&0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");var e}function _e(t,e,n="WINDOW"){if(_(t)&&!function(t){return v(t.__MICRO_APP_IS_CONSTRUCTOR__)?t.__MICRO_APP_IS_CONSTRUCTOR__:t.__MICRO_APP_IS_CONSTRUCTOR__=S(t)}(t)&&!ye(t)){const r=`__MICRO_APP_BOUND_${n}_FUNCTION__`;if(t[r])return t[r];const i=t.bind(e);for(const e in t)i[e]=t[e];return t.hasOwnProperty("prototype")&&l(i,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t[r]=i}return t}function be(t,e,n){const{proxyDocument:r,documentEffect:i}=function(t,e){const n=new Map,r=new Map;let i=null,o=null;const{rawDocument:s,rawCreateElement:a,rawCreateElementNS:c,rawAddEventListener:l,rawRemoveEventListener:u}=Gn;function h(e,n){const r=a.call(s,e,n);return r.__MICRO_APP_NAME__=t,r}function d(e,n,r){const i=c.call(s,e,n,r);return i.__MICRO_APP_NAME__=t,i}function f(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),l.call(s,t,e,r)}function p(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),u.call(s,t,e,r)}const m=()=>{r.clear(),o=null},g=(()=>{var t;const e=new Map([["onclick",t=>{_(i)&&u.call(s,"click",i,!1),_(t)&&l.call(s,"click",t,!1),i=t}]]),n=(null===(t=er.options)||void 0===t?void 0:t.customProxyDocumentProps)||new Map;return new Map([...e,...n])})(),v=new Proxy(s,{get:(n,r)=>{var o;return Y(t),"createElement"===r?h:"createElementNS"===r?d:r===Symbol.toStringTag?"ProxyDocument":"defaultView"===r?e.proxyWindow:"onclick"===r?i:"addEventListener"===r?f:"removeEventListener"===r?p:"microAppElement"===r?null===(o=Tn.get(t))||void 0===o?void 0:o.container:"__MICRO_APP_NAME__"===r?t:_e(Reflect.get(n,r),s,"DOCUMENT")},set:(t,e,n)=>{if(g.has(e)){g.get(e)(n)}else"microAppElement"!==e&&Reflect.set(t,e,n);return!0}});return{proxyDocument:v,documentEffect:{reset:m,record:()=>{o=i||o,n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{o&&!i&&(v.onclick=o),r.forEach((t,e)=>{for(const n of t)v.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),m()},release:()=>{_(i)&&u.call(s,"click",i),i=null,n.size&&(n.forEach((t,e)=>{for(const n of t)u.call(s,e,n)}),n.clear())}}}}(t,n),o=function(t,e){const{rawDocument:n,rawRootDocument:r}=Gn;class i{static[Symbol.hasInstance](t){let n=t;for(;n;)if(n=Object.getPrototypeOf(n),n===i.prototype)return!0;return t===e||t instanceof r}}return Object.setPrototypeOf(i,r),Object.setPrototypeOf(i.prototype,new Proxy(r.prototype,{get:(e,r)=>(Y(t),_e(Reflect.get(e,r),n,"DOCUMENT")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})),i}(t,r);return u(e,{document:{configurable:!1,enumerable:!0,get:()=>r},Document:{configurable:!1,enumerable:!1,get:()=>o}}),i}function xe(t,e,n){return function(t){const e=Gn.rawWindow;Object.getOwnPropertyNames(e).filter(t=>/^on/.test(t)&&!Nt.includes(t)).forEach(n=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,writable:!0};l(t,n,{enumerable:r,configurable:!0,get:()=>e[n],set:(null!=i?i:o)?t=>{e[n]=t}:void 0})})}(e),function(t,e,n){const r=Gn.rawWindow,i=new Map,o=new Proxy(e,{get:(e,i)=>(Y(t),Reflect.has(e,i)||g(i)&&/^__MICRO_APP_/.test(i)||L(n.scopeProperties,i)?(L(Gt,i)&&X(),Reflect.get(e,i)):_e(Reflect.get(r,i),r)),set:(t,e,i)=>{if(L(n.rawWindowScopeKeyList,e))Reflect.set(r,e,i);else if(d.call(t,e)||!d.call(r,e)||L(n.scopeProperties,e))Reflect.has(t,e)&&!L(n.scopeProperties,e)||n.injectedKeys.add(e),Reflect.set(t,e,i);else{const o=Object.getOwnPropertyDescriptor(r,e),{configurable:s,enumerable:a,writable:c,set:u}=o;l(t,e,{value:i,configurable:s,enumerable:a,writable:null!=c?c:!!u}),n.injectedKeys.add(e)}return(L(n.escapeProperties,e)||L(n.staticEscapeProperties,e)&&!Reflect.has(r,e))&&!L(n.scopeProperties,e)&&(!Reflect.has(r,e)&&n.escapeKeys.add(e),Reflect.set(r,e,i)),!0},has:(t,e)=>L(n.scopeProperties,e)?n.injectedKeys.has(e)?Reflect.has(t,e):!!t[e]:Reflect.has(t,e)||Reflect.has(r,e),getOwnPropertyDescriptor:(t,e)=>{if(d.call(t,e))return i.set(e,"target"),Object.getOwnPropertyDescriptor(t,e);if(d.call(r,e)){i.set(e,"rawWindow");const t=Object.getOwnPropertyDescriptor(r,e);return t&&!t.configurable&&(t.configurable=!0),t}},defineProperty:(t,e,n)=>"rawWindow"===i.get(e)?Reflect.defineProperty(r,e,n):Reflect.defineProperty(t,e,n),ownKeys:t=>Reflect.ownKeys(r).concat(Reflect.ownKeys(t)).filter((function(t){return!(t in this)&&(this[t]=!0)}),Object.create(null)),deleteProperty:(t,e)=>!d.call(t,e)||(n.injectedKeys.has(e)&&n.injectedKeys.delete(e),n.escapeKeys.has(e)&&Reflect.deleteProperty(r,e),Reflect.deleteProperty(t,e))});n.proxyWindow=o}(t,e,n),function(t,e){const n=new Map,r=new Map,i=new Map,o=new Map,{rawWindow:s,rawAddEventListener:a,rawRemoveEventListener:c,rawDispatchEvent:l,rawSetInterval:u,rawSetTimeout:h,rawClearInterval:d,rawClearTimeout:f}=Gn;function p(t){var n;return Ft.includes(t)&&(null===(n=Tn.get(e))||void 0===n?void 0:n.container)?$(Tn.get(e).container):s}t.addEventListener=function(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),a.call(p(t),t,e,r)},t.removeEventListener=function(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),c.call(p(t),t,e,r)},t.dispatchEvent=function(t){return l.call(p(null==t?void 0:t.type),t)},t.setInterval=function(t,e,...n){const r=u.call(s,t,e,...n);return i.set(r,{handler:t,timeout:e,args:n}),r},t.setTimeout=function(t,e,...n){const r=h.call(s,t,e,...n);return o.set(r,{handler:t,timeout:e,args:n}),r},t.clearInterval=function(t){i.delete(t),d.call(s,t)},t.clearTimeout=function(t){o.delete(t),f.call(s,t)};const m=()=>{r.clear()};return{reset:m,record:()=>{n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{r.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),m()},release:t=>{n.size&&(n.forEach((t,e)=>{for(const n of t)c.call(p(e),e,n)}),n.clear()),t&&(i.forEach((t,e)=>{d.call(s,e)}),o.forEach((t,e)=>{f.call(s,e)}),i.clear(),o.clear())}}}(e,t)}function we(t,e){if(ke(t)){const n=Gn.rawWindow.history.state,r={microAppState:c({},null==n?void 0:n.microAppState,{[t]:e})};return c({},n,r)}return e}function Se(t){var e;const n=Gn.rawWindow.history.state;return ke(t)?(null===(e=null==n?void 0:n.microAppState)||void 0===e?void 0:e[t])||null:n}const Me=/&/g,Ae=/=/g,Ce=/%M1/g,Ee=/%M2/g;function Te(t){return encodeURIComponent(Pe(t).replace(Me,"%M1").replace(Ae,"%M2"))}function Ie(t){return Pe(t).replace(Ce,"&").replace(Ee,"=")}function Pe(t){try{const e=decodeURIComponent(t);return t===e||Ce.test(e)||Ee.test(e)?e:Pe(e)}catch(e){return t}}function Le(t){var e,n;if(Fe(t))return null;const r=Gn.rawWindow.location;if(ke(t)){const i=Oe(r.search,r.hash),o=(null===(e=i.hashQuery)||void 0===e?void 0:e[t])||(null===(n=i.searchQuery)||void 0===n?void 0:n[t]);return g(o)?Ie(o):null}return r.pathname+r.search+r.hash}function Re(t,e){const n=e.pathname+e.search+e.hash;let r=!1;if(ke(t)){let{pathname:e,search:i,hash:o}=Gn.rawWindow.location;const s=Oe(i,o),a=Te(n);if(o&&!i){r=!0,s.hashQuery?s.hashQuery[t]=a:s.hashQuery={[t]:a};const e=o.includes("?")?o.slice(0,o.indexOf("?")+1):o+"?";o=e+rt(s.hashQuery)}else s.searchQuery?s.searchQuery[t]=a:s.searchQuery={[t]:a},i="?"+rt(s.searchQuery);return{fullPath:e+i+o,isAttach2Hash:r}}return{fullPath:n,isAttach2Hash:r}}function Oe(t,e){const n={};return""!==t&&"?"!==t&&(n.searchQuery=nt(t.slice(1))),e.includes("?")&&(n.hashQuery=nt(e.slice(e.indexOf("?")+1))),n}function Be(t){const e=Tn.get(t);return!(!e||e.isPrefetch)}function ke(t){const e=Tn.get(t);return!(!e||!e.sandBox||"search"!==e.routerMode)}function De(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native"!==e.routerMode)}function Fe(t){const e=Tn.get(t);return!(!e||!e.sandBox||"pure"!==e.routerMode)}function Ne(t){return De(t)||function(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native-scope"!==e.routerMode)}(t)}function je(t,e){const n=(e?"native":t)||er.options["disable-memory-router"]&&"native"||er.options["router-mode"]||"search";return Dt.includes(n)?n:"search"}function Ue(t){const e=Gn.rawWindow,n=e=>{Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(t)&&!e.onlyForBrowser&&ze(t,Le(t))};return e.addEventListener("popstate",n),()=>{e.removeEventListener("popstate",n)}}function ze(t,e){const n=Tn.get(t),r=n.sandBox.proxyWindow,i=n.sandBox.microAppWindow;let o=!1;const s=r.location.href;if(e){const n=r.location.hash;hn(t,e,i.location),o=r.location.hash!==n}!function(t,e,n){const r=new PopStateEvent("popstate",{state:Se(t)});n.dispatchEvent(r),Pn(t)||_(e.onpopstate)&&e.onpopstate(r)}(t,r,i),o&&function(t,e,n,r){const i=new HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:r});n.dispatchEvent(i),Pn(t)||_(e.onhashchange)&&e.onhashchange(i)}(t,r,i,s),X()}function Ge(t,e,n){X(),Be(t)&&(function(t){const e=new PopStateEvent("popstate",{state:null});t&&(e.onlyForBrowser=!0),Gn.rawWindow.dispatchEvent(e)}(e),n&&function(t){const e=new HashChangeEvent("hashchange",{newURL:Gn.rawWindow.location.href,oldURL:t});Gn.rawWindow.dispatchEvent(e)}(n))}function He(t,e){const n=Gn.rawWindow.history;function r(n){return function(...r){var i,o,s;if(g(r[2])||M(r[2])){const a=k(r[2],e.href),c=a.pathname+a.search+a.hash;Fe(t)||Ve(t,n,Re(t,a),!0,we(t,r[0]),r[1]),c!==e.fullPath&&hn(t,c,e),null===(s=null===(i=Tn.get(t))||void 0===i?void 0:(o=i.sandBox).updateIframeBase)||void 0===s||s.call(o)}else We(t,n,r[2],r[0],r[1])}}const i=r("pushState"),o=r("replaceState");return Pn(t)?{pushState:i,replaceState:o}:new Proxy(n,{get:(e,n)=>"state"===n?Se(t):"pushState"===n?i:"replaceState"===n?o:_e(Reflect.get(e,n),e,"HISTORY"),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})}function We(t,e,n,r=null,i=""){if(Be(t)){("pushState"===e?Gn.rawPushState:Gn.rawReplaceState).call(Gn.rawWindow.history,r,i,n)}}function Ve(t,e,n,r,i,o){if(Be(t)){const s=Gn.rawWindow.location,a=s.pathname+s.search+s.hash,c=n.isAttach2Hash&&a!==n.fullPath?s.href:null;We(t,e,n.fullPath,i,o),a!==n.fullPath&&ke(t)&&Ge(t,r,c)}}function Ze(t,e,n){Ve(t,"replaceState",e,!0,n)}function Qe(t){const e=Gn.rawWindow;return function(...n){var r;if((null===(r=e.history.state)||void 0===r?void 0:r.microAppState)&&(!b(n[0])||!n[0].microAppState)&&(g(n[2])||M(n[2]))){const t=e.location.href;k(n[2],t).href===t&&(n[0]=c({},n[0],{microAppState:e.history.state.microAppState}))}t.apply(e.history,n),Qn({excludeHiddenApp:!0,excludePreRender:!0}).forEach(t=>{if(ke(t)&&!Le(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}),X()}}function Xe(){const t=Gn.rawWindow;t.history.pushState=Qe(Gn.rawPushState),t.history.replaceState=Qe(Gn.rawReplaceState)}function Ye(){const t=Gn.rawWindow;t.history.pushState=Gn.rawPushState,t.history.replaceState=Gn.rawReplaceState}const{router:Je,executeNavigationGuard:qe,clearRouterWhenUnmount:Ke}=function(){function t(t,e,n,r){const i=e.sandBox.proxyWindow.location,o=k(n.path,i.href),s=i.pathname+i.search+i.hash,a=o.pathname+o.search+o.hash;if(s!==a||Le(t)!==a){if(!Fe(t)){!function(t,e,n,r){Ve(t,e,Re(t,n),!1,we(t,null!=r?r:null)),X()}(t,r&&!1!==n.replace||!0===n.replace?"replaceState":"pushState",o,n.state)}(Ne(t)||Fe(t))&&ze(t,a)}}function e(e){return function(n){return new Promise((r,i)=>{const o=N(n.name);if(o&&g(n.path))if(Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(o)){const i=Tn.get(o);r(i.sandBox.sandboxReady.then(()=>t(o,i,n,e)))}else i(R("navigation failed, app does not exist or is inactive"));else i(R("navigation failed, name & path are required when use router."+(e?"replace":"push")))})}}function n(t){return function(...e){return Gn.rawWindow.history[t](...e)}}const r=it(),i=it();function o(t,e,n,r){X();for(const i of r)_(i)?i(e,n,t):b(i)&&_(i[t])&&i[t](e,n)}function a(t){if(ke(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}const c=Object.assign(Object.assign({current:new Map,encode:Te,decode:Ie,push:e(!1),replace:e(!0),go:n("go"),back:n("back"),forward:n("forward"),beforeEach:r.add,afterEach:i.add,attachToURL:function(t){(t=N(t))&&Qn().includes(t)&&a(t)},attachAllToURL:function({includeHiddenApp:t=!1,includePreRender:e=!1}){Qn({excludeHiddenApp:!t,excludePreRender:!e}).forEach(t=>a(t))}},function(){const t=function(){const t=new Map;return{add:function(e,n){return t.set(e,n),()=>!!t.has(e)&&t.delete(e)},get:e=>t.get(e),delete:e=>!!t.has(e)&&t.delete(e)}}();return{setDefaultPage:function(e){const n=N(e.name);return n&&e.path?t.add(n,e.path):s},removeDefaultPage:function(e){return!!(e=N(e))&&t.delete(e)},getDefaultPage:t.get}}()),function(){let t=null;return{setBaseAppRouter:function(e){x(e)&&(t=new Proxy(e,{get:(t,e)=>(X(),_e(Reflect.get(t,e),t,"BASEROUTER")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)}))},getBaseAppRouter:()=>t}}());return{router:c,executeNavigationGuard:function(t,e,n){c.current.set(t,e),o(t,e,n,r.list()),G(()=>{o(t,e,n,i.list())})},clearRouterWhenUnmount:function(t){c.current.delete(t)}}}(),$e=["getComputedStyle","visualViewport","matchMedia","ResizeObserver","IntersectionObserver"],tn=[/animationFrame$/i,/mutationObserver$/i,/height$|width$/i,/offset$/i,/selection$/i,/^range/i,/^screen/i,/^scroll/i,/X$|Y$/],en=["body","head","html","title"],nn=["host","hostname","port","protocol","origin"],rn=["childElementCount","children","firstElementChild","firstChild","lastElementChild","activeElement","fullscreenElement","pictureInPictureElement","pointerLockElement","styleSheets"],on=["append","contains","replaceChildren","createRange","getSelection","elementFromPoint","elementsFromPoint","getAnimations"],sn=["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],an=["execCommand","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],cn=["href","pathname","search","hash","host","hostname","port","protocol","search","origin","fullPath"];function ln(t,e,n,r,i,o){const s=Gn.rawWindow.location,a=!!n,c=k(e);function u(){return a?n.location:c}function h(e,n){const r=k(e,v.href);if(r.origin===v.origin){const e=Re(t,r);if(ke(t)){if(r.pathname===v.pathname&&r.search===v.search){let i=null;return r.hash!==v.hash&&(e.isAttach2Hash&&(i=s.href),We(t,n,e.fullPath)),void(r.hash?Ge(t,!1,i):g())}if(e.isAttach2Hash)return We(t,n,e.fullPath),void g()}return e.fullPath}return e}function d(n,r){const i=k(n,e);i[r]===v[r]&&v.hash?Ge(t,!1):(We(t,i[r]===v[r]?"replaceState":"pushState",Re(t,i).fullPath),g())}const f=e=>function(n){if(Be(t)){const t=h(n,"assign"===e?"pushState":"replaceState");t&&s[e](k(t,s.origin).href)}},p=f("assign"),m=f("replace"),g=t=>s.reload(t);l(u(),"fullPath",{enumerable:!0,configurable:!0,get:()=>v.pathname+v.search+v.hash});const v=new Proxy({},{get:(e,n)=>{const c=u();if("assign"===n)return p;if("replace"===n)return m;if("reload"===n)return g;if("self"===n)return c;if("fullPath"===n)return c.fullPath;if(De(t))return _e(Reflect.get(s,n),s,"LOCATION");if(a){if(nn.includes(n))return r[n];if("href"===n)return c[n].replace(i,o)}return _e(Reflect.get(c,n),c,"LOCATION")},set:(n,r,i)=>{if(Be(t)){const n=u();if("href"===r){const t=h(i,"pushState");t&&(s.href=k(t,s.origin).href)}else if("pathname"===r)if(Ne(t))s.pathname=i;else{d(("/"+i).replace(/^\/+/,"/")+v.search+v.hash,"pathname")}else if("search"===r)if(Ne(t))s.search=i;else{d(v.pathname+("?"+i).replace(/^\?+/,"?")+v.hash,"search")}else if("hash"===r)if(Ne(t))s.hash=i;else{const n=v.pathname+v.search+("#"+i).replace(/^#+/,"#"),r=k(n,e);r.hash!==v.hash&&Ve(t,"pushState",Re(t,r),!1)}else Reflect.set(n,r,i)}return!0}});return v}function un(t,e){const n=c({name:t},e);for(const t of cn)n[t]=e[t];return n}function hn(t,e,n,r){var i;const o=un(t,n),s=k(e,n.href);if(Pn(t)){const e=Tn.get(t).sandBox.microAppWindow;null===(i=e.rawReplaceState)||void 0===i||i.call(e.history,Se(t),"",s.href)}else{let t=s.href;n.self.origin!==s.origin&&(t=t.replace(s.origin,n.self.origin)),n.self.href=t}const a=un(t,n);("auto"===r||o.fullPath!==a.fullPath&&"prevent"!==r)&&qe(t,a,o)}function dn(t,e,n){const r=Le(t);r?hn(t,r,e,"auto"):fn(t,e,n)}function fn(t,e,n){n&&hn(t,n,e,"prevent"),Fe(t)||Ze(t,Re(t,e),we(t,null)),function(t,e){qe(t,un(t,e),un(t,e))}(t,e)}function pn(t,e,n,r){if(!Ne(t)){if(!r){const{pathname:r,search:i,hash:o}=k(e);hn(t,r+i+o,n,"prevent")}Fe(t)||mn(t)}Ke(t)}function mn(t){Ze(t,function(t,e){var n,r,i,o;let{pathname:s,search:a,hash:c}=e||Gn.rawWindow.location,l=!1;if(ke(t)){const e=Oe(a,c);if(null===(n=e.hashQuery)||void 0===n?void 0:n[t]){l=!0,null===(r=e.hashQuery)||void 0===r||delete r[t];const n=rt(e.hashQuery);c=c.slice(0,c.indexOf("?")+Number(Boolean(n)))+n}else if(null===(i=e.searchQuery)||void 0===i?void 0:i[t]){null===(o=e.searchQuery)||void 0===o||delete o[t];const n=rt(e.searchQuery);a=n?"?"+n:""}}return{fullPath:s+a+c,isAttach2Hash:l}}(t),function(t,e){return ke(t)?(b(null==e?void 0:e.microAppState)&&(p(e.microAppState[t])||delete e.microAppState[t],Object.keys(e.microAppState).length||delete e.microAppState),c({},e)):e}(t,Gn.rawWindow.history.state))}class gn{}function vn(t,e){const n=Array.from(t.children);n.length&&n.forEach(t=>{vn(t,e)});for(const t of n)yn(t,e)}function yn(t,e){var n,r;const i=null===(r=null===(n=Tn.get(e))||void 0===n?void 0:n.sandBox)||void 0===r?void 0:r.proxyWindow;return C(t)&&!t.__MICRO_APP_NAME__&&!t.__PURE_ELEMENT__&&i&&u(t,{baseURI:{configurable:!0,get:()=>i.location.href},__MICRO_APP_NAME__:{configurable:!0,writable:!0,value:e}}),t}function _n(t,e){const n=p(e)?Gn.rawWindow.fetch:e;return _(n)?function(e,r,...i){return(g(e)||M(e))&&(e=k(e,t).toString()),X(),n.call(Gn.rawWindow,e,r,...i)}:n}function bn(t,e){const n=p(e)?Gn.rawWindow.XMLHttpRequest:e;return S(n)?class extends n{open(e,n,...r){(g(n)&&!/^f(ile|tp):\/\//.test(n)||M(n))&&(n=k(n,t).toString()),X(),super.open(e,n,...r)}}:n}const{createMicroEventSource:xn,clearMicroEventSource:wn}=function(){let t;return{createMicroEventSource:function(e,n,r){const i=p(r)?Gn.rawWindow.EventSource:r;return S(i)?class extends i{constructor(r,i,...o){if((g(r)||M(r))&&(r=k(r,n).toString()),X(),super(r,i,...o),t){const n=t.get(e);n?n.add(this):t.set(e,new Set([this]))}else t=new Map([[e,new Set([this])]])}close(){var n;super.close(),null===(n=t.get(e))||void 0===n||n.delete(this)}}:i},clearMicroEventSource:function(e){const n=null==t?void 0:t.get(e);(null==n?void 0:n.size)&&(n.forEach(t=>{t.close()}),n.clear())}}}();class Sn extends class{constructor(){this.rawWindowScopeKeyList=["location"],this.staticEscapeProperties=["System","__cjsWrapper"],this.staticScopeProperties=["webpackJsonp","webpackHotUpdate","Vue","onpopstate","onhashchange"],this.scopeProperties=Array.from(this.staticScopeProperties),this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.injectReactHMRProperty()}injectReactHMRProperty(){0}}{constructor(t,e){super(),this.active=!1,this.microAppWindow=new gn,this.patchWith(n=>{this.getSpecialProperties(t),this.patchRouter(t,e,this.microAppWindow),this.windowEffect=xe(t,this.microAppWindow,this),this.documentEffect=be(t,this.microAppWindow,this),this.setMappingPropertiesWithRawDescriptor(this.microAppWindow),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}start({umdMode:t,baseroute:e,defaultPage:n,disablePatchRequest:r}){this.active||(this.active=!0,this.initRouteState(n),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=e),t||this.initGlobalKeysWhenStart(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow,r),1==++Gn.activeSandbox&&(Nn(),Xe()),1==++Sn.activeCount&&window.__MICRO_APP_ENVIRONMENT__&&(ve(),window.addEventListener("unmount",ge,!1)),Gn.rawWindow._babelPolyfill&&(Gn.rawWindow._babelPolyfill=!1))}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({umdMode:t,clearData:r,destroy:n},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(wn(this.microAppWindow.__MICRO_APP_NAME__),this.injectedKeys.forEach(t=>{Reflect.deleteProperty(this.microAppWindow,t)}),this.injectedKeys.clear(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--Sn.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="with",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){this.windowEffect.reset(),this.documentEffect.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){this.windowEffect.record(),this.documentEffect.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){this.windowEffect.rebuild(),this.documentEffect.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({umdMode:t=!1,clearData:e=!1,isPrerender:n=!1,keepAlive:r=!1,destroy:i=!1}){var o,s,a;this.windowEffect.release(!t&&!r&&!n||i),this.documentEffect.release(),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearDataListener(),null===(s=this.microAppWindow.microApp)||void 0===s||s.clearGlobalDataListener(),e&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(a=this.microAppWindow.microApp)||void 0===a||a.clearData())}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&(a(e.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(e.scopeProperties)),a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties)))}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchWith(t){this.sandboxReady=new Promise(e=>t(e))}setMappingPropertiesWithRawDescriptor(t){let e,n;const r=Gn.rawWindow;r===r.parent?e=n=this.proxyWindow:(e=r.top,n=r.parent),u(t,{top:this.createDescriptorForMicroAppWindow("top",e),parent:this.createDescriptorForMicroAppWindow("parent",n)}),zt.forEach(e=>{l(t,e,this.createDescriptorForMicroAppWindow(e,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,e){const{configurable:n=!0,enumerable:r=!0,writable:i,set:o}=Object.getOwnPropertyDescriptor(Gn.rawWindow,t)||{writable:!0};return{value:e,configurable:n,enumerable:r,writable:null!=i?i:!!o}}initGlobalKeysWhenStart(t,e,n,r){n.hasOwnProperty=t=>d.call(n,t)||d.call(Gn.rawWindow,t),this.setHijackProperty(t,n),r||this.patchRequestApi(t,e,n),this.setScopeProperties(n)}setHijackProperty(t,e){let n,r;u(e,{eval:{configurable:!0,enumerable:!1,get:()=>(Y(t),n||Gn.rawWindow.eval),set:t=>{n=t}},Image:{configurable:!0,enumerable:!1,get:()=>(Y(t),r||Gn.ImageProxy),set:t=>{r=t}}})}patchRequestApi(t,e,n){let r=_n(e),i=bn(e),o=xn(t,e);u(n,{fetch:{configurable:!0,enumerable:!0,get:()=>r,set(t){r=_n(e,t)}},XMLHttpRequest:{configurable:!0,enumerable:!0,get:()=>i,set(t){i=bn(e,t)}},EventSource:{configurable:!0,enumerable:!0,get:()=>o,set(n){o=xn(t,e,n)}}})}setScopeProperties(t){this.scopeProperties.forEach(e=>{Reflect.set(t,e,t[e])})}patchRouter(t,e,n){const{microLocation:r,microHistory:i}=function(t,e){const n=ln(t,e);return{microLocation:n,microHistory:He(t,n)}}(t,e);u(n,{location:{configurable:!1,enumerable:!0,get:()=>r,set:t=>{Gn.rawWindow.location=t}},history:{configurable:!0,enumerable:!0,get:()=>i}})}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}function Mn(t,e,n){return function(t,e){const n=Gn.rawWindow;$e.forEach(t=>{e[t]=_e(n[t],n)}),Object.getOwnPropertyNames(e).filter(t=>(tn.some(r=>{if(r.test(t)&&t in e.parent){if(_(n[t]))e[t]=_e(n[t],n);else{const{configurable:r,enumerable:i}=Object.getOwnPropertyDescriptor(e,t)||{configurable:!0,enumerable:!0};r&&l(e,t,{configurable:r,enumerable:i,get:()=>n[t],set:e=>{n[t]=e}})}return!0}return!1}),/^on/.test(t)&&!Nt.includes(t))).forEach(r=>{const{enumerable:i,writable:o,set:s}=Object.getOwnPropertyDescriptor(e,r)||{enumerable:!0,writable:!0};try{l(e,r,{enumerable:i,configurable:!0,get:()=>n[r],set:(null!=o?o:s)?t=>{n[r]=_(t)?t.bind(e):t}:void 0})}catch(e){O(e,t)}})}(t,e),function(t,e){const n=Gn.rawWindow,r=new Set,i=new Proxy(t,{get:(t,o)=>"location"===o?e.proxyLocation:L(zt,o)?i:r.has(o)?Reflect.get(t,o):L(e.escapeProperties,o)&&!Reflect.has(t,o)?_e(Reflect.get(n,o),n):_e(Reflect.get(t,o),t),set:(t,i,o)=>"location"===i?Reflect.set(n,i,o):(Reflect.has(t,i)||r.add(i),Reflect.set(t,i,o),L(e.escapeProperties,i)&&(!Reflect.has(n,i)&&e.escapeKeys.add(i),Reflect.set(n,i,o)),!0),has:(t,e)=>e in t,deleteProperty:(t,r)=>!Reflect.has(t,r)||(e.escapeKeys.has(r)&&Reflect.deleteProperty(n,r),Reflect.deleteProperty(t,r))});e.proxyWindow=i}(e,n),function(t){const{rawWindow:e,rawAddEventListener:n,rawRemoveEventListener:r}=Gn,i=new Map,o=new Map;function s(n){return Ft.includes(n)?t:e}t.addEventListener=function(t,e,r){const o=i.get(t);o?o.add(e):i.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),n.call(s(t),t,e,r)},t.removeEventListener=function(t,e,n){const o=i.get(t);(null==o?void 0:o.size)&&o.has(e)&&o.delete(e),r.call(s(t),t,e,n)};const a=()=>{o.clear()};return{reset:a,record:()=>{i.forEach((t,e)=>{if(t.size){const n=o.get(e)||[];o.set(e,new Set([...n,...t]))}})},rebuild:()=>{o.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),a()},release:()=>{i.size&&(i.forEach((t,e)=>{for(const n of t)r.call(s(e),e,n)}),i.clear())}}}(e)}function An(t,e,n){return function(t,e){const n=Gn.rawDocument,r=e.Document,i=e.document,o=r.prototype.createElement,s=r.prototype.createElementNS,a=r.prototype.createTextNode,c=r.prototype.createDocumentFragment,l=r.prototype.createComment,u=r.prototype.querySelector,h=r.prototype.querySelectorAll,d=r.prototype.getElementById,f=r.prototype.getElementsByClassName,p=r.prototype.getElementsByTagName,m=r.prototype.getElementsByName,g=r.prototype.elementFromPoint,v=r.prototype.caretRangeFromPoint;function y(t){return i!==t?t:n}function _(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return u.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelector(e))&&void 0!==r?r:null}function b(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return h.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelectorAll(e))&&void 0!==r?r:[]}r.prototype.caretRangeFromPoint=function(e,r){const i=g.call(n,e,r),o=v.call(n,e,r);return yn(i,t),o},r.prototype.createElement=function(e,n){return yn(o.call(this,e,n),t)},r.prototype.createElementNS=function(e,n,r){return yn(s.call(this,e,n,r),t)},r.prototype.createTextNode=function(e){return yn(a.call(this,e),t)},r.prototype.createDocumentFragment=function(){return yn(c.call(this),t)},r.prototype.createComment=function(e){return yn(l.call(this,e),t)},r.prototype.querySelector=_,r.prototype.querySelectorAll=b,r.prototype.getElementById=function(t){const e=y(this);if(q(t))return d.call(e,t);try{return _.call(this,"#"+t)}catch(n){return d.call(e,t)}},r.prototype.getElementsByClassName=function(t){const e=y(this);if(q(t))return f.call(e,t);try{return b.call(this,"."+t)}catch(n){return f.call(e,t)}},r.prototype.getElementsByTagName=function(t){const e=y(this);if(K(t)||q(t))return p.call(e,t);if(/^script|base$/i.test(t))return p.call(i,t);try{return b.call(this,t)}catch(n){return p.call(e,t)}},r.prototype.getElementsByName=function(t){const e=y(this);if(q(t))return m.call(e,t);try{return b.call(this,`[name=${t}]`)}catch(n){return m.call(e,t)}}}(t,e),function(t,e,n){const r=Gn.rawDocument,i=e.Document,o=e.document,s=(t,e)=>{const{enumerable:n}=Object.getOwnPropertyDescriptor(i.prototype,t)||{enumerable:!0};return{configurable:!0,enumerable:n,get:e}};u(i.prototype,(()=>{const e={};return[["documentURI",()=>n.proxyLocation.href],["URL",()=>n.proxyLocation.href],["documentElement",()=>r.documentElement],["scrollingElement",()=>r.scrollingElement],["forms",()=>i.prototype.querySelectorAll.call(o,"form")],["images",()=>i.prototype.querySelectorAll.call(o,"img")],["links",()=>i.prototype.querySelectorAll.call(o,"a")],["microAppElement",()=>{var e;return null===(e=Tn.get(t))||void 0===e?void 0:e.container}],["__MICRO_APP_NAME__",()=>t]].forEach(t=>{e[t[0]]=s(t[0],t[1])}),rn.forEach(t=>{e[t]=s(t,()=>r[t])}),on.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),sn.forEach(t=>{e[t]=s(t,()=>r[t])}),an.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),e})()),en.forEach(e=>{l(o,e,{enumerable:!0,configurable:!0,get:()=>(Y(t),r[e]),set:t=>{r[e]=t}})})}(t,e,n),function(t,e){const{rawDocument:n,rawAddEventListener:r,rawRemoveEventListener:i}=Gn,o=new Map,s=new Map;let a=null,c=null;const u=e.Document,h=e.document;function d(t,e){return jt.includes(t)?e:n}function f(t){return"onclick"===t?t=>{_(a)&&i.call(n,"click",a,!1),_(t)?(a=t.bind(h),r.call(n,"click",a,!1)):a=t}:e=>{n[t]=_(e)?e.bind(h):e}}u.prototype.addEventListener=function(t,e,n){const i=_(e)?e.__MICRO_APP_BOUND_FUNCTION__=e.__MICRO_APP_BOUND_FUNCTION__||e.bind(this):e,s=o.get(t);s?s.add(e):o.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=n),r.call(d(t,this),t,i,n)},u.prototype.removeEventListener=function(t,e,n){const r=o.get(t);(null==r?void 0:r.size)&&r.has(e)&&r.delete(e);const s=(null==e?void 0:e.__MICRO_APP_BOUND_FUNCTION__)||e;i.call(d(t,this),t,s,n)},Object.getOwnPropertyNames(u.prototype).filter(t=>/^on/.test(t)&&!Ut.includes(t)).forEach(e=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(u.prototype,e)||{enumerable:!0,writable:!0};try{l(u.prototype,e,{enumerable:r,configurable:!0,get:()=>"onclick"===e?a:n[e],set:(null!=i?i:o)?f(e):void 0})}catch(e){O(e,t)}});const p=()=>{s.clear(),c=null};return{reset:p,record:()=>{c=a||c,o.forEach((t,e)=>{if(t.size){const n=s.get(e)||[];s.set(e,new Set([...n,...t]))}})},rebuild:()=>{c&&!a&&(h.onclick=c),s.forEach((t,e)=>{for(const n of t)h.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),p()},release:()=>{_(a)&&i.call(n,"click",a),a=null,o.size&&(o.forEach((t,e)=>{for(const n of t)i.call(d(e,h),e,(null==n?void 0:n.__MICRO_APP_BOUND_FUNCTION__)||n)}),o.clear())}}}(t,e)}function Cn(t,e,n,r){!function(t,e,n){const r=Gn.rawRootElement,i=Gn.rawDocument,o=e.document,s=e.Node,a=e.Element,c=s.prototype.appendChild,u=s.prototype.insertBefore,h=s.prototype.replaceChild,d=s.prototype.removeChild,p=a.prototype.append,m=a.prototype.prepend,g=a.prototype.insertAdjacentElement,v=s.prototype.cloneNode,y=Object.getOwnPropertyDescriptor(a.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(s.prototype,"parentNode"),b=Object.getOwnPropertyDescriptor(s.prototype,"ownerDocument"),x=t=>(I(t)||function(t){return"[object HTMLBaseElement]"===f(t)}(t))&&t.__PURE_ELEMENT__,w=t=>t===n.microHead?i.head:t===n.microBody?i.body:t;s.prototype.getRootNode=function(){return o},s.prototype.appendChild=function(e){return yn(e,t),x(e)?c.call(this,e):r.prototype.appendChild.call(w(this),e)},s.prototype.insertBefore=function(e,n){return yn(e,t),x(e)?u.call(this,e,n):r.prototype.insertBefore.call(w(this),e,n)},s.prototype.replaceChild=function(e,n){return yn(e,t),x(e)?h.call(this,e,n):r.prototype.replaceChild.call(w(this),e,n)},s.prototype.removeChild=function(t){return x(t)||this.contains(t)?d.call(this,t):r.prototype.removeChild.call(w(this),t)},a.prototype.append=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?p.call(this,...t):r.prototype.append.call(w(this),...t)},a.prototype.prepend=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?m.call(this,...t):r.prototype.prepend.call(w(this),...t)},a.prototype.insertAdjacentElement=function(e,n){return yn(n,t),x(n)?g.call(this,e,n):r.prototype.insertAdjacentElement.call(w(this),e,n)},s.prototype.cloneNode=function(e){return yn(v.call(this,e),t)},l(s.prototype,"ownerDocument",{configurable:!0,enumerable:!0,get(){return this.__PURE_ELEMENT__?b.get.call(this):o}}),l(a.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return y.get.call(this)},set(e){y.set.call(this,e),Array.from(this.children).forEach(e=>{A(e)&&yn(e,t)})}}),l(s.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var e,n,r;Y(t);const i=_.get.call(this);return P(i)&&(null===(e=Tn.get(t))||void 0===e?void 0:e.container)?(null===(r=(n=er.options).getRootElementParentNode)||void 0===r?void 0:r.call(n,this,t))||Gn.rawDocument.body:i}});const S=new Proxy(e.Image,{construct(e,n){const r=new e(...n);return yn(r,t),r}});l(e,"Image",{configurable:!0,writable:!0,value:S})}(t,n,r),function(t,e){const n=e.Element,r=n.prototype.setAttribute;n.prototype.setAttribute=function(e,n){(("src"===e||"srcset"===e)&&/^(img|script)$/i.test(this.tagName)||"href"===e&&/^link$/i.test(this.tagName))&&(n=U(n,t)),r.call(this,e,n)};[[e.HTMLImageElement.prototype,"src"],[e.HTMLScriptElement.prototype,"src"],[e.HTMLLinkElement.prototype,"href"]].forEach(([e,n])=>{const{enumerable:r,configurable:i,get:o,set:s}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,configurable:!0};l(e,n,{enumerable:r,configurable:i,get:function(){return null==o?void 0:o.call(this)},set:function(e){null==s||s.call(this,U(e,t))}})})}(e,n)}Sn.activeCount=0;class En{constructor(t,e){this.active=!1,this.escapeProperties=[],this.escapeKeys=new Set,this.updateIframeBase=()=>{var t;null===(t=this.baseElement)||void 0===t||t.setAttribute("href",k(this.url).origin+this.proxyLocation.pathname)},this.appName=t,this.url=e;const n=Gn.rawWindow.location,r=n.protocol+"//"+n.host;this.deleteIframeElement=this.createIframeElement(t,r+n.pathname),this.microAppWindow=this.iframe.contentWindow,this.patchIframe(this.microAppWindow,n=>{this.createIframeTemplate(this.microAppWindow),this.getSpecialProperties(t),this.proxyLocation=function(t,e,n,r){const i=k(e),o=i.protocol+"//"+i.host,s=i.pathname+i.search+i.hash,a=n.history;return n.rawReplaceState=a.replaceState,c(a,He(t,n.location)),hn(t,s,n.location,"prevent"),ln(t,e,n,i,r,o)}(t,e,this.microAppWindow,r),this.windowEffect=Mn(t,this.microAppWindow,this),this.documentEffect=An(t,this.microAppWindow,this),Cn(t,e,this.microAppWindow,this),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}createIframeElement(t,e){this.iframe=J("iframe");const n={src:er.options.iframeSrc||e,style:"display: none",id:t};return Object.keys(n).forEach(t=>this.iframe.setAttribute(t,n[t])),Gn.rawDocument.body.appendChild(this.iframe),()=>B(()=>{var t,e;null===(e=null===(t=this.iframe)||void 0===t?void 0:t.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null})}start({baseroute:t,defaultPage:e,disablePatchRequest:n}){this.active||(this.active=!0,this.initRouteState(e),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t),n||this.createIframeBase(),1==++Gn.activeSandbox&&(Nn(),Xe()),++En.activeCount)}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({clearData:r},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(this.deleteIframeElement(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--En.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="iframe",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,location:this.proxyLocation,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.reset(),null===(e=this.documentEffect)||void 0===e||e.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.record(),null===(e=this.documentEffect)||void 0===e||e.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.rebuild(),null===(e=this.documentEffect)||void 0===e||e.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({clearData:t=!1}){var e,n,r,i,o;null===(e=this.windowEffect)||void 0===e||e.release(),null===(n=this.documentEffect)||void 0===n||n.release(),null===(r=this.microAppWindow.microApp)||void 0===r||r.clearDataListener(),null===(i=this.microAppWindow.microApp)||void 0===i||i.clearGlobalDataListener(),t&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearData())}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchIframe(t,e){const n=t.document;this.sandboxReady=new Promise(r=>{!function i(){setTimeout(()=>{try{t.document===n?i():(t.stop(),e(r))}catch(t){i()}},0)}()})}createIframeTemplate(t){const e=t.document;!function(t){for(;null==t?void 0:t.firstChild;)t.removeChild(t.firstChild)}(e);const n=e.createElement("html");n.innerHTML="<head></head><body></body>",e.appendChild(n),this.microBody=e.body,this.microHead=e.head}createIframeBase(){this.baseElement=J("base"),this.updateIframeBase(),this.microHead.appendChild(this.baseElement)}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties))}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}En.activeCount=0;const Tn=new Map;class In{constructor({name:t,url:e,container:n,scopecss:r,useSandbox:i,inline:o,iframe:s,ssrUrl:a,isPrefetch:c,prefetchLevel:l,routerMode:u}){this.state=Ct.CREATED,this.keepAliveState=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.lifeCycleState=null,this.umdMode=!1,this.sandBox=null,this.fiber=!1,Tn.set(t,this),this.name=t,this.url=e,this.useSandbox=i,this.scopecss=this.useSandbox&&r,this.iframe=null!=s&&s,this.inline=this.getInlineModeState(o),this.routerMode=u||"search",this.container=null!=n?n:null,this.ssrUrl=null!=a?a:"",this.isPrefetch=null!=c&&c,this.isPrerender=3===l,this.prefetchLevel=l,this.source={html:null,links:new Set,scripts:new Set},this.loadSourceCode(),this.createSandbox()}loadSourceCode(){this.setAppState(Ct.LOADING),ft.getInstance().run(this,se)}onLoad({html:t,defaultPage:e,routerMode:n,baseroute:r,disablePatchRequest:i}){var o;if(2==++this.loadSourceLevel)if(this.source.html=t,this.isPrefetch||this.isUnmounted()){if(this.isPrerender){const t=J("div");t.setAttribute("prerender","true"),null===(o=this.sandBox)||void 0===o||o.setPreRenderState(!0),this.mount({container:t,inline:this.inline,fiber:!0,defaultPage:e||"",disablePatchRequest:null!=i&&i,routerMode:n,baseroute:r||""})}}else $(this.container).mount(this)}onLoadError(t){this.loadSourceLevel=-1,this.isUnmounted()||(this.onerror(t),this.setAppState(Ct.LOAD_FAILED))}mount({container:t,inline:e,routerMode:n,defaultPage:r,baseroute:i,disablePatchRequest:o,fiber:s}){if(2!==this.loadSourceLevel)return this.container=t,this.isPrerender=!1,ht(this,"statechange",{appState:Ct.LOADING}),this.setAppState(Ct.LOADING);this.createSandbox(),this.setAppState(Ct.BEFORE_MOUNT);const a=()=>{var a,c,l,u,h,d,m,v;if(this.isPrerender&&(v=this.container,"[object HTMLDivElement]"===f(v))&&this.container.hasAttribute("prerender"))null===(a=this.sandBox)||void 0===a||a.rebuildEffectSnapshot(),this.cloneContainer(t,this.container,!1),this.container=t,null===(c=this.preRenderEvents)||void 0===c||c.forEach(t=>t()),this.isPrerender=!1,this.preRenderEvents=null,Je.attachToURL(this.name),null===(l=this.sandBox)||void 0===l||l.setPreRenderState(!1);else{this.container=t,this.inline=this.getInlineModeState(e),this.fiber=s,this.routerMode=n;const a=()=>{this.setLifeCycleState(Et.BEFOREMOUNT),ut(this.container,this.name,Et.BEFOREMOUNT)};if(this.isPrerender?(null!==(u=this.preRenderEvents)&&void 0!==u?u:this.preRenderEvents=[]).push(a):a(),this.setAppState(Ct.MOUNTING),ht(this,"statechange",{appState:Ct.MOUNTING}),this.cloneContainer(this.container,this.source.html,!this.umdMode),null===(h=this.sandBox)||void 0===h||h.start({umdMode:this.umdMode,baseroute:i,defaultPage:r,disablePatchRequest:o}),this.umdMode){null===(m=this.sandBox)||void 0===m||m.rebuildEffectSnapshot();try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else null===(d=this.sandBox)||void 0===d||d.actionBeforeExecScripts(this.container),function(t,e){const n=t.fiber?[]:null,r=Array.from(t.source.scripts),i=[],o=[];for(const s of r){const r=Lt.script.getInfo(s),a=r.appSpace[t.name];a.defer||a.async?(!r.isExternal||r.code||Vt(t,r)?i.push(r.code):i.push(dt(s,t.name)),o.push([s,r]),Vt(t,r)&&(e.moduleCount=e.moduleCount?++e.moduleCount:1)):st(n,()=>{re(s,t,r),e(!1)})}i.length?z(i,t=>{const e=o[t.index][1];e.code=e.code||t.data},n=>{e.errorCount=e.errorCount?++e.errorCount:1,R(n,t.name)},()=>{o.forEach(([r,i])=>{g(i.code)&&st(n,()=>{re(r,t,i,e),!Vt(t,i)&&e(!1)})}),n?(n.push(()=>Promise.resolve(e(p(e.moduleCount)||e.errorCount===i.length))),at(n)):e(p(e.moduleCount)||e.errorCount===i.length)}):n?(n.push(()=>Promise.resolve(e(!0))),at(n)):e(!0)}(this,t=>{if(!this.umdMode){const{mount:e,unmount:n}=this.getUmdLibraryHooks();if(this.umdHookUnmount=n,_(e)&&_(n)){this.umdHookMount=e,this.sandBox.markUmdMode(this.umdMode=!0);try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else!0===t&&this.handleMounted()}})}};this.sandBox?this.sandBox.sandboxReady.then(a):a()}handleMounted(t){var e,n;const r=()=>{w(t)?t.then(()=>this.dispatchMountedEvent()).catch(t=>{R("An error occurred in window.mount \n",this.name,t),this.dispatchMountedEvent()}):this.dispatchMountedEvent()};this.isPrerender?(null===(e=this.preRenderEvents)||void 0===e||e.push(r),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({isPrerender:!0})):r()}dispatchMountedEvent(){var t;this.isUnmounted()||(this.setAppState(Ct.MOUNTED),lt(this.getMicroAppGlobalHook(Tt.ONMOUNT),this.name,Tt.ONMOUNT,er.getData(this.name,!0)),ht(this,"statechange",{appState:Ct.MOUNTED}),ht(this,"mounted"),this.setLifeCycleState(Et.MOUNTED),ut(this.container,this.name,Et.MOUNTED),this.isHidden()&&(null===(t=this.sandBox)||void 0===t||t.recordAndReleaseEffect({keepAlive:!0})))}unmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;t=t||this.state===Ct.LOAD_FAILED,this.setAppState(Ct.UNMOUNT);let o=null;try{o=null===(i=this.umdHookUnmount)||void 0===i?void 0:i.call(this,er.getData(this.name,!0))}catch(t){R("An error occurred in window.unmount \n",this.name,t)}ht(this,"statechange",{appState:Ct.UNMOUNT}),ht(this,"unmount"),lt(this.getMicroAppGlobalHook(Tt.ONUNMOUNT),this.name,Tt.ONUNMOUNT),this.handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:o})}handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:i}){const o=()=>this.actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r});w(i)?(X(),i.then(o).catch(o)):o()}actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;this.umdMode&&this.container&&!t&&this.cloneContainer(this.source.html,this.container,!1),null===(i=this.sandBox)||void 0===i||i.stop({umdMode:this.umdMode,keepRouteState:n&&!t,destroy:t,clearData:e||t}),this.setLifeCycleState(Et.UNMOUNT),ut(this.container,this.name,Et.UNMOUNT),this.clearOptions(t),null==r||r()}clearOptions(t){this.container.innerHTML="",this.container=null,this.isPrerender=!1,this.preRenderEvents=null,this.setKeepAliveState(null),this.iframe&&!this.umdMode&&(this.sandBox=null),t&&this.actionsForCompletelyDestroy(),X()}actionsForCompletelyDestroy(){var t,e;null===(e=null===(t=this.sandBox)||void 0===t?void 0:t.deleteIframeElement)||void 0===e||e.call(t),Lt.script.deleteInlineInfo(this.source.scripts),Tn.delete(this.name)}hiddenKeepAliveApp(t){var e,n;this.setKeepAliveState(It.KEEP_ALIVE_HIDDEN),ht(this,"appstate-change",{appState:"afterhidden"}),this.setLifeCycleState(Et.AFTERHIDDEN),ut(this.container,this.name,Et.AFTERHIDDEN),ke(this.name)&&(null===(e=this.sandBox)||void 0===e||e.removeRouteInfoForKeepAliveApp()),2!==this.loadSourceLevel?$(this.container).unmount():(this.container=this.cloneContainer(J("div"),this.container,!1),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({keepAlive:!0})),null==t||t()}showKeepAliveApp(t){var e,n;null===(e=this.sandBox)||void 0===e||e.rebuildEffectSnapshot(),ht(this,"appstate-change",{appState:"beforeshow"}),ut(t,this.name,Et.BEFORESHOW),this.setKeepAliveState(It.KEEP_ALIVE_SHOW),this.container=this.cloneContainer(t,this.container,!1),ke(this.name)&&(null===(n=this.sandBox)||void 0===n||n.setRouteInfoForKeepAliveApp()),ht(this,"appstate-change",{appState:"aftershow"}),this.setLifeCycleState(Et.AFTERSHOW),ut(this.container,this.name,Et.AFTERSHOW)}onerror(t){this.setLifeCycleState(Et.ERROR),ht(this,"statechange",{appState:Ct.LOAD_FAILED}),ut(this.container,this.name,Et.ERROR,t)}parseHtmlString(t){var e;return(new((null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)?this.sandBox.proxyWindow.DOMParser:Gn.rawWindow.DOMParser)).parseFromString(t,"text/html").body}cloneContainer(t,e,n){return e&&(t.innerHTML="",Array.from(n?this.parseHtmlString(e.innerHTML).childNodes:e.childNodes).forEach(e=>{t.appendChild(e)})),t}createSandbox(){this.useSandbox&&!this.sandBox&&(this.sandBox=this.iframe?new En(this.name,this.url):new Sn(this.name,this.url))}setAppState(t){var e;this.state=t,null===(e=this.sandBox)||void 0===e||e.setStaticAppState(t)}getAppState(){return this.state}setLifeCycleState(t){this.lifeCycleState=t}getLifeCycleState(){return this.lifeCycleState||""}setKeepAliveState(t){this.keepAliveState=t}getKeepAliveState(){return this.keepAliveState}isUnmounted(){return Ct.UNMOUNT===this.state}isHidden(){return It.KEEP_ALIVE_HIDDEN===this.keepAliveState}getUmdLibraryHooks(){if(!this.isUnmounted()&&this.sandBox){const t=$(this.container).getAttribute("library")||"micro-app-"+this.name,e=this.sandBox.proxyWindow;return x(e[t])?e[t]:{mount:e.mount,unmount:e.unmount}}return{}}getMicroAppGlobalHook(t){var e,n;const r=null===(n=null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n[t];return _(r)?r:null}querySelector(t){return this.container?Gn.rawElementQuerySelector.call(this.container,t):null}querySelectorAll(t){return this.container?Gn.rawElementQuerySelectorAll.call(this.container,t):[]}getInlineModeState(t){var e;return null!==(e=this.iframe||t)&&void 0!==e&&e}}function Pn(t){var e,n;return null!==(n=null===(e=Tn.get(t))||void 0===e?void 0:e.iframe)&&void 0!==n&&n}const Ln=new WeakMap;function Rn(t){var e;return null!==(e=Ln.get(t))&&void 0!==e?e:t}function On(t,e){if(Ln.has(t))return Ln.get(t);if(T(t)){if(t.hasAttribute("exclude")){const e=document.createComment("style element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}return e.scopecss&&!t.hasAttribute("ignore")?bt(t,e):t}if(E(t)){if(t.hasAttribute("exclude")||te(t.getAttribute("href"),e.name)){const e=document.createComment("link element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}if(t.hasAttribute("ignore")||ee(t.getAttribute("href"),e.name)||t.href&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.href))return t;const{address:n,linkInfo:r,replaceComment:i}=Rt(t,null,e,!0);if(n&&r){const i=function(t,e,n,r){const i=J("style"),o=()=>{Bt(e,t,i,n,n.appSpace[e.name].attrs),St(r)};return n.code?B(o):dt(t,e.name).then(t=>{n.code=t,o()}).catch(t=>{R(t,e.name),Mt(r)}),i}(n,e,r,t);return Ln.set(t,i),i}return i?(Ln.set(t,i),i):t}if(I(t)){if(t.src&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.src))return t;const{replaceComment:n,address:r,scriptInfo:i}=Kt(t,null,e,!0)||{};if(r&&i){const n=i.isExternal?function(t,e,n,r){const i=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app"),o=()=>St(r),s=()=>{const s=Object.getOwnPropertyDescriptor(Gn.rawDocument,"currentScript");s&&!s.configurable||Object.defineProperty(Gn.rawDocument,"currentScript",{value:r,configurable:!0}),re(t,e,n,o,i),!Vt(e,n)&&o()};return n.code||Vt(e,n)?B(s):dt(t,e.name).then(t=>{n.code=t,s()}).catch(t=>{R(t,e.name),Mt(r)}),i}(r,e,i,t):function(t,e,n){const r=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app");return re(t,e,n,void 0,r),r}(r,e,i);return Ln.set(t,n),n}return n?(Ln.set(t,n),n):t}return t}function Bn(t,e,n,r,i){const o=kn(n,r,t);if(o){if(!Pn(t.name)&&P(o)&&e!==Gn.rawRemoveChild){const e=Object.getOwnPropertyDescriptor(r,"parentNode");e&&!e.configurable||r.__MICRO_APP_HAS_DPN__||u(r,{parentNode:{configurable:!0,get(){var e,n;const r=Gn.rawParentNodeDesc.get.call(this);return P(r)&&t.container?(null===(n=(e=er.options).getRootElementParentNode)||void 0===n?void 0:n.call(e,this,t.name))||document.body:r}},__MICRO_APP_HAS_DPN__:{configurable:!0,get:()=>!0}})}if(i&&!o.contains(i)){if(e===Gn.rawInsertBefore&&n.contains(i)){const t=Array.from(n.childNodes).indexOf(i);if(o.childNodes[t])return Dn(e,o,r,o.childNodes[t])}return Gn.rawAppendChild.call(o,r)}return e!==Gn.rawRemoveChild||o.contains(r)?Dn(e,o,r,i):n.contains(r)?e.call(n,r):r}return Dn(e,n,r,i)}function kn(t,e,n){if(n){if(t===document.head)return n.iframe&&I(e)?n.sandBox.microHead:n.querySelector("micro-app-head");if(t===document.body||t===document.body.parentNode)return n.iframe&&I(e)?n.sandBox.microBody:n.querySelector("micro-app-body");if(n.iframe&&I(e))return n.sandBox.microBody}return null}function Dn(t,e,n,r){return(i=t)===Gn.rawAppend||i===Gn.rawPrepend?t.call(e,n):t.call(e,n,r);var i}function Fn(t,e,n,r){const i=Z();if(C(e)&&!e.__PURE_ELEMENT__&&(e.__MICRO_APP_NAME__||i)){e.__MICRO_APP_NAME__=e.__MICRO_APP_NAME__||i;const o=Tn.get(e.__MICRO_APP_NAME__);if(T(e)){t.getRootNode()instanceof ShadowRoot&&e.setAttribute("ignore","true")}if(null==o?void 0:o.container)return function(t,e){A(e)&&(/^(img|script)$/i.test(e.tagName)?(e.hasAttribute("src")&&Gn.rawSetAttribute.call(e,"src",U(e.getAttribute("src"),t.url)),e.hasAttribute("srcset")&&Gn.rawSetAttribute.call(e,"srcset",U(e.getAttribute("srcset"),t.url))):/^link$/i.test(e.tagName)&&e.hasAttribute("href")&&Gn.rawSetAttribute.call(e,"href",U(e.getAttribute("href"),t.url)))}(o,e),Bn(o,r,t,On(e,o),n&&Rn(n))}return r===Gn.rawAppend||r===Gn.rawPrepend?r.call(t,e):r.call(t,e,n)}function Nn(){!function(){const t=Gn.rawDocument,e=Gn.rawRootDocument;function n(e){return function(t){return"[object ProxyDocument]"===f(t)}(e)?t:e}function r(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelector(e))&&void 0!==i?i:null:Gn.rawQuerySelector.call(o,e)}function i(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelectorAll(e))&&void 0!==i?i:[]:Gn.rawQuerySelectorAll.call(o,e)}e.prototype.createElement=function(t,e){return jn(Gn.rawCreateElement.call(n(this),t,e))},e.prototype.createElementNS=function(t,e,r){return jn(Gn.rawCreateElementNS.call(n(this),t,e,r))},e.prototype.createDocumentFragment=function(){return jn(Gn.rawCreateDocumentFragment.call(n(this)))},e.prototype.createComment=function(t){return jn(Gn.rawCreateComment.call(n(this),t))},e.prototype.querySelector=r,e.prototype.querySelectorAll=i,e.prototype.getElementById=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementById.call(e,t);try{return r.call(e,"#"+t)}catch(n){return Gn.rawGetElementById.call(e,t)}},e.prototype.getElementsByClassName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByClassName.call(e,t);try{return i.call(e,"."+t)}catch(n){return Gn.rawGetElementsByClassName.call(e,t)}},e.prototype.getElementsByTagName=function(t){var e;const r=n(this),o=Z();if(!o||K(t)||q(t)||!(null===(e=Tn.get(o))||void 0===e?void 0:e.inline)&&/^script$/i.test(t))return Gn.rawGetElementsByTagName.call(r,t);try{return i.call(r,t)}catch(e){return Gn.rawGetElementsByTagName.call(r,t)}},e.prototype.getElementsByName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByName.call(e,t);try{return i.call(e,`[name=${t}]`)}catch(n){return Gn.rawGetElementsByName.call(e,t)}}}();const t=Gn.rawRootElement,e=Gn.rawRootNode;function n(t){const e=Z();if((t===document.body||t===document.head)&&e){const n=Tn.get(e);if(null==n?void 0:n.container){if(t===document.body)return n.querySelector("micro-app-body");if(t===document.head)return n.querySelector("micro-app-head")}}return t}t.prototype.appendChild=function(t){return Fn(this,t,null,Gn.rawAppendChild)},t.prototype.insertBefore=function(t,e){return Fn(this,t,e,Gn.rawInsertBefore)},t.prototype.replaceChild=function(t,e){return Fn(this,t,e,Gn.rawReplaceChild)},t.prototype.append=function(...t){let e=0;for(;e<t.length;){let n=t[e];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawAppend),e++}},t.prototype.prepend=function(...t){let e=t.length;for(;e>0;){let n=t[e-1];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawPrepend),e--}},t.prototype.removeChild=function(t){if(null==t?void 0:t.__MICRO_APP_NAME__){const e=Tn.get(t.__MICRO_APP_NAME__);if(null==e?void 0:e.container)return Bn(e,Gn.rawRemoveChild,this,Rn(t));try{return Gn.rawRemoveChild.call(this,t)}catch(e){return(null==t?void 0:t.parentNode)&&Gn.rawRemoveChild.call(t.parentNode,t)}}return Gn.rawRemoveChild.call(this,t)},t.prototype.insertAdjacentElement=function(t,e){var n;if((null==e?void 0:e.__MICRO_APP_NAME__)&&A(e)){const r=Tn.get(e.__MICRO_APP_NAME__);if(null==r?void 0:r.container){const i=On(e,r);if(!A(i))return e;const o=null!==(n=kn(this,i,r))&&void 0!==n?n:this;return Gn.rawInsertAdjacentElement.call(o,t,i)}}return Gn.rawInsertAdjacentElement.call(this,t,e)},t.prototype.cloneNode=function(t){const e=Gn.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(e.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),e},t.prototype.querySelector=function(t){var e;return Gn.rawElementQuerySelector.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.querySelectorAll=function(t){var e;return Gn.rawElementQuerySelectorAll.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.setAttribute=function(t,e){const n=this.__MICRO_APP_NAME__||Z();if(n&&Tn.has(n)&&(("src"===t||"srcset"===t)&&/^(img|script|video|audio|source|embed)$/i.test(this.tagName)||"href"===t&&/^link$/i.test(this.tagName))){e=U(e,Tn.get(n).url)}Gn.rawSetAttribute.call(this,t,e)},l(t.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return Gn.rawInnerHTMLDesc.get.call(this)},set(t){Gn.rawInnerHTMLDesc.set.call(this,t);const e=Z();Array.from(this.children).forEach(t=>{A(t)&&e&&(t.__MICRO_APP_NAME__=e)})}}),l(e.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var t,e,n;const r=Z();if(r&&this===Gn.rawDocument.firstElementChild){const i=null===(n=null===(e=null===(t=Tn.get(r))||void 0===t?void 0:t.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n.document;if(i)return i}return Gn.rawParentNodeDesc.get.call(this)}})}function jn(t){const e=Z();return e&&(t.__MICRO_APP_NAME__=e),t}function Un(){X(),function(){const t=Gn.rawRootDocument;t.prototype.createElement=Gn.rawCreateElement,t.prototype.createElementNS=Gn.rawCreateElementNS,t.prototype.createDocumentFragment=Gn.rawCreateDocumentFragment,t.prototype.querySelector=Gn.rawQuerySelector,t.prototype.querySelectorAll=Gn.rawQuerySelectorAll,t.prototype.getElementById=Gn.rawGetElementById,t.prototype.getElementsByClassName=Gn.rawGetElementsByClassName,t.prototype.getElementsByTagName=Gn.rawGetElementsByTagName,t.prototype.getElementsByName=Gn.rawGetElementsByName}();const t=Gn.rawRootElement,e=Gn.rawRootNode;t.prototype.appendChild=Gn.rawAppendChild,t.prototype.insertBefore=Gn.rawInsertBefore,t.prototype.replaceChild=Gn.rawReplaceChild,t.prototype.removeChild=Gn.rawRemoveChild,t.prototype.append=Gn.rawAppend,t.prototype.prepend=Gn.rawPrepend,t.prototype.cloneNode=Gn.rawCloneNode,t.prototype.querySelector=Gn.rawElementQuerySelector,t.prototype.querySelectorAll=Gn.rawElementQuerySelectorAll,t.prototype.setAttribute=Gn.rawSetAttribute,l(t.prototype,"innerHTML",Gn.rawInnerHTMLDesc),l(e.prototype,"parentNode",Gn.rawParentNodeDesc)}let zn=!1;const Gn={activeSandbox:0};function Hn(){if(i){const t=window.rawWindow||Function("return window")(),e=window.rawDocument||Function("return document")(),n=t.Document||Function("return Document")(),r=t.Element,i=t.Node,o=t.EventTarget,s=r.prototype.setAttribute,a=r.prototype.appendChild,l=r.prototype.insertBefore,u=r.prototype.replaceChild,h=r.prototype.removeChild,d=r.prototype.append,f=r.prototype.prepend,p=r.prototype.cloneNode,m=r.prototype.querySelector,g=r.prototype.querySelectorAll,v=r.prototype.insertAdjacentElement,y=Object.getOwnPropertyDescriptor(r.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(i.prototype,"parentNode"),b=n.prototype.createElement,x=n.prototype.createElementNS,w=n.prototype.createTextNode,S=n.prototype.createDocumentFragment,M=n.prototype.createComment,A=n.prototype.querySelector,C=n.prototype.querySelectorAll,E=n.prototype.getElementById,T=n.prototype.getElementsByClassName,I=n.prototype.getElementsByTagName,P=n.prototype.getElementsByName,L=new Proxy(Image,{construct(t,e){const n=new t(...e),r=Z();return r&&(n.__MICRO_APP_NAME__=r),n}}),R=t.setInterval,O=t.setTimeout,B=t.clearInterval,k=t.clearTimeout,D=t.history.pushState,F=t.history.replaceState,N=o.prototype.addEventListener,j=o.prototype.removeEventListener,U=o.prototype.dispatchEvent;window.__MICRO_APP_BASE_APPLICATION__=!0,c(Gn,{supportModuleScript:"noModule"in document.createElement("script"),rawWindow:t,rawDocument:e,rawRootDocument:n,rawRootElement:r,rawRootNode:i,rawSetAttribute:s,rawAppendChild:a,rawInsertBefore:l,rawReplaceChild:u,rawRemoveChild:h,rawAppend:d,rawPrepend:f,rawCloneNode:p,rawElementQuerySelector:m,rawElementQuerySelectorAll:g,rawInsertAdjacentElement:v,rawInnerHTMLDesc:y,rawParentNodeDesc:_,rawCreateElement:b,rawCreateElementNS:x,rawCreateDocumentFragment:S,rawCreateTextNode:w,rawCreateComment:M,rawQuerySelector:A,rawQuerySelectorAll:C,rawGetElementById:E,rawGetElementsByClassName:T,rawGetElementsByTagName:I,rawGetElementsByName:P,ImageProxy:L,rawSetInterval:R,rawSetTimeout:O,rawClearInterval:B,rawClearTimeout:k,rawPushState:D,rawReplaceState:F,rawAddEventListener:N,rawRemoveEventListener:j,rawDispatchEvent:U}),function(){if(!zn){zn=!0;const t=J("style");Gn.rawSetAttribute.call(t,"type","text/css"),t.textContent=`\n${er.tagName}, micro-app-body { display: block; } \nmicro-app-head { display: none; }`,Gn.rawDocument.head.appendChild(t)}}()}}function Wn(t){class e extends(function(){var t;return(null===(t=window.rawWindow)||void 0===t?void 0:t.HTMLElement)||window.HTMLElement}()){constructor(){super(...arguments),this.isWaiting=!1,this.cacheData=null,this.connectedCount=0,this.connectStateMap=new Map,this.appName="",this.appUrl="",this.ssrUrl="",this.version=r,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const t=N(this.getAttribute("name")),e=F(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",t)&&this.legalAttribute("url",e)){const n=Tn.get(t);if(t!==this.appName&&n&&!n.isUnmounted()&&!n.isHidden()&&!n.isPrefetch)return this.setAttribute("name",this.appName),R(`app name conflict, an app named ${t} is running`);t===this.appName&&e===this.appUrl||(t===this.appName?this.unmount(!0,()=>{this.actionsForAttributeChange(t,e,n)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(t,e,n)):this.unmount(!1,()=>{this.actionsForAttributeChange(t,e,n)}))}else t!==this.appName&&this.setAttribute("name",this.appName)}}static get observedAttributes(){return["name","url"]}connectedCallback(){const t=++this.connectedCount;this.connectStateMap.set(t,!0);const e=this.appName&&this.appUrl;B(()=>{this.connectStateMap.get(t)&&(ut(this,this.appName,Et.CREATED),e&&this.handleConnected())})}disconnectedCallback(){this.connectStateMap.set(this.connectedCount,!1),this.handleDisconnected()}reload(t){return new Promise(e=>{const n=()=>{this.removeEventListener(Et.MOUNTED,n),this.removeEventListener(Et.AFTERSHOW,n),e(!0)};this.addEventListener(Et.MOUNTED,n),this.addEventListener(Et.AFTERSHOW,n),this.handleDisconnected(t,()=>{this.handleConnected()})})}handleDisconnected(t=!1,e){const n=Tn.get(this.appName);!n||n.isUnmounted()||n.isHidden()||(this.getKeepAliveModeResult()&&!t?this.handleHiddenKeepAliveApp(e):this.unmount(t,e))}attributeChangedCallback(t,e,n){if(this.legalAttribute(t,n)&&this[t===At.NAME?"appName":"appUrl"]!==n)if(t!==At.URL||this.appUrl&&this.connectStateMap.get(this.connectedCount))if(t!==At.NAME||this.appName&&this.connectStateMap.get(this.connectedCount))this.isWaiting||(this.isWaiting=!0,B(this.handleAttributeUpdate));else{const t=N(n);if(!t)return R("Invalid attribute name "+n,this.appName);this.cacheData&&(er.setData(t,this.cacheData),this.cacheData=null),this.appName=t,t!==n&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else{if(!(n=F(n,this.appName)))return R("Invalid attribute url "+n,this.appName);this.appUrl=n,this.handleInitialNameAndUrl()}}handleInitialNameAndUrl(){this.connectStateMap.get(this.connectedCount)&&this.handleConnected()}handleConnected(){if(this.appName&&this.appUrl)if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&_(this.attachShadow)&&this.attachShadow({mode:"open"}),this.updateSsrUrl(this.appUrl),Tn.has(this.appName)){const t=Tn.get(this.appName),e=t.ssrUrl||t.url,n=this.ssrUrl||this.appUrl;t.isHidden()&&t.url===this.appUrl?this.handleShowKeepAliveApp(t):e===n&&(t.isUnmounted()||t.isPrefetch&&this.sameCoreOptions(t))?this.handleMount(t):t.isPrefetch||t.isUnmounted()?this.handleCreateApp():R(`app name conflict, an app named: ${this.appName} with url: ${e} is running`)}else this.handleCreateApp()}actionsForAttributeChange(t,e,n){var r;this.updateSsrUrl(e),this.appName=t,this.appUrl=e,(null!==(r=this.shadowRoot)&&void 0!==r?r:this).innerHTML="",t!==this.getAttribute("name")&&this.setAttribute("name",this.appName),n?n.isHidden()?n.url===this.appUrl?this.handleShowKeepAliveApp(n):R(`app name conflict, an app named ${this.appName} is running`):n.url===this.appUrl&&n.ssrUrl===this.ssrUrl?this.handleMount(n):this.handleCreateApp():this.handleCreateApp()}legalAttribute(t,e){return!(!g(e)||!e)||(R(`unexpected attribute ${t}, please check again`,this.appName),!1)}handleCreateApp(){const t=()=>{var t;return new In({name:this.appName,url:this.appUrl,container:null!==(t=this.shadowRoot)&&void 0!==t?t:this,scopecss:this.useScopecss(),useSandbox:this.useSandbox(),inline:this.getDisposeResult("inline"),iframe:this.getDisposeResult("iframe"),ssrUrl:this.ssrUrl,routerMode:this.getMemoryRouterMode()})},e=Tn.get(this.appName);e?e.isPrerender?this.unmount(!0,t):(e.actionsForCompletelyDestroy(),t()):t()}handleMount(t){t.isPrefetch=!1,t.setAppState(Ct.BEFORE_MOUNT),B(()=>this.mount(t))}mount(t){var e;t.mount({container:null!==(e=this.shadowRoot)&&void 0!==e?e:this,inline:this.getDisposeResult("inline"),routerMode:this.getMemoryRouterMode(),baseroute:this.getBaseRouteCompatible(),defaultPage:this.getDefaultPage(),disablePatchRequest:this.getDisposeResult("disable-patch-request"),fiber:this.getDisposeResult("fiber")})}unmount(t,e){const n=Tn.get(this.appName);n&&!n.isUnmounted()&&n.unmount({destroy:t||this.getDestroyCompatibleResult(),clearData:this.getDisposeResult("clear-data"),keepRouteState:this.getDisposeResult("keep-router-state"),unmountcb:e})}handleHiddenKeepAliveApp(t){const e=Tn.get(this.appName);!e||e.isUnmounted()||e.isHidden()||e.hiddenKeepAliveApp(t)}handleShowKeepAliveApp(t){B(()=>{var e;return t.showKeepAliveApp(null!==(e=this.shadowRoot)&&void 0!==e?e:this)})}getDisposeResult(t){return(this.compatibleProperties(t)||!!er.options[t])&&this.compatibleDisableProperties(t)}compatibleProperties(t){return"disable-scopecss"===t?this.hasAttribute("disable-scopecss")||this.hasAttribute("disableScopecss"):"disable-sandbox"===t?this.hasAttribute("disable-sandbox")||this.hasAttribute("disableSandbox"):this.hasAttribute(t)}compatibleDisableProperties(t){return"disable-scopecss"===t?"false"!==this.getAttribute("disable-scopecss")&&"false"!==this.getAttribute("disableScopecss"):"disable-sandbox"===t?"false"!==this.getAttribute("disable-sandbox")&&"false"!==this.getAttribute("disableSandbox"):"false"!==this.getAttribute(t)}useScopecss(){return!(this.getDisposeResult("disable-scopecss")||this.getDisposeResult("shadowDOM"))}useSandbox(){return!this.getDisposeResult("disable-sandbox")}sameCoreOptions(t){return t.scopecss===this.useScopecss()&&t.useSandbox===this.useSandbox()&&t.iframe===this.getDisposeResult("iframe")}getBaseRouteCompatible(){var t,e;return null!==(e=null!==(t=this.getAttribute("baseroute"))&&void 0!==t?t:this.getAttribute("baseurl"))&&void 0!==e?e:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}updateSsrUrl(t){if(this.getDisposeResult("ssr"))if(this.getDisposeResult("disable-memory-router")||this.getDisposeResult("disableSandbox")){const e=Gn.rawWindow.location;this.ssrUrl=U(e.pathname+e.search,t)}else{let e=function(t,e){const n=Le(t);if(!n)return"";const r=k(n,e);return r.origin+r.pathname+r.search}(this.appName,t);const n=this.getDefaultPage();if(!e&&n){const r=k(n,t);e=r.origin+r.pathname+r.search}this.ssrUrl=e}else this.ssrUrl&&(this.ssrUrl="")}getDefaultPage(){return Je.getDefaultPage(this.appName)||this.getAttribute("default-page")||this.getAttribute("defaultPage")||""}getMemoryRouterMode(){return je(this.getAttribute("router-mode"),this.compatibleProperties("disable-memory-router")&&this.compatibleDisableProperties("disable-memory-router"))}setAttribute(t,e){if("data"===t)if(b(e)){const t={};Object.getOwnPropertyNames(e).forEach(n=>{g(n)&&0===n.indexOf("__")||(t[n]=e[n])}),this.data=t}else"[object Object]"!==e&&O("property data must be an object",this.appName);else Gn.rawSetAttribute.call(this,t,e)}set data(t){this.appName?er.setData(this.appName,t):this.cacheData=t}get data(){return this.appName?er.getData(this.appName,!0):this.cacheData?this.cacheData:null}get publicPath(){return j(this.appUrl)}get baseRoute(){return this.getBaseRouteCompatible()}}Gn.rawWindow.customElements.define(t,e)}function Vn(t,e){if(!i)return R("preFetch is only supported in browser environment");G(()=>{const n=y(e)?e:er.options.prefetchDelay;setTimeout(()=>{!function(t){_(t)&&(t=t()),a(t)&&t.reduce((t,e)=>t.then(()=>{return t=e,H(e=>{var n,r,i,o,s,a;if(b(t)&&navigator.onLine)if(t.name=N(t.name),t.url=F(t.url,t.name),t.name&&t.url&&!Tn.has(t.name)){const l=new In({name:t.name,url:t.url,isPrefetch:!0,scopecss:!(null!==(r=null!==(n=t["disable-scopecss"])&&void 0!==n?n:t.disableScopecss)&&void 0!==r?r:er.options["disable-scopecss"]),useSandbox:!(null!==(o=null!==(i=t["disable-sandbox"])&&void 0!==i?i:t.disableSandbox)&&void 0!==o?o:er.options["disable-sandbox"]),inline:null!==(s=t.inline)&&void 0!==s?s:er.options.inline,iframe:null!==(a=t.iframe)&&void 0!==a?a:er.options.iframe,prefetchLevel:t.level&&kt.includes(t.level)?t.level:er.options.prefetchLevel&&kt.includes(er.options.prefetchLevel)?er.options.prefetchLevel:2}),u=l.onLoad,h=l.onLoadError;l.onLoad=n=>{l.isPrerender&&c(n,{defaultPage:t["default-page"],routerMode:je(t["router-mode"]),baseroute:t.baseroute,disablePatchRequest:t["disable-patch-request"]}),e(),u.call(l,n)},l.onLoadError=(...t)=>{e(),h.call(l,...t)}}else e();else e()});var t}),Promise.resolve())}(t)},y(n)?n:3e3)})}function Zn(t,e,n){if(a(t)){const r=t.filter(t=>g(t)&&t.includes("."+e)&&!n.hasInfo(t));z(r.map(t=>dt(t)),t=>{const i=r[t.index];"js"===e?n.hasInfo(i)||n.setInfo(i,{code:t.data,isExternal:!1,appSpace:{}}):n.hasInfo(i)||n.setInfo(i,{code:t.data,appSpace:{}})},t=>{R(t)})}}function Qn({excludeHiddenApp:t=!1,excludePreRender:e=!1}={}){const n=[];return Tn.forEach((r,i)=>{r.isUnmounted()||r.isPrefetch&&(!r.isPrerender||e)||t&&r.isHidden()||n.push(i)}),n}function Xn(){return Array.from(Tn.keys())}function Yn(t,e){const n=Tn.get(N(t));return new Promise(r=>{if(n)if(n.isUnmounted()||n.isPrefetch)n.isPrerender?n.unmount({destroy:!!(null==e?void 0:e.destroy),clearData:!!(null==e?void 0:e.clearData),keepRouteState:!1,unmountcb:r.bind(null,!0)}):((null==e?void 0:e.destroy)&&n.actionsForCompletelyDestroy(),r(!0));else if(n.isHidden())(null==e?void 0:e.destroy)?n.unmount({destroy:!0,clearData:!0,keepRouteState:!0,unmountcb:r.bind(null,!0)}):(null==e?void 0:e.clearAliveState)?n.unmount({destroy:!1,clearData:!!e.clearData,keepRouteState:!0,unmountcb:r.bind(null,!0)}):r(!0);else{const t=$(n.container),i=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)},o=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)};if(t.addEventListener(Et.UNMOUNT,i),t.addEventListener(Et.AFTERHIDDEN,o),null==e?void 0:e.destroy){let e,n;t.hasAttribute("destroy")&&(e=t.getAttribute("destroy")),t.hasAttribute("destory")&&(n=t.getAttribute("destory")),t.setAttribute("destroy","true"),t.parentNode.removeChild(t),t.removeAttribute("destroy"),g(e)&&t.setAttribute("destroy",e),g(n)&&t.setAttribute("destory",n)}else if((null==e?void 0:e.clearAliveState)&&t.hasAttribute("keep-alive")){const n=t.getAttribute("keep-alive");t.removeAttribute("keep-alive");let r=null;e.clearData&&(r=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),t.setAttribute("keep-alive",n),g(r)&&t.setAttribute("clear-data",r)}else{let n=null;(null==e?void 0:e.clearData)&&(n=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),g(n)&&t.setAttribute("clear-data",n)}}else O(`app ${t} does not exist`),r(!1)})}function Jn(t){return Array.from(Tn.keys()).reduce((e,n)=>e.then(()=>Yn(n,t)),Promise.resolve(!0))}function qn(t,e){return new Promise(n=>{const r=Tn.get(N(t));if(r){const i=r.container&&$(r.container);i?n(i.reload(e)):(O(`app ${t} is not rendered, cannot use reload`),n(!1))}else O(`app ${t} does not exist`),n(!1)})}function Kn(t){return new Promise(e=>{if(!b(t))return R("renderApp options must be an object");const n=A(t.container)?t.container:g(t.container)?document.querySelector(t.container):null;if(!A(n))return R("Target container is not a DOM element.");const r=J(er.tagName);for(const e in t)if("onDataChange"===e)_(t[e])&&r.addEventListener("datachange",t[e]);else if("lifeCycles"===e){const n=t[e];if(b(n))for(const t in n)t.toUpperCase()in Et&&_(n[t])&&r.addEventListener(t.toLowerCase(),n[t])}else"container"!==e&&r.setAttribute(e,t[e]);const i=()=>{s(),e(!0)},o=()=>{s(),e(!1)},s=()=>{r.removeEventListener(Et.MOUNTED,i),r.removeEventListener(Et.ERROR,o)};r.addEventListener(Et.MOUNTED,i),r.addEventListener(Et.ERROR,o),n.appendChild(r)})}function $n(t){const e=Tn.get(N(t));if(e)return e.getLifeCycleState();O(`app ${t} does not exist`)}class tr extends ue{constructor(){super(...arguments),this.tagName="micro-app",this.hasInit=!1,this.options={},this.router=Je,this.preFetch=Vn,this.unmountApp=Yn,this.unmountAllApps=Jn,this.getActiveApps=Qn,this.getAllApps=Xn,this.reload=qn,this.renderApp=Kn,this.getAppStatus=$n}start(t){var e,n,r;if(!i||!window.customElements)return R("micro-app is not supported in this environment");if(this.hasInit)return R("microApp.start executed repeatedly");if(this.hasInit=!0,null==t?void 0:t.tagName){if(!/^micro-app(-\S+)?/.test(t.tagName))return R(t.tagName+" is invalid tagName");this.tagName=t.tagName}if(Hn(),Gn.rawWindow.customElements.get(this.tagName))return O(`element ${this.tagName} is already defined`);if(b(t)&&(this.options=t,t["disable-scopecss"]=null!==(e=t["disable-scopecss"])&&void 0!==e?e:t.disableScopecss,t["disable-sandbox"]=null!==(n=t["disable-sandbox"])&&void 0!==n?n:t.disableSandbox,t.preFetchApps&&Vn(t.preFetchApps),t.globalAssets&&(b(r=t.globalAssets)&&G(()=>{Zn(r.js,"js",Lt.script),Zn(r.css,"css",Lt.link)})),b(t.plugins))){const e=t.plugins.modules;if(b(e))for(const t in e){const n=N(t);n&&t!==n&&(e[n]=e[t],delete e[t])}}Wn(this.tagName)}}const er=new tr;e.default=er}.call(this,n(10))},function(t,e,n){"use strict";n.r(e);var r=n(119),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(341);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,"67ce9f3a",null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(30)),i=u(n(31)),o=n(12),s=n(8),a=u(n(336)),c=u(n(339)),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}var h,d=new c.default,f=(h=(0,i.default)(r.default.mark((function t(e){var n,i,c,u;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getTimestamp)();case 2:return n=t.sent,i=n.data,c=window.__RK_WEB_CORE_APPID__&&(0,s.getCache)("CLIENT_ID",s.sessionEngine)?(0,s.getCache)("CLIENT_ID",s.sessionEngine):l.sessionStore.get("CLIENT_ID"),t.next=7,(0,o.getPk)({code:c});case 7:return u=t.sent,d.setPublicKey(u.data),t.abrupt("return",d.encrypt((0,a.default)(e)+" "+i));case 10:case"end":return t.stop()}}),t,void 0)}))),function(t){return h.apply(this,arguments)});e.default=function(t){return f(t)}},function(t,e,n){n(34),n(193),t.exports=n(6).Array.from},function(t,e,n){var r=n(87),i=n(88);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(92),i=n(58),o=n(60),s={};n(27)(s,n(16)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(19),i=n(24),o=n(49);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){var r=n(37),i=n(70),o=n(192);t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(87),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){"use strict";var r=n(26),i=n(9),o=n(38),s=n(129),a=n(130),c=n(70),l=n(194),u=n(97);i(i.S+i.F*!n(131)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&a(y))for(n=new f(e=c(d.length));e>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(i=h.next()).done;v++)l(n,v,g?s(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(19),i=n(58);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){t.exports={default:n(196),__esModule:!0}},function(t,e,n){n(197),t.exports=n(6).Object.assign},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(198)})},function(t,e,n){"use strict";var r=n(18),i=n(49),o=n(98),s=n(61),a=n(38),c=n(93),l=Object.assign;t.exports=!l||n(35)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,d=s.f;l>u;)for(var f,p=c(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;g>v;)f=m[v++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:l},function(t,e,n){n(200),t.exports=n(6).Object.keys},function(t,e,n){var r=n(38),i=n(49);n(132)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(202);var r=n(6).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(18),"Object",{defineProperty:n(19).f})},function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}n.r(e),n.d(e,"NavigationFailureType",(function(){return yt})),n.d(e,"RouterLink",(function(){return Z})),n.d(e,"RouterView",(function(){return x})),n.d(e,"START_LOCATION",(function(){return m})),n.d(e,"default",(function(){return Vt})),n.d(e,"isNavigationFailure",(function(){return Mt})),n.d(e,"version",(function(){return Qt}));var i=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,a=function(t){return encodeURIComponent(t).replace(i,o).replace(s,",")};function c(t){try{return decodeURIComponent(t)}catch(t){0}return t}var l=function(t){return null==t||"object"==typeof t?t:String(t)};function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return a(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(a(e)):r.push(a(e)+"="+a(t)))})),r.join("&")}return a(e)+"="+a(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=p(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:v(e,i),matched:t?g(t):[]};return n&&(s.redirectedFrom=v(n,i)),Object.freeze(s)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var m=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function v(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function y(t,e,n){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&_(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params))))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?_(o,s):String(o)===String(s)}))}function b(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var a=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[c],m=p&&p.component;return m?(p.configProps&&w(m,s,p.route,p.configProps),a(m,s,i)):a()}var g=l.matched[h],v=g&&g.components[c];if(!g||!v)return u[c]=null,a();u[c]={component:v},s.registerRouteInstance=function(t,e){var n=g.instances[c];(e&&n!==t||!e&&n===t)&&(g.instances[c]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){g.instances[c]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[c]&&(g.instances[c]=t.componentInstance),b(l)};var y=g.props&&g.props[c];return y&&(r(u[c],{route:l,configProps:y}),w(v,s,l,y)),a(v,s,i)}};function w(t,e,n,i){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(o){o=e.props=r({},o);var s=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(s[a]=o[a],delete o[a])}}function S(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=U,E=R,T=function(t,e){return B(R(t,e),e)},I=B,P=j,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=L.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];s&&(r.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,b="?"===g||"*"===g,x=n[2]||a,w=p||m;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:w?D(w):v?".*":"[^"+k(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function O(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function B(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",N(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?O:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(A(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function N(t){return t&&t.sensitive?"":"i"}function j(t,e,n){A(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=k(a);else{var c=k(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=k(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",F(new RegExp("^"+o,N(n)),e)}function U(t,e,n){return A(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}(t,e):A(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(U(t[i],e,n).source);return F(new RegExp("(?:"+r.join("|")+")",N(n)),e)}(t,e,n):function(t,e,n){return j(R(t,n),e,n)}(t,e,n)}C.parse=E,C.compile=T,C.tokensToFunction=I,C.tokensToRegExp=P;var z=Object.create(null);function G(t,e,n){e=e||{};try{var r=z[t]||(z[t]=C.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function H(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var s=(o=r({},t)).params;return s&&"object"==typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=G(c,a,e.path)}else 0;return o}var h=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",f=h.path?S(h.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||u;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(l):l(s)}return r}(h.query,o.query,i&&i.options.parseQuery),m=o.hash||h.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:p,hash:m}}var W,V=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,c=o.href,l={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,m=null==h?"router-link-exact-active":h,g=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,_=a.redirectedFrom?f(null,H(a.redirectedFrom),null,n):a;l[v]=y(i,_,this.exactPath),l[g]=this.exact||this.exactPath?l[v]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,_);var b=l[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(s,V):n.push(s,V))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var S={class:l},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:a,navigate:x,isActive:l[g],isExactActive:l[v]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:c,"aria-current":b};else{var A=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(A){A.isStatic=!1;var C=A.data=r({},A.data);for(var E in C.on=C.on||{},C.on){var T=C.on[E];E in w&&(C.on[E]=Array.isArray(T)?T:[T])}for(var I in w)I in C.on?C.on[I].push(w[I]):C.on[I]=x;var P=A.data.attrs=r({},A.data.attrs);P.href=c,P["aria-current"]=b}else S.on=w}return t(this.tag,S,this.$slots.default)}};function Q(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var X="undefined"!=typeof window;function Y(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,s){var a=i.path,c=i.name;0;var l=i.pathToRegexpOptions||{},u=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,l.strict);"boolean"==typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var h={path:u,regex:J(u,l),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,h,o)}));n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){0;var p={path:d[f],children:i.children};t(e,n,r,p,o,h.path||"/")}c&&(r[c]||(r[c]=h))}(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function J(t,e){return C(t,[],e)}function q(t,e){var n=Y(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=H(t,n,!1,e),l=a.name;if(l){var u=o[l];if(!u)return c(null,a);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in a.params)&&h.indexOf(d)>-1&&(a.params[d]=n.params[d]);return a.path=G(u.path,a.params),c(u,a,s)}if(a.path){a.params={};for(var f=0;f<r.length;f++){var p=r[f],m=i[p];if(K(m.regex,a.path,a.params))return c(m,a,s)}}return c(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(f(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,d=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,d=a.hasOwnProperty("hash")?a.hash:d,p=a.hasOwnProperty("params")?a.params:p,l){o[l];return s({_normalized:!0,name:l,query:h,hash:d,params:p},void 0,n)}if(u){var m=function(t,e){return S(t,e.parent?e.parent.path:"/",!0)}(u,t);return s({_normalized:!0,path:G(m,p),query:h,hash:d},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:G(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,c(o,e)}return c(null,e)}(0,n,t.matchAs):f(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Y([e||t],r,i,o,n),n&&n.alias.length&&Y(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Y(t,r,i,o)}}}function K(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var $=X&&window.performance&&window.performance.now?window.performance:Date;function tt(){return $.now().toFixed(3)}var et=tt();function nt(){return et}function rt(t){return et=t}var it=Object.create(null);function ot(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=nt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function st(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=nt();if(t)return it[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){ft(t,o)})).catch((function(t){0})):ft(s,o))}))}}function at(){var t=nt();t&&(it[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){at(),t.state&&t.state.key&&rt(t.state.key)}function lt(t){return ht(t.x)||ht(t.y)}function ut(t){return{x:ht(t.x)?t.x:window.pageXOffset,y:ht(t.y)?t.y:window.pageYOffset}}function ht(t){return"number"==typeof t}var dt=/^#\d/;function ft(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=dt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ht((n=o).x)?n.x:0,y:ht(n.y)?n.y:0})}else lt(t)&&(e=ut(t))}else r&&lt(t)&&(e=ut(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var pt,mt=X&&((-1===(pt=window.navigator.userAgent).indexOf("Android 2.")&&-1===pt.indexOf("Android 4.0")||-1===pt.indexOf("Mobile Safari")||-1!==pt.indexOf("Chrome")||-1!==pt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function gt(t,e){at();var n=window.history;try{if(e){var i=r({},n.state);i.key=nt(),n.replaceState(i,"",t)}else n.pushState({key:rt(tt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function vt(t){gt(t,!0)}var yt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _t(t,e){return xt(t,e,yt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function bt(t,e){return xt(t,e,yt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function xt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var wt=["params","query","hash"];function St(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Mt(t,e){return St(t)&&t._isRouter&&(null==e||t.type===e)}function At(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Et(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var c,l=Pt((function(e){var i;((i=e).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:W.extend(e),n.components[a]=e,--o<=0&&r()})),u=Pt((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=St(t)?t:new Error(e),r(s))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),i||r()}}function Et(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t,e){this.router=t,this.base=function(t){if(!t)if(X){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Rt(t,e,n,r){var i=Et(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=W.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Lt.prototype.onError=function(t){this.errorCbs.push(t)},Lt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Mt(t,yt.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Lt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!Mt(t)&&St(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(y(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),t.hash&&st(this.router,i,t,!1),a(((s=xt(o=i,t,yt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=u.updated,d=u.deactivated,f=u.activated,p=[].concat(function(t){return Rt(t,"beforeRouteLeave",Ot,!0)}(d),this.router.beforeHooks,function(t){return Rt(t,"beforeRouteUpdate",Ot)}(h),f.map((function(t){return t.beforeEnter})),Ct(f)),m=function(e,n){if(r.pending!==t)return a(bt(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return xt(t,e,yt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):St(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(_t(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};At(p,m,(function(){At(function(t){return Rt(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),m,(function(){if(r.pending!==t)return a(bt(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){b(t)}))}))}))},Lt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Lt.prototype.setupListeners=function(){},Lt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=m,this.pending=null};var Bt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=kt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=mt&&n;r&&this.listeners.push(ot());var i=function(){var n=t.current,i=kt(t.base);t.current===m&&i===t._startLocation||t.transitionTo(i,(function(t){r&&st(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){vt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(kt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?gt(e):vt(e)}},e.prototype.getCurrentLocation=function(){return kt(this.base)},e}(Lt);function kt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(M(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Dt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=kt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(ot());var r=function(){var e=t.current;Ft()&&t.transitionTo(Nt(),(function(r){n&&st(t.router,r,e,!0),mt||zt(r.fullPath)}))},i=mt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ut(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){zt(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Nt()!==e&&(t?Ut(e):zt(e))},e.prototype.getCurrentLocation=function(){return Nt()},e}(Lt);function Ft(){var t=Nt();return"/"===t.charAt(0)||(zt("/"+t),!1)}function Nt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function jt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ut(t){mt?gt(jt(t)):window.location.hash=t}function zt(t){mt?vt(jt(t)):window.location.replace(jt(t))}var Gt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Mt(t,yt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Lt),Ht=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),X||(e="abstract"),this.mode=e,e){case"history":this.history=new Bt(this,t.base);break;case"hash":this.history=new Dt(this,t.base,this.fallback);break;case"abstract":this.history=new Gt(this,t.base);break;default:0}},Wt={currentRoute:{configurable:!0}};Ht.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Wt.currentRoute.get=function(){return this.history&&this.history.current},Ht.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Bt||n instanceof Dt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;mt&&i&&"fullPath"in t&&st(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ht.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Ht.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Ht.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Ht.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ht.prototype.onError=function(t){this.history.onError(t)},Ht.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ht.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ht.prototype.go=function(t){this.history.go(t)},Ht.prototype.back=function(){this.go(-1)},Ht.prototype.forward=function(){this.go(1)},Ht.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ht.prototype.resolve=function(t,e,n){var r=H(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ht.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ht.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Ht.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ht.prototype,Wt);var Vt=Ht;function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ht.install=function t(e){if(!t.installed||W!==e){t.installed=!0,W=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",x),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ht.version="3.6.5",Ht.isNavigationFailure=Mt,Ht.NavigationFailureType=yt,Ht.START_LOCATION=m,X&&window.Vue&&window.Vue.use(Ht);var Qt="3.6.5"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkRouter=e.routerInit=void 0;var r=c(n(13)),i=c(n(205)),o=c(n(302)),s=c(n(327)),a=c(n(185));function c(t){return t&&t.__esModule?t:{default:t}}e.routerInit=function(t,e){var n=t.prototype.push,r=t.prototype.replace;t.prototype.push=function(t,e,r){return e||r?n.call(this,t,e,r):n.call(this,t).catch((function(t){return t}))},t.prototype.replace=function(t,e,n){return e||n?r.call(this,t,e,n):r.call(this,t).catch((function(t){return t}))};var i=l(t,e);return u(i),i};var l=e.pkRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[{path:"/404",component:i.default},{path:"/noAllow",component:o.default},{path:"/rkWebCoreSetting",component:a.default},{path:"/refresh",component:s.default,hidden:!0}],c=function(){return new t((0,r.default)({},e,{mode:"history",routes:n,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}))},l=c(),u=c();return l.matcher=u.matcher,l},u=function(t){t.onError((function(e){console.log("\n *************************ROUTER ERROR BEGIN**********************************\n\n "+e+"\n\n *************************ROUTER ERROR FINAL**********************************\n ");var n=e.message.match(/Loading chunk (\w)+ failed/g),r=t.history.pending.fullPath;n&&t.replace(r).then()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},s=n(17);e.default={render:function(){var t=arguments[0];return t("a-result",{attrs:{status:"404",title:"404","sub-title":"Sorry, the page you visited does not exist."}},[t("a-button",{attrs:{type:"primary"},slot:"extra",on:{click:this.toHome}},["Back Home"])])},methods:{toHome:function(){(0,o.default)(this.$store.state.user.addRouters[0].children)?(0,s.logOut)():this.$router.replace({path:"/"})}}}},function(t,e,n){n(74),n(34),n(51),n(209),n(213),n(214),t.exports=n(6).Promise},function(t,e,n){"use strict";var r=n(208),i=n(137),o=n(48),s=n(37);t.exports=n(89)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r,i,o,s,a=n(56),c=n(15),l=n(26),u=n(72),h=n(9),d=n(20),f=n(57),p=n(99),m=n(62),g=n(138),v=n(139).set,y=n(211)(),_=n(100),b=n(140),x=n(212),w=n(141),S=c.TypeError,M=c.process,A=M&&M.versions,C=A&&A.v8||"",E=c.Promise,T="process"==u(M),I=function(){},P=i=_.f,L=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(16)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==C.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(i||(2==t._h&&D(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=R(n))?o.call(n,c,l):c(n)):l(r)}catch(t){u&&!s&&u.exit(),l(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){v.call(c,(function(){var e,n,r,i=t._v,o=k(t);if(o&&(e=b((function(){T?M.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=T||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){v.call(c,(function(){var e;T?M.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=R(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,l(N,r,1),l(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,O(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};L||(E=function(t){p(this,E,"Promise","_h"),f(t),r.call(this);try{t(l(N,this,1),l(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(E.prototype,{then:function(t,e){var n=P(g(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(N,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===E||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!L,{Promise:E}),n(60)(E,"Promise"),n(142)("Promise"),s=n(6).Promise,h(h.S+h.F*!L,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===s?E:this,t)}}),h(h.S+h.F*!(L&&n(131)((function(t){E.all(t).catch(I)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then((function(t){c||(c=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),i=n(139).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(59)(s);t.exports=function(){var t,e,n,l=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){i.call(r,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(15).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),i=n(6),o=n(15),s=n(138),a=n(141);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(9),i=n(100),o=n(140);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";(function(t){
136
148
  /*!
137
149
  * The buffer module from node.js, for the browser.
138
150
  *
@@ -142,9 +154,22 @@ var r=n("3560"),i=n("e248"),o=n("571a");function s(){return c.TYPED_ARRAY_SUPPOR
142
154
  var r=n(216),i=n(217),o=n(218);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(t,o+d)!==l(e,d)){h=!1;break}if(h)return o}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return G(U(e,t.length-n),t,n,r)}function x(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return x(t,e,n,r)}function S(t,e,n,r){return G(z(e),t,n,r)}function M(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,c,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=j(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function k(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:U(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(10))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),s=r[0],a=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
143
155
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
144
156
  e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=l}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r=n(220),i=n(145),o=n(103),s=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,l=Array.prototype.push,u=function(t,e){l.apply(t,c(e)?e:[e])},h=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},m=function t(e,n,o,s,a,l,h,d,m,g,v,y,_,b,x,w){for(var S,M=e,A=w,C=0,E=!1;void 0!==(A=A.get(p))&&!E;){var T=A.get(e);if(C+=1,void 0!==T){if(T===C)throw new RangeError("Cyclic object value");E=!0}void 0===A.get(p)&&(C=0)}if("function"==typeof d?M=d(n,M):M instanceof Date?M=v(M):"comma"===o&&c(M)&&(M=i.maybeMap(M,(function(t){return t instanceof Date?v(t):t}))),null===M){if(a)return h&&!b?h(n,f.encoder,x,"key",y):n;M=""}if("string"==typeof(S=M)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(M))return h?[_(b?n:h(n,f.encoder,x,"key",y))+"="+_(h(M,f.encoder,x,"value",y))]:[_(n)+"="+_(String(M))];var I,P=[];if(void 0===M)return P;if("comma"===o&&c(M))b&&h&&(M=i.maybeMap(M,h)),I=[{value:M.length>0?M.join(",")||null:void 0}];else if(c(d))I=d;else{var L=Object.keys(M);I=m?L.sort(m):L}for(var R=s&&c(M)&&1===M.length?n+"[]":n,O=0;O<I.length;++O){var B=I[O],k="object"==typeof B&&void 0!==B.value?B.value:M[B];if(!l||null!==k){var D=c(M)?"function"==typeof o?o(R,B):R:R+(g?"."+B:"["+B+"]");w.set(e,C);var F=r();F.set(p,w),u(P,t(k,D,o,s,a,l,"comma"===o&&b&&c(M)?null:h,d,m,g,v,y,_,b,x,F))}}return P};t.exports=function(t,e){var n,i=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!s.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||c(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?i=(0,l.filter)("",i):c(l.filter)&&(n=l.filter);var h,d=[];if("object"!=typeof i||null===i)return"";h=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var p=a[h];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===p&&e&&e.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var v=r(),y=0;y<n.length;++y){var _=n[y];l.skipNulls&&null===i[_]||u(d,m(i[_],_,p,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,v))}var b=d.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),b.length>0?x+b:""}},function(t,e,n){"use strict";var r=n(42),i=n(226),o=n(230),s=r("%TypeError%"),a=r("%WeakMap%",!0),c=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+o(t))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(c){if(e)return d(e,r)}else if(n)return function(t,e){var n=m(t,e);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(c){if(e)return p(e,r)}else if(n)return function(t,e){return!!m(t,e)}(n,r);return!1},set:function(r,i){a&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new a),u(t,r,i)):c?(e||(e=new c),f(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=m(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(222);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},function(t,e,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,s=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<e.length;i+=1)n[i+t.length]=e[i];return n},a=function(t,e){for(var n=[],r=e||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n},c=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.apply(e))throw new TypeError(r+e);for(var n,l=a(arguments,1),u=function(){if(this instanceof n){var r=e.apply(this,s(l,arguments));return Object(r)===r?r:this}return e.apply(t,s(l,arguments))},h=o(0,e.length-l.length),d=[],f=0;f<h;f++)d[f]="$"+f;if(n=Function("binder","return function ("+c(d,",")+"){ return binder.apply(this,arguments); }")(u),e.prototype){var p=function(){};p.prototype=e.prototype,n.prototype=new p,p.prototype=null}return n}},function(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(102);t.exports=o.call(r,i)},function(t,e,n){"use strict";var r=n(42),i=n(227),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},function(t,e,n){"use strict";var r=n(102),i=n(42),o=n(228),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(c,a),u=i("%Object.defineProperty%",!0),h=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){if("function"!=typeof t)throw new s("a function is required");var e=l(r,c,arguments);return o(e,1+h(0,t.length-(arguments.length-1)),!0)};var d=function(){return l(r,a,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},function(t,e,n){"use strict";var r=n(42),i=n(229),o=n(143)(),s=n(144),a=r("%TypeError%"),c=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in t&&s){var u=s(t,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,n){"use strict";var r=n(143)(),i=n(42),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(t){o=!1}var s=i("%SyntaxError%"),a=i("%TypeError%"),c=n(144);t.exports=function(t,e,n){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!c&&c(t,e);if(o)o(t,e,{configurable:null===l&&h?h.configurable:!l,enumerable:null===r&&h?h.enumerable:!r,value:n,writable:null===i&&h?h.writable:!i});else{if(!u&&(r||i||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},function(t,e,n){(function(e){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,x=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,M=Array.prototype.join,A=Array.prototype.slice,C=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-C(-t):C(t);if(r!==t){var i=String(r),o=y.call(e,i.length+1);return _.call(i,n,"$&_")+"."+_.call(_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(e,n,"$&_")}var k=n(231),D=k.custom,F=G(D)?D:null;function N(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function j(t){return _.call(String(t),/"/g,"&quot;")}function U(t){return!("[object Array]"!==V(t)||L&&"object"==typeof t&&L in t)}function z(t){return!("[object RegExp]"!==V(t)||L&&"object"==typeof t&&L in t)}function G(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}t.exports=function t(n,r,i,a){var c=r||{};if(W(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=c.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return t(y.call(e,0,n.maxStringLength),n)+i}return N(_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Q),"single",n)}(n,c);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var w=String(n);return b?B(n,w):w}if("bigint"==typeof n){var C=String(n)+"n";return b?B(n,C):C}var T=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof n)return U(n)?"[Array]":"[Object]";var D=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=M.call(Array(t.indent+1)," ")}return{base:n,prev:M.call(Array(e+1),n)}}(c,i);if(void 0===a)a=[];else if(Z(a,n)>=0)return"[Circular]";function H(e,n,r){if(n&&(a=A.call(a)).push(n),r){var o={depth:c.depth};return W(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),t(e,o,i+1,a)}return t(e,c,i+1,a)}if("function"==typeof n&&!z(n)){var $=function(t){if(t.name)return t.name;var e=v.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(n),tt=K(n,H);return"[Function"+($?": "+$:" (anonymous)")+"]"+(tt.length>0?" { "+M.call(tt,", ")+" }":"")}if(G(n)){var et=P?_.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(n);return"object"!=typeof n||P?et:X(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(n)){for(var nt="<"+x.call(String(n.nodeName)),rt=n.attributes||[],it=0;it<rt.length;it++)nt+=" "+rt[it].name+"="+N(j(rt[it].value),"double",c);return nt+=">",n.childNodes&&n.childNodes.length&&(nt+="..."),nt+="</"+x.call(String(n.nodeName))+">"}if(U(n)){if(0===n.length)return"[]";var ot=K(n,H);return D&&!function(t){for(var e=0;e<t.length;e++)if(Z(t[e],"\n")>=0)return!1;return!0}(ot)?"["+q(ot,D)+"]":"[ "+M.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==V(t)||L&&"object"==typeof t&&L in t)}(n)){var st=K(n,H);return"cause"in Error.prototype||!("cause"in n)||R.call(n,"cause")?0===st.length?"["+String(n)+"]":"{ ["+String(n)+"] "+M.call(st,", ")+" }":"{ ["+String(n)+"] "+M.call(S.call("[cause]: "+H(n.cause),st),", ")+" }"}if("object"==typeof n&&m){if(F&&"function"==typeof n[F]&&k)return k(n,{depth:T-i});if("symbol"!==m&&"function"==typeof n.inspect)return n.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(n)){var at=[];return s&&s.call(n,(function(t,e){at.push(H(e,n,!0)+" => "+H(t,n))})),J("Map",o.call(n),at,D)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(n)){var ct=[];return u&&u.call(n,(function(t){ct.push(H(t,n))})),J("Set",l.call(n),ct,D)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(n))return Y("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(n))return Y("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(n))return Y("WeakRef");if(function(t){return!("[object Number]"!==V(t)||L&&"object"==typeof t&&L in t)}(n))return X(H(Number(n)));if(function(t){if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}(n))return X(H(E.call(n)));if(function(t){return!("[object Boolean]"!==V(t)||L&&"object"==typeof t&&L in t)}(n))return X(p.call(n));if(function(t){return!("[object String]"!==V(t)||L&&"object"==typeof t&&L in t)}(n))return X(H(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if(n===e)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==V(t)||L&&"object"==typeof t&&L in t)}(n)&&!z(n)){var lt=K(n,H),ut=O?O(n)===Object.prototype:n instanceof Object||n.constructor===Object,ht=n instanceof Object?"":"null prototype",dt=!ut&&L&&Object(n)===n&&L in n?y.call(V(n),8,-1):ht?"Object":"",ft=(ut||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(dt||ht?"["+M.call(S.call([],dt||[],ht||[]),": ")+"] ":"");return 0===lt.length?ft+"{}":D?ft+"{"+q(lt,D)+"}":ft+"{ "+M.call(lt,", ")+" }"}return String(n)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return H.call(t,e)}function V(t){return m.call(t)}function Z(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function Q(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+b.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function J(t,e,n,r){return t+" ("+e+") {"+(r?q(n,r):M.call(n,", "))+"}"}function q(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+M.call(t,","+n)+"\n"+e.prev}function K(t,e){var n=U(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=W(t,i)?e(t[i],t):""}var o,s="function"==typeof T?T(t):[];if(P){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var c in t)W(t,c)&&(n&&String(Number(c))===c&&c<t.length||P&&o["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?r.push(e(c,t)+": "+e(t[c],t)):r.push(c+": "+e(t[c],t))));if("function"==typeof T)for(var l=0;l<s.length;l++)R.call(t,s[l])&&r.push("["+e(s[l])+"]: "+e(t[s[l]],t));return r}}).call(this,n(10))},function(t,e){},function(t,e,n){"use strict";var r=n(145),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var h=0;n.depth>0&&null!==(a=s.exec(o))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+o.slice(a.index)+"]"),function(t,e,n,r){for(var i=r?e:c(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[])[u]=i:"__proto__"!==l&&(s[l]=i):s={0:i}}i=s}return i}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,l={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=u.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var m,g,v=d[n],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;-1===_?(m=e.decoder(v,s.decoder,p,"key"),g=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,_),s.decoder,p,"key"),g=r.maybeMap(c(v.slice(_+1),e),(function(t){return e.decoder(t,s.decoder,p,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===p&&(g=a(g)),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(l,m)?l[m]=r.combine(l[m],g):l[m]=g}return l}(t,n):t,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],m=l(p,u[p],n,"string"==typeof t);h=r.merge(h,m,n)}return!0===n.allowSparse?h:r.compact(h)}},function(t,e,n){t.exports={default:n(234),__esModule:!0}},function(t,e,n){n(74),n(34),n(51),n(235),n(239),n(241),n(242),t.exports=n(6).Map},function(t,e,n){"use strict";var r=n(146),i=n(105);t.exports=n(147)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){var r=n(26),i=n(93),o=n(38),s=n(70),a=n(237);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,h=6==t,d=5==t||h,f=e||a;return function(e,a,p){for(var m,g,v=o(e),y=i(v),_=r(a,p,3),b=s(y.length),x=0,w=n?f(e,b):c?f(e,0):void 0;b>x;x++)if((d||x in y)&&(g=_(m=y[x],x,v),t))if(n)w[x]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(u)return!1;return h?-1:l||u?u:w}}},function(t,e,n){var r=n(238);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(20),i=n(148),o=n(16)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(9);r(r.P+r.R,"Map",{toJSON:n(149)("Map")})},function(t,e,n){var r=n(62);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){n(150)("Map")},function(t,e,n){n(151)("Map")},function(t,e,n){t.exports=[n(153),n(244),n(245),n(154),n(155),n(246)]},function(t,e,n){var r=n(52).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return i[t]},write:function(t,e){i[t]=e},each:o,remove:function(t){return i.removeItem(t)},clearAll:function(){o((function(t,e){delete i[t]}))}};var i=r.globalStorage;function o(t){for(var e=i.length-1;e>=0;e--){var n=i.key(e);t(i[n],n)}}},function(t,e,n){var r=n(52).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(s)return;var n=c(t);o((function(t){t.setAttribute(n,e),t.save("storejs")}))},read:function(t){if(s)return;var e=c(t),n=null;return o((function(t){n=t.getAttribute(e)})),n},each:function(t){o((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=c(t);o((function(t){t.removeAttribute(e),t.save("storejs")}))},clearAll:function(){o((function(t){var e=t.XMLDocument.documentElement.attributes;t.load("storejs");for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save("storejs")}))}};var i=r.document,o=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=i.createElement("div"),t=i.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load("storejs"),e.apply(this,r),t.removeChild(n)}}(),s=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function c(t){return t.replace(/^\d/,"___$&").replace(a,"___")}},function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},function(t,e,n){t.exports=function(){return n(248),{}}},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,r,i,o,s,a=gap,c=e[t];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(t)),"function"==typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,n=0;n<o;n+=1)s[n]=str(n,c)||"null";return i=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],c))&&s.push(quote(r)+(gap?": ":":")+i);else for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(i=str(r,c))&&s.push(quote(r)+(gap?": ":":")+i);return i=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,r,i=t[e];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(t,e,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},function(t,e){t.exports=function(){var t=this.createStore(this.storage,null,this._namespacePrefix+"expire_mixin");return{set:function(e,n,r,i){this.hasNamespace("expire_mixin")||t.set(n,i);return e()},get:function(t,n){this.hasNamespace("expire_mixin")||e.call(this,n);return t()},remove:function(e,n){this.hasNamespace("expire_mixin")||t.remove(n);return e()},getExpiration:function(e,n){return t.get(n)},removeExpiredKeys:function(t){var n=[];this.each((function(t,e){n.push(e)}));for(var r=0;r<n.length;r++)e.call(this,n[r])}};function e(e){t.get(e,Number.MAX_VALUE)<=(new Date).getTime()&&(this.raw.remove(e),t.remove(e))}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,n){n(252),t.exports=n(6).Object.entries},function(t,e,n){var r=n(9),i=n(157)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){n(51),n(34),t.exports=n(254)},function(t,e,n){var r=n(24),i=n(97);t.exports=n(6).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){t.exports={default:n(256),__esModule:!0}},function(t,e,n){n(51),n(34),t.exports=n(257)},function(t,e,n){var r=n(72),i=n(16)("iterator"),o=n(48);t.exports=n(6).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){var r=n(6),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){t.exports={default:n(260),__esModule:!0}},function(t,e,n){n(34),n(51),t.exports=n(106).f("iterator")},function(t,e,n){t.exports={default:n(262),__esModule:!0}},function(t,e,n){n(263),n(74),n(267),n(268),t.exports=n(6).Symbol},function(t,e,n){"use strict";var r=n(15),i=n(36),o=n(18),s=n(9),a=n(125),c=n(104).KEY,l=n(35),u=n(95),h=n(60),d=n(71),f=n(16),p=n(106),m=n(107),g=n(264),v=n(148),y=n(24),_=n(20),b=n(38),x=n(37),w=n(91),S=n(58),M=n(92),A=n(265),C=n(266),E=n(98),T=n(19),I=n(49),P=C.f,L=T.f,R=A.f,O=r.Symbol,B=r.JSON,k=B&&B.stringify,D=f("_hidden"),F=f("toPrimitive"),N={}.propertyIsEnumerable,j=u("symbol-registry"),U=u("symbols"),z=u("op-symbols"),G=Object.prototype,H="function"==typeof O&&!!E.f,W=r.QObject,V=!W||!W.prototype||!W.prototype.findChild,Z=o&&l((function(){return 7!=M(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=P(G,e);r&&delete G[e],L(t,e,n),r&&t!==G&&L(G,e,r)}:L,Q=function(t){var e=U[t]=M(O.prototype);return e._k=t,e},X=H&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},Y=function(t,e,n){return t===G&&Y(z,e,n),y(t),e=w(e,!0),y(n),i(U,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=M(n,{enumerable:S(0,!1)})):(i(t,D)||L(t,D,S(1,{})),t[D][e]=!0),Z(t,e,n)):L(t,e,n)},J=function(t,e){y(t);for(var n,r=g(e=x(e)),i=0,o=r.length;o>i;)Y(t,n=r[i++],e[n]);return t},q=function(t){var e=N.call(this,t=w(t,!0));return!(this===G&&i(U,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(U,t)||i(this,D)&&this[D][t])||e)},K=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!i(U,e)||i(z,e)){var n=P(t,e);return!n||!i(U,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=R(x(t)),r=[],o=0;n.length>o;)i(U,e=n[o++])||e==D||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===G,r=R(n?z:x(t)),o=[],s=0;r.length>s;)!i(U,e=r[s++])||n&&!i(G,e)||o.push(U[e]);return o};H||(a((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(z,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),Z(this,t,S(1,n))};return o&&V&&Z(G,t,{configurable:!0,set:e}),Q(t)}).prototype,"toString",(function(){return this._k})),C.f=K,T.f=Y,n(161).f=A.f=$,n(61).f=q,E.f=tt,o&&!n(56)&&a(G,"propertyIsEnumerable",q,!0),p.f=function(t){return Q(f(t))}),s(s.G+s.W+s.F*!H,{Symbol:O});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)f(et[nt++]);for(var rt=I(f.store),it=0;rt.length>it;)m(rt[it++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return i(j,t+="")?j[t]:j[t]=O(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!H,"Object",{create:function(t,e){return void 0===e?M(t):J(M(t),e)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:K,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var ot=l((function(){E.f(1)}));s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return E.f(b(t))}}),B&&s(s.S+s.F*(!H||l((function(){var t=O();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(_(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,k.apply(B,r)}}),O.prototype[F]||n(27)(O.prototype,F,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(49),i=n(98),o=n(61);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),c=o.f,l=0;a.length>l;)c.call(t,s=a[l++])&&e.push(s);return e}},function(t,e,n){var r=n(37),i=n(161).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(61),i=n(58),o=n(37),s=n(91),a=n(36),c=n(124),l=Object.getOwnPropertyDescriptor;e.f=n(18)?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){n(107)("asyncIterator")},function(t,e,n){n(107)("observable")},function(t,e,n){var r;t.exports=(r=n(2),n(75),n(271),n(272),n(44),n(273),n(45),n(162),n(108),n(274),n(163),n(275),n(276),n(277),n(109),n(278),n(29),n(11),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),r)},function(t,e){},function(t,e,n){var r;t.exports=(r=n(2),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)}).prototype=t}}(),r.lib.WordArray)},function(t,e,n){var r;t.exports=(r=n(2),function(){var t=r,e=t.lib.WordArray,n=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},n.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o+=2){var s=i(e[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var n=t.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(r,2*n)}}}(),r.enc.Utf16)},function(t,e,n){var r,i,o;t.exports=(o=n(2),i=(r=o).lib.WordArray,r.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)o.push(i.charAt(a>>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,r=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(n=c)}return function(t,e,n){for(var r=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,c=n[t.charCodeAt(s)]>>>6-s%4*2,l=a|c;r[o>>>2]|=l<<24-o%4*8,o++}return i.create(r,o)}(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},o.enc.Base64url)},function(t,e,n){var r,i,o,s,a,c;t.exports=(c=n(2),n(108),i=(r=c).lib.WordArray,o=r.algo,s=o.SHA256,a=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=4,t}}),r.SHA224=s._createHelper(a),r.HmacSHA224=s._createHmacHelper(a),c.SHA224)},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),n(75),n(163),i=(r=u).x64,o=i.Word,s=i.WordArray,a=r.algo,c=a.SHA512,l=a.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var t=c._doFinalize.call(this);return t.sigBytes-=16,t}}),r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l),u.SHA384)},function(t,e,n){var r;t.exports=(r=n(2),n(75),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.x64.Word,a=e.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var a=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?h^=1<<f:a^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=s.create(a,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=s.create()}();var d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],s=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=n[i]).high^=s,T.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(T=n[d+5*m]).high,p^=T.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var v=h[(d+4)%5],y=h[(d+1)%5],_=y.high,b=y.low;for(f=v.high^(_<<1|b>>>31),p=v.low^(b<<1|_>>>31),m=0;m<5;m++)(T=n[d+5*m]).high^=f,T.low^=p}for(var x=1;x<25;x++){var w=(T=n[x]).high,S=T.low,M=c[x];M<32?(f=w<<M|S>>>32-M,p=S<<M|w>>>32-M):(f=S<<M-32|w>>>64-M,p=w<<M-32|S>>>64-M);var A=h[l[x]];A.high=f,A.low=p}var C=h[0],E=n[0];for(C.high=E.high,C.low=E.low,d=0;d<5;d++)for(m=0;m<5;m++){var T=n[x=d+5*m],I=h[x],P=h[(d+1)%5+5*m],L=h[(d+2)%5+5*m];T.high=I.high^~P.high&L.high,T.low=I.low^~P.low&L.low}T=n[0];var R=u[a];T.high^=R.high,T.low^=R.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var h=s[u],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l.push(f),l.push(d)}return new i.init(l,a)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),r.SHA3)},function(t,e,n){var r;t.exports=(r=n(2),
157
+ /** @preserve
158
+ (c) 2012 by Cédric Mesnil. All rights reserved.
145
159
 
146
- function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,b,x,w,S,M,A,C,E,T=this._hash.words,I=h.words,P=d.words,L=a.words,R=c.words,O=l.words,B=u.words;for(w=o=T[0],S=s=T[1],M=f=T[2],A=b=T[3],C=x=T[4],n=0;n<80;n+=1)E=o+t[e+L[n]]|0,E+=n<16?p(s,f,b)+I[0]:n<32?m(s,f,b)+I[1]:n<48?g(s,f,b)+I[2]:n<64?v(s,f,b)+I[3]:y(s,f,b)+I[4],E=(E=_(E|=0,O[n]))+x|0,o=x,x=b,b=_(f,10),f=s,s=E,E=w+t[e+R[n]]|0,E+=n<16?y(S,M,A)+P[0]:n<32?v(S,M,A)+P[1]:n<48?g(S,M,A)+P[2]:n<64?m(S,M,A)+P[3]:p(S,M,A)+P[4],E=(E=_(E|=0,B[n]))+C|0,w=C,C=A,A=_(M,10),M=S,S=E;E=T[1]+f+A|0,T[1]=T[2]+b+C|0,T[2]=T[3]+x+w|0,T[3]=T[4]+o+S|0,T[4]=T[0]+s+M|0,T[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(Math),r.RIPEMD160)},function(t,e,n){var r,i,o,s,a,c,l,u,h;t.exports=(h=n(2),n(108),n(109),i=(r=h).lib,o=i.Base,s=i.WordArray,a=r.algo,c=a.SHA256,l=a.HMAC,u=a.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=l.create(n.hasher,t),i=s.create(),o=s.create([1]),a=i.words,c=o.words,u=n.keySize,h=n.iterations;a.length<u;){var d=r.update(e).finalize(o);r.reset();for(var f=d.words,p=f.length,m=d,g=1;g<h;g++){m=r.finalize(m),r.reset();for(var v=m.words,y=0;y<p;y++)f[y]^=v[y]}i.concat(d),c[0]++}return i.sigBytes=4*u,i}}),r.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)},h.PBKDF2)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.mode.CFB=function(){var t=r.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s<n;s++)t[e+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=o}}),t}(),r.mode.CFB)},function(t,e,n){var r,i,o;t.exports=(o=n(2),n(11),o.mode.CTR=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)t[e+a]^=s[a]}}),r.Decryptor=i,r),o.mode.CTR)},function(t,e,n){var r;t.exports=(r=n(2),n(11),
160
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
147
161
 
162
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
163
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
164
+
165
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
166
+ */
167
+ function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,b,x,w,S,M,A,C,E,T=this._hash.words,I=h.words,P=d.words,L=a.words,R=c.words,O=l.words,B=u.words;for(w=o=T[0],S=s=T[1],M=f=T[2],A=b=T[3],C=x=T[4],n=0;n<80;n+=1)E=o+t[e+L[n]]|0,E+=n<16?p(s,f,b)+I[0]:n<32?m(s,f,b)+I[1]:n<48?g(s,f,b)+I[2]:n<64?v(s,f,b)+I[3]:y(s,f,b)+I[4],E=(E=_(E|=0,O[n]))+x|0,o=x,x=b,b=_(f,10),f=s,s=E,E=w+t[e+R[n]]|0,E+=n<16?y(S,M,A)+P[0]:n<32?v(S,M,A)+P[1]:n<48?g(S,M,A)+P[2]:n<64?m(S,M,A)+P[3]:p(S,M,A)+P[4],E=(E=_(E|=0,B[n]))+C|0,w=C,C=A,A=_(M,10),M=S,S=E;E=T[1]+f+A|0,T[1]=T[2]+b+C|0,T[2]=T[3]+x+w|0,T[3]=T[4]+o+S|0,T[4]=T[0]+s+M|0,T[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(Math),r.RIPEMD160)},function(t,e,n){var r,i,o,s,a,c,l,u,h;t.exports=(h=n(2),n(108),n(109),i=(r=h).lib,o=i.Base,s=i.WordArray,a=r.algo,c=a.SHA256,l=a.HMAC,u=a.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=l.create(n.hasher,t),i=s.create(),o=s.create([1]),a=i.words,c=o.words,u=n.keySize,h=n.iterations;a.length<u;){var d=r.update(e).finalize(o);r.reset();for(var f=d.words,p=f.length,m=d,g=1;g<h;g++){m=r.finalize(m),r.reset();for(var v=m.words,y=0;y<p;y++)f[y]^=v[y]}i.concat(d),c[0]++}return i.sigBytes=4*u,i}}),r.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)},h.PBKDF2)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.mode.CFB=function(){var t=r.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s<n;s++)t[e+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=o}}),t}(),r.mode.CFB)},function(t,e,n){var r,i,o;t.exports=(o=n(2),n(11),o.mode.CTR=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)t[e+a]^=s[a]}}),r.Decryptor=i,r),o.mode.CTR)},function(t,e,n){var r;t.exports=(r=n(2),n(11),
168
+ /** @preserve
169
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
170
+ * derived from CryptoJS.mode.CTR
171
+ * Jan Hruby jhruby.web@gmail.com
172
+ */
148
173
  r.mode.CTRGladman=function(){var t=r.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)t[n+c]^=a[c]}});return t.Decryptor=n,t}(),r.mode.CTRGladman)},function(t,e,n){var r,i,o;t.exports=(o=n(2),n(11),o.mode.OFB=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}}),r.Decryptor=i,r),o.mode.OFB)},function(t,e,n){var r,i;t.exports=(i=n(2),n(11),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),r.Decryptor=r.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),r),i.mode.ECB)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Ansix923)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Iso10126)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},r.pad.ZeroPadding)},function(t,e,n){var r;t.exports=(r=n(2),n(11),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},function(t,e,n){var r,i,o,s;t.exports=(s=n(2),n(11),i=(r=s).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(t){return t.ciphertext.toString(o)},parse:function(t){var e=o.parse(t);return i.create({ciphertext:e})}},s.format.Hex)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],s=[],a=[],c=[],l=[],u=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var m=t[n],g=t[m],v=t[g],y=257*t[p]^16843008*p;s[n]=y<<24|y>>>8,a[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,l[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,f[p]=y,n?(n=m^t[t[t[v^m]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s<r;s++)s<n?o[s]=e[s]:(l=o[s-1],s%n?n>6&&s%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[s/n|0]<<24),o[s]=o[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var l=o[s];else l=o[s-4];a[c]=c<4||s<=4?l:u[i[l>>>24]]^h[i[l>>>16&255]]^d[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,d,f,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,a){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<c;p++){var m=r[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^s[255&d]^n[f++],g=r[u>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&l]^n[f++],v=r[h>>>24]^i[d>>>16&255]^o[l>>>8&255]^s[255&u]^n[f++],y=r[d>>>24]^i[l>>>16&255]^o[u>>>8&255]^s[255&h]^n[f++];l=m,u=g,h=v,d=y}m=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^n[f++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&l])^n[f++],v=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[f++],y=(a[d>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=y},keySize:8});t.AES=e._createHelper(m)}(),r.AES)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib,n=e.WordArray,i=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=s[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(n=0;n<24;n++)l[n/6|0]|=e[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((s^i[c])&u[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(e)),this._des2=h.createEncryptor(n.create(r)),this._des3=h.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),r.TripleDES)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=e[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var c=r[i];r[i]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(s)}(),r.RC4)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],s=[],a=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,d=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=l,i[5]^=h,i[6]^=u,i[7]^=d,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e._createHelper(a)}(),r.Rabbit)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],s=[],a=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,d=u<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=u,r[3]^=d,r[4]^=l,r[5]^=h,r[6]^=u,r[7]^=d,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=e._createHelper(a)}(),r.RabbitLegacy)},function(t,e,n){var r;t.exports=(r=n(2),n(44),n(45),n(29),n(11),function(){var t=r,e=t.lib.BlockCipher,n=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,o=255&e,s=t.sbox[0][n]+t.sbox[1][r];return s^=t.sbox[2][i],s+=t.sbox[3][o],s}function l(t,e,n){let r,o=e,s=n;for(let e=0;e<i;++e)o^=t.pbox[e],s=c(t,o)^s,r=o,o=s,s=r;return r=o,o=s,s=r,s^=t.pbox[i],o^=t.pbox[17],{left:o,right:s}}var u=n.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;!function(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=s[e][n]}let r=0;for(let i=0;i<18;i++)t.pbox[i]=o[i]^e[r],r++,r>=n&&(r=0);let i=0,a=0,c=0;for(let e=0;e<18;e+=2)c=l(t,i,a),i=c.left,a=c.right,t.pbox[e]=i,t.pbox[e+1]=a;for(let e=0;e<4;e++)for(let n=0;n<256;n+=2)c=l(t,i,a),i=c.left,a=c.right,t.sbox[e][n]=i,t.sbox[e][n+1]=a}(a,e,n)}},encryptBlock:function(t,e){var n=l(a,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=function(t,e,n){let r,i=e,o=n;for(let e=17;e>1;--e)i^=t.pbox[e],o=c(t,i)^o,r=i,i=o,o=r;return r=i,i=o,o=r,o^=t.pbox[1],i^=t.pbox[0],{left:i,right:o}}(a,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e._createHelper(u)}(),r.Blowfish)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(23)),i=l(n(21)),o=l(n(121)),s=n(77),a=n(167),c=l(n(169));function l(t){return t&&t.__esModule?t:{default:t}}var u=i.default.extend(o.default),h={install:function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick((function(){r.modifiers.fullscreen?(e.originalPosition=(0,s.getStyle)(document.body,"position"),e.originalOverflow=(0,s.getStyle)(document.body,"overflow"),e.maskStyle.zIndex=a.PopupManager.nextZIndex(),(0,s.addClass)(e.mask,"is-fullscreen"),n(document.body,e,r)):((0,s.removeClass)(e.mask,"is-fullscreen"),r.modifiers.body?(e.originalPosition=(0,s.getStyle)(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt((0,s.getStyle)(document.body,"margin-"+t),10)+"px"})),["height","width"].forEach((function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+"px"})),n(document.body,e,r)):(e.originalPosition=(0,s.getStyle)(e,"position"),n(e,e,r)))})):((0,c.default)(e.instance,(function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;(0,s.removeClass)(n,"el-loading-parent--relative"),(0,s.removeClass)(n,"el-loading-parent--hidden"),e.instance.hiding=!1}}),300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,i){n.domVisible||"none"===(0,s.getStyle)(n,"display")||"hidden"===(0,s.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):((0,r.default)(n.maskStyle).forEach((function(t){n.mask.style[t]=n.maskStyle[t]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&(0,s.addClass)(e,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&(0,s.addClass)(e,"el-loading-parent--hidden"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};t.directive("loading",{bind:function(t,n,r){var i=t.getAttribute("element-loading-text"),o=t.getAttribute("element-loading-spinner"),s=t.getAttribute("element-loading-background"),a=t.getAttribute("element-loading-custom-class"),c=r.context,l=new u({el:document.createElement("div"),data:{text:c&&c[i]||i,spinner:c&&c[o]||o,background:c&&c[s]||s,customClass:c&&c[a]||a,fullscreen:!!n.modifiers.fullscreen}});t.instance=l,t.mask=l.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute("element-loading-text")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}}};e.default=h},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,s,a,c=1,l={},u=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,r=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[c]=i,r(c),c++},d.clearImmediate=f}function f(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(10),n(166))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(21),o=(r=i)&&r.__esModule?r:{default:r},s=n(77);var a=!1,c=!1,l=void 0,u=function(){if(!o.default.prototype.$isServer){var t=d.modalDom;return t?a=!0:(a=!1,t=document.createElement("div"),d.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),t}},h={},d={modalFade:!0,getInstance:function(t){return h[t]},register:function(t,e){t&&e&&(h[t]=e)},deregister:function(t){t&&(h[t]=null,delete h[t])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var t=d.modalStack[d.modalStack.length-1];if(t){var e=d.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,i){if(!o.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=i;for(var c=this.modalStack,l=0,h=c.length;l<h;l++){if(c[l].id===t)return}var d=u();if((0,s.addClass)(d,"v-modal"),this.modalFade&&!a&&(0,s.addClass)(d,"v-modal-enter"),r)r.trim().split(/\s+/).forEach((function(t){return(0,s.addClass)(d,t)}));setTimeout((function(){(0,s.removeClass)(d,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(d):document.body.appendChild(d),e&&(d.style.zIndex=e),d.tabIndex=0,d.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=u();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass)r.modalClass.trim().split(/\s+/).forEach((function(t){return(0,s.removeClass)(n,t)}));e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&(0,s.addClass)(n,"v-modal-leave"),setTimeout((function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,s.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return c||(l=l||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),l},set:function(t){l=t}});o.default.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&d.modalStack.length>0){var t=d.modalStack[d.modalStack.length-1];if(!t)return;return d.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}})),e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==s)return s;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),s=e-r};var r,i=n(21),o=(r=i)&&r.__esModule?r:{default:r};var s=void 0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(23)),i=u(n(21)),o=u(n(121)),s=n(77),a=n(167),c=u(n(169)),l=u(n(168));function u(t){return t&&t.__esModule?t:{default:t}}var h=i.default.extend(o.default),d={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},f=void 0;h.prototype.originalPosition="",h.prototype.originalOverflow="",h.prototype.close=function(){var t=this;this.fullscreen&&(f=void 0),(0,c.default)(this,(function(e){var n=t.fullscreen||t.body?document.body:t.target;(0,s.removeClass)(n,"el-loading-parent--relative"),(0,s.removeClass)(n,"el-loading-parent--hidden"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()}),300),this.visible=!1};var p=function(t,e,n){var i={};t.fullscreen?(n.originalPosition=(0,s.getStyle)(document.body,"position"),n.originalOverflow=(0,s.getStyle)(document.body,"overflow"),i.zIndex=a.PopupManager.nextZIndex()):t.body?(n.originalPosition=(0,s.getStyle)(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";i[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(e){i[e]=t.target.getBoundingClientRect()[e]+"px"}))):n.originalPosition=(0,s.getStyle)(e,"position"),(0,r.default)(i).forEach((function(t){n.$el.style[t]=i[t]}))};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.default.prototype.$isServer){if("string"==typeof(t=(0,l.default)({},d,t)).target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&f)return f;var e=t.body?document.body:t.target,n=new h({el:document.createElement("div"),data:t});return p(t,e,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&(0,s.addClass)(e,"el-loading-parent--relative"),t.fullscreen&&t.lock&&(0,s.addClass)(e,"el-loading-parent--hidden"),e.appendChild(n.$el),i.default.nextTick((function(){n.visible=!0})),t.fullscreen&&(f=n),n}}},function(t,e,n){"use strict";function r(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,n,i,o,s){return r((a=r(r(e,t),r(i,s)))<<(c=o)|a>>>32-c,n);var a,c}function o(t,e,n,r,o,s,a){return i(e&n|~e&r,t,e,o,s,a)}function s(t,e,n,r,o,s,a){return i(e&r|n&~r,t,e,o,s,a)}function a(t,e,n,r,o,s,a){return i(e^n^r,t,e,o,s,a)}function c(t,e,n,r,o,s,a){return i(n^(e|~r),t,e,o,s,a)}function l(t,e){var n,i,l,u,h;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var d=1732584193,f=-271733879,p=-1732584194,m=271733878;for(n=0;n<t.length;n+=16)i=d,l=f,u=p,h=m,d=o(d,f,p,m,t[n],7,-680876936),m=o(m,d,f,p,t[n+1],12,-389564586),p=o(p,m,d,f,t[n+2],17,606105819),f=o(f,p,m,d,t[n+3],22,-1044525330),d=o(d,f,p,m,t[n+4],7,-176418897),m=o(m,d,f,p,t[n+5],12,1200080426),p=o(p,m,d,f,t[n+6],17,-1473231341),f=o(f,p,m,d,t[n+7],22,-45705983),d=o(d,f,p,m,t[n+8],7,1770035416),m=o(m,d,f,p,t[n+9],12,-1958414417),p=o(p,m,d,f,t[n+10],17,-42063),f=o(f,p,m,d,t[n+11],22,-1990404162),d=o(d,f,p,m,t[n+12],7,1804603682),m=o(m,d,f,p,t[n+13],12,-40341101),p=o(p,m,d,f,t[n+14],17,-1502002290),d=s(d,f=o(f,p,m,d,t[n+15],22,1236535329),p,m,t[n+1],5,-165796510),m=s(m,d,f,p,t[n+6],9,-1069501632),p=s(p,m,d,f,t[n+11],14,643717713),f=s(f,p,m,d,t[n],20,-373897302),d=s(d,f,p,m,t[n+5],5,-701558691),m=s(m,d,f,p,t[n+10],9,38016083),p=s(p,m,d,f,t[n+15],14,-660478335),f=s(f,p,m,d,t[n+4],20,-405537848),d=s(d,f,p,m,t[n+9],5,568446438),m=s(m,d,f,p,t[n+14],9,-1019803690),p=s(p,m,d,f,t[n+3],14,-187363961),f=s(f,p,m,d,t[n+8],20,1163531501),d=s(d,f,p,m,t[n+13],5,-1444681467),m=s(m,d,f,p,t[n+2],9,-51403784),p=s(p,m,d,f,t[n+7],14,1735328473),d=a(d,f=s(f,p,m,d,t[n+12],20,-1926607734),p,m,t[n+5],4,-378558),m=a(m,d,f,p,t[n+8],11,-2022574463),p=a(p,m,d,f,t[n+11],16,1839030562),f=a(f,p,m,d,t[n+14],23,-35309556),d=a(d,f,p,m,t[n+1],4,-1530992060),m=a(m,d,f,p,t[n+4],11,1272893353),p=a(p,m,d,f,t[n+7],16,-155497632),f=a(f,p,m,d,t[n+10],23,-1094730640),d=a(d,f,p,m,t[n+13],4,681279174),m=a(m,d,f,p,t[n],11,-358537222),p=a(p,m,d,f,t[n+3],16,-722521979),f=a(f,p,m,d,t[n+6],23,76029189),d=a(d,f,p,m,t[n+9],4,-640364487),m=a(m,d,f,p,t[n+12],11,-421815835),p=a(p,m,d,f,t[n+15],16,530742520),d=c(d,f=a(f,p,m,d,t[n+2],23,-995338651),p,m,t[n],6,-198630844),m=c(m,d,f,p,t[n+7],10,1126891415),p=c(p,m,d,f,t[n+14],15,-1416354905),f=c(f,p,m,d,t[n+5],21,-57434055),d=c(d,f,p,m,t[n+12],6,1700485571),m=c(m,d,f,p,t[n+3],10,-1894986606),p=c(p,m,d,f,t[n+10],15,-1051523),f=c(f,p,m,d,t[n+1],21,-2054922799),d=c(d,f,p,m,t[n+8],6,1873313359),m=c(m,d,f,p,t[n+15],10,-30611744),p=c(p,m,d,f,t[n+6],15,-1560198380),f=c(f,p,m,d,t[n+13],21,1309151649),d=c(d,f,p,m,t[n+4],6,-145523070),m=c(m,d,f,p,t[n+11],10,-1120210379),p=c(p,m,d,f,t[n+2],15,718787259),f=c(f,p,m,d,t[n+9],21,-343485551),d=r(d,i),f=r(f,l),p=r(p,u),m=r(m,h);return[d,f,p,m]}function u(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function h(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function d(t){var e,n,r="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function f(t){return unescape(encodeURIComponent(t))}function p(t){return function(t){return u(l(h(t),8*t.length))}(f(t))}function m(t,e){return function(t,e){var n,r,i=h(t),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=l(i,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],s[n]=1549556828^i[n];return r=l(o.concat(h(e)),512+8*e.length),u(l(s.concat(r),640))}(f(t),f(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.md5=function(t,e,n){if(!e)return n?p(t):d(p(t));if(!n)return d(m(e,t));return m(e,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(13));n(303);var i=n(304),o=n(3),s=m(n(305)),a=m(n(306)),c=n(12),l=m(n(46)),u=m(n(4)),h=m(n(54)),d=n(17),f=n(8),p=n(5);function m(t){return t&&t.__esModule?t:{default:t}}var g={1:{text:"您访问的该页面暂无权限!",iconGroup:["login"]},2:{text:"您访问的“%”暂无权限!",iconGroup:["project","login"]}};e.default={name:"NoAllow",data:function(){return{status:1,visible:!1,projectList:[],localInfo:{},currentProjectInfo:{}}},created:function(){this.SET_IS_IN_NO_AUTH(!0)},beforeDestroy:function(){this.SET_IS_IN_NO_AUTH(!1)},mounted:function(){this.getAllProject()},computed:{currentProject:function(){try{var t=(0,f.getCache)("APP_PROJECT");if(t){var e=h.default.decrypt(t);return e?JSON.parse(e):{}}return{}}catch(t){console.error(t)}},userAllInfo:function(){return p.localStore.get("userAllInfo")}},watch:{userAllInfo:{handler:function(t){this.localInfo=t},deep:!0,immediate:!0}},methods:(0,r.default)({},(0,i.mapMutations)("user",["SET_IS_IN_NO_AUTH"]),{handleTap:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"login";switch(t){case"login":(0,d.logOut)();break;case"project":this.visible=!0}},handleModalTap:function(t,e){var n=this;2===t?(0,c.postConsumer)(e.id).then((function(t){if(0===t.code){n.visible=!1;var r=t.data;(0,f.removeCache)("menuList"),(0,f.removeCache)("consumer"),(0,f.removeCache)("currentProject"),(0,f.removeCache)("consumerExtList"),(0,f.removeCache)("userMessage"),(0,f.setCache)("currentProject",e);var i=p.localStore.get("IAM_OATH_TYPE");if(!(0,u.default)(r)){localStorage.removeItem("access_token"),p.localStore.set("access_token",r.access_token),p.localStore.set("refresh_token",r.refresh_token);var o=new Date;p.localStore.set("token_expires_in",new Date(o.setSeconds(o.getSeconds()+parseInt(r.expires_in))).getTime()),i&&"idp"===i&&(p.localStore.set("idp_access_token",r.idp_access_token),p.localStore.set("idp_refresh_token",r.idp_refresh_token)),(0,c.getUserInfo)({loadAuth:!0,sysCode:(0,f.getCache)("CLIENT_ID",f.sessionEngine)}).then((function(t){if(0===t.code){var e=t.data,r=e.consumer,i=e.menuList;n.localInfo=t.data,(0,f.setCache)("userAllInfo",t.data),(0,u.default)(r)||(0,u.default)(i)||n.$router.replace("/").then((function(){}))}}))}}else n.$message.error(t.msg)})):this.visible=!1},getAllProject:function(){var t=this;(0,c.getBelongList)().then((function(e){if((0,u.default)(e.data))t.status=1;else if(t.status=e.data.length>1?2:1,t.projectList=e.data,!(0,u.default)(t.localInfo)&&!(0,u.default)(t.localInfo.consumer)){var n=(0,l.default)(t.projectList,["id",t.localInfo.consumer.id]);(0,u.default)(n)||(t.currentProjectInfo=n)}}))}}),render:function(){var t=this,e=arguments[0],n={login:e("a-button",{attrs:{type:"primary"},on:{click:function(){return t.handleTap("login")}}},["返回登录页"]),project:e("a-button",{attrs:{type:"primary",ghost:!0},on:{click:function(){return t.handleTap("project")}}},["切换其他项目"])},r=g[this.status].iconGroup.map((function(t){return n[t]}));return e("div",{class:o.prefixCls+"-no-allow"},[e("div",{class:o.prefixCls+"-no-allow-icon"},[e(s.default)]),e("div",{class:o.prefixCls+"-no-allow-info"},[e("div",{class:o.prefixCls+"-no-allow-info-desc"},[e("span",[(0,u.default)(this.localInfo)||(0,u.default)(this.localInfo.consumer)?g[this.status].text:g[this.status].text.replace("%",this.localInfo.consumer.name)])]),e("div",{class:o.prefixCls+"-no-allow-info-btn"},[e("a-space",{attrs:{size:22}},[r])])]),e(a.default,{attrs:{visible:this.visible,projectList:this.projectList,choiceInfo:this.currentProjectInfo},on:{tap:function(e,n){return t.handleModalTap(e,n)}}})])}}},function(t,e,n){},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"Store",(function(){return h})),n.d(e,"createLogger",(function(){return T})),n.d(e,"createNamespacedHelpers",(function(){return M})),n.d(e,"install",(function(){return _})),n.d(e,"mapActions",(function(){return S})),n.d(e,"mapGetters",(function(){return w})),n.d(e,"mapMutations",(function(){return x})),n.d(e,"mapState",(function(){return b}));var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=i(t[n],e)})),o}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){o(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,c);var l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(t){!function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new a(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i);e.modules&&o(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var u;var h=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&_(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return a.call(o,t,e,n)},this.strict=i;var c=this._modules.root.state;g(this,c,[],this._modules.root),m(this,c),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,s={};o(i,(function(e,n){s[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:s}),u.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!o&&!i){var a=v(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){u.set(a,c,r.state)}))}var l=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=y(n,r,i),s=o.payload,a=o.options,c=o.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:r?t.commit:function(n,r,i){var o=y(n,r,i),s=o.payload,a=o.options,c=o.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,n)}}}),i}(t,s,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,s+n,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i,o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,r,i,l)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,s+n,e,l)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){u&&t===u||
149
174
  /*!
150
175
  * vuex v3.6.2