const qN="0.8.11",M1=typeof window!="undefined",eB=typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Function("return this")();function tB(e){return e===void 0}function os(e){return typeof e=="string"}function I1(e){return typeof e=="boolean"}function Dr(e){return typeof e=="function"}const Sc=Array.isArray;function ia(e){return toString.call(e)==="[object Object]"}function X0(e){return toString.call(e)==="[object Promise]"}function J0(e){return Dr(e)&&e.name.indexOf("bound ")===0&&!e.hasOwnProperty("prototype")}function nB(e){return typeof ShadowRoot!="undefined"&&e instanceof ShadowRoot}const mc=Object.defineProperty,rB=Object.defineProperties,Bl=Object.prototype.hasOwnProperty;function qn(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.error(`[micro-app]${r} ${e}`,...n):console.error(`[micro-app]${r}`,e,...n)}function ah(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.warn(`[micro-app]${r} ${e}`,...n):console.warn(`[micro-app]${r}`,e,...n)}function _o(e,...t){Promise.resolve().then(e.bind(null,...t))}function $1(e){return e.startsWith("//")?`${location.protocol}${e}`:e}function Z0(e,t=null){if(!os(e)||!e)return"";try{const{origin:n,pathname:r,search:i}=new URL($1(e));if(/\.(\w+)$/.test(r))return`${n}${r}${i}`;const a=`${n}${r}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(a)?`${a}${i}`:""}catch(n){return qn(n,t),""}}function qa(e){return!os(e)||!e?"":e.replace(/(^\d+)|([^\w\d-_])/gi,"")}function K6(e){const{origin:t,pathname:n}=new URL(e);if(/\.(\w+)$/.test(n)){const i=`${t}${n}`.split("/");return i.pop(),i.join("/")+"/"}return`${t}${n}/`.replace(/\/\/$/,"/")}function Eo(e,t){return!e||/^((((ht|f)tps?)|file):)?\/\//.test(e)||/^(data|blob):/.test(e)?e:new URL(e,K6($1(t))).toString()}function iB(e){const t=e.split("/");return t.pop(),$1(t.join("/")+"/")}function Lg(e,t,n,r){let i=0;function a(){++i===e.length&&r&&r()}e.forEach((l,c)=>{X0(l)?l.then(h=>{t({data:h,index:c}),a()}).catch(h=>{n({error:h,index:c}),a()}):(t({data:l,index:c}),a())})}function aB(){const e=document.createElement("script");return"noModule"in e}function sB(){return"inline-"+Math.random().toString(36).substr(2,15)}function oB(e){return e.filter(function(t){return t in this?!1:this[t]=!0},Object.create(null))}const R1=eB.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},50)};let L1=null;function Mc(e){L1=e}function vv(e){L1!==e&&(Mc(e),_o(()=>{Mc(null)}))}function ba(){return L1}function Ng(){Mc(null)}function ku(e,t){const n=document.createElement(e,t);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n}function mv(e,t,n){if(t.innerHTML="",n){const r=e.cloneNode(!0),i=document.createDocumentFragment();Array.from(r.childNodes).forEach(a=>{i.appendChild(a)}),t.appendChild(i)}else Array.from(e.childNodes).forEach(r=>{t.appendChild(r)})}function gv(e){return!e||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(e)}function $y(e){return/^body$/i.test(e)||/^head$/i.test(e)||/^html$/i.test(e)}function sh(e){return nB(e)?e.host:e}function Ry(e){return e?e.replace(/^\s+|\s+$/g,""):""}function X5(){return navigator.userAgent.indexOf("Firefox")>-1}var xf;(function(e){e.NAME="name",e.URL="url"})(xf||(xf={}));var Mr;(function(e){e.NOT_LOADED="NOT_LOADED",e.LOADING_SOURCE_CODE="LOADING_SOURCE_CODE",e.LOAD_SOURCE_FINISHED="LOAD_SOURCE_FINISHED",e.LOAD_SOURCE_ERROR="LOAD_SOURCE_ERROR",e.MOUNTING="MOUNTING",e.MOUNTED="MOUNTED",e.UNMOUNT="UNMOUNT"})(Mr||(Mr={}));var Ps;(function(e){e.CREATED="created",e.BEFOREMOUNT="beforemount",e.MOUNTED="mounted",e.UNMOUNT="unmount",e.ERROR="error",e.BEFORESHOW="beforeshow",e.AFTERSHOW="aftershow",e.AFTERHIDDEN="afterhidden"})(Ps||(Ps={}));var js;(function(e){e.KEEP_ALIVE_SHOW="KEEP_ALIVE_SHOW",e.KEEP_ALIVE_HIDDEN="KEEP_ALIVE_HIDDEN"})(js||(js={}));const J5="window,self,globalThis,Array,Object,String,Boolean,Math,Number,Symbol,Date,Promise,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,Document,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,location,navigator,undefined";function Du(e,t=null,n={}){return Dr(pr.fetch)?pr.fetch(e,n,t):fetch(e,n).then(r=>r.text())}class N1{static getInstance(){return this.instance||(this.instance=new N1),this.instance}run(t,n){const r=t.name,i=t.ssrUrl||t.url;Du(i,r,{cache:"no-cache"}).then(a=>{if(!a){const l="html is empty, please check in detail";return t.onerror(new Error(l)),qn(l,r)}a=this.formatHTML(i,a,r),n(a,t)}).catch(a=>{qn(`Failed to fetch data from ${t.url}, micro-app stop rendering`,r,a),t.onLoadError(a)})}formatHTML(t,n,r){return this.processHtml(t,n,r,pr.plugins).replace(/
]*>[\s\S]*?<\/head>/i,i=>i.replace(//i,"")).replace(/]*>[\s\S]*?<\/body>/i,i=>i.replace(//i,""))}processHtml(t,n,r,i){var a;if(!i)return n;const l=[];return i.global&&l.push(...i.global),!((a=i.modules)===null||a===void 0)&&a[r]&&l.push(...i.modules[r]),l.length>0?l.reduce((c,h)=>ia(h)&&Dr(h.processHtml)?h.processHtml(c,t,h.options):c,n):n}}const lB=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,Z5=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function Ha(e,t){e=t?`${t} ${e}`:e;const n=new Error(e);throw n.reason=e,t&&(n.filename=t),n}class uB{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForAtRuleWithChildRule(/^@media *([^{]+)/,"media"),this.supportsRule=this.createMatcherForAtRuleWithChildRule(/^@supports *([^{]+)/,"supports"),this.documentRule=this.createMatcherForAtRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"document"),this.hostRule=this.createMatcherForAtRuleWithChildRule(/^@host\s*/,"host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace")}exec(t,n,r,i){return this.cssText=t,this.prefix=n,this.baseURI=r,this.linkPath=i||"",this.matchRules(),X5()?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):Ha("selector missing",this.linkPath)}formatSelector(t){const n=this.commonMatch(/^([^{]+)/,t);return n?n[0].replace(/(^|,[\n\s]*)([^,]+)/g,(r,i,a)=>(a=Ry(a),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(a))||lB.test(a)||(Z5.test(a)?a=a.replace(Z5,this.prefix+" micro-app-body"):a=this.prefix+" "+a),i+a)):!1}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?!0:Ha("Declaration missing '}'",this.linkPath)):Ha("Declaration missing '{'",this.linkPath)}matchAllDeclarations(){let t=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^}/])*/,!0)[0];if(t&&(!this.scopecssDisableNextLine&&(!this.scopecssDisable||this.scopecssDisableSelectors.length)&&(t=t.replace(/url\(["']?([^)"']+)["']?\)/gm,(n,r)=>/^((data|blob):|#)/.test(r)||/^(https?:)?\/\//.test(r)?n:(/^((\.\.?\/)|[^/])/.test(r)&&this.linkPath&&(this.baseURI=iB(this.linkPath)),`url("${Eo(r,this.baseURI)}")`))),this.recordResult(t)),this.scopecssDisableNextLine=!1,!(!this.cssText||this.cssText.charAt(0)==="}"))return this.cssText.charAt(0)==="/"&&this.cssText.charAt(1)==="*"?this.matchComments():this.commonMatch(/\/+/),this.matchAllDeclarations()}matchAtRule(){return this.cssText[0]!=="@"?!1:(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^([-\w]+)\s*/))return Ha("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return Ha("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const n=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)n.push(t[1]),this.commonMatch(/^,\s*/);return n.length?(this.styleDeclarations(),this.matchLeadingSpaces(),!0):!1}customMediaRule(){return this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)?(this.matchLeadingSpaces(),!0):!1}pageRule(){return this.commonMatch(/^@page */)?(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page")):!1}fontFaceRule(){return this.commonMatch(/^@font-face\s*/)?this.commonHandlerForAtRuleWithSelfRule("font-face"):!1}createMatcherForAtRuleWithChildRule(t,n){return()=>this.commonMatch(t)?this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${n} missing '}'`,this.linkPath)):Ha(`@${n} missing '{'`,this.linkPath):!1}createMatcherForNoneBraceAtRule(t){const n=new RegExp("^@"+t+"\\s*([^;]+);");return()=>this.commonMatch(n)?(this.matchLeadingSpaces(),!0):!1}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${t} missing '}'`,this.linkPath)):Ha(`@${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 Ha("End of comment missing",this.linkPath);let n=this.cssText.slice(2,t-2);return this.recordResult(`/*${n}*/`),n=Ry(n.replace(/^\s*!/,"")),n==="scopecss-disable-next-line"?this.scopecssDisableNextLine=!0:/^scopecss-disable/.test(n)?n==="scopecss-disable"?this.scopecssDisable=!0:(this.scopecssDisable=!0,n.replace("scopecss-disable","").split(",").forEach(i=>{this.scopecssDisableSelectors.push(Ry(i))})):n==="scopecss-enable"&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]),this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,n=!1){const r=t.exec(this.cssText);if(!r)return;const i=r[0];return this.cssText=this.cssText.slice(i.length),n||this.recordResult(i),r}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){X5()?this.result+=encodeURIComponent(t):this.result+=t}}function Q5(e,t,n,r,i){if(!e.__MICRO_APP_HAS_SCOPED__){e.__MICRO_APP_HAS_SCOPED__=!0;let a=null;try{a=Sf.exec(e.textContent,n,r,i),Sf.reset()}catch(l){Sf.reset(),qn(`An error occurred while parsing CSS:
`,t,l)}a&&(e.textContent=a)}}let Sf;function ou(e,t){if(t.scopecss){const n=`${pr.tagName}[name=${t.name}]`;if(Sf||(Sf=new uB),e.textContent)Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__);else{const r=new MutationObserver(function(){r.disconnect(),e.textContent&&!e.hasAttribute("data-styled")&&Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__)});r.observe(e,{childList:!0})}}return e}function G6(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},srcElement:{get(){return t}},target:{get(){return t}}})}function Ef(e){const t=new CustomEvent("load");G6(t,e),Dr(e.onload)?e.onload(t):e.dispatchEvent(t)}function Y6(e){const t=new CustomEvent("error");G6(t,e),Dr(e.onerror)?e.onerror(t):e.dispatchEvent(t)}const ll=new Map;function X6(e,t,n,r=!1){const i=e.getAttribute("rel");let a=e.getAttribute("href"),l=null;if(i==="stylesheet"&&a)if(a=Eo(a,n.url),!r)l=document.createComment(`link element with href=${a} move to micro-app-head as style element`),n.source.links.set(a,{code:"",placeholder:l,isGlobal:e.hasAttribute("global")});else return{url:a,info:{code:"",isGlobal:e.hasAttribute("global")}};else i&&["prefetch","preload","prerender","icon","apple-touch-icon"].includes(i)?r?l=document.createComment(`link element with rel=${i}${a?" & href="+a:""} removed by micro-app`):t.removeChild(e):a&&e.setAttribute("href",Eo(a,n.url));if(r)return{replaceComment:l};if(l)return t.replaceChild(l,e)}function cB(e,t,n){const r=Array.from(t.source.links.entries()),i=r.map(([a])=>ll.has(a)?ll.get(a):Du(a,t.name));Lg(i,a=>{dB(r[a.index][0],r[a.index][1],a.data,n,t)},a=>{qn(a,t.name)},()=>{t.onLoad(e)})}function dB(e,t,n,r,i){t.isGlobal&&!ll.has(e)&&ll.set(e,n);const a=ku("style");a.textContent=n,a.__MICRO_APP_LINK_PATH__=e,a.setAttribute("data-origin-href",e),t.placeholder.parentNode?t.placeholder.parentNode.replaceChild(ou(a,i),t.placeholder):r.appendChild(ou(a,i)),t.placeholder=null,t.code=n}function fB(e,t,n,r,i){if(n.source.links.has(e)){i.textContent=n.source.links.get(e).code,ou(i,n),_o(()=>Ef(r));return}if(ll.has(e)){const a=ll.get(e);t.code=a,n.source.links.set(e,t),i.textContent=a,ou(i,n),_o(()=>Ef(r));return}Du(e,n.name).then(a=>{t.code=a,n.source.links.set(e,t),t.isGlobal&&ll.set(e,a),i.textContent=a,ou(i,n),Ef(r)}).catch(a=>{qn(a,n.name),Y6(r)})}const Vo=new WeakMap;function hB(e,t,n){if(t instanceof HTMLStyleElement){if(t.hasAttribute("exclude")){const r=document.createComment("style element with exclude attribute ignored by micro-app");return Vo.set(t,r),r}else if(n.scopecss&&!t.hasAttribute("ignore"))return ou(t,n);return t}else if(t instanceof HTMLLinkElement){if(t.hasAttribute("exclude")||B1(t.getAttribute("href"),n.name)){const l=document.createComment("link element with exclude attribute ignored by micro-app");return Vo.set(t,l),l}else if(t.hasAttribute("ignore")||F1(t.getAttribute("href"),n.name)||t.href&&Dr(pr.excludeAssetFilter)&&pr.excludeAssetFilter(t.href))return t;const{url:r,info:i,replaceComment:a}=X6(t,e,n,!0);if(r&&i){const l=ku("style");return l.__MICRO_APP_LINK_PATH__=r,fB(r,i,n,t,l),Vo.set(t,l),l}else if(a)return Vo.set(t,a),a;return t}else if(t instanceof HTMLScriptElement){if(t.src&&Dr(pr.excludeAssetFilter)&&pr.excludeAssetFilter(t.src))return t;const{replaceComment:r,url:i,info:a}=eO(t,e,n,!0)||{};if(i&&a)if(a.isExternal){const l=OB(i,a,n,t);return Vo.set(t,l),l}else{const l=jf(i,n,a,!0);return Vo.set(t,l),l}else if(r)return Vo.set(t,r),r;return t}return t}function J6(e,t,n,r,i){const a=vB(n,e);return a?i&&!a.contains(i)?Ut.rawAppendChild.call(a,r):t===Ut.rawRemoveChild&&!a.contains(r)?n.contains(r)?t.call(n,r):r:q5(t,a,r,i):q5(t,n,r,i)}function q5(e,t,n,r){return pB(e)?e.call(t,n):e.call(t,n,r)}function pB(e){return e===Ut.rawAppend||e===Ut.rawPrepend}function vB(e,t){var n,r;return e===document.head?(n=t==null?void 0:t.container)===null||n===void 0?void 0:n.querySelector("micro-app-head"):e===document.body?(r=t==null?void 0:t.container)===null||r===void 0?void 0:r.querySelector("micro-app-body"):null}function Z6(e){var t;return(t=Vo.get(e))!==null&&t!==void 0?t:e}function Bd(e,t,n,r){if(t!=null&&t.__MICRO_APP_NAME__){const i=lr.get(t.__MICRO_APP_NAME__);return i!=null&&i.container?J6(i,r,e,hB(e,t,i),n&&Z6(n)):r===Ut.rawAppend||r===Ut.rawPrepend?r.call(e,t):r.call(e,t,n)}else if(r===Ut.rawAppend||r===Ut.rawPrepend){const i=ba();if(!(t instanceof Node)&&i){const a=lr.get(i);if(a!=null&&a.container){if(e===document.head)return r.call(a.container.querySelector("micro-app-head"),t);if(e===document.body)return r.call(a.container.querySelector("micro-app-body"),t)}}return r.call(e,t)}return r.call(e,t,n)}function mB(){gB(),Element.prototype.appendChild=function(t){return Bd(this,t,null,Ut.rawAppendChild)},Element.prototype.insertBefore=function(t,n){return Bd(this,t,n,Ut.rawInsertBefore)},Element.prototype.replaceChild=function(t,n){return Bd(this,t,n,Ut.rawReplaceChild)},Element.prototype.append=function(...t){let n=0;const r=t.length;for(;n0;)Bd(this,t[n-1],null,Ut.rawPrepend),n--},Element.prototype.removeChild=function(t){if(t!=null&&t.__MICRO_APP_NAME__){const n=lr.get(t.__MICRO_APP_NAME__);return n!=null&&n.container?J6(n,Ut.rawRemoveChild,this,Z6(t)):Ut.rawRemoveChild.call(this,t)}return Ut.rawRemoveChild.call(this,t)},Element.prototype.cloneNode=function(t){const n=Ut.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(n.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),n}}function Ly(e){const t=ba();return t&&(e.__MICRO_APP_NAME__=t),e}function gB(){const e=Ut.rawDocument;Document.prototype.createElement=function(i,a){const l=Ut.rawCreateElement.call(this,i,a);return Ly(l)},Document.prototype.createElementNS=function(i,a,l){const c=Ut.rawCreateElementNS.call(this,i,a,l);return Ly(c)},Document.prototype.createDocumentFragment=function(){const i=Ut.rawCreateDocumentFragment.call(this);return Ly(i)};function t(r){var i,a,l;const c=ba();return!c||!r||$y(r)||e!==this?Ut.rawQuerySelector.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelector(r))!==null&&l!==void 0?l:null}function n(r){var i,a,l;const c=ba();return!c||!r||$y(r)||e!==this?Ut.rawQuerySelectorAll.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelectorAll(r))!==null&&l!==void 0?l:[]}Document.prototype.querySelector=t,Document.prototype.querySelectorAll=n,Document.prototype.getElementById=function(i){if(!ba()||gv(i))return Ut.rawGetElementById.call(this,i);try{return t.call(this,`#${i}`)}catch{return Ut.rawGetElementById.call(this,i)}},Document.prototype.getElementsByClassName=function(i){if(!ba()||gv(i))return Ut.rawGetElementsByClassName.call(this,i);try{return n.call(this,`.${i}`)}catch{return Ut.rawGetElementsByClassName.call(this,i)}},Document.prototype.getElementsByTagName=function(i){var a;const l=ba();if(!l||$y(i)||gv(i)||!(!((a=lr.get(l))===null||a===void 0)&&a.inline)&&/^script$/i.test(i))return Ut.rawGetElementsByTagName.call(this,i);try{return n.call(this,i)}catch{return Ut.rawGetElementsByTagName.call(this,i)}},Document.prototype.getElementsByName=function(i){if(!ba()||gv(i))return Ut.rawGetElementsByName.call(this,i);try{return n.call(this,`[name=${i}]`)}catch{return Ut.rawGetElementsByName.call(this,i)}}}let Q0=!1;function _B(){Q0||(Q0=!0,Element.prototype.setAttribute=function(t,n){if(/^micro-app(-\S+)?/i.test(this.tagName)&&t==="data")if(ia(n)){const r={};Object.getOwnPropertyNames(n).forEach(i=>{os(i)&&i.indexOf("__")===0||(r[i]=n[i])}),this.data=r}else n!=="[object Object]"&&ah("property data must be an object",this.getAttribute("name"));else if(((t==="src"||t==="srcset")&&/^(img|script)$/i.test(this.tagName)||t==="href"&&/^link$/i.test(this.tagName))&&this.__MICRO_APP_NAME__&&lr.has(this.__MICRO_APP_NAME__)){const r=lr.get(this.__MICRO_APP_NAME__);Ut.rawSetAttribute.call(this,t,Eo(n,r.url))}else Ut.rawSetAttribute.call(this,t,n)})}function yB(){Q0=!1,Element.prototype.setAttribute=Ut.rawSetAttribute}function bB(){Document.prototype.createElement=Ut.rawCreateElement,Document.prototype.createElementNS=Ut.rawCreateElementNS,Document.prototype.createDocumentFragment=Ut.rawCreateDocumentFragment,Document.prototype.querySelector=Ut.rawQuerySelector,Document.prototype.querySelectorAll=Ut.rawQuerySelectorAll,Document.prototype.getElementById=Ut.rawGetElementById,Document.prototype.getElementsByClassName=Ut.rawGetElementsByClassName,Document.prototype.getElementsByTagName=Ut.rawGetElementsByTagName,Document.prototype.getElementsByName=Ut.rawGetElementsByName}function wB(){Mc(null),bB(),Element.prototype.appendChild=Ut.rawAppendChild,Element.prototype.insertBefore=Ut.rawInsertBefore,Element.prototype.replaceChild=Ut.rawReplaceChild,Element.prototype.removeChild=Ut.rawRemoveChild,Element.prototype.append=Ut.rawAppend,Element.prototype.prepend=Ut.rawPrepend,Element.prototype.cloneNode=Ut.rawCloneNode}let eE=!1;function CB(){if(!eE){eE=!0;const e=ku("style");Ut.rawSetAttribute.call(e,"type","text/css"),e.textContent=`
${pr.tagName}, micro-app-body { display: block; }
micro-app-head { display: none; }`,Ut.rawDocument.head.appendChild(e)}}class jm{constructor(){this.appInstanceMap=lr}static getInstance(){return this.instance||(this.instance=new jm),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,n){this.appInstanceMap.set(t,n)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function Q6(){q6(),jm.getInstance().getAll().forEach(e=>{e.container&&sh(e.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&jm.getInstance().clear()}function xB(){window.__MICRO_APP_ENVIRONMENT__&&window.addEventListener("unmount",Q6,!1)}function q6(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",Q6,!1)}const Ut={};function SB(){if(M1){const e=Element.prototype.setAttribute,t=Element.prototype.appendChild,n=Element.prototype.insertBefore,r=Element.prototype.replaceChild,i=Element.prototype.removeChild,a=Element.prototype.append,l=Element.prototype.prepend,c=Element.prototype.cloneNode,h=Document.prototype.createElement,s=Document.prototype.createElementNS,p=Document.prototype.createDocumentFragment,d=Document.prototype.querySelector,v=Document.prototype.querySelectorAll,m=Document.prototype.getElementById,_=Document.prototype.getElementsByClassName,y=Document.prototype.getElementsByTagName,b=Document.prototype.getElementsByName,E=new Proxy(Image,{construct(V,j){const oe=new V(...j);return oe.__MICRO_APP_NAME__=ba(),oe}}),D=Function("return window")(),C=Function("return document")(),x=aB(),k=D.addEventListener,w=D.removeEventListener,P=D.setInterval,M=D.setTimeout,T=D.clearInterval,R=D.clearTimeout,H=C.addEventListener,L=C.removeEventListener;window.__MICRO_APP_BASE_APPLICATION__=!0,Object.assign(Ut,{rawSetAttribute:e,rawAppendChild:t,rawInsertBefore:n,rawReplaceChild:r,rawRemoveChild:i,rawAppend:a,rawPrepend:l,rawCloneNode:c,rawCreateElement:h,rawCreateElementNS:s,rawCreateDocumentFragment:p,rawQuerySelector:d,rawQuerySelectorAll:v,rawGetElementById:m,rawGetElementsByClassName:_,rawGetElementsByTagName:y,rawGetElementsByName:b,ImageProxy:E,rawWindow:D,rawDocument:C,supportModuleScript:x,rawWindowAddEventListener:k,rawWindowRemoveEventListener:w,rawSetInterval:P,rawSetTimeout:M,rawClearInterval:T,rawClearTimeout:R,rawDocumentAddEventListener:H,rawDocumentRemoveEventListener:L}),CB(),q6(),xB()}}const lu=new Map;function eO(e,t,n,r=!1){let i=null,a=e.getAttribute("src");if(a&&(a=Eo(a,n.url)),e.hasAttribute("exclude")||B1(a,n.name))i=document.createComment("script element with exclude attribute removed by micro-app");else{if(e.type&&!["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"].includes(e.type)||e.hasAttribute("ignore")||F1(a,n.name))return null;if(Ut.supportModuleScript&&e.noModule||!Ut.supportModuleScript&&e.type==="module")i=document.createComment(`${e.noModule?"noModule":"module"} script ignored by micro-app`);else if(a){const l={code:"",isExternal:!0,isDynamic:r,async:e.hasAttribute("async"),defer:e.defer||e.type==="module",module:e.type==="module",isGlobal:e.hasAttribute("global")};if(!r)n.source.scripts.set(a,l),i=document.createComment(`script with src='${a}' extract by micro-app`);else return{url:a,info:l}}else if(e.textContent){const l=sB(),c={code:e.textContent,isExternal:!1,isDynamic:r,async:!1,defer:e.type==="module",module:e.type==="module"};if(!r)n.source.scripts.set(l,c),i=document.createComment("inline script extract by micro-app");else return{url:l,info:c}}else r||(i=document.createComment("script element removed by micro-app"))}return r?{replaceComment:i}:t.replaceChild(i,e)}function tO(e){var t,n,r;const i=((t=pr.plugins)===null||t===void 0?void 0:t.global)||[],a=((r=(n=pr.plugins)===null||n===void 0?void 0:n.modules)===null||r===void 0?void 0:r[e])||[];return[...i,...a]}function B1(e,t){return e?(tO(t)||[]).some(r=>r.excludeChecker?r.excludeChecker(e):!1):!1}function F1(e,t){return e?(tO(t)||[]).some(r=>r.ignoreChecker?r.ignoreChecker(e):!1):!1}function EB(e,t){const n=Array.from(t.source.scripts.entries()),r=[],i=[];for(const[a,l]of n)if(l.isExternal){const c=lu.get(a);c?l.code=c:(!l.defer&&!l.async||t.isPrefetch)&&(r.push(Du(a,t.name)),i.push([a,l]))}r.length?Lg(r,a=>{kB(i[a.index][0],i[a.index][1],a.data)},a=>{qn(a,t.name)},()=>{t.onLoad(e)}):t.onLoad(e)}function kB(e,t,n){t.isGlobal&&!lu.has(e)&&lu.set(e,n),t.code=n}function DB(e,t,n){const r=Array.from(e.entries()),i=[],a=[];for(const[l,c]of r)c.isDynamic||(c.defer||c.async?(c.isExternal&&!c.code?i.push(Du(l,t.name)):i.push(c.code),a.push([l,c]),c.module&&(n.moduleCount=n.moduleCount?++n.moduleCount:1)):(jf(l,t,c,!1),n(!1)));i.length?Lg(i,l=>{const c=a[l.index][1];c.code=c.code||l.data},l=>{n.errorCount=n.errorCount?++n.errorCount:1,qn(l,t.name)},()=>{a.forEach(([l,c])=>{c.code&&(jf(l,t,c,!1,n),!c.module&&n(!1))}),n(tB(n.moduleCount)||n.errorCount===i.length)}):n(!0)}function jf(e,t,n,r,i){var a;try{const l=iO(e,t,n.code,n);if(t.inline||n.module){const c=ku("script");if(nO(e,l,n.module,c,i),r)return c;(a=t.container)===null||a===void 0||a.querySelector("micro-app-body").appendChild(c)}else if(rO(l,n),r)return document.createComment("dynamic script extract by micro-app")}catch(l){console.error(`[micro-app from runScript] app ${t.name}: `,l)}}function OB(e,t,n,r){const i=()=>Ef(r);if(n.source.scripts.has(e)){const l=n.source.scripts.get(e);return!l.module&&_o(i),jf(e,n,l,!0,i)}if(lu.has(e)){const l=lu.get(e);return t.code=l,n.source.scripts.set(e,t),!t.module&&_o(i),jf(e,n,t,!0,i)}let a;return n.inline||t.module?a=ku("script"):a=document.createComment(`dynamic script with src='${e}' extract by micro-app`),Du(e,n.name).then(l=>{t.code=l,n.source.scripts.set(e,t),t.isGlobal&&lu.set(e,l);try{l=iO(e,n,l,t),n.inline||t.module?nO(e,l,t.module,a,i):rO(l,t)}catch(c){console.error(`[micro-app from runDynamicScript] app ${n.name}: `,c,e)}!t.module&&Ef(r)}).catch(l=>{qn(l,n.name),Y6(r)}),a}function nO(e,t,n,r,i){if(n){const a=new Blob([t],{type:"text/javascript"});r.src=URL.createObjectURL(a),r.setAttribute("type","module"),i&&(i.moduleCount&&i.moduleCount--,r.onload=i.bind(r,i.moduleCount===0))}else r.textContent=t;e.startsWith("inline-")||r.setAttribute("data-origin-src",e)}function rO(e,t){t.code2Function||(t.code2Function=new Function(e)),t.code2Function.call(window)}function iO(e,t,n,r){return ia(pr.plugins)&&(n=PB(e,n,t.name,pr.plugins,r)),t.sandBox&&!r.module?(Ut.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow,`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${J5}){;${n}
}).call(proxyWindow,${J5})}})(window.__MICRO_APP_PROXY_WINDOW__);`):n}function PB(e,t,n,r,i){var a;const l=tE(r.global,t,e,i);return tE((a=r.modules)===null||a===void 0?void 0:a[n],l,e,i)}function tE(e,t,n,r){return Sc(e)?e.reduce((i,a)=>ia(a)&&Dr(a.loader)?a.loader(i,n,a.options,r):i,t):t}function TB(e){const t=ku("div");return t.innerHTML=e,t}function aO(e,t,n){const r=Array.from(e.children);r.length&&r.forEach(i=>{aO(i,t)});for(const i of r)i instanceof HTMLLinkElement?i.hasAttribute("exclude")||B1(i.getAttribute("href"),t.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),i):i.hasAttribute("ignore")||F1(i.getAttribute("href"),t.name)?i.hasAttribute("href")&&i.setAttribute("href",Eo(i.getAttribute("href"),t.url)):X6(i,e,t):i instanceof HTMLStyleElement?i.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),i):t.scopecss&&!i.hasAttribute("ignore")&&ou(i,t):i instanceof HTMLScriptElement?eO(i,e,t):i instanceof HTMLMetaElement||i instanceof HTMLTitleElement?e.removeChild(i):i instanceof HTMLImageElement&&i.hasAttribute("src")&&i.setAttribute("src",Eo(i.getAttribute("src"),t.url))}function AB(e,t){const n=TB(e),r=n.querySelector("micro-app-head"),i=n.querySelector("micro-app-body");if(!r||!i){const a=`element ${r?"body":"head"} is missing`;return t.onerror(new Error(a)),qn(a,t.name)}aO(n,t),t.source.links.size?cB(n,t,r):t.onLoad(n),t.source.scripts.size?EB(n,t):t.onLoad(n)}class MB{constructor(){this.eventList=new Map}isLegalName(t){return t?!0:(qn("event-center: Invalid name"),!1)}on(t,n,r=!1){if(this.isLegalName(t)){if(!Dr(n))return qn("event-center: Invalid callback function");let i=this.eventList.get(t);i?r&&Object.getOwnPropertyNames(i.data).length&&n(i.data):(i={data:{},callbacks:new Set},this.eventList.set(t,i)),i.callbacks.add(n)}}off(t,n){if(this.isLegalName(t)){const r=this.eventList.get(t);r&&(Dr(n)?r.callbacks.delete(n):r.callbacks.clear())}}dispatch(t,n){if(this.isLegalName(t)){if(!ia(n))return qn("event-center: data must be object");let r=this.eventList.get(t);if(r){if(r.data!==n){r.data=n;for(const i of r.callbacks)i(n)}}else r={data:n,callbacks:new Set},this.eventList.set(t,r)}}getData(t){var n;const r=this.eventList.get(t);return(n=r==null?void 0:r.data)!==null&&n!==void 0?n:null}}const hi=new MB;function es(e,t){return!os(e)||!e?"":t?`__from_base_app_${e}__`:`__from_micro_app_${e}__`}class sO{addGlobalDataListener(t,n){const r=this.appName;r&&(t.__APP_NAME__=r,t.__AUTO_TRIGGER__=n),hi.on("global",t,n)}removeGlobalDataListener(t){Dr(t)&&hi.off("global",t)}setGlobalData(t){Ng(),hi.dispatch("global",t)}getGlobalData(){return hi.getData("global")}clearGlobalDataListener(){const t=this.appName,n=hi.eventList.get("global");if(n)for(const r of n.callbacks)(t&&t===r.__APP_NAME__||!(t||r.__APP_NAME__))&&n.callbacks.delete(r)}}class IB extends sO{addDataListener(t,n,r){hi.on(es(qa(t),!1),n,r)}removeDataListener(t,n){Dr(n)&&hi.off(es(qa(t),!1),n)}getData(t,n=!1){return hi.getData(es(qa(t),n))}setData(t,n){hi.dispatch(es(qa(t),!0),n)}clearDataListener(t){hi.off(es(qa(t),!1))}}class $B extends sO{constructor(t){super(),this.appName=qa(t),!this.appName&&qn(`Invalid appName ${t}`)}addDataListener(t,n){t.__AUTO_TRIGGER__=n,hi.on(es(this.appName,!0),t,n)}removeDataListener(t){Dr(t)&&hi.off(es(this.appName,!0),t)}getData(){return hi.getData(es(this.appName,!0))}dispatch(t){Ng(),hi.dispatch(es(this.appName,!1),t);const n=lr.get(this.appName);if((n==null?void 0:n.container)&&ia(t)){const r=new CustomEvent("datachange",{detail:{data:t}});sh(n.container).dispatchEvent(r)}}clearDataListener(){hi.off(es(this.appName,!0))}}function RB(e){const t=e.appName;e.umdDataListeners={global:new Set,normal:new Set};const n=hi.eventList.get("global");if(n)for(const i of n.callbacks)t===i.__APP_NAME__&&e.umdDataListeners.global.add(i);const r=hi.eventList.get(es(t,!0));r&&(e.umdDataListeners.normal=new Set(r.callbacks))}function LB(e){for(const t of e.umdDataListeners.global)e.addGlobalDataListener(t,t.__AUTO_TRIGGER__);for(const t of e.umdDataListeners.normal)e.addDataListener(t,t.__AUTO_TRIGGER__)}function NB(e){return I1(e.__MICRO_APP_IS_BOUND_FUNCTION__)?e.__MICRO_APP_IS_BOUND_FUNCTION__:e.__MICRO_APP_IS_BOUND_FUNCTION__=J0(e)}function BB(e){var t;if(I1(e.__MICRO_APP_IS_CONSTRUCTOR__))return e.__MICRO_APP_IS_CONSTRUCTOR__;const n=e.toString(),r=((t=e.prototype)===null||t===void 0?void 0:t.constructor)===e&&Object.getOwnPropertyNames(e.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n);return e.__MICRO_APP_IS_CONSTRUCTOR__=r}function FB(e,t){if(t.__MICRO_APP_BOUND_WINDOW_FUNCTION__)return t.__MICRO_APP_BOUND_WINDOW_FUNCTION__;if(!BB(t)&&!NB(t)){const n=t.bind(e);for(const r in t)n[r]=t[r];return t.hasOwnProperty("prototype")&&mc(n,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t.__MICRO_APP_BOUND_WINDOW_FUNCTION__=n}return t}const Zo=new Map;let oO=!1;function jB(){if(oO=!0,Object.getOwnPropertyDescriptor(document,"onclick"))return ah("Cannot redefine document property onclick");const e=document.onclick;document.onclick=null;let t=!1;function n(r){Zo.forEach(i=>{Dr(i)&&i.call(document,r)})}mc(document,"onclick",{configurable:!0,enumerable:!0,get(){const r=ba();return r?Zo.get(r):Zo.get("base")},set(r){const i=ba();i?Zo.set(i,r):Zo.set("base",r),!t&&Dr(r)&&(t=!0,Ut.rawDocumentAddEventListener.call(Ut.rawDocument,"click",n,!1))}}),e&&(document.onclick=e)}const kf=new Map;function UB(){const{rawDocument:e,rawDocumentAddEventListener:t,rawDocumentRemoveEventListener:n}=Ut;!oO&&jB(),document.addEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&J0(i))){const h=kf.get(c);if(h){const s=h.get(r);s?s.add(i):h.set(r,new Set([i]))}else kf.set(c,new Map([[r,new Set([i])]]));i&&(i.__MICRO_APP_MARK_OPTIONS__=a)}t.call(e,r,i,a)},document.removeEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&J0(i))){const h=kf.get(c);if(h){const s=h.get(r);(s==null?void 0:s.size)&&s.has(i)&&s.delete(i)}}n.call(e,r,i,a)}}function zB(){document.addEventListener=Ut.rawDocumentAddEventListener,document.removeEventListener=Ut.rawDocumentRemoveEventListener}const VB=["unmount","appstate-change"];function nE(e,t){return VB.includes(e)?`${e}-${t.__MICRO_APP_NAME__}`:e}function WB(e){const t=e.__MICRO_APP_NAME__,n=new Map,r=new Map,i=new Map,{rawWindow:a,rawDocument:l,rawWindowAddEventListener:c,rawWindowRemoveEventListener:h,rawSetInterval:s,rawSetTimeout:p,rawClearInterval:d,rawClearTimeout:v,rawDocumentRemoveEventListener:m}=Ut;e.addEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);T?T.add(P):n.set(w,new Set([P])),P&&(P.__MICRO_APP_MARK_OPTIONS__=M),c.call(a,w,P,M)},e.removeEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);(T==null?void 0:T.size)&&T.has(P)&&T.delete(P),h.call(a,w,P,M)},e.setInterval=function(w,P,...M){const T=s.call(a,w,P,...M);return r.set(T,{handler:w,timeout:P,args:M}),T},e.setTimeout=function(w,P,...M){const T=p.call(a,w,P,...M);return i.set(T,{handler:w,timeout:P,args:M}),T},e.clearInterval=function(w){r.delete(w),d.call(a,w)},e.clearTimeout=function(w){i.delete(w),v.call(a,w)};const _=new Map,y=new Map;let b=new Map,E=new Map,D;return{recordUmdEffect:()=>{n.forEach((P,M)=>{P.size&&_.set(M,new Set(P))}),r.size&&(b=new Map(r)),i.size&&(E=new Map(i)),D=Zo.get(t);const w=kf.get(t);w&&w.forEach((P,M)=>{P.size&&y.set(M,new Set(P))})},rebuildUmdEffect:()=>{_.forEach((w,P)=>{for(const M of w)e.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),b.forEach(w=>{e.setInterval(w.handler,w.timeout,...w.args)}),E.forEach(w=>{e.setTimeout(w.handler,w.timeout,...w.args)}),D&&Zo.set(t,D),Mc(t),y.forEach((w,P)=>{for(const M of w)document.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),Mc(null)},releaseEffect:()=>{n.size&&(n.forEach((P,M)=>{for(const T of P)h.call(a,M,T)}),n.clear()),r.size&&(r.forEach((P,M)=>{d.call(a,M)}),r.clear()),i.size&&(i.forEach((P,M)=>{v.call(a,M)}),i.clear()),Zo.delete(t);const w=kf.get(t);w&&(w.forEach((P,M)=>{for(const T of P)m.call(l,M,T)}),w.clear())}}}const HB=["System","__cjsWrapper"],KB=["location"],GB=["window","self","globalThis"];class Uf{constructor(t,n){this.scopeProperties=["webpackJsonp","Vue"],this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.active=!1,this.microAppWindow={},this.getSpecialProperties(t),this.proxyWindow=this.createProxyWindow(t),this.initMicroAppWindow(this.microAppWindow,t,n),Object.assign(this,WB(this.microAppWindow))}start(t){this.active||(this.active=!0,this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t,Ut.rawWindow._babelPolyfill&&(Ut.rawWindow._babelPolyfill=!1),++Uf.activeCount===1&&(UB(),mB()))}stop(t){this.active&&(this.active=!1,this.releaseEffect(),this.microAppWindow.microApp.clearDataListener(),this.microAppWindow.microApp.clearGlobalDataListener(),t||(this.injectedKeys.forEach(n=>{Reflect.deleteProperty(this.microAppWindow,n)}),this.injectedKeys.clear(),this.escapeKeys.forEach(n=>{Reflect.deleteProperty(Ut.rawWindow,n)}),this.escapeKeys.clear()),--Uf.activeCount===0&&(zB(),wB()))}recordUmdSnapshot(){this.microAppWindow.__MICRO_APP_UMD_MODE__=!0,this.recordUmdEffect(),RB(this.microAppWindow.microApp),this.recordUmdInjectedValues=new Map,this.injectedKeys.forEach(t=>{this.recordUmdInjectedValues.set(t,Reflect.get(this.microAppWindow,t))})}rebuildUmdSnapshot(){this.recordUmdInjectedValues.forEach((t,n)=>{Reflect.set(this.proxyWindow,n,t)}),this.rebuildUmdEffect(),LB(this.microAppWindow.microApp)}getSpecialProperties(t){var n;!ia(pr.plugins)||(this.commonActionForSpecialProperties(pr.plugins.global),this.commonActionForSpecialProperties((n=pr.plugins.modules)===null||n===void 0?void 0:n[t]))}commonActionForSpecialProperties(t){if(Sc(t))for(const n of t)ia(n)&&(Sc(n.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(n.scopeProperties)),Sc(n.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(n.escapeProperties)))}createProxyWindow(t){const n=Ut.rawWindow,r=new Map;return new Proxy(this.microAppWindow,{get:(i,a)=>{if(vv(t),Reflect.has(i,a)||os(a)&&/^__MICRO_APP_/.test(a)||this.scopeProperties.includes(a))return Reflect.get(i,a);const l=Reflect.get(n,a);return Dr(l)?FB(n,l):l},set:(i,a,l)=>{if(this.active){if(KB.includes(a))Reflect.set(n,a,l);else if(!Bl.call(i,a)&&Bl.call(n,a)&&!this.scopeProperties.includes(a)){const c=Object.getOwnPropertyDescriptor(n,a),{configurable:h,enumerable:s,writable:p,set:d}=c;mc(i,a,{value:l,configurable:h,enumerable:s,writable:p!=null?p:!!d}),this.injectedKeys.add(a)}else Reflect.set(i,a,l),this.injectedKeys.add(a);(this.escapeProperties.includes(a)||HB.includes(a)&&!Reflect.has(n,a))&&!this.scopeProperties.includes(a)&&(Reflect.set(n,a,l),this.escapeKeys.add(a))}return!0},has:(i,a)=>this.scopeProperties.includes(a)?a in i:a in i||a in n,getOwnPropertyDescriptor:(i,a)=>{if(Bl.call(i,a))return r.set(a,"target"),Object.getOwnPropertyDescriptor(i,a);if(Bl.call(n,a)){r.set(a,"rawWindow");const l=Object.getOwnPropertyDescriptor(n,a);return l&&!l.configurable&&(l.configurable=!0),l}},defineProperty:(i,a,l)=>r.get(a)==="rawWindow"?Reflect.defineProperty(n,a,l):Reflect.defineProperty(i,a,l),ownKeys:i=>oB(Reflect.ownKeys(n).concat(Reflect.ownKeys(i))),deleteProperty:(i,a)=>Bl.call(i,a)?(this.injectedKeys.has(a)&&this.injectedKeys.delete(a),this.escapeKeys.has(a)&&Reflect.deleteProperty(n,a),Reflect.deleteProperty(i,a)):!0})}initMicroAppWindow(t,n,r){t.__MICRO_APP_ENVIRONMENT__=!0,t.__MICRO_APP_NAME__=n,t.__MICRO_APP_PUBLIC_PATH__=K6(r),t.__MICRO_APP_WINDOW__=t,t.microApp=Object.assign(new $B(n),{removeDomScope:Ng,pureCreateElement:ku}),t.rawWindow=Ut.rawWindow,t.rawDocument=Ut.rawDocument,t.hasOwnProperty=i=>Bl.call(t,i)||Bl.call(Ut.rawWindow,i),this.setMappingPropertiesWithRawDescriptor(t),this.setHijackProperties(t,n)}setMappingPropertiesWithRawDescriptor(t){let n,r;const i=Ut.rawWindow;i===i.parent?n=r=this.proxyWindow:(n=i.top,r=i.parent),mc(t,"top",this.createDescriptorForMicroAppWindow("top",n)),mc(t,"parent",this.createDescriptorForMicroAppWindow("parent",r)),GB.forEach(a=>{mc(t,a,this.createDescriptorForMicroAppWindow(a,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,n){const{configurable:r=!0,enumerable:i=!0,writable:a,set:l}=Object.getOwnPropertyDescriptor(Ut.rawWindow,t)||{writable:!0};return{value:n,configurable:r,enumerable:i,writable:a!=null?a:!!l}}setHijackProperties(t,n){let r,i;rB(t,{document:{get(){return vv(n),Ut.rawDocument},configurable:!1,enumerable:!0},eval:{get(){return vv(n),r||eval},set:a=>{r=a},configurable:!0,enumerable:!1},Image:{get(){return vv(n),i||Ut.ImageProxy},set:a=>{i=a},configurable:!0,enumerable:!1}})}}Uf.activeCount=0;function YB(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},target:{get(){return t}}})}function Wo(e,t,n,r){var i;if(!e)return qn(`element does not exist in lifecycle ${n}`,t);e=sh(e),Ng();const a=Object.assign({name:t,container:e},r&&{error:r}),l=new CustomEvent(n,{detail:a});YB(l,e),Dr((i=pr.lifeCycles)===null||i===void 0?void 0:i[n])&&pr.lifeCycles[n](l),e.dispatchEvent(l)}function _v(e,t,n={}){const r=new CustomEvent(`${e}-${t}`,{detail:n});window.dispatchEvent(r)}const lr=new Map;class lO{constructor({name:t,url:n,ssrUrl:r,container:i,inline:a,scopecss:l,useSandbox:c,baseroute:h}){this.state=Mr.NOT_LOADED,this.keepAliveState=null,this.keepAliveContainer=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.libraryName=null,this.umdMode=!1,this.isPrefetch=!1,this.prefetchResolve=null,this.container=null,this.baseroute="",this.sandBox=null,this.container=i!=null?i:null,this.inline=a!=null?a:!1,this.baseroute=h!=null?h:"",this.ssrUrl=r!=null?r:"",this.name=t,this.url=n,this.useSandbox=c,this.scopecss=this.useSandbox&&l,this.source={links:new Map,scripts:new Map},this.loadSourceCode(),this.useSandbox&&(this.sandBox=new Uf(t,n))}loadSourceCode(){this.state=Mr.LOADING_SOURCE_CODE,N1.getInstance().run(this,AB)}onLoad(t){var n;++this.loadSourceLevel===2&&(this.source.html=t,this.isPrefetch?((n=this.prefetchResolve)===null||n===void 0||n.call(this),this.prefetchResolve=null):Mr.UNMOUNT!==this.state&&(this.state=Mr.LOAD_SOURCE_FINISHED,this.mount()))}onLoadError(t){this.loadSourceLevel=-1,this.prefetchResolve&&(this.prefetchResolve(),this.prefetchResolve=null),Mr.UNMOUNT!==this.state&&(this.onerror(t),this.state=Mr.LOAD_SOURCE_ERROR)}mount(t,n,r){var i,a,l;if(I1(n)&&n!==this.inline&&(this.inline=n),this.container=(i=this.container)!==null&&i!==void 0?i:t,this.baseroute=r!=null?r:this.baseroute,this.loadSourceLevel!==2){this.state=Mr.LOADING_SOURCE_CODE;return}Wo(this.container,this.name,Ps.BEFOREMOUNT),this.state=Mr.MOUNTING,mv(this.source.html,this.container,!this.umdMode),(a=this.sandBox)===null||a===void 0||a.start(this.baseroute);let c;if(this.umdMode){(l=this.sandBox)===null||l===void 0||l.rebuildUmdSnapshot();try{c=this.umdHookMount()}catch(h){qn(`an error occurred in the mount function
`,this.name,h)}this.handleMounted(c)}else{let h=!1;DB(this.source.scripts,this,s=>{var p;if(!this.umdMode){const{mount:d,unmount:v}=this.getUmdLibraryHooks();if(Dr(d)&&Dr(v)){this.umdHookMount=d,this.umdHookUnmount=v,this.umdMode=!0,(p=this.sandBox)===null||p===void 0||p.recordUmdSnapshot();try{c=this.umdHookMount()}catch(m){qn(`an error occurred in the mount function
`,this.name,m)}}}!h&&(s===!0||this.umdMode)&&(h=!0,this.handleMounted(c))})}}handleMounted(t){X0(t)?t.then(()=>this.dispatchMountedEvent()).catch(n=>this.onerror(n)):this.dispatchMountedEvent()}dispatchMountedEvent(){Mr.UNMOUNT!==this.state&&(this.state=Mr.MOUNTED,Wo(this.container,this.name,Ps.MOUNTED))}unmount(t,n){this.state===Mr.LOAD_SOURCE_ERROR&&(t=!0),this.state=Mr.UNMOUNT,this.keepAliveState=null,this.keepAliveContainer=null;let r;if(this.umdHookUnmount)try{r=this.umdHookUnmount()}catch(i){qn(`an error occurred in the unmount function
`,this.name,i)}_v("unmount",this.name),this.handleUnmounted(t,r,n)}handleUnmounted(t,n,r){X0(n)?n.then(()=>this.actionsForUnmount(t,r)).catch(()=>this.actionsForUnmount(t,r)):this.actionsForUnmount(t,r)}actionsForUnmount(t,n){var r;t?this.actionsForCompletelyDestroy():this.umdMode&&this.container.childElementCount&&mv(this.container,this.source.html,!1),(r=this.sandBox)===null||r===void 0||r.stop(this.umdMode),QB().length||yB(),Wo(this.container,this.name,Ps.UNMOUNT),this.container.innerHTML="",this.container=null,n&&n()}actionsForCompletelyDestroy(){!this.useSandbox&&this.umdMode&&delete window[this.libraryName],lr.delete(this.name)}hiddenKeepAliveApp(){const t=this.container;mv(this.container,this.keepAliveContainer?this.keepAliveContainer:this.keepAliveContainer=document.createElement("div"),!1),this.container=this.keepAliveContainer,this.keepAliveState=js.KEEP_ALIVE_HIDDEN,_v("appstate-change",this.name,{appState:"afterhidden"}),Wo(t,this.name,Ps.AFTERHIDDEN)}showKeepAliveApp(t){_v("appstate-change",this.name,{appState:"beforeshow"}),Wo(t,this.name,Ps.BEFORESHOW),mv(this.container,t,!1),this.container=t,this.keepAliveState=js.KEEP_ALIVE_SHOW,_v("appstate-change",this.name,{appState:"aftershow"}),Wo(this.container,this.name,Ps.AFTERSHOW)}onerror(t){Wo(this.container,this.name,Ps.ERROR,t)}getAppState(){return this.state}getKeepAliveState(){return this.keepAliveState}getUmdLibraryHooks(){var t,n;if(Mr.UNMOUNT!==this.state){const r=(n=(t=this.sandBox)===null||t===void 0?void 0:t.proxyWindow)!==null&&n!==void 0?n:Ut.rawWindow;return this.libraryName=sh(this.container).getAttribute("library")||`micro-app-${this.name}`,typeof r[this.libraryName]=="object"?r[this.libraryName]:{}}return{}}}function XB(e){class t extends HTMLElement{constructor(){super(),this.isWaiting=!1,this.cacheData=null,this.hasConnected=!1,this.appName="",this.appUrl="",this.ssrUrl="",this.version=qN,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const r=qa(this.getAttribute("name")),i=Z0(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",r)&&this.legalAttribute("url",i)){const a=lr.get(r);if(r!==this.appName&&a&&Mr.UNMOUNT!==a.getAppState()&&js.KEEP_ALIVE_HIDDEN!==a.getKeepAliveState()&&!a.isPrefetch)return this.setAttribute("name",this.appName),qn(`app name conflict, an app named ${r} is running`,this.appName);(r!==this.appName||i!==this.appUrl)&&(r===this.appName?this.handleUnmount(!0,()=>{this.actionsForAttributeChange(r,i,a)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(r,i,a)):this.handleUnmount(this.getDestroyCompatibleResult(),()=>{this.actionsForAttributeChange(r,i,a)}))}else r!==this.appName&&this.setAttribute("name",this.appName)},_B()}static get observedAttributes(){return["name","url"]}connectedCallback(){this.hasConnected=!0,_o(()=>Wo(this,this.appName,Ps.CREATED)),this.initialMount()}disconnectedCallback(){this.hasConnected=!1,this.getKeepAliveModeResult()?this.handleHiddenKeepAliveApp():this.handleUnmount(this.getDestroyCompatibleResult())}attributeChangedCallback(r,i,a){if(this.legalAttribute(r,a)&&this[r===xf.NAME?"appName":"appUrl"]!==a)if(r===xf.URL&&!this.appUrl){if(a=Z0(a,this.appName),!a)return qn(`Invalid attribute url ${a}`,this.appName);this.appUrl=a,this.handleInitialNameAndUrl()}else if(r===xf.NAME&&!this.appName){const l=qa(a);if(!l)return qn(`Invalid attribute name ${a}`,this.appName);this.cacheData&&(pr.setData(l,this.cacheData),this.cacheData=null),this.appName=l,l!==a&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else this.isWaiting||(this.isWaiting=!0,_o(this.handleAttributeUpdate))}handleInitialNameAndUrl(){this.hasConnected&&this.initialMount()}initialMount(){if(!(!this.appName||!this.appUrl))if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&Dr(this.attachShadow)&&this.attachShadow({mode:"open"}),this.getDisposeResult("ssr")?this.ssrUrl=Eo(Ut.rawWindow.location.pathname,this.appUrl):this.ssrUrl&&(this.ssrUrl=""),lr.has(this.appName)){const r=lr.get(this.appName),i=r.ssrUrl||r.url,a=this.ssrUrl||this.appUrl;r.getKeepAliveState()===js.KEEP_ALIVE_HIDDEN&&r.url===this.appUrl?this.handleShowKeepAliveApp(r):i===a&&(r.isPrefetch||r.getAppState()===Mr.UNMOUNT)?this.handleAppMount(r):r.isPrefetch||r.getAppState()===Mr.UNMOUNT?(ah(`the ${r.isPrefetch?"prefetch":"unmounted"} app with url: ${i} is replaced by a new app`,this.appName),this.handleCreateApp()):qn(`app name conflict, an app named ${this.appName} is running`,this.appName)}else this.handleCreateApp()}actionsForAttributeChange(r,i,a){var l;this.getDisposeResult("ssr")?this.ssrUrl=Eo(Ut.rawWindow.location.pathname,i):this.ssrUrl&&(this.ssrUrl=""),this.appName=r,this.appUrl=i,((l=this.shadowRoot)!==null&&l!==void 0?l:this).innerHTML="",r!==this.getAttribute("name")&&this.setAttribute("name",this.appName),a?a.getKeepAliveState()===js.KEEP_ALIVE_HIDDEN?a.url===this.appUrl?this.handleShowKeepAliveApp(a):qn(`app name conflict, an app named ${this.appName} is running`,this.appName):a.url===this.appUrl&&a.ssrUrl===this.ssrUrl?this.handleAppMount(a):this.handleCreateApp():this.handleCreateApp()}legalAttribute(r,i){return!os(i)||!i?(qn(`unexpected attribute ${r}, please check again`,this.appName),!1):!0}handleAppMount(r){r.isPrefetch=!1,_o(()=>{var i;return r.mount((i=this.shadowRoot)!==null&&i!==void 0?i:this,this.getDisposeResult("inline"),this.getBaseRouteCompatible())})}handleCreateApp(){var r;lr.has(this.appName)&&lr.get(this.appName).actionsForCompletelyDestroy();const i=new lO({name:this.appName,url:this.appUrl,ssrUrl:this.ssrUrl,container:(r=this.shadowRoot)!==null&&r!==void 0?r:this,inline:this.getDisposeResult("inline"),scopecss:!(this.getDisposeResult("disableScopecss")||this.getDisposeResult("shadowDOM")),useSandbox:!this.getDisposeResult("disableSandbox"),baseroute:this.getBaseRouteCompatible()});lr.set(this.appName,i)}handleUnmount(r,i){const a=lr.get(this.appName);a&&a.getAppState()!==Mr.UNMOUNT&&a.unmount(r,i)}handleHiddenKeepAliveApp(){const r=lr.get(this.appName);r&&r.getAppState()!==Mr.UNMOUNT&&r.getKeepAliveState()!==js.KEEP_ALIVE_HIDDEN&&r.hiddenKeepAliveApp()}handleShowKeepAliveApp(r){_o(()=>{var i;return r.showKeepAliveApp((i=this.shadowRoot)!==null&&i!==void 0?i:this)})}getDisposeResult(r){return(this.compatibleSpecialProperties(r)||pr[r])&&this.compatibleDisableSpecialProperties(r)}compatibleSpecialProperties(r){return r==="disableScopecss"?this.hasAttribute("disableScopecss")||this.hasAttribute("disable-scopecss"):r==="disableSandbox"?this.hasAttribute("disableSandbox")||this.hasAttribute("disable-sandbox"):this.hasAttribute(r)}compatibleDisableSpecialProperties(r){return r==="disableScopecss"?this.getAttribute("disableScopecss")!=="false"&&this.getAttribute("disable-scopecss")!=="false":r==="disableSandbox"?this.getAttribute("disableSandbox")!=="false"&&this.getAttribute("disable-sandbox")!=="false":this.getAttribute(r)!=="false"}getBaseRouteCompatible(){var r,i;return(i=(r=this.getAttribute("baseroute"))!==null&&r!==void 0?r:this.getAttribute("baseurl"))!==null&&i!==void 0?i:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}set data(r){this.appName?pr.setData(this.appName,r):this.cacheData=r}get data(){return this.appName?pr.getData(this.appName,!0):this.cacheData?this.cacheData:null}}window.customElements.define(e,t)}function rE(e){if(!M1)return qn("preFetch is only supported in browser environment");R1(()=>{Dr(e)&&(e=e()),Sc(e)&&e.reduce((t,n)=>t.then(()=>JB(n)),Promise.resolve())})}function JB(e){return new Promise(t=>{R1(()=>{var n,r;if(ia(e)&&navigator.onLine)if(e.name=qa(e.name),e.url=Z0(e.url,e.name),e.name&&e.url&&!lr.has(e.name)){const i=new lO({name:e.name,url:e.url,scopecss:!((n=e.disableScopecss)!==null&&n!==void 0?n:pr.disableScopecss),useSandbox:!((r=e.disableSandbox)!==null&&r!==void 0?r:pr.disableSandbox)});i.isPrefetch=!0,i.prefetchResolve=t,lr.set(e.name,i)}else t();else t()})})}function ZB(e){ia(e)&&R1(()=>{iE(e.js,"js",lu),iE(e.css,"css",ll)})}function iE(e,t,n){if(Sc(e)){const r=e.filter(a=>os(a)&&a.includes(`.${t}`)&&!n.has(a)),i=r.map(a=>Du(a));Lg(i,a=>{const l=r[a.index];n.has(l)||n.set(l,a.data)},a=>{qn(a)})}}function QB(e){const t=[];return lr.forEach((n,r)=>{Mr.UNMOUNT!==n.getAppState()&&!n.isPrefetch&&(!e||js.KEEP_ALIVE_HIDDEN!==n.getKeepAliveState())&&t.push(r)}),t}function qB(e,t){const n=lr.get(qa(e));return new Promise(r=>{if(n)if(n.getAppState()===Mr.UNMOUNT||n.isPrefetch)t!=null&&t.destroy&&n.actionsForCompletelyDestroy(),r();else if(n.getKeepAliveState()===js.KEEP_ALIVE_HIDDEN)t!=null&&t.destroy?n.unmount(!0,r):t!=null&&t.clearAliveState?n.unmount(!1,r):r();else{const i=sh(n.container),a=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()},l=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()};if(i.addEventListener("unmount",a),i.addEventListener("afterhidden",l),t!=null&&t.destroy){let c,h;i.hasAttribute("destroy")&&(c=i.getAttribute("destroy")),i.hasAttribute("destory")&&(h=i.getAttribute("destory")),i.setAttribute("destroy","true"),i.parentNode.removeChild(i),i.removeAttribute("destroy"),typeof c=="string"&&i.setAttribute("destroy",c),typeof h=="string"&&i.setAttribute("destory",h)}else if((t==null?void 0:t.clearAliveState)&&i.hasAttribute("keep-alive")){const c=i.getAttribute("keep-alive");i.removeAttribute("keep-alive"),i.parentNode.removeChild(i),i.setAttribute("keep-alive",c)}else i.parentNode.removeChild(i)}else ah(`app ${e} does not exist`),r()})}function cre(e){return Array.from(lr.keys()).reduce((t,n)=>t.then(()=>qB(n,e)),Promise.resolve())}class eF extends IB{constructor(){super(...arguments),this.tagName="micro-app",this.preFetch=rE}start(t){if(!M1||!window.customElements)return qn("micro-app is not supported in this environment");if(t!=null&&t.tagName)if(/^micro-app(-\S+)?/.test(t.tagName))this.tagName=t.tagName;else return qn(`${t.tagName} is invalid tagName`);if(window.customElements.get(this.tagName))return ah(`element ${this.tagName} is already defined`);if(SB(),t&&ia(t)&&(this.shadowDOM=t.shadowDOM,this.destroy=t.destroy,this.destory=t.destory,this.inline=t.inline,this.disableScopecss=t.disableScopecss,this.disableSandbox=t.disableSandbox,this.ssr=t.ssr,Dr(t.fetch)&&(this.fetch=t.fetch),ia(t.lifeCycles)&&(this.lifeCycles=t.lifeCycles),t.preFetchApps&&rE(t.preFetchApps),t.globalAssets&&ZB(t.globalAssets),Dr(t.excludeAssetFilter)&&(this.excludeAssetFilter=t.excludeAssetFilter),ia(t.plugins))){const n=t.plugins.modules;if(ia(n))for(const r in n){const i=qa(r);i&&r!==i&&(n[i]=n[r],delete n[r])}this.plugins=t.plugins}XB(this.tagName)}}var pr=new eF;function tF(){let e={},t={loader(n,r){return n}};e["micro-app"]=[t],e["okr-details"]=[t],pr.start({plugins:{modules:e}})}var nF={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let n=1;for(;e.indexOf("(*)")!==-1;)typeof t[n]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[n]),n++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const zf=nF,rF=zf.languageTypes,uu=zf.getLanguage(),ec={};function dre(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(rF));e.some(n=>{let r=-1;n.key&&t.some(i=>{const a=n[i]||n.general||null;a&&typeof window.LANGUAGE_DATA[i]!="undefined"&&(r=window.LANGUAGE_DATA[i].push(a)-1)}),r>-1&&(window.LANGUAGE_DATA.key[n.key]=r)})}function iF(e,t=!1){e!==void 0&&(t?(window.localStorage.setItem("__language:type__",e),$A.reloadUrl()):$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}}))}function aF(){return zf.getLanguage()}function j1(e){var n;if(typeof arguments[1]!="undefined")return j1(zf.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[uu]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[uu][t]||e;if(typeof ec[e]=="undefined"){ec[e]=!1;for(let r in window.LANGUAGE_DATA.key)if(r.indexOf("(*)")>-1){const i=new RegExp("^"+zf.replaceEscape(r)+"$","g");if(i.test(e)){let a=0;const l=window.LANGUAGE_DATA.key[r],c=(n=window.LANGUAGE_DATA[uu][l]||r)==null?void 0:n.replace(/\(\*\)/g,function(){return"$"+ ++a});ec[e]={rege:i,value:c};break}}}return ec[e]?e.replace(ec[e].rege,ec[e].value):(window.systemInfo.debug==="yes"&&setTimeout(r=>{try{let i="__language:Undefined__",a=JSON.parse(window.localStorage.getItem(i)||"[]");$A.isArray(a)||(a=[]);let l=null;a.find(h=>(l=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(l)))||(a.push(e),window.localStorage.setItem(i,JSON.stringify(a)))}catch{}},10),e)}var Us=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function uO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bg(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function yv(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cO={exports:{}};/*!
* jQuery JavaScript Library v3.6.4
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-03-08T15:28Z
*/(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window!="undefined"?window:Us,function(t,n){var r=[],i=Object.getPrototypeOf,a=r.slice,l=r.flat?function(O){return r.flat.call(O)}:function(O){return r.concat.apply([],O)},c=r.push,h=r.indexOf,s={},p=s.toString,d=s.hasOwnProperty,v=d.toString,m=v.call(Object),_={},y=function(N){return typeof N=="function"&&typeof N.nodeType!="number"&&typeof N.item!="function"},b=function(N){return N!=null&&N===N.window},E=t.document,D={type:!0,src:!0,nonce:!0,noModule:!0};function C(O,N,K){K=K||E;var te,Ce,Se=K.createElement("script");if(Se.text=O,N)for(te in D)Ce=N[te]||N.getAttribute&&N.getAttribute(te),Ce&&Se.setAttribute(te,Ce);K.head.appendChild(Se).parentNode.removeChild(Se)}function x(O){return O==null?O+"":typeof O=="object"||typeof O=="function"?s[p.call(O)]||"object":typeof O}var k="3.6.4",w=function(O,N){return new w.fn.init(O,N)};w.fn=w.prototype={jquery:k,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(O){return O==null?a.call(this):O<0?this[O+this.length]:this[O]},pushStack:function(O){var N=w.merge(this.constructor(),O);return N.prevObject=this,N},each:function(O){return w.each(this,O)},map:function(O){return this.pushStack(w.map(this,function(N,K){return O.call(N,K,N)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(O,N){return(N+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(O,N){return N%2}))},eq:function(O){var N=this.length,K=+O+(O<0?N:0);return this.pushStack(K>=0&&K0&&N-1 in O}var M=function(O){var N,K,te,Ce,Se,Me,He,je,Qe,it,bt,nt,lt,an,yn,Qt,Pr,xr,Mi,Hn="sizzle"+1*new Date,bn=O.document,ii=0,Rn=0,ir=Wu(),No=Wu(),zu=Wu(),Ii=Wu(),io=function($e,Ue){return $e===Ue&&(bt=!0),0},vs={}.hasOwnProperty,Kr=[],Ua=Kr.pop,$i=Kr.push,ms=Kr.push,md=Kr.slice,ao=function($e,Ue){for(var Ke=0,ct=$e.length;Ke+~]|"+zn+")"+zn+"*"),Hh=new RegExp(zn+"|>"),Ol=new RegExp(Vu),ey=new RegExp("^"+gs+"$"),Pl={ID:new RegExp("^#("+gs+")"),CLASS:new RegExp("^\\.("+gs+")"),TAG:new RegExp("^("+gs+"|[*])"),ATTR:new RegExp("^"+Vh),PSEUDO:new RegExp("^"+Vu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+zn+"*(even|odd|(([+-]|)(\\d*)n|)"+zn+"*(?:([+-]|)"+zn+"*(\\d+)|))"+zn+"*\\)|)","i"),bool:new RegExp("^(?:"+gd+")$","i"),needsContext:new RegExp("^"+zn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+zn+"*((?:-\\d)?\\d*)"+zn+"*\\)|)(?=[^-]|$)","i")},Yi=/HTML$/i,ty=/^(?:input|select|textarea|button)$/i,_d=/^h\d$/i,Tl=/^[^{]+\{\s*\[native \w/,ny=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yd=/[+~]/,Ta=new RegExp("\\\\[\\da-fA-F]{1,6}"+zn+"?|\\\\([^\\r\\n\\f])","g"),Xi=function($e,Ue){var Ke="0x"+$e.slice(1)-65536;return Ue||(Ke<0?String.fromCharCode(Ke+65536):String.fromCharCode(Ke>>10|55296,Ke&1023|56320))},bd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wd=function($e,Ue){return Ue?$e==="\0"?"\uFFFD":$e.slice(0,-1)+"\\"+$e.charCodeAt($e.length-1).toString(16)+" ":"\\"+$e},Cd=function(){nt()},ry=Ku(function($e){return $e.disabled===!0&&$e.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{ms.apply(Kr=md.call(bn.childNodes),bn.childNodes),Kr[bn.childNodes.length].nodeType}catch{ms={apply:Kr.length?function(Ue,Ke){$i.apply(Ue,md.call(Ke))}:function(Ue,Ke){for(var ct=Ue.length,qe=0;Ue[ct++]=Ke[qe++];);Ue.length=ct-1}}}function Gn($e,Ue,Ke,ct){var qe,vt,wt,$t,jt,cn,Ft,hn=Ue&&Ue.ownerDocument,Pn=Ue?Ue.nodeType:9;if(Ke=Ke||[],typeof $e!="string"||!$e||Pn!==1&&Pn!==9&&Pn!==11)return Ke;if(!ct&&(nt(Ue),Ue=Ue||lt,yn)){if(Pn!==11&&(jt=ny.exec($e)))if(qe=jt[1]){if(Pn===9)if(wt=Ue.getElementById(qe)){if(wt.id===qe)return Ke.push(wt),Ke}else return Ke;else if(hn&&(wt=hn.getElementById(qe))&&Mi(Ue,wt)&&wt.id===qe)return Ke.push(wt),Ke}else{if(jt[2])return ms.apply(Ke,Ue.getElementsByTagName($e)),Ke;if((qe=jt[3])&&K.getElementsByClassName&&Ue.getElementsByClassName)return ms.apply(Ke,Ue.getElementsByClassName(qe)),Ke}if(K.qsa&&!Ii[$e+" "]&&(!Qt||!Qt.test($e))&&(Pn!==1||Ue.nodeName.toLowerCase()!=="object")){if(Ft=$e,hn=Ue,Pn===1&&(Hh.test($e)||Wh.test($e))){for(hn=yd.test($e)&&Bo(Ue.parentNode)||Ue,(hn!==Ue||!K.scope)&&(($t=Ue.getAttribute("id"))?$t=$t.replace(bd,wd):Ue.setAttribute("id",$t=Hn)),cn=Me($e),vt=cn.length;vt--;)cn[vt]=($t?"#"+$t:":scope")+" "+Al(cn[vt]);Ft=cn.join(",")}try{return ms.apply(Ke,hn.querySelectorAll(Ft)),Ke}catch{Ii($e,!0)}finally{$t===Hn&&Ue.removeAttribute("id")}}}return je($e.replace(Dl,"$1"),Ue,Ke,ct)}function Wu(){var $e=[];function Ue(Ke,ct){return $e.push(Ke+" ")>te.cacheLength&&delete Ue[$e.shift()],Ue[Ke+" "]=ct}return Ue}function Ji($e){return $e[Hn]=!0,$e}function ai($e){var Ue=lt.createElement("fieldset");try{return!!$e(Ue)}catch{return!1}finally{Ue.parentNode&&Ue.parentNode.removeChild(Ue),Ue=null}}function Hu($e,Ue){for(var Ke=$e.split("|"),ct=Ke.length;ct--;)te.attrHandle[Ke[ct]]=Ue}function xd($e,Ue){var Ke=Ue&&$e,ct=Ke&&$e.nodeType===1&&Ue.nodeType===1&&$e.sourceIndex-Ue.sourceIndex;if(ct)return ct;if(Ke){for(;Ke=Ke.nextSibling;)if(Ke===Ue)return-1}return $e?1:-1}function iy($e){return function(Ue){var Ke=Ue.nodeName.toLowerCase();return Ke==="input"&&Ue.type===$e}}function ay($e){return function(Ue){var Ke=Ue.nodeName.toLowerCase();return(Ke==="input"||Ke==="button")&&Ue.type===$e}}function Kh($e){return function(Ue){return"form"in Ue?Ue.parentNode&&Ue.disabled===!1?"label"in Ue?"label"in Ue.parentNode?Ue.parentNode.disabled===$e:Ue.disabled===$e:Ue.isDisabled===$e||Ue.isDisabled!==!$e&&ry(Ue)===$e:Ue.disabled===$e:"label"in Ue?Ue.disabled===$e:!1}}function _s($e){return Ji(function(Ue){return Ue=+Ue,Ji(function(Ke,ct){for(var qe,vt=$e([],Ke.length,Ue),wt=vt.length;wt--;)Ke[qe=vt[wt]]&&(Ke[qe]=!(ct[qe]=Ke[qe]))})})}function Bo($e){return $e&&typeof $e.getElementsByTagName!="undefined"&&$e}K=Gn.support={},Se=Gn.isXML=function($e){var Ue=$e&&$e.namespaceURI,Ke=$e&&($e.ownerDocument||$e).documentElement;return!Yi.test(Ue||Ke&&Ke.nodeName||"HTML")},nt=Gn.setDocument=function($e){var Ue,Ke,ct=$e?$e.ownerDocument||$e:bn;return ct==lt||ct.nodeType!==9||!ct.documentElement||(lt=ct,an=lt.documentElement,yn=!Se(lt),bn!=lt&&(Ke=lt.defaultView)&&Ke.top!==Ke&&(Ke.addEventListener?Ke.addEventListener("unload",Cd,!1):Ke.attachEvent&&Ke.attachEvent("onunload",Cd)),K.scope=ai(function(qe){return an.appendChild(qe).appendChild(lt.createElement("div")),typeof qe.querySelectorAll!="undefined"&&!qe.querySelectorAll(":scope fieldset div").length}),K.cssHas=ai(function(){try{return lt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),K.attributes=ai(function(qe){return qe.className="i",!qe.getAttribute("className")}),K.getElementsByTagName=ai(function(qe){return qe.appendChild(lt.createComment("")),!qe.getElementsByTagName("*").length}),K.getElementsByClassName=Tl.test(lt.getElementsByClassName),K.getById=ai(function(qe){return an.appendChild(qe).id=Hn,!lt.getElementsByName||!lt.getElementsByName(Hn).length}),K.getById?(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){return wt.getAttribute("id")===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt=vt.getElementById(qe);return wt?[wt]:[]}}):(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){var $t=typeof wt.getAttributeNode!="undefined"&&wt.getAttributeNode("id");return $t&&$t.value===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt,$t,jt,cn=vt.getElementById(qe);if(cn){if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn];for(jt=vt.getElementsByName(qe),$t=0;cn=jt[$t++];)if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn]}return[]}}),te.find.TAG=K.getElementsByTagName?function(qe,vt){if(typeof vt.getElementsByTagName!="undefined")return vt.getElementsByTagName(qe);if(K.qsa)return vt.querySelectorAll(qe)}:function(qe,vt){var wt,$t=[],jt=0,cn=vt.getElementsByTagName(qe);if(qe==="*"){for(;wt=cn[jt++];)wt.nodeType===1&&$t.push(wt);return $t}return cn},te.find.CLASS=K.getElementsByClassName&&function(qe,vt){if(typeof vt.getElementsByClassName!="undefined"&&yn)return vt.getElementsByClassName(qe)},Pr=[],Qt=[],(K.qsa=Tl.test(lt.querySelectorAll))&&(ai(function(qe){var vt;an.appendChild(qe).innerHTML="",qe.querySelectorAll("[msallowcapture^='']").length&&Qt.push("[*^$]="+zn+`*(?:''|"")`),qe.querySelectorAll("[selected]").length||Qt.push("\\["+zn+"*(?:value|"+gd+")"),qe.querySelectorAll("[id~="+Hn+"-]").length||Qt.push("~="),vt=lt.createElement("input"),vt.setAttribute("name",""),qe.appendChild(vt),qe.querySelectorAll("[name='']").length||Qt.push("\\["+zn+"*name"+zn+"*="+zn+`*(?:''|"")`),qe.querySelectorAll(":checked").length||Qt.push(":checked"),qe.querySelectorAll("a#"+Hn+"+*").length||Qt.push(".#.+[+~]"),qe.querySelectorAll("\\\f"),Qt.push("[\\r\\n\\f]")}),ai(function(qe){qe.innerHTML="";var vt=lt.createElement("input");vt.setAttribute("type","hidden"),qe.appendChild(vt).setAttribute("name","D"),qe.querySelectorAll("[name=d]").length&&Qt.push("name"+zn+"*[*^$|!~]?="),qe.querySelectorAll(":enabled").length!==2&&Qt.push(":enabled",":disabled"),an.appendChild(qe).disabled=!0,qe.querySelectorAll(":disabled").length!==2&&Qt.push(":enabled",":disabled"),qe.querySelectorAll("*,:x"),Qt.push(",.*:")})),(K.matchesSelector=Tl.test(xr=an.matches||an.webkitMatchesSelector||an.mozMatchesSelector||an.oMatchesSelector||an.msMatchesSelector))&&ai(function(qe){K.disconnectedMatch=xr.call(qe,"*"),xr.call(qe,"[s!='']:x"),Pr.push("!=",Vu)}),K.cssHas||Qt.push(":has"),Qt=Qt.length&&new RegExp(Qt.join("|")),Pr=Pr.length&&new RegExp(Pr.join("|")),Ue=Tl.test(an.compareDocumentPosition),Mi=Ue||Tl.test(an.contains)?function(qe,vt){var wt=qe.nodeType===9&&qe.documentElement||qe,$t=vt&&vt.parentNode;return qe===$t||!!($t&&$t.nodeType===1&&(wt.contains?wt.contains($t):qe.compareDocumentPosition&&qe.compareDocumentPosition($t)&16))}:function(qe,vt){if(vt){for(;vt=vt.parentNode;)if(vt===qe)return!0}return!1},io=Ue?function(qe,vt){if(qe===vt)return bt=!0,0;var wt=!qe.compareDocumentPosition-!vt.compareDocumentPosition;return wt||(wt=(qe.ownerDocument||qe)==(vt.ownerDocument||vt)?qe.compareDocumentPosition(vt):1,wt&1||!K.sortDetached&&vt.compareDocumentPosition(qe)===wt?qe==lt||qe.ownerDocument==bn&&Mi(bn,qe)?-1:vt==lt||vt.ownerDocument==bn&&Mi(bn,vt)?1:it?ao(it,qe)-ao(it,vt):0:wt&4?-1:1)}:function(qe,vt){if(qe===vt)return bt=!0,0;var wt,$t=0,jt=qe.parentNode,cn=vt.parentNode,Ft=[qe],hn=[vt];if(!jt||!cn)return qe==lt?-1:vt==lt?1:jt?-1:cn?1:it?ao(it,qe)-ao(it,vt):0;if(jt===cn)return xd(qe,vt);for(wt=qe;wt=wt.parentNode;)Ft.unshift(wt);for(wt=vt;wt=wt.parentNode;)hn.unshift(wt);for(;Ft[$t]===hn[$t];)$t++;return $t?xd(Ft[$t],hn[$t]):Ft[$t]==bn?-1:hn[$t]==bn?1:0}),lt},Gn.matches=function($e,Ue){return Gn($e,null,null,Ue)},Gn.matchesSelector=function($e,Ue){if(nt($e),K.matchesSelector&&yn&&!Ii[Ue+" "]&&(!Pr||!Pr.test(Ue))&&(!Qt||!Qt.test(Ue)))try{var Ke=xr.call($e,Ue);if(Ke||K.disconnectedMatch||$e.document&&$e.document.nodeType!==11)return Ke}catch{Ii(Ue,!0)}return Gn(Ue,lt,null,[$e]).length>0},Gn.contains=function($e,Ue){return($e.ownerDocument||$e)!=lt&&nt($e),Mi($e,Ue)},Gn.attr=function($e,Ue){($e.ownerDocument||$e)!=lt&&nt($e);var Ke=te.attrHandle[Ue.toLowerCase()],ct=Ke&&vs.call(te.attrHandle,Ue.toLowerCase())?Ke($e,Ue,!yn):void 0;return ct!==void 0?ct:K.attributes||!yn?$e.getAttribute(Ue):(ct=$e.getAttributeNode(Ue))&&ct.specified?ct.value:null},Gn.escape=function($e){return($e+"").replace(bd,wd)},Gn.error=function($e){throw new Error("Syntax error, unrecognized expression: "+$e)},Gn.uniqueSort=function($e){var Ue,Ke=[],ct=0,qe=0;if(bt=!K.detectDuplicates,it=!K.sortStable&&$e.slice(0),$e.sort(io),bt){for(;Ue=$e[qe++];)Ue===$e[qe]&&(ct=Ke.push(qe));for(;ct--;)$e.splice(Ke[ct],1)}return it=null,$e},Ce=Gn.getText=function($e){var Ue,Ke="",ct=0,qe=$e.nodeType;if(qe){if(qe===1||qe===9||qe===11){if(typeof $e.textContent=="string")return $e.textContent;for($e=$e.firstChild;$e;$e=$e.nextSibling)Ke+=Ce($e)}else if(qe===3||qe===4)return $e.nodeValue}else for(;Ue=$e[ct++];)Ke+=Ce(Ue);return Ke},te=Gn.selectors={cacheLength:50,createPseudo:Ji,match:Pl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($e){return $e[1]=$e[1].replace(Ta,Xi),$e[3]=($e[3]||$e[4]||$e[5]||"").replace(Ta,Xi),$e[2]==="~="&&($e[3]=" "+$e[3]+" "),$e.slice(0,4)},CHILD:function($e){return $e[1]=$e[1].toLowerCase(),$e[1].slice(0,3)==="nth"?($e[3]||Gn.error($e[0]),$e[4]=+($e[4]?$e[5]+($e[6]||1):2*($e[3]==="even"||$e[3]==="odd")),$e[5]=+($e[7]+$e[8]||$e[3]==="odd")):$e[3]&&Gn.error($e[0]),$e},PSEUDO:function($e){var Ue,Ke=!$e[6]&&$e[2];return Pl.CHILD.test($e[0])?null:($e[3]?$e[2]=$e[4]||$e[5]||"":Ke&&Ol.test(Ke)&&(Ue=Me(Ke,!0))&&(Ue=Ke.indexOf(")",Ke.length-Ue)-Ke.length)&&($e[0]=$e[0].slice(0,Ue),$e[2]=Ke.slice(0,Ue)),$e.slice(0,3))}},filter:{TAG:function($e){var Ue=$e.replace(Ta,Xi).toLowerCase();return $e==="*"?function(){return!0}:function(Ke){return Ke.nodeName&&Ke.nodeName.toLowerCase()===Ue}},CLASS:function($e){var Ue=ir[$e+" "];return Ue||(Ue=new RegExp("(^|"+zn+")"+$e+"("+zn+"|$)"))&&ir($e,function(Ke){return Ue.test(typeof Ke.className=="string"&&Ke.className||typeof Ke.getAttribute!="undefined"&&Ke.getAttribute("class")||"")})},ATTR:function($e,Ue,Ke){return function(ct){var qe=Gn.attr(ct,$e);return qe==null?Ue==="!=":Ue?(qe+="",Ue==="="?qe===Ke:Ue==="!="?qe!==Ke:Ue==="^="?Ke&&qe.indexOf(Ke)===0:Ue==="*="?Ke&&qe.indexOf(Ke)>-1:Ue==="$="?Ke&&qe.slice(-Ke.length)===Ke:Ue==="~="?(" "+qe.replace(Q_," ")+" ").indexOf(Ke)>-1:Ue==="|="?qe===Ke||qe.slice(0,Ke.length+1)===Ke+"-":!1):!0}},CHILD:function($e,Ue,Ke,ct,qe){var vt=$e.slice(0,3)!=="nth",wt=$e.slice(-4)!=="last",$t=Ue==="of-type";return ct===1&&qe===0?function(jt){return!!jt.parentNode}:function(jt,cn,Ft){var hn,Pn,Kn,dn,Tr,Zr,_i=vt!==wt?"nextSibling":"previousSibling",In=jt.parentNode,da=$t&&jt.nodeName.toLowerCase(),Il=!Ft&&!$t,Ri=!1;if(In){if(vt){for(;_i;){for(dn=jt;dn=dn[_i];)if($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)return!1;Zr=_i=$e==="only"&&!Zr&&"nextSibling"}return!0}if(Zr=[wt?In.firstChild:In.lastChild],wt&&Il){for(dn=In,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ii&&hn[1],Ri=Tr&&hn[2],dn=Tr&&In.childNodes[Tr];dn=++Tr&&dn&&dn[_i]||(Ri=Tr=0)||Zr.pop();)if(dn.nodeType===1&&++Ri&&dn===jt){Pn[$e]=[ii,Tr,Ri];break}}else if(Il&&(dn=jt,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ii&&hn[1],Ri=Tr),Ri===!1)for(;(dn=++Tr&&dn&&dn[_i]||(Ri=Tr=0)||Zr.pop())&&!(($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)&&++Ri&&(Il&&(Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),Pn[$e]=[ii,Ri]),dn===jt)););return Ri-=qe,Ri===ct||Ri%ct===0&&Ri/ct>=0}}},PSEUDO:function($e,Ue){var Ke,ct=te.pseudos[$e]||te.setFilters[$e.toLowerCase()]||Gn.error("unsupported pseudo: "+$e);return ct[Hn]?ct(Ue):ct.length>1?(Ke=[$e,$e,"",Ue],te.setFilters.hasOwnProperty($e.toLowerCase())?Ji(function(qe,vt){for(var wt,$t=ct(qe,Ue),jt=$t.length;jt--;)wt=ao(qe,$t[jt]),qe[wt]=!(vt[wt]=$t[jt])}):function(qe){return ct(qe,0,Ke)}):ct}},pseudos:{not:Ji(function($e){var Ue=[],Ke=[],ct=He($e.replace(Dl,"$1"));return ct[Hn]?Ji(function(qe,vt,wt,$t){for(var jt,cn=ct(qe,null,$t,[]),Ft=qe.length;Ft--;)(jt=cn[Ft])&&(qe[Ft]=!(vt[Ft]=jt))}):function(qe,vt,wt){return Ue[0]=qe,ct(Ue,null,wt,Ke),Ue[0]=null,!Ke.pop()}}),has:Ji(function($e){return function(Ue){return Gn($e,Ue).length>0}}),contains:Ji(function($e){return $e=$e.replace(Ta,Xi),function(Ue){return(Ue.textContent||Ce(Ue)).indexOf($e)>-1}}),lang:Ji(function($e){return ey.test($e||"")||Gn.error("unsupported lang: "+$e),$e=$e.replace(Ta,Xi).toLowerCase(),function(Ue){var Ke;do if(Ke=yn?Ue.lang:Ue.getAttribute("xml:lang")||Ue.getAttribute("lang"))return Ke=Ke.toLowerCase(),Ke===$e||Ke.indexOf($e+"-")===0;while((Ue=Ue.parentNode)&&Ue.nodeType===1);return!1}}),target:function($e){var Ue=O.location&&O.location.hash;return Ue&&Ue.slice(1)===$e.id},root:function($e){return $e===an},focus:function($e){return $e===lt.activeElement&&(!lt.hasFocus||lt.hasFocus())&&!!($e.type||$e.href||~$e.tabIndex)},enabled:Kh(!1),disabled:Kh(!0),checked:function($e){var Ue=$e.nodeName.toLowerCase();return Ue==="input"&&!!$e.checked||Ue==="option"&&!!$e.selected},selected:function($e){return $e.parentNode&&$e.parentNode.selectedIndex,$e.selected===!0},empty:function($e){for($e=$e.firstChild;$e;$e=$e.nextSibling)if($e.nodeType<6)return!1;return!0},parent:function($e){return!te.pseudos.empty($e)},header:function($e){return _d.test($e.nodeName)},input:function($e){return ty.test($e.nodeName)},button:function($e){var Ue=$e.nodeName.toLowerCase();return Ue==="input"&&$e.type==="button"||Ue==="button"},text:function($e){var Ue;return $e.nodeName.toLowerCase()==="input"&&$e.type==="text"&&((Ue=$e.getAttribute("type"))==null||Ue.toLowerCase()==="text")},first:_s(function(){return[0]}),last:_s(function($e,Ue){return[Ue-1]}),eq:_s(function($e,Ue,Ke){return[Ke<0?Ke+Ue:Ke]}),even:_s(function($e,Ue){for(var Ke=0;KeUe?Ue:Ke;--ct>=0;)$e.push(ct);return $e}),gt:_s(function($e,Ue,Ke){for(var ct=Ke<0?Ke+Ue:Ke;++ct1?function(Ue,Ke,ct){for(var qe=$e.length;qe--;)if(!$e[qe](Ue,Ke,ct))return!1;return!0}:$e[0]}function sy($e,Ue,Ke){for(var ct=0,qe=Ue.length;ct-1&&(wt[Ft]=!($t[Ft]=Pn))}}else In=Ml(In===$t?In.splice(Tr,In.length):In),qe?qe(null,$t,In,cn):ms.apply($t,In)})}function Gu($e){for(var Ue,Ke,ct,qe=$e.length,vt=te.relative[$e[0].type],wt=vt||te.relative[" "],$t=vt?1:0,jt=Ku(function(hn){return hn===Ue},wt,!0),cn=Ku(function(hn){return ao(Ue,hn)>-1},wt,!0),Ft=[function(hn,Pn,Kn){var dn=!vt&&(Kn||Pn!==Qe)||((Ue=Pn).nodeType?jt(hn,Pn,Kn):cn(hn,Pn,Kn));return Ue=null,dn}];$t1&&Ed(Ft),$t>1&&Al($e.slice(0,$t-1).concat({value:$e[$t-2].type===" "?"*":""})).replace(Dl,"$1"),Ke,$t0,ct=$e.length>0,qe=function(vt,wt,$t,jt,cn){var Ft,hn,Pn,Kn=0,dn="0",Tr=vt&&[],Zr=[],_i=Qe,In=vt||ct&&te.find.TAG("*",cn),da=ii+=_i==null?1:Math.random()||.1,Il=In.length;for(cn&&(Qe=wt==lt||wt||cn);dn!==Il&&(Ft=In[dn])!=null;dn++){if(ct&&Ft){for(hn=0,!wt&&Ft.ownerDocument!=lt&&(nt(Ft),$t=!yn);Pn=$e[hn++];)if(Pn(Ft,wt||lt,$t)){jt.push(Ft);break}cn&&(ii=da)}Ke&&((Ft=!Pn&&Ft)&&Kn--,vt&&Tr.push(Ft))}if(Kn+=dn,Ke&&dn!==Kn){for(hn=0;Pn=Ue[hn++];)Pn(Tr,Zr,wt,$t);if(vt){if(Kn>0)for(;dn--;)Tr[dn]||Zr[dn]||(Zr[dn]=Ua.call(jt));Zr=Ml(Zr)}ms.apply(jt,Zr),cn&&!vt&&Zr.length>0&&Kn+Ue.length>1&&Gn.uniqueSort(jt)}return cn&&(ii=da,Qe=_i),Tr};return Ke?Ji(qe):qe}return He=Gn.compile=function($e,Ue){var Ke,ct=[],qe=[],vt=zu[$e+" "];if(!vt){for(Ue||(Ue=Me($e)),Ke=Ue.length;Ke--;)vt=Gu(Ue[Ke]),vt[Hn]?ct.push(vt):qe.push(vt);vt=zu($e,Gh(qe,ct)),vt.selector=$e}return vt},je=Gn.select=function($e,Ue,Ke,ct){var qe,vt,wt,$t,jt,cn=typeof $e=="function"&&$e,Ft=!ct&&Me($e=cn.selector||$e);if(Ke=Ke||[],Ft.length===1){if(vt=Ft[0]=Ft[0].slice(0),vt.length>2&&(wt=vt[0]).type==="ID"&&Ue.nodeType===9&&yn&&te.relative[vt[1].type]){if(Ue=(te.find.ID(wt.matches[0].replace(Ta,Xi),Ue)||[])[0],Ue)cn&&(Ue=Ue.parentNode);else return Ke;$e=$e.slice(vt.shift().value.length)}for(qe=Pl.needsContext.test($e)?0:vt.length;qe--&&(wt=vt[qe],!te.relative[$t=wt.type]);)if((jt=te.find[$t])&&(ct=jt(wt.matches[0].replace(Ta,Xi),yd.test(vt[0].type)&&Bo(Ue.parentNode)||Ue))){if(vt.splice(qe,1),$e=ct.length&&Al(vt),!$e)return ms.apply(Ke,ct),Ke;break}}return(cn||He($e,Ft))(ct,Ue,!yn,Ke,!Ue||yd.test($e)&&Bo(Ue.parentNode)||Ue),Ke},K.sortStable=Hn.split("").sort(io).join("")===Hn,K.detectDuplicates=!!bt,nt(),K.sortDetached=ai(function($e){return $e.compareDocumentPosition(lt.createElement("fieldset"))&1}),ai(function($e){return $e.innerHTML="",$e.firstChild.getAttribute("href")==="#"})||Hu("type|href|height|width",function($e,Ue,Ke){if(!Ke)return $e.getAttribute(Ue,Ue.toLowerCase()==="type"?1:2)}),(!K.attributes||!ai(function($e){return $e.innerHTML="",$e.firstChild.setAttribute("value",""),$e.firstChild.getAttribute("value")===""}))&&Hu("value",function($e,Ue,Ke){if(!Ke&&$e.nodeName.toLowerCase()==="input")return $e.defaultValue}),ai(function($e){return $e.getAttribute("disabled")==null})||Hu(gd,function($e,Ue,Ke){var ct;if(!Ke)return $e[Ue]===!0?Ue.toLowerCase():(ct=$e.getAttributeNode(Ue))&&ct.specified?ct.value:null}),Gn}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var T=function(O,N,K){for(var te=[],Ce=K!==void 0;(O=O[N])&&O.nodeType!==9;)if(O.nodeType===1){if(Ce&&w(O).is(K))break;te.push(O)}return te},R=function(O,N){for(var K=[];O;O=O.nextSibling)O.nodeType===1&&O!==N&&K.push(O);return K},H=w.expr.match.needsContext;function L(O,N){return O.nodeName&&O.nodeName.toLowerCase()===N.toLowerCase()}var V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(O,N,K){return y(N)?w.grep(O,function(te,Ce){return!!N.call(te,Ce,te)!==K}):N.nodeType?w.grep(O,function(te){return te===N!==K}):typeof N!="string"?w.grep(O,function(te){return h.call(N,te)>-1!==K}):w.filter(N,O,K)}w.filter=function(O,N,K){var te=N[0];return K&&(O=":not("+O+")"),N.length===1&&te.nodeType===1?w.find.matchesSelector(te,O)?[te]:[]:w.find.matches(O,w.grep(N,function(Ce){return Ce.nodeType===1}))},w.fn.extend({find:function(O){var N,K,te=this.length,Ce=this;if(typeof O!="string")return this.pushStack(w(O).filter(function(){for(N=0;N1?w.uniqueSort(K):K},filter:function(O){return this.pushStack(j(this,O||[],!1))},not:function(O){return this.pushStack(j(this,O||[],!0))},is:function(O){return!!j(this,typeof O=="string"&&H.test(O)?w(O):O||[],!1).length}});var oe,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=w.fn.init=function(O,N,K){var te,Ce;if(!O)return this;if(K=K||oe,typeof O=="string")if(O[0]==="<"&&O[O.length-1]===">"&&O.length>=3?te=[null,O,null]:te=Pe.exec(O),te&&(te[1]||!N))if(te[1]){if(N=N instanceof w?N[0]:N,w.merge(this,w.parseHTML(te[1],N&&N.nodeType?N.ownerDocument||N:E,!0)),V.test(te[1])&&w.isPlainObject(N))for(te in N)y(this[te])?this[te](N[te]):this.attr(te,N[te]);return this}else return Ce=E.getElementById(te[2]),Ce&&(this[0]=Ce,this.length=1),this;else return!N||N.jquery?(N||K).find(O):this.constructor(N).find(O);else{if(O.nodeType)return this[0]=O,this.length=1,this;if(y(O))return K.ready!==void 0?K.ready(O):O(w)}return w.makeArray(O,this)};pe.prototype=w.fn,oe=w(E);var ye=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(O){var N=w(O,this),K=N.length;return this.filter(function(){for(var te=0;te-1:K.nodeType===1&&w.find.matchesSelector(K,O))){Se.push(K);break}}return this.pushStack(Se.length>1?w.uniqueSort(Se):Se)},index:function(O){return O?typeof O=="string"?h.call(w(O),this[0]):h.call(this,O.jquery?O[0]:O):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(O,N){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(O,N))))},addBack:function(O){return this.add(O==null?this.prevObject:this.prevObject.filter(O))}});function xe(O,N){for(;(O=O[N])&&O.nodeType!==1;);return O}w.each({parent:function(O){var N=O.parentNode;return N&&N.nodeType!==11?N:null},parents:function(O){return T(O,"parentNode")},parentsUntil:function(O,N,K){return T(O,"parentNode",K)},next:function(O){return xe(O,"nextSibling")},prev:function(O){return xe(O,"previousSibling")},nextAll:function(O){return T(O,"nextSibling")},prevAll:function(O){return T(O,"previousSibling")},nextUntil:function(O,N,K){return T(O,"nextSibling",K)},prevUntil:function(O,N,K){return T(O,"previousSibling",K)},siblings:function(O){return R((O.parentNode||{}).firstChild,O)},children:function(O){return R(O.firstChild)},contents:function(O){return O.contentDocument!=null&&i(O.contentDocument)?O.contentDocument:(L(O,"template")&&(O=O.content||O),w.merge([],O.childNodes))}},function(O,N){w.fn[O]=function(K,te){var Ce=w.map(this,N,K);return O.slice(-5)!=="Until"&&(te=K),te&&typeof te=="string"&&(Ce=w.filter(te,Ce)),this.length>1&&(de[O]||w.uniqueSort(Ce),ye.test(O)&&Ce.reverse()),this.pushStack(Ce)}});var Y=/[^\x20\t\r\n\f]+/g;function se(O){var N={};return w.each(O.match(Y)||[],function(K,te){N[te]=!0}),N}w.Callbacks=function(O){O=typeof O=="string"?se(O):w.extend({},O);var N,K,te,Ce,Se=[],Me=[],He=-1,je=function(){for(Ce=Ce||O.once,te=N=!0;Me.length;He=-1)for(K=Me.shift();++He-1;)Se.splice(nt,1),nt<=He&&He--}),this},has:function(it){return it?w.inArray(it,Se)>-1:Se.length>0},empty:function(){return Se&&(Se=[]),this},disable:function(){return Ce=Me=[],Se=K="",this},disabled:function(){return!Se},lock:function(){return Ce=Me=[],!K&&!N&&(Se=K=""),this},locked:function(){return!!Ce},fireWith:function(it,bt){return Ce||(bt=bt||[],bt=[it,bt.slice?bt.slice():bt],Me.push(bt),N||je()),this},fire:function(){return Qe.fireWith(this,arguments),this},fired:function(){return!!te}};return Qe};function be(O){return O}function _e(O){throw O}function re(O,N,K,te){var Ce;try{O&&y(Ce=O.promise)?Ce.call(O).done(N).fail(K):O&&y(Ce=O.then)?Ce.call(O,N,K):N.apply(void 0,[O].slice(te))}catch(Se){K.apply(void 0,[Se])}}w.extend({Deferred:function(O){var N=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],K="pending",te={state:function(){return K},always:function(){return Ce.done(arguments).fail(arguments),this},catch:function(Se){return te.then(null,Se)},pipe:function(){var Se=arguments;return w.Deferred(function(Me){w.each(N,function(He,je){var Qe=y(Se[je[4]])&&Se[je[4]];Ce[je[1]](function(){var it=Qe&&Qe.apply(this,arguments);it&&y(it.promise)?it.promise().progress(Me.notify).done(Me.resolve).fail(Me.reject):Me[je[0]+"With"](this,Qe?[it]:arguments)})}),Se=null}).promise()},then:function(Se,Me,He){var je=0;function Qe(it,bt,nt,lt){return function(){var an=this,yn=arguments,Qt=function(){var xr,Mi;if(!(it=je&&(nt!==_e&&(an=void 0,yn=[xr]),bt.rejectWith(an,yn))}};it?Pr():(w.Deferred.getStackHook&&(Pr.stackTrace=w.Deferred.getStackHook()),t.setTimeout(Pr))}}return w.Deferred(function(it){N[0][3].add(Qe(0,it,y(He)?He:be,it.notifyWith)),N[1][3].add(Qe(0,it,y(Se)?Se:be)),N[2][3].add(Qe(0,it,y(Me)?Me:_e))}).promise()},promise:function(Se){return Se!=null?w.extend(Se,te):te}},Ce={};return w.each(N,function(Se,Me){var He=Me[2],je=Me[5];te[Me[1]]=He.add,je&&He.add(function(){K=je},N[3-Se][2].disable,N[3-Se][3].disable,N[0][2].lock,N[0][3].lock),He.add(Me[3].fire),Ce[Me[0]]=function(){return Ce[Me[0]+"With"](this===Ce?void 0:this,arguments),this},Ce[Me[0]+"With"]=He.fireWith}),te.promise(Ce),O&&O.call(Ce,Ce),Ce},when:function(O){var N=arguments.length,K=N,te=Array(K),Ce=a.call(arguments),Se=w.Deferred(),Me=function(He){return function(je){te[He]=this,Ce[He]=arguments.length>1?a.call(arguments):je,--N||Se.resolveWith(te,Ce)}};if(N<=1&&(re(O,Se.done(Me(K)).resolve,Se.reject,!N),Se.state()==="pending"||y(Ce[K]&&Ce[K].then)))return Se.then();for(;K--;)re(Ce[K],Me(K),Se.reject);return Se.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(O,N){t.console&&t.console.warn&&O&&Q.test(O.name)&&t.console.warn("jQuery.Deferred exception: "+O.message,O.stack,N)},w.readyException=function(O){t.setTimeout(function(){throw O})};var B=w.Deferred();w.fn.ready=function(O){return B.then(O).catch(function(N){w.readyException(N)}),this},w.extend({isReady:!1,readyWait:1,ready:function(O){(O===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(O!==!0&&--w.readyWait>0)&&B.resolveWith(E,[w]))}}),w.ready.then=B.then;function I(){E.removeEventListener("DOMContentLoaded",I),t.removeEventListener("load",I),w.ready()}E.readyState==="complete"||E.readyState!=="loading"&&!E.documentElement.doScroll?t.setTimeout(w.ready):(E.addEventListener("DOMContentLoaded",I),t.addEventListener("load",I));var Z=function(O,N,K,te,Ce,Se,Me){var He=0,je=O.length,Qe=K==null;if(x(K)==="object"){Ce=!0;for(He in K)Z(O,N,He,K[He],!0,Se,Me)}else if(te!==void 0&&(Ce=!0,y(te)||(Me=!0),Qe&&(Me?(N.call(O,te),N=null):(Qe=N,N=function(it,bt,nt){return Qe.call(w(it),nt)})),N))for(;He1,null,!0)},removeData:function(O){return this.each(function(){Te.remove(this,O)})}}),w.extend({queue:function(O,N,K){var te;if(O)return N=(N||"fx")+"queue",te=q.get(O,N),K&&(!te||Array.isArray(K)?te=q.access(O,N,w.makeArray(K)):te.push(K)),te||[]},dequeue:function(O,N){N=N||"fx";var K=w.queue(O,N),te=K.length,Ce=K.shift(),Se=w._queueHooks(O,N),Me=function(){w.dequeue(O,N)};Ce==="inprogress"&&(Ce=K.shift(),te--),Ce&&(N==="fx"&&K.unshift("inprogress"),delete Se.stop,Ce.call(O,Me,Se)),!te&&Se&&Se.empty.fire()},_queueHooks:function(O,N){var K=N+"queueHooks";return q.get(O,K)||q.access(O,K,{empty:w.Callbacks("once memory").add(function(){q.remove(O,[N+"queue",K])})})}}),w.fn.extend({queue:function(O,N){var K=2;return typeof O!="string"&&(N=O,O="fx",K--),arguments.length\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;(function(){var O=E.createDocumentFragment(),N=O.appendChild(E.createElement("div")),K=E.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),N.appendChild(K),_.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="",_.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,N.innerHTML="",_.option=!!N.lastChild})();var It={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,_.option||(It.optgroup=It.option=[1,""]);function ht(O,N){var K;return typeof O.getElementsByTagName!="undefined"?K=O.getElementsByTagName(N||"*"):typeof O.querySelectorAll!="undefined"?K=O.querySelectorAll(N||"*"):K=[],N===void 0||N&&L(O,N)?w.merge([O],K):K}function Rt(O,N){for(var K=0,te=O.length;K-1){Ce&&Ce.push(Se);continue}if(Qe=ne(Se),Me=ht(bt.appendChild(Se),"script"),Qe&&Rt(Me),K)for(it=0;Se=Me[it++];)At.test(Se.type||"")&&K.push(Se)}return bt}var sn=/^([^.]*)(?:\.(.+)|)/;function Zt(){return!0}function Xt(){return!1}function qt(O,N){return O===Jt()==(N==="focus")}function Jt(){try{return E.activeElement}catch{}}function fn(O,N,K,te,Ce,Se){var Me,He;if(typeof N=="object"){typeof K!="string"&&(te=te||K,K=void 0);for(He in N)fn(O,He,K,te,N[He],Se);return O}if(te==null&&Ce==null?(Ce=K,te=K=void 0):Ce==null&&(typeof K=="string"?(Ce=te,te=void 0):(Ce=te,te=K,K=void 0)),Ce===!1)Ce=Xt;else if(!Ce)return O;return Se===1&&(Me=Ce,Ce=function(je){return w().off(je),Me.apply(this,arguments)},Ce.guid=Me.guid||(Me.guid=w.guid++)),O.each(function(){w.event.add(this,N,Ce,te,K)})}w.event={global:{},add:function(O,N,K,te,Ce){var Se,Me,He,je,Qe,it,bt,nt,lt,an,yn,Qt=q.get(O);if(!!G(O))for(K.handler&&(Se=K,K=Se.handler,Ce=Se.selector),Ce&&w.find.matchesSelector(X,Ce),K.guid||(K.guid=w.guid++),(je=Qt.events)||(je=Qt.events=Object.create(null)),(Me=Qt.handle)||(Me=Qt.handle=function(Pr){return typeof w!="undefined"&&w.event.triggered!==Pr.type?w.event.dispatch.apply(O,arguments):void 0}),N=(N||"").match(Y)||[""],Qe=N.length;Qe--;)He=sn.exec(N[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),lt&&(bt=w.event.special[lt]||{},lt=(Ce?bt.delegateType:bt.bindType)||lt,bt=w.event.special[lt]||{},it=w.extend({type:lt,origType:yn,data:te,handler:K,guid:K.guid,selector:Ce,needsContext:Ce&&w.expr.match.needsContext.test(Ce),namespace:an.join(".")},Se),(nt=je[lt])||(nt=je[lt]=[],nt.delegateCount=0,(!bt.setup||bt.setup.call(O,te,an,Me)===!1)&&O.addEventListener&&O.addEventListener(lt,Me)),bt.add&&(bt.add.call(O,it),it.handler.guid||(it.handler.guid=K.guid)),Ce?nt.splice(nt.delegateCount++,0,it):nt.push(it),w.event.global[lt]=!0)},remove:function(O,N,K,te,Ce){var Se,Me,He,je,Qe,it,bt,nt,lt,an,yn,Qt=q.hasData(O)&&q.get(O);if(!(!Qt||!(je=Qt.events))){for(N=(N||"").match(Y)||[""],Qe=N.length;Qe--;){if(He=sn.exec(N[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),!lt){for(lt in je)w.event.remove(O,lt+N[Qe],K,te,!0);continue}for(bt=w.event.special[lt]||{},lt=(te?bt.delegateType:bt.bindType)||lt,nt=je[lt]||[],He=He[2]&&new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"),Me=Se=nt.length;Se--;)it=nt[Se],(Ce||yn===it.origType)&&(!K||K.guid===it.guid)&&(!He||He.test(it.namespace))&&(!te||te===it.selector||te==="**"&&it.selector)&&(nt.splice(Se,1),it.selector&&nt.delegateCount--,bt.remove&&bt.remove.call(O,it));Me&&!nt.length&&((!bt.teardown||bt.teardown.call(O,an,Qt.handle)===!1)&&w.removeEvent(O,lt,Qt.handle),delete je[lt])}w.isEmptyObject(je)&&q.remove(O,"handle events")}},dispatch:function(O){var N,K,te,Ce,Se,Me,He=new Array(arguments.length),je=w.event.fix(O),Qe=(q.get(this,"events")||Object.create(null))[je.type]||[],it=w.event.special[je.type]||{};for(He[0]=je,N=1;N=1)){for(;Qe!==this;Qe=Qe.parentNode||this)if(Qe.nodeType===1&&!(O.type==="click"&&Qe.disabled===!0)){for(Se=[],Me={},K=0;K-1:w.find(Ce,this,null,[Qe]).length),Me[Ce]&&Se.push(te);Se.length&&He.push({elem:Qe,handlers:Se})}}return Qe=this,je\s*$/g;function Wt(O,N){return L(O,"table")&&L(N.nodeType!==11?N:N.firstChild,"tr")&&w(O).children("tbody")[0]||O}function Oe(O){return O.type=(O.getAttribute("type")!==null)+"/"+O.type,O}function Be(O){return(O.type||"").slice(0,5)==="true/"?O.type=O.type.slice(5):O.removeAttribute("type"),O}function Fe(O,N){var K,te,Ce,Se,Me,He,je;if(N.nodeType===1){if(q.hasData(O)&&(Se=q.get(O),je=Se.events,je)){q.remove(N,"handle events");for(Ce in je)for(K=0,te=je[Ce].length;K1&&typeof lt=="string"&&!_.checkClone&&at.test(lt))return O.each(function(yn){var Qt=O.eq(yn);an&&(N[0]=lt.call(this,yn,Qt.html())),tt(Qt,N,K,te)});if(bt&&(Ce=pn(N,O[0].ownerDocument,!1,O,te),Se=Ce.firstChild,Ce.childNodes.length===1&&(Ce=Se),Se||te)){for(Me=w.map(ht(Ce,"script"),Oe),He=Me.length;it0&&Rt(Me,!je&&ht(O,"script")),He},cleanData:function(O){for(var N,K,te,Ce=w.event.special,Se=0;(K=O[Se])!==void 0;Se++)if(G(K)){if(N=K[q.expando]){if(N.events)for(te in N.events)Ce[te]?w.event.remove(K,te):w.removeEvent(K,te,N.handle);K[q.expando]=void 0}K[Te.expando]&&(K[Te.expando]=void 0)}}}),w.fn.extend({detach:function(O){return ot(this,O,!0)},remove:function(O){return ot(this,O)},text:function(O){return Z(this,function(N){return N===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=N)})},null,O,arguments.length)},append:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var N=Wt(this,O);N.appendChild(O)}})},prepend:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var N=Wt(this,O);N.insertBefore(O,N.firstChild)}})},before:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this)})},after:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this.nextSibling)})},empty:function(){for(var O,N=0;(O=this[N])!=null;N++)O.nodeType===1&&(w.cleanData(ht(O,!1)),O.textContent="");return this},clone:function(O,N){return O=O==null?!1:O,N=N==null?O:N,this.map(function(){return w.clone(this,O,N)})},html:function(O){return Z(this,function(N){var K=this[0]||{},te=0,Ce=this.length;if(N===void 0&&K.nodeType===1)return K.innerHTML;if(typeof N=="string"&&!rt.test(N)&&!It[(Pt.exec(N)||["",""])[1].toLowerCase()]){N=w.htmlPrefilter(N);try{for(;te=0&&(je+=Math.max(0,Math.ceil(O["offset"+N[0].toUpperCase()+N.slice(1)]-Se-je-He-.5))||0),je}function Ki(O,N,K){var te=Dt(O),Ce=!_.boxSizingReliable()||K,Se=Ce&&w.css(O,"boxSizing",!1,te)==="border-box",Me=Se,He=en(O,N,te),je="offset"+N[0].toUpperCase()+N.slice(1);if(pt.test(He)){if(!K)return He;He="auto"}return(!_.boxSizingReliable()&&Se||!_.reliableTrDimensions()&&L(O,"tr")||He==="auto"||!parseFloat(He)&&w.css(O,"display",!1,te)==="inline")&&O.getClientRects().length&&(Se=w.css(O,"boxSizing",!1,te)==="border-box",Me=je in O,Me&&(He=O[je])),He=parseFloat(He)||0,He+Ti(O,N,K||(Se?"border":"content"),Me,te,He)+"px"}w.extend({cssHooks:{opacity:{get:function(O,N){if(N){var K=en(O,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(O,N,K,te){if(!(!O||O.nodeType===3||O.nodeType===8||!O.style)){var Ce,Se,Me,He=J(N),je=yt.test(N),Qe=O.style;if(je||(N=Xn(He)),Me=w.cssHooks[N]||w.cssHooks[He],K!==void 0){if(Se=typeof K,Se==="string"&&(Ce=F.exec(K))&&Ce[1]&&(K=fe(O,N,Ce),Se="number"),K==null||K!==K)return;Se==="number"&&!je&&(K+=Ce&&Ce[3]||(w.cssNumber[He]?"":"px")),!_.clearCloneStyle&&K===""&&N.indexOf("background")===0&&(Qe[N]="inherit"),(!Me||!("set"in Me)||(K=Me.set(O,K,te))!==void 0)&&(je?Qe.setProperty(N,K):Qe[N]=K)}else return Me&&"get"in Me&&(Ce=Me.get(O,!1,te))!==void 0?Ce:Qe[N]}},css:function(O,N,K,te){var Ce,Se,Me,He=J(N),je=yt.test(N);return je||(N=Xn(He)),Me=w.cssHooks[N]||w.cssHooks[He],Me&&"get"in Me&&(Ce=Me.get(O,!0,K)),Ce===void 0&&(Ce=en(O,N,te)),Ce==="normal"&&N in Hi&&(Ce=Hi[N]),K===""||K?(Se=parseFloat(Ce),K===!0||isFinite(Se)?Se||0:Ce):Ce}}),w.each(["height","width"],function(O,N){w.cssHooks[N]={get:function(K,te,Ce){if(te)return Xr.test(w.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Vt(K,Or,function(){return Ki(K,N,Ce)}):Ki(K,N,Ce)},set:function(K,te,Ce){var Se,Me=Dt(K),He=!_.scrollboxSize()&&Me.position==="absolute",je=He||Ce,Qe=je&&w.css(K,"boxSizing",!1,Me)==="border-box",it=Ce?Ti(K,N,Ce,Qe,Me):0;return Qe&&He&&(it-=Math.ceil(K["offset"+N[0].toUpperCase()+N.slice(1)]-parseFloat(Me[N])-Ti(K,N,"border",!1,Me)-.5)),it&&(Se=F.exec(te))&&(Se[3]||"px")!=="px"&&(K.style[N]=te,te=w.css(K,N)),ri(K,te,it)}}}),w.cssHooks.marginLeft=on(_.reliableMarginLeft,function(O,N){if(N)return(parseFloat(en(O,"marginLeft"))||O.getBoundingClientRect().left-Vt(O,{marginLeft:0},function(){return O.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(O,N){w.cssHooks[O+N]={expand:function(K){for(var te=0,Ce={},Se=typeof K=="string"?K.split(" "):[K];te<4;te++)Ce[O+W[te]+N]=Se[te]||Se[te-2]||Se[0];return Ce}},O!=="margin"&&(w.cssHooks[O+N].set=ri)}),w.fn.extend({css:function(O,N){return Z(this,function(K,te,Ce){var Se,Me,He={},je=0;if(Array.isArray(te)){for(Se=Dt(K),Me=te.length;je1)}});function _r(O,N,K,te,Ce){return new _r.prototype.init(O,N,K,te,Ce)}w.Tween=_r,_r.prototype={constructor:_r,init:function(O,N,K,te,Ce,Se){this.elem=O,this.prop=K,this.easing=Ce||w.easing._default,this.options=N,this.start=this.now=this.cur(),this.end=te,this.unit=Se||(w.cssNumber[K]?"":"px")},cur:function(){var O=_r.propHooks[this.prop];return O&&O.get?O.get(this):_r.propHooks._default.get(this)},run:function(O){var N,K=_r.propHooks[this.prop];return this.options.duration?this.pos=N=w.easing[this.easing](O,this.options.duration*O,0,1,this.options.duration):this.pos=N=O,this.now=(this.end-this.start)*N+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):_r.propHooks._default.set(this),this}},_r.prototype.init.prototype=_r.prototype,_r.propHooks={_default:{get:function(O){var N;return O.elem.nodeType!==1||O.elem[O.prop]!=null&&O.elem.style[O.prop]==null?O.elem[O.prop]:(N=w.css(O.elem,O.prop,""),!N||N==="auto"?0:N)},set:function(O){w.fx.step[O.prop]?w.fx.step[O.prop](O):O.elem.nodeType===1&&(w.cssHooks[O.prop]||O.elem.style[Xn(O.prop)]!=null)?w.style(O.elem,O.prop,O.now+O.unit):O.elem[O.prop]=O.now}}},_r.propHooks.scrollTop=_r.propHooks.scrollLeft={set:function(O){O.elem.nodeType&&O.elem.parentNode&&(O.elem[O.prop]=O.now)}},w.easing={linear:function(O){return O},swing:function(O){return .5-Math.cos(O*Math.PI)/2},_default:"swing"},w.fx=_r.prototype.init,w.fx.step={};var Wr,Ai,Gi=/^(?:toggle|show|hide)$/,Ie=/queueHooks$/;function We(){Ai&&(E.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(We):t.setTimeout(We,w.fx.interval),w.fx.tick())}function Ne(){return t.setTimeout(function(){Wr=void 0}),Wr=Date.now()}function Ye(O,N){var K,te=0,Ce={height:O};for(N=N?1:0;te<4;te+=2-N)K=W[te],Ce["margin"+K]=Ce["padding"+K]=O;return N&&(Ce.opacity=Ce.width=O),Ce}function Ze(O,N,K){for(var te,Ce=(mt.tweeners[N]||[]).concat(mt.tweeners["*"]),Se=0,Me=Ce.length;Se1)},removeAttr:function(O){return this.each(function(){w.removeAttr(this,O)})}}),w.extend({attr:function(O,N,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2)){if(typeof O.getAttribute=="undefined")return w.prop(O,N,K);if((Se!==1||!w.isXMLDoc(O))&&(Ce=w.attrHooks[N.toLowerCase()]||(w.expr.match.bool.test(N)?kt:void 0)),K!==void 0){if(K===null){w.removeAttr(O,N);return}return Ce&&"set"in Ce&&(te=Ce.set(O,K,N))!==void 0?te:(O.setAttribute(N,K+""),K)}return Ce&&"get"in Ce&&(te=Ce.get(O,N))!==null?te:(te=w.find.attr(O,N),te==null?void 0:te)}},attrHooks:{type:{set:function(O,N){if(!_.radioValue&&N==="radio"&&L(O,"input")){var K=O.value;return O.setAttribute("type",N),K&&(O.value=K),N}}}},removeAttr:function(O,N){var K,te=0,Ce=N&&N.match(Y);if(Ce&&O.nodeType===1)for(;K=Ce[te++];)O.removeAttribute(K)}}),kt={set:function(O,N,K){return N===!1?w.removeAttr(O,K):O.setAttribute(K,K),K}},w.each(w.expr.match.bool.source.match(/\w+/g),function(O,N){var K=St[N]||w.find.attr;St[N]=function(te,Ce,Se){var Me,He,je=Ce.toLowerCase();return Se||(He=St[je],St[je]=Me,Me=K(te,Ce,Se)!=null?je:null,St[je]=He),Me}});var Ct=/^(?:input|select|textarea|button)$/i,Ht=/^(?:a|area)$/i;w.fn.extend({prop:function(O,N){return Z(this,w.prop,O,N,arguments.length>1)},removeProp:function(O){return this.each(function(){delete this[w.propFix[O]||O]})}}),w.extend({prop:function(O,N,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2))return(Se!==1||!w.isXMLDoc(O))&&(N=w.propFix[N]||N,Ce=w.propHooks[N]),K!==void 0?Ce&&"set"in Ce&&(te=Ce.set(O,K,N))!==void 0?te:O[N]=K:Ce&&"get"in Ce&&(te=Ce.get(O,N))!==null?te:O[N]},propHooks:{tabIndex:{get:function(O){var N=w.find.attr(O,"tabindex");return N?parseInt(N,10):Ct.test(O.nodeName)||Ht.test(O.nodeName)&&O.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(O){var N=O.parentNode;return N&&N.parentNode&&N.parentNode.selectedIndex,null},set:function(O){var N=O.parentNode;N&&(N.selectedIndex,N.parentNode&&N.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function vn(O){var N=O.match(Y)||[];return N.join(" ")}function xn(O){return O.getAttribute&&O.getAttribute("class")||""}function Et(O){return Array.isArray(O)?O:typeof O=="string"?O.match(Y)||[]:[]}w.fn.extend({addClass:function(O){var N,K,te,Ce,Se,Me;return y(O)?this.each(function(He){w(this).addClass(O.call(this,He,xn(this)))}):(N=Et(O),N.length?this.each(function(){if(te=xn(this),K=this.nodeType===1&&" "+vn(te)+" ",K){for(Se=0;Se-1;)K=K.replace(" "+Ce+" "," ");Me=vn(K),te!==Me&&this.setAttribute("class",Me)}}):this):this.attr("class","")},toggleClass:function(O,N){var K,te,Ce,Se,Me=typeof O,He=Me==="string"||Array.isArray(O);return y(O)?this.each(function(je){w(this).toggleClass(O.call(this,je,xn(this),N),N)}):typeof N=="boolean"&&He?N?this.addClass(O):this.removeClass(O):(K=Et(O),this.each(function(){if(He)for(Se=w(this),Ce=0;Ce-1)return!0;return!1}});var er=/\r/g;w.fn.extend({val:function(O){var N,K,te,Ce=this[0];return arguments.length?(te=y(O),this.each(function(Se){var Me;this.nodeType===1&&(te?Me=O.call(this,Se,w(this).val()):Me=O,Me==null?Me="":typeof Me=="number"?Me+="":Array.isArray(Me)&&(Me=w.map(Me,function(He){return He==null?"":He+""})),N=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!N||!("set"in N)||N.set(this,Me,"value")===void 0)&&(this.value=Me))})):Ce?(N=w.valHooks[Ce.type]||w.valHooks[Ce.nodeName.toLowerCase()],N&&"get"in N&&(K=N.get(Ce,"value"))!==void 0?K:(K=Ce.value,typeof K=="string"?K.replace(er,""):K==null?"":K)):void 0}}),w.extend({valHooks:{option:{get:function(O){var N=w.find.attr(O,"value");return N!=null?N:vn(w.text(O))}},select:{get:function(O){var N,K,te,Ce=O.options,Se=O.selectedIndex,Me=O.type==="select-one",He=Me?null:[],je=Me?Se+1:Ce.length;for(Se<0?te=je:te=Me?Se:0;te-1)&&(K=!0);return K||(O.selectedIndex=-1),Se}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(O,N){if(Array.isArray(N))return O.checked=w.inArray(w(O).val(),N)>-1}},_.checkOn||(w.valHooks[this].get=function(O){return O.getAttribute("value")===null?"on":O.value})}),_.focusin="onfocusin"in t;var En=/^(?:focusinfocus|focusoutblur)$/,cr=function(O){O.stopPropagation()};w.extend(w.event,{trigger:function(O,N,K,te){var Ce,Se,Me,He,je,Qe,it,bt,nt=[K||E],lt=d.call(O,"type")?O.type:O,an=d.call(O,"namespace")?O.namespace.split("."):[];if(Se=bt=Me=K=K||E,!(K.nodeType===3||K.nodeType===8)&&!En.test(lt+w.event.triggered)&&(lt.indexOf(".")>-1&&(an=lt.split("."),lt=an.shift(),an.sort()),je=lt.indexOf(":")<0&&"on"+lt,O=O[w.expando]?O:new w.Event(lt,typeof O=="object"&&O),O.isTrigger=te?2:3,O.namespace=an.join("."),O.rnamespace=O.namespace?new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,O.result=void 0,O.target||(O.target=K),N=N==null?[O]:w.makeArray(N,[O]),it=w.event.special[lt]||{},!(!te&&it.trigger&&it.trigger.apply(K,N)===!1))){if(!te&&!it.noBubble&&!b(K)){for(He=it.delegateType||lt,En.test(He+lt)||(Se=Se.parentNode);Se;Se=Se.parentNode)nt.push(Se),Me=Se;Me===(K.ownerDocument||E)&&nt.push(Me.defaultView||Me.parentWindow||t)}for(Ce=0;(Se=nt[Ce++])&&!O.isPropagationStopped();)bt=Se,O.type=Ce>1?He:it.bindType||lt,Qe=(q.get(Se,"events")||Object.create(null))[O.type]&&q.get(Se,"handle"),Qe&&Qe.apply(Se,N),Qe=je&&Se[je],Qe&&Qe.apply&&G(Se)&&(O.result=Qe.apply(Se,N),O.result===!1&&O.preventDefault());return O.type=lt,!te&&!O.isDefaultPrevented()&&(!it._default||it._default.apply(nt.pop(),N)===!1)&&G(K)&&je&&y(K[lt])&&!b(K)&&(Me=K[je],Me&&(K[je]=null),w.event.triggered=lt,O.isPropagationStopped()&&bt.addEventListener(lt,cr),K[lt](),O.isPropagationStopped()&&bt.removeEventListener(lt,cr),w.event.triggered=void 0,Me&&(K[je]=Me)),O.result}},simulate:function(O,N,K){var te=w.extend(new w.Event,K,{type:O,isSimulated:!0});w.event.trigger(te,null,N)}}),w.fn.extend({trigger:function(O,N){return this.each(function(){w.event.trigger(O,N,this)})},triggerHandler:function(O,N){var K=this[0];if(K)return w.event.trigger(O,N,K,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(O,N){var K=function(te){w.event.simulate(N,te.target,w.event.fix(te))};w.event.special[N]={setup:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,N);Ce||te.addEventListener(O,K,!0),q.access(te,N,(Ce||0)+1)},teardown:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,N)-1;Ce?q.access(te,N,Ce):(te.removeEventListener(O,K,!0),q.remove(te,N))}}});var gi=t.location,Jr={guid:Date.now()},Hr=/\?/;w.parseXML=function(O){var N,K;if(!O||typeof O!="string")return null;try{N=new t.DOMParser().parseFromString(O,"text/xml")}catch{}return K=N&&N.getElementsByTagName("parsererror")[0],(!N||K)&&w.error("Invalid XML: "+(K?w.map(K.childNodes,function(te){return te.textContent}).join(`
`):O)),N};var Pa=/\[\]$/,gt=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,cd=/^(?:input|select|textarea|keygen)/i;function ro(O,N,K,te){var Ce;if(Array.isArray(N))w.each(N,function(Se,Me){K||Pa.test(O)?te(O,Me):ro(O+"["+(typeof Me=="object"&&Me!=null?Se:"")+"]",Me,K,te)});else if(!K&&x(N)==="object")for(Ce in N)ro(O+"["+Ce+"]",N[Ce],K,te);else te(O,N)}w.param=function(O,N){var K,te=[],Ce=function(Se,Me){var He=y(Me)?Me():Me;te[te.length]=encodeURIComponent(Se)+"="+encodeURIComponent(He==null?"":He)};if(O==null)return"";if(Array.isArray(O)||O.jquery&&!w.isPlainObject(O))w.each(O,function(){Ce(this.name,this.value)});else for(K in O)ro(K,O[K],N,Ce);return te.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var O=w.prop(this,"elements");return O?w.makeArray(O):this}).filter(function(){var O=this.type;return this.name&&!w(this).is(":disabled")&&cd.test(this.nodeName)&&!no.test(O)&&(this.checked||!_t.test(O))}).map(function(O,N){var K=w(this).val();return K==null?null:Array.isArray(K)?w.map(K,function(te){return{name:N.name,value:te.replace(gt,`\r
`)}}):{name:N.name,value:K.replace(gt,`\r
`)}}).get()}});var H_=/%20/g,K_=/#.*$/,Bh=/([?&])_=[^&]*/,Fu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,jh=/^(?:GET|HEAD)$/,G_=/^\/\//,Uh={},dd={},fd="*/".concat("*"),Ro=E.createElement("a");Ro.href=gi.href;function hd(O){return function(N,K){typeof N!="string"&&(K=N,N="*");var te,Ce=0,Se=N.toLowerCase().match(Y)||[];if(y(K))for(;te=Se[Ce++];)te[0]==="+"?(te=te.slice(1)||"*",(O[te]=O[te]||[]).unshift(K)):(O[te]=O[te]||[]).push(K)}}function pd(O,N,K,te){var Ce={},Se=O===dd;function Me(He){var je;return Ce[He]=!0,w.each(O[He]||[],function(Qe,it){var bt=it(N,K,te);if(typeof bt=="string"&&!Se&&!Ce[bt])return N.dataTypes.unshift(bt),Me(bt),!1;if(Se)return!(je=bt)}),je}return Me(N.dataTypes[0])||!Ce["*"]&&Me("*")}function vd(O,N){var K,te,Ce=w.ajaxSettings.flatOptions||{};for(K in N)N[K]!==void 0&&((Ce[K]?O:te||(te={}))[K]=N[K]);return te&&w.extend(!0,O,te),O}function ju(O,N,K){for(var te,Ce,Se,Me,He=O.contents,je=O.dataTypes;je[0]==="*";)je.shift(),te===void 0&&(te=O.mimeType||N.getResponseHeader("Content-Type"));if(te){for(Ce in He)if(He[Ce]&&He[Ce].test(te)){je.unshift(Ce);break}}if(je[0]in K)Se=je[0];else{for(Ce in K){if(!je[0]||O.converters[Ce+" "+je[0]]){Se=Ce;break}Me||(Me=Ce)}Se=Se||Me}if(Se)return Se!==je[0]&&je.unshift(Se),K[Se]}function Y_(O,N,K,te){var Ce,Se,Me,He,je,Qe={},it=O.dataTypes.slice();if(it[1])for(Me in O.converters)Qe[Me.toLowerCase()]=O.converters[Me];for(Se=it.shift();Se;)if(O.responseFields[Se]&&(K[O.responseFields[Se]]=N),!je&&te&&O.dataFilter&&(N=O.dataFilter(N,O.dataType)),je=Se,Se=it.shift(),Se){if(Se==="*")Se=je;else if(je!=="*"&&je!==Se){if(Me=Qe[je+" "+Se]||Qe["* "+Se],!Me){for(Ce in Qe)if(He=Ce.split(" "),He[1]===Se&&(Me=Qe[je+" "+He[0]]||Qe["* "+He[0]],Me)){Me===!0?Me=Qe[Ce]:Qe[Ce]!==!0&&(Se=He[0],it.unshift(He[1]));break}}if(Me!==!0)if(Me&&O.throws)N=Me(N);else try{N=Me(N)}catch(bt){return{state:"parsererror",error:Me?bt:"No conversion from "+je+" to "+Se}}}}return{state:"success",data:N}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gi.href,type:"GET",isLocal:Fh.test(gi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(O,N){return N?vd(vd(O,w.ajaxSettings),N):vd(w.ajaxSettings,O)},ajaxPrefilter:hd(Uh),ajaxTransport:hd(dd),ajax:function(O,N){typeof O=="object"&&(N=O,O=void 0),N=N||{};var K,te,Ce,Se,Me,He,je,Qe,it,bt,nt=w.ajaxSetup({},N),lt=nt.context||nt,an=nt.context&&(lt.nodeType||lt.jquery)?w(lt):w.event,yn=w.Deferred(),Qt=w.Callbacks("once memory"),Pr=nt.statusCode||{},xr={},Mi={},Hn="canceled",bn={readyState:0,getResponseHeader:function(Rn){var ir;if(je){if(!Se)for(Se={};ir=Fu.exec(Ce);)Se[ir[1].toLowerCase()+" "]=(Se[ir[1].toLowerCase()+" "]||[]).concat(ir[2]);ir=Se[Rn.toLowerCase()+" "]}return ir==null?null:ir.join(", ")},getAllResponseHeaders:function(){return je?Ce:null},setRequestHeader:function(Rn,ir){return je==null&&(Rn=Mi[Rn.toLowerCase()]=Mi[Rn.toLowerCase()]||Rn,xr[Rn]=ir),this},overrideMimeType:function(Rn){return je==null&&(nt.mimeType=Rn),this},statusCode:function(Rn){var ir;if(Rn)if(je)bn.always(Rn[bn.status]);else for(ir in Rn)Pr[ir]=[Pr[ir],Rn[ir]];return this},abort:function(Rn){var ir=Rn||Hn;return K&&K.abort(ir),ii(0,ir),this}};if(yn.promise(bn),nt.url=((O||nt.url||gi.href)+"").replace(G_,gi.protocol+"//"),nt.type=N.method||N.type||nt.method||nt.type,nt.dataTypes=(nt.dataType||"*").toLowerCase().match(Y)||[""],nt.crossDomain==null){He=E.createElement("a");try{He.href=nt.url,He.href=He.href,nt.crossDomain=Ro.protocol+"//"+Ro.host!=He.protocol+"//"+He.host}catch{nt.crossDomain=!0}}if(nt.data&&nt.processData&&typeof nt.data!="string"&&(nt.data=w.param(nt.data,nt.traditional)),pd(Uh,nt,N,bn),je)return bn;Qe=w.event&&nt.global,Qe&&w.active++===0&&w.event.trigger("ajaxStart"),nt.type=nt.type.toUpperCase(),nt.hasContent=!jh.test(nt.type),te=nt.url.replace(K_,""),nt.hasContent?nt.data&&nt.processData&&(nt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(nt.data=nt.data.replace(H_,"+")):(bt=nt.url.slice(te.length),nt.data&&(nt.processData||typeof nt.data=="string")&&(te+=(Hr.test(te)?"&":"?")+nt.data,delete nt.data),nt.cache===!1&&(te=te.replace(Bh,"$1"),bt=(Hr.test(te)?"&":"?")+"_="+Jr.guid+++bt),nt.url=te+bt),nt.ifModified&&(w.lastModified[te]&&bn.setRequestHeader("If-Modified-Since",w.lastModified[te]),w.etag[te]&&bn.setRequestHeader("If-None-Match",w.etag[te])),(nt.data&&nt.hasContent&&nt.contentType!==!1||N.contentType)&&bn.setRequestHeader("Content-Type",nt.contentType),bn.setRequestHeader("Accept",nt.dataTypes[0]&&nt.accepts[nt.dataTypes[0]]?nt.accepts[nt.dataTypes[0]]+(nt.dataTypes[0]!=="*"?", "+fd+"; q=0.01":""):nt.accepts["*"]);for(it in nt.headers)bn.setRequestHeader(it,nt.headers[it]);if(nt.beforeSend&&(nt.beforeSend.call(lt,bn,nt)===!1||je))return bn.abort();if(Hn="abort",Qt.add(nt.complete),bn.done(nt.success),bn.fail(nt.error),K=pd(dd,nt,N,bn),!K)ii(-1,"No Transport");else{if(bn.readyState=1,Qe&&an.trigger("ajaxSend",[bn,nt]),je)return bn;nt.async&&nt.timeout>0&&(Me=t.setTimeout(function(){bn.abort("timeout")},nt.timeout));try{je=!1,K.send(xr,ii)}catch(Rn){if(je)throw Rn;ii(-1,Rn)}}function ii(Rn,ir,No,zu){var Ii,io,vs,Kr,Ua,$i=ir;je||(je=!0,Me&&t.clearTimeout(Me),K=void 0,Ce=zu||"",bn.readyState=Rn>0?4:0,Ii=Rn>=200&&Rn<300||Rn===304,No&&(Kr=ju(nt,bn,No)),!Ii&&w.inArray("script",nt.dataTypes)>-1&&w.inArray("json",nt.dataTypes)<0&&(nt.converters["text script"]=function(){}),Kr=Y_(nt,Kr,bn,Ii),Ii?(nt.ifModified&&(Ua=bn.getResponseHeader("Last-Modified"),Ua&&(w.lastModified[te]=Ua),Ua=bn.getResponseHeader("etag"),Ua&&(w.etag[te]=Ua)),Rn===204||nt.type==="HEAD"?$i="nocontent":Rn===304?$i="notmodified":($i=Kr.state,io=Kr.data,vs=Kr.error,Ii=!vs)):(vs=$i,(Rn||!$i)&&($i="error",Rn<0&&(Rn=0))),bn.status=Rn,bn.statusText=(ir||$i)+"",Ii?yn.resolveWith(lt,[io,$i,bn]):yn.rejectWith(lt,[bn,$i,vs]),bn.statusCode(Pr),Pr=void 0,Qe&&an.trigger(Ii?"ajaxSuccess":"ajaxError",[bn,nt,Ii?io:vs]),Qt.fireWith(lt,[bn,$i]),Qe&&(an.trigger("ajaxComplete",[bn,nt]),--w.active||w.event.trigger("ajaxStop")))}return bn},getJSON:function(O,N,K){return w.get(O,N,K,"json")},getScript:function(O,N){return w.get(O,void 0,N,"script")}}),w.each(["get","post"],function(O,N){w[N]=function(K,te,Ce,Se){return y(te)&&(Se=Se||Ce,Ce=te,te=void 0),w.ajax(w.extend({url:K,type:N,dataType:Se,data:te,success:Ce},w.isPlainObject(K)&&K))}}),w.ajaxPrefilter(function(O){var N;for(N in O.headers)N.toLowerCase()==="content-type"&&(O.contentType=O.headers[N]||"")}),w._evalUrl=function(O,N,K){return w.ajax({url:O,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(te){w.globalEval(te,N,K)}})},w.fn.extend({wrapAll:function(O){var N;return this[0]&&(y(O)&&(O=O.call(this[0])),N=w(O,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&N.insertBefore(this[0]),N.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(O){return y(O)?this.each(function(N){w(this).wrapInner(O.call(this,N))}):this.each(function(){var N=w(this),K=N.contents();K.length?K.wrapAll(O):N.append(O)})},wrap:function(O){var N=y(O);return this.each(function(K){w(this).wrapAll(N?O.call(this,K):O)})},unwrap:function(O){return this.parent(O).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(O){return!w.expr.pseudos.visible(O)},w.expr.pseudos.visible=function(O){return!!(O.offsetWidth||O.offsetHeight||O.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var X_={0:200,1223:204},Lo=w.ajaxSettings.xhr();_.cors=!!Lo&&"withCredentials"in Lo,_.ajax=Lo=!!Lo,w.ajaxTransport(function(O){var N,K;if(_.cors||Lo&&!O.crossDomain)return{send:function(te,Ce){var Se,Me=O.xhr();if(Me.open(O.type,O.url,O.async,O.username,O.password),O.xhrFields)for(Se in O.xhrFields)Me[Se]=O.xhrFields[Se];O.mimeType&&Me.overrideMimeType&&Me.overrideMimeType(O.mimeType),!O.crossDomain&&!te["X-Requested-With"]&&(te["X-Requested-With"]="XMLHttpRequest");for(Se in te)Me.setRequestHeader(Se,te[Se]);N=function(He){return function(){N&&(N=K=Me.onload=Me.onerror=Me.onabort=Me.ontimeout=Me.onreadystatechange=null,He==="abort"?Me.abort():He==="error"?typeof Me.status!="number"?Ce(0,"error"):Ce(Me.status,Me.statusText):Ce(X_[Me.status]||Me.status,Me.statusText,(Me.responseType||"text")!=="text"||typeof Me.responseText!="string"?{binary:Me.response}:{text:Me.responseText},Me.getAllResponseHeaders()))}},Me.onload=N(),K=Me.onerror=Me.ontimeout=N("error"),Me.onabort!==void 0?Me.onabort=K:Me.onreadystatechange=function(){Me.readyState===4&&t.setTimeout(function(){N&&K()})},N=N("abort");try{Me.send(O.hasContent&&O.data||null)}catch(He){if(N)throw He}},abort:function(){N&&N()}}}),w.ajaxPrefilter(function(O){O.crossDomain&&(O.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(O){return w.globalEval(O),O}}}),w.ajaxPrefilter("script",function(O){O.cache===void 0&&(O.cache=!1),O.crossDomain&&(O.type="GET")}),w.ajaxTransport("script",function(O){if(O.crossDomain||O.scriptAttrs){var N,K;return{send:function(te,Ce){N=w("