var _=function(e){"use strict";
/**
  * @vue/shared v3.5.18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/
/*! #__NO_SIDE_EFFECTS__ */function t(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const n=Object.freeze({}),r=Object.freeze([]),i=()=>{},a=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),l=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,d=(e,t)=>c.call(e,t),f=Array.isArray,h=e=>"[object Map]"===S(e),p=e=>"[object Set]"===S(e),m=e=>"[object Date]"===S(e),v=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,w=e=>(b(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,S=e=>x.call(e),_=e=>S(e).slice(8,-1),k=e=>"[object Object]"===S(e),A=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),O=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=O(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),E=/\B([A-Z])/g,M=O(e=>e.replace(E,"-$1").toLowerCase()),D=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),R=O(e=>e?`on${D(e)}`:""),L=(e,t)=>!Object.is(e,t),N=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},j=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let z;const B=()=>z||(z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function V(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=g(r)?X(r):V(r);if(i)for(const e in i)t[e]=i[e]}return t}if(g(e)||b(e))return e}const H=/;(?![^(]*\))/g,W=/:([^]+)/,U=/\/\*[^]*?\*\//g;function X(e){const t={};return e.replace(U,"").split(H).forEach(e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function G(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=G(e[n]);r&&(t+=r+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Y=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),K=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),q=t("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),Z=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function Q(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Q(e[r],t[r]);return n}(e,t);if(n=b(e),r=b(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Q(e[n],t[n]))return!1}}return String(e)===String(t)}function ee(e,t){return e.findIndex(e=>Q(e,t))}const te=e=>!(!e||!0!==e.__v_isRef),ne=e=>g(e)?e:null==e?"":f(e)||b(e)&&(e.toString===x||!v(e.toString))?te(e)?ne(e.value):JSON.stringify(e,re,2):String(e),re=(e,t)=>te(t)?re(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ie(t,r)+" =>"]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ie(e))}:y(t)?ie(t):!b(t)||f(t)||k(t)?t:String(t),ie=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
/**
  * @vue/reactivity v3.5.18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/
function ae(e,...t){}let oe,se;class le{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=oe,!e&&oe&&(this.index=(oe.scopes||(oe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=oe;try{return oe=this,e()}finally{oe=t}}}on(){1===++this._on&&(this.prevScope=oe,oe=this)}off(){this._on>0&&0===--this._on&&(oe=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ue(e){return new le(e)}function ce(){return oe}const de=new WeakSet;class fe{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,oe&&oe.active&&oe.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,de.has(this)&&(de.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ve(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Ie(this),be(this);const e=se,t=Ae;se=this,Ae=!0;try{return this.fn()}finally{we(this),se=e,Ae=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)_e(e);this.deps=this.depsTail=void 0,Ie(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?de.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xe(this)&&this.run()}get dirty(){return xe(this)}}let he,pe,me=0;function ve(e,t=!1){if(e.flags|=8,t)return e.next=pe,void(pe=e);e.next=he,he=e}function ge(){me++}function ye(){if(--me>0)return;if(pe){let e=pe;for(pe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;he;){let n=he;for(he=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function be(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function we(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),_e(r),ke(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function xe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Se(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Se(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Pe)return;if(e.globalVersion=Pe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!xe(e)))return;e.flags|=2;const t=e.dep,n=se,r=Ae;se=e,Ae=!0;try{be(e);const n=e.fn(e._value);(0===t.version||L(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(i){throw t.version++,i}finally{se=n,Ae=r,we(e),e.flags&=-3}}function _e(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)_e(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ke(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ae=!0;const Ce=[];function Te(){Ce.push(Ae),Ae=!1}function Oe(){const e=Ce.pop();Ae=void 0===e||e}function Ie(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Pe=0;class Ee{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Me{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(e){if(!se||!Ae||se===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==se)t=this.activeLink=new Ee(se,this),se.deps?(t.prevDep=se.depsTail,se.depsTail.nextDep=t,se.depsTail=t):se.deps=se.depsTail=t,De(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=se.depsTail,t.nextDep=void 0,se.depsTail.nextDep=t,se.depsTail=t,se.deps===t&&(se.deps=e)}return se.onTrack&&se.onTrack(l({effect:se},e)),t}trigger(e){this.version++,Pe++,this.notify(e)}notify(e){ge();try{for(let t=this.subsHead;t;t=t.nextSub)!t.sub.onTrigger||8&t.sub.flags||t.sub.onTrigger(l({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ye()}}}function De(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)De(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),void 0===e.dep.subsHead&&(e.dep.subsHead=e),e.dep.subs=e}}const Re=new WeakMap,Le=Symbol("Object iterate"),Ne=Symbol("Map keys iterate"),je=Symbol("Array iterate");function Fe(e,t,n){if(Ae&&se){let r=Re.get(e);r||Re.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Me),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function ze(e,t,n,r,i,a){const o=Re.get(e);if(!o)return void Pe++;const s=o=>{o&&o.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a})};if(ge(),"clear"===t)o.forEach(s);else{const i=f(e),a=i&&A(n);if(i&&"length"===n){const e=Number(r);o.forEach((t,n)=>{("length"===n||n===je||!y(n)&&n>=e)&&s(t)})}else switch((void 0!==n||o.has(void 0))&&s(o.get(n)),a&&s(o.get(je)),t){case"add":i?a&&s(o.get("length")):(s(o.get(Le)),h(e)&&s(o.get(Ne)));break;case"delete":i||(s(o.get(Le)),h(e)&&s(o.get(Ne)));break;case"set":h(e)&&s(o.get(Le))}}ye()}function Be(e){const t=Tt(e);return t===e?t:(Fe(t,"iterate",je),At(e)?t:t.map(Ot))}function Ve(e){return Fe(e=Tt(e),"iterate",je),e}const He={__proto__:null,[Symbol.iterator](){return We(this,Symbol.iterator,Ot)},concat(...e){return Be(this).concat(...e.map(e=>f(e)?Be(e):e))},entries(){return We(this,"entries",e=>(e[1]=Ot(e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,e=>e.map(Ot),arguments)},find(e,t){return Xe(this,"find",e,t,Ot,arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,Ot,arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ye(this,"includes",e)},indexOf(...e){return Ye(this,"indexOf",e)},join(e){return Be(this).join(e)},lastIndexOf(...e){return Ye(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Ke(this,"pop")},push(...e){return Ke(this,"push",e)},reduce(e,...t){return Ge(this,"reduce",e,t)},reduceRight(e,...t){return Ge(this,"reduceRight",e,t)},shift(){return Ke(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Ke(this,"splice",e)},toReversed(){return Be(this).toReversed()},toSorted(e){return Be(this).toSorted(e)},toSpliced(...e){return Be(this).toSpliced(...e)},unshift(...e){return Ke(this,"unshift",e)},values(){return We(this,"values",Ot)}};function We(e,t,n){const r=Ve(e),i=r[t]();return r===e||At(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.value&&(e.value=n(e.value)),e}),i}const Ue=Array.prototype;function Xe(e,t,n,r,i,a){const o=Ve(e),s=o!==e&&!At(e),l=o[t];if(l!==Ue[t]){const t=l.apply(e,a);return s?Ot(t):t}let u=n;o!==e&&(s?u=function(t,r){return n.call(this,Ot(t),r,e)}:n.length>2&&(u=function(t,r){return n.call(this,t,r,e)}));const c=l.call(o,u,r);return s&&i?i(c):c}function Ge(e,t,n,r){const i=Ve(e);let a=n;return i!==e&&(At(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,Ot(r),i,e)}),i[t](a,...r)}function Ye(e,t,n){const r=Tt(e);Fe(r,"iterate",je);const i=r[t](...n);return-1!==i&&!1!==i||!Ct(n[0])?i:(n[0]=Tt(n[0]),r[t](...n))}function Ke(e,t,n=[]){Te(),ge();const r=Tt(e)[t].apply(e,n);return ye(),Oe(),r}const qe=t("__proto__,__v_isRef,__isVue"),Ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function Je(e){y(e)||(e=String(e));const t=Tt(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Qe{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?yt:gt:i?vt:mt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=f(e);if(!r){let e;if(a&&(e=He[t]))return e;if("hasOwnProperty"===t)return Je}const o=Reflect.get(e,t,Pt(e)?e:n);return(y(t)?Ze.has(t):qe(t))?o:(r||Fe(e,"get",t),i?o:Pt(o)?a&&A(t)?o:o.value:b(o)?r?wt(o):bt(o):o)}}class $e extends Qe{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){const t=kt(i);if(At(n)||kt(n)||(i=Tt(i),n=Tt(n)),!f(e)&&Pt(i)&&!Pt(n))return!t&&(i.value=n,!0)}const a=f(e)&&A(t)?Number(t)<e.length:d(e,t),o=Reflect.set(e,t,n,Pt(e)?e:r);return e===Tt(r)&&(a?L(n,i)&&ze(e,"set",t,n,i):ze(e,"add",t,n)),o}deleteProperty(e,t){const n=d(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&ze(e,"delete",t,void 0,r),i}has(e,t){const n=Reflect.has(e,t);return y(t)&&Ze.has(t)||Fe(e,"has",t),n}ownKeys(e){return Fe(e,"iterate",f(e)?"length":Le),Reflect.ownKeys(e)}}class et extends Qe{constructor(e=!1){super(!0,e)}set(e,t){return String(t),!0}deleteProperty(e,t){return String(t),!0}}const tt=new $e,nt=new et,rt=new $e(!0),it=new et(!0),at=e=>e,ot=e=>Reflect.getPrototypeOf(e);function st(e){return function(...t){t[0]&&t[0];D(e),Tt(this);return"delete"!==e&&("clear"===e?void 0:this)}}function lt(e,t){const n={get(n){const r=this.__v_raw,i=Tt(r),a=Tt(n);e||(L(n,a)&&Fe(i,"get",n),Fe(i,"get",a));const{has:o}=ot(i),s=t?at:e?It:Ot;return o.call(i,n)?s(r.get(n)):o.call(i,a)?s(r.get(a)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&Fe(Tt(t),"iterate",Le),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,r=Tt(n),i=Tt(t);return e||(L(t,i)&&Fe(r,"has",t),Fe(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){const i=this,a=i.__v_raw,o=Tt(a),s=t?at:e?It:Ot;return!e&&Fe(o,"iterate",Le),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};l(n,e?{add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear")}:{add(e){t||At(e)||kt(e)||(e=Tt(e));const n=Tt(this);return ot(n).has.call(n,e)||(n.add(e),ze(n,"add",e,e)),this},set(e,n){t||At(n)||kt(n)||(n=Tt(n));const r=Tt(this),{has:i,get:a}=ot(r);let o=i.call(r,e);o?pt(r,i,e):(e=Tt(e),o=i.call(r,e));const s=a.call(r,e);return r.set(e,n),o?L(n,s)&&ze(r,"set",e,n,s):ze(r,"add",e,n),this},delete(e){const t=Tt(this),{has:n,get:r}=ot(t);let i=n.call(t,e);i?pt(t,n,e):(e=Tt(e),i=n.call(t,e));const a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ze(t,"delete",e,void 0,a),o},clear(){const e=Tt(this),t=0!==e.size,n=h(e)?new Map(e):new Set(e),r=e.clear();return t&&ze(e,"clear",void 0,void 0,n),r}});return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,a=Tt(i),o=h(a),s="entries"===e||e===Symbol.iterator&&o,l="keys"===e&&o,u=i[e](...r),c=n?at:t?It:Ot;return!t&&Fe(a,"iterate",l?Ne:Le),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}(r,e,t)}),n}function ut(e,t){const n=lt(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}const ct={get:ut(!1,!1)},dt={get:ut(!1,!0)},ft={get:ut(!0,!1)},ht={get:ut(!0,!0)};function pt(e,t,n){const r=Tt(n);if(r!==n&&t.call(e,r)){_(e)}}const mt=new WeakMap,vt=new WeakMap,gt=new WeakMap,yt=new WeakMap;function bt(e){return kt(e)?e:St(e,!1,tt,ct,mt)}function wt(e){return St(e,!0,nt,ft,gt)}function xt(e){return St(e,!0,it,ht,yt)}function St(e,t,n,r,i){if(!b(e))return String(e),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(o));var o;if(0===a)return e;const s=i.get(e);if(s)return s;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function _t(e){return kt(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function kt(e){return!(!e||!e.__v_isReadonly)}function At(e){return!(!e||!e.__v_isShallow)}function Ct(e){return!!e&&!!e.__v_raw}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const Ot=e=>b(e)?bt(e):e,It=e=>b(e)?wt(e):e;function Pt(e){return!!e&&!0===e.__v_isRef}function Et(e){return Dt(e,!1)}function Mt(e){return Dt(e,!0)}function Dt(e,t){return Pt(e)?e:new Rt(e,t)}class Rt{constructor(e,t){this.dep=new Me,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Tt(e),this._value=t?e:Ot(e),this.__v_isShallow=t}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||At(e)||kt(e);e=n?e:Tt(e),L(e,t)&&(this._rawValue=e,this._value=n?e:Ot(e),this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:t}))}}function Lt(e){return Pt(e)?e.value:e}const Nt={get:(e,t,n)=>"__v_raw"===t?e:Lt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Pt(i)&&!Pt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function jt(e){return _t(e)?e:new Proxy(e,Nt)}function Ft(e){Ct(e);const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Bt(e,n);return t}class zt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Re.get(e);return n&&n.get(t)}(Tt(this._object),this._key)}}function Bt(e,t,n){const r=e[t];return Pt(r)?r:new zt(e,t,n)}class Vt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Me(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&se!==this)return ve(this,!0),!0}get value(){const e=this.dep.track({target:this,type:"get",key:"value"});return Se(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Ht={},Wt=new WeakMap;let Ut;function Xt(e,t,r=n){const{immediate:a,deep:o,once:s,scheduler:l,augmentJob:c,call:d}=r,h=e=>{(r.onWarn||ae)("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},p=e=>o?e:At(e)||!1===o||0===o?Gt(e,1):Gt(e);let m,g,y,b,w=!1,x=!1;if(Pt(e)?(g=()=>e.value,w=At(e)):_t(e)?(g=()=>p(e),w=!0):f(e)?(x=!0,w=e.some(e=>_t(e)||At(e)),g=()=>e.map(e=>Pt(e)?e.value:_t(e)?p(e):v(e)?d?d(e,2):e():void h(e))):v(e)?g=t?d?()=>d(e,2):e:()=>{if(y){Te();try{y()}finally{Oe()}}const t=Ut;Ut=m;try{return d?d(e,3,[b]):e(b)}finally{Ut=t}}:(g=i,h(e)),t&&o){const e=g,t=!0===o?1/0:o;g=()=>Gt(e(),t)}const S=ce(),_=()=>{m.stop(),S&&S.active&&u(S.effects,m)};if(s&&t){const e=t;t=(...t)=>{e(...t),_()}}let k=x?new Array(e.length).fill(Ht):Ht;const A=e=>{if(1&m.flags&&(m.dirty||e))if(t){const e=m.run();if(o||w||(x?e.some((e,t)=>L(e,k[t])):L(e,k))){y&&y();const n=Ut;Ut=m;try{const n=[e,k===Ht?void 0:x&&k[0]===Ht?[]:k,b];k=e,d?d(t,3,n):t(...n)}finally{Ut=n}}}else m.run()};return c&&c(A),m=new fe(g),m.scheduler=l?()=>l(A,!1):A,b=e=>function(e,t=!1,n=Ut){if(n){let t=Wt.get(n);t||Wt.set(n,t=[]),t.push(e)}}(e,!1,m),y=m.onStop=()=>{const e=Wt.get(m);if(e){if(d)d(e,4);else for(const t of e)t();Wt.delete(m)}},m.onTrack=r.onTrack,m.onTrigger=r.onTrigger,t?a?A(!0):k=m.run():l?l(A.bind(null,!0),!0):m.run(),_.pause=m.pause.bind(m),_.resume=m.resume.bind(m),_.stop=_,_}function Gt(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Pt(e))Gt(e.value,t,n);else if(f(e))for(let r=0;r<e.length;r++)Gt(e[r],t,n);else if(p(e)||h(e))e.forEach(e=>{Gt(e,t,n)});else if(k(e)){for(const r in e)Gt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Gt(e[r],t,n)}return e}
/**
  * @vue/runtime-core v3.5.18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/const Yt=[];function Kt(e){Yt.push(e)}function qt(){Yt.pop()}let Zt=!1;function Jt(e,...t){if(Zt)return;Zt=!0,Te();const n=Yt.length?Yt[Yt.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=Yt[Yt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)tn(r,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,i.map(({vnode:e})=>`at <${po(n,e.type)}>`).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,i=` at <${po(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...Qt(e.props),a]:[i+a]}(e))}),t}(i))}Oe(),Zt=!1}function Qt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...$t(n,e[n]))}),n.length>3&&t.push(" ..."),t}function $t(e,t,n){return g(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Pt(t)?(t=$t(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):v(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const en={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function tn(e,t,n,r){try{return r?e(...r):e()}catch(i){rn(i,t,n)}}function nn(e,t,n,r){if(v(e)){const i=tn(e,t,n,r);return i&&w(i)&&i.catch(e=>{rn(e,t,n)}),i}if(f(e)){const i=[];for(let a=0;a<e.length;a++)i.push(nn(e[a],t,n,r));return i}Jt("Invalid value type passed to callWithAsyncErrorHandling(): "+typeof e)}function rn(e,t,r,i=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||n;if(t){let n=t.parent;const i=t.proxy,a=en[r];for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,a))return;n=n.parent}if(o)return Te(),tn(o,null,10,[e,i,a]),void Oe()}!function(e,t,n,r=!0){{const i=en[t];if(n&&Kt(n),Jt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&qt(),r)throw e}}(e,r,a,i,s)}const an=[];let on=-1;const sn=[];let ln=null,un=0;const cn=Promise.resolve();let dn=null;function fn(e){const t=dn||cn;return e?t.then(this?e.bind(this):e):t}function hn(e){if(!(1&e.flags)){const t=yn(e),n=an[an.length-1];!n||!(2&e.flags)&&t>=yn(n)?an.push(e):an.splice(function(e){let t=on+1,n=an.length;for(;t<n;){const r=t+n>>>1,i=an[r],a=yn(i);a<e||a===e&&2&i.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,pn()}}function pn(){dn||(dn=cn.then(bn))}function mn(e){f(e)?sn.push(...e):ln&&-1===e.id?ln.splice(un+1,0,e):1&e.flags||(sn.push(e),e.flags|=1),pn()}function vn(e,t,n=on+1){for(t=t||new Map;n<an.length;n++){const r=an[n];if(r&&2&r.flags){if(e&&r.id!==e.uid)continue;if(wn(t,r))continue;an.splice(n,1),n--,4&r.flags&&(r.flags&=-2),r(),4&r.flags||(r.flags&=-2)}}}function gn(e){if(sn.length){const t=[...new Set(sn)].sort((e,t)=>yn(e)-yn(t));if(sn.length=0,ln)return void ln.push(...t);for(ln=t,e=e||new Map,un=0;un<ln.length;un++){const t=ln[un];wn(e,t)||(4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2)}ln=null,un=0}}const yn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function bn(e){e=e||new Map;const t=t=>wn(e,t);try{for(on=0;on<an.length;on++){const e=an[on];if(e&&!(8&e.flags)){if(t(e))continue;4&e.flags&&(e.flags&=-2),tn(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2)}}}finally{for(;on<an.length;on++){const e=an[on];e&&(e.flags&=-2)}on=-1,an.length=0,gn(e),dn=null,(an.length||sn.length)&&bn(e)}}function wn(e,t){const n=e.get(t)||0;if(n>100){const e=t.i,n=e&&ho(e.type);return rn(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let xn=!1;const Sn=new Map;B().__VUE_HMR_RUNTIME__={createRecord:Tn(kn),rerender:Tn(function(e,t){const n=_n.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach(e=>{t&&(e.render=t,An(e.type).render=t),e.renderCache=[],xn=!0,e.update(),xn=!1})}),reload:Tn(function(e,t){const n=_n.get(e);if(!n)return;t=An(t),Cn(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const e=r[i],a=An(e.type);let o=Sn.get(a);o||(a!==n.initialDef&&Cn(a,t),Sn.set(a,o=new Set)),o.add(e),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(o.add(e),e.ceReload(t.styles),o.delete(e)):e.parent?hn(()=>{xn=!0,e.parent.update(),xn=!1,o.delete(e)}):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window&&window.location.reload(),e.root.ce&&e!==e.root&&e.root.ce._removeChildStyle(a)}mn(()=>{Sn.clear()})})};const _n=new Map;function kn(e,t){return!_n.has(e)&&(_n.set(e,{initialDef:An(t),instances:new Set}),!0)}function An(e){return mo(e)?e.__vccOpts:e}function Cn(e,t){l(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function Tn(e){return(t,n)=>{try{return e(t,n)}catch(r){}}}let On,In=[],Pn=!1;function En(e,...t){On?On.emit(e,...t):Pn||In.push({event:e,args:t})}function Mn(e,t){var n,r;if(On=e,On)On.enabled=!0,In.forEach(({event:e,args:t})=>On.emit(e,...t)),In=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Mn(e,t)}),setTimeout(()=>{On||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pn=!0,In=[])},3e3)}else Pn=!0,In=[]}const Dn=Nn("component:added"),Rn=Nn("component:updated"),Ln=Nn("component:removed");
/*! #__NO_SIDE_EFFECTS__ */
function Nn(e){return t=>{En(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const jn=zn("perf:start"),Fn=zn("perf:end");function zn(e){return(t,n,r)=>{En(e,t.appContext.app,t.uid,t,n,r)}}let Bn=null,Vn=null;function Hn(e){const t=Bn;return Bn=e,Vn=e&&e.type.__scopeId||null,t}function Wn(e,t=Bn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Ta(-1);const i=Hn(t);let a;try{a=e(...n)}finally{Hn(i),r._d&&Ta(1)}return Rn(t),a};return r._n=!0,r._c=!0,r._d=!0,r}function Un(e){T(e)&&Jt("Do not use built-in directive ids as custom directive id: "+e)}function Xn(e,t){if(null===Bn)return Jt("withDirectives can only be used inside render functions."),e;const r=uo(Bn),i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,o,s,l=n]=t[a];e&&(v(e)&&(e={mounted:e,updated:e}),e.deep&&Gt(o),i.push({dir:e,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function Gn(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[r];l&&(Te(),nn(l,n,8,[e.el,s,e,t]),Oe())}}const Yn=Symbol("_vte"),Kn=e=>e.__isTeleport,qn=e=>e&&(e.disabled||""===e.disabled),Zn=e=>e&&(e.defer||""===e.defer),Jn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Qn=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,$n=(e,t)=>{const n=e&&e.to;if(g(n)){if(t){const r=t(n);return r||qn(e)||Jt(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}return Jt("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null}return n||qn(e)||Jt(`Invalid Teleport target: ${n}`),n},er={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:v}}=u,g=qn(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(xn&&(l=!1,w=null),null==e){const e=t.el=v("teleport start"),u=t.anchor=v("teleport end");h(e,n,r),h(u,n,r);const d=(e,t)=>{16&y&&(i&&i.isCE&&(i.ce._teleportTarget=e),c(b,e,t,i,a,o,s,l))},f=()=>{const e=t.target=$n(t.props,p),n=ir(e,t,m,h);e?("svg"!==o&&Jn(e)?o="svg":"mathml"!==o&&Qn(e)&&(o="mathml"),g||(d(e,n),rr(t,!1))):g||Jt("Invalid Teleport target on mount:",e,`(${typeof e})`)};g&&(d(n,u),rr(t,!0)),Zn(t.props)?(t.el.__isMounted=!1,Xi(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(Zn(t.props)&&!1===e.el.__isMounted)return void Xi(()=>{er.process(e,t,n,r,i,a,o,s,l,u)},a);t.el=e.el,t.targetStart=e.targetStart;const c=t.anchor=e.anchor,h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=qn(e.props),y=v?n:h,b=v?c:m;if("svg"===o||Jn(h)?o="svg":("mathml"===o||Qn(h))&&(o="mathml"),w?(f(e.dynamicChildren,w,y,i,a,o,s),qi(e,t,!1)):l||d(e,t,y,b,i,a,o,s,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):tr(t,n,c,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$n(t.props,p);e?tr(t,e,null,u,0):Jt("Invalid Teleport target on update:",h,`(${typeof h})`)}else v&&tr(t,h,m,u,1);rr(t,g)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(i(u),i(c)),a&&i(l),16&o){const e=a||!qn(f);for(let i=0;i<s.length;i++){const a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:tr,hydrate:function(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:c}},d){const f=t.target=$n(t.props,l);if(f){const l=qn(t.props),h=f._lpa||f.firstChild;if(16&t.shapeFlag)if(l)t.anchor=d(o(e),t,s(e),n,r,i,a),t.targetStart=h,t.targetAnchor=h&&o(h);else{t.anchor=o(e);let s=h;for(;s;){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}s=o(s)}t.targetAnchor||ir(f,t,c,u),d(h&&o(h),t,f,n,r,i,a)}rr(t,l)}return t.anchor&&o(t.anchor)}};function tr(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===a;if(d&&r(o,t,n),(!d||qn(c))&&16&l)for(let f=0;f<u.length;f++)i(u[f],t,n,2);d&&r(s,t,n)}const nr=er;function rr(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function ir(e,t,n,r){const i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[Yn]=a,e&&(r(i,e),r(a,e)),a}const ar=Symbol("_leaveCb"),or=Symbol("_enterCb");const sr=[Function,Array],lr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},ur=e=>{const t=e.subTree;return t.component?ur(t.component):t};function cr(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==xa){if(n){Jt("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}t=r,n=!0}}return t}const dr={name:"BaseTransition",props:lr,setup(e,{slots:t}){const n=Za(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Er(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}();return()=>{const i=t.default&&gr(t.default(),!0);if(!i||!i.length)return;const a=cr(i),o=Tt(e),{mode:s}=o;if(s&&"in-out"!==s&&"out-in"!==s&&"default"!==s&&Jt(`invalid <transition> mode: ${s}`),r.isLeaving)return pr(a);const l=mr(a);if(!l)return pr(a);let u=hr(l,o,r,n,e=>u=e);l.type!==xa&&vr(l,u);let c=n.subTree&&mr(n.subTree);if(c&&c.type!==xa&&!Ma(l,c)&&ur(n).type!==xa){let e=hr(c,o,r,n);if(vr(c,e),"out-in"===s&&l.type!==xa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},pr(a);"in-out"===s&&l.type!==xa?e.delayLeave=(e,t,n)=>{fr(r,c)[String(c.key)]=c,e[ar]=()=>{t(),e[ar]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function fr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hr(e,t,n,r,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,x=String(e.key),S=fr(n,e),_=(e,t)=>{e&&nn(e,r,9,t)},k=(e,t)=>{const n=t[1];_(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},A={mode:o,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!a)return;r=g||l}t[ar]&&t[ar](!0);const i=S[x];i&&Ma(e,i)&&i.el[ar]&&i.el[ar](),_(r,[t])},enter(e){let t=u,r=c,i=d;if(!n.isMounted){if(!a)return;t=y||u,r=b||c,i=w||d}let o=!1;const s=e[or]=t=>{o||(o=!0,_(t?i:r,[e]),A.delayedLeave&&A.delayedLeave(),e[or]=void 0)};t?k(t,[e,s]):s()},leave(t,r){const i=String(e.key);if(t[or]&&t[or](!0),n.isUnmounting)return r();_(h,[t]);let a=!1;const o=t[ar]=n=>{a||(a=!0,r(),_(n?v:m,[t]),t[ar]=void 0,S[i]===e&&delete S[i])};S[i]=e,p?k(p,[t,o]):o()},clone(e){const a=hr(e,t,n,r,i);return i&&i(a),a}};return A}function pr(e){if(_r(e))return(e=ja(e)).children=null,e}function mr(e){if(!_r(e))return Kn(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function vr(e,t){6&e.shapeFlag&&e.component?(e.transition=t,vr(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=null==n?o.key:String(n)+String(null!=o.key?o.key:a);o.type===ba?(128&o.patchFlag&&i++,r=r.concat(gr(o.children,t,s))):(t||o.type!==xa)&&r.push(null!=s?ja(o,{key:s}):o)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}
/*! #__NO_SIDE_EFFECTS__ */function yr(e,t){return v(e)?(()=>l({name:e.name},t,{setup:e}))():e}function br(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const wr=new WeakSet;function xr(e,t,r,i,a=!1){if(f(e))return void e.forEach((e,n)=>xr(e,t&&(f(t)?t[n]:t),r,i,a));if(Sr(i)&&!a)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&xr(e,t,r,i.component.subTree));const o=4&i.shapeFlag?uo(i.component):i.el,s=a?null:o,{i:l,r:c}=e;if(!l)return void Jt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");const h=t&&t.r,p=l.refs===n?l.refs={}:l.refs,m=l.setupState,y=Tt(m),b=m===n?()=>!1:e=>(d(y,e)&&!Pt(y[e])&&Jt(`Template ref "${e}" used on a non-ref value. It will not work in the production build.`),!wr.has(y[e])&&d(y,e));if(null!=h&&h!==c&&(g(h)?(p[h]=null,b(h)&&(m[h]=null)):Pt(h)&&(h.value=null)),v(c))tn(c,l,12,[s,p]);else{const t=g(c),n=Pt(c);if(t||n){const i=()=>{if(e.f){const n=t?b(c)?m[c]:p[c]:c.value;a?f(n)&&u(n,o):f(n)?n.includes(o)||n.push(o):t?(p[c]=[o],b(c)&&(m[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else t?(p[c]=s,b(c)&&(m[c]=s)):n?(c.value=s,e.k&&(p[e.k]=s)):Jt("Invalid template ref type:",c,`(${typeof c})`)};s?(i.id=-1,Xi(i,r)):i()}else Jt("Invalid template ref type:",c,`(${typeof c})`)}}B().requestIdleCallback,B().cancelIdleCallback;const Sr=e=>!!e.type.__asyncLoader,_r=e=>e.type.__isKeepAlive;function kr(e,t){Cr(e,"a",t)}function Ar(e,t){Cr(e,"da",t)}function Cr(e,t,n=qa){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)_r(e.parent.vnode)&&Tr(r,t,n,e),e=e.parent}}function Tr(e,t,n,r){const i=Or(t,e,r,!0);Lr(()=>{u(r[t],i)},n)}function Or(e,t,n=qa,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{Te();const i=$a(n),a=nn(t,n,e,r);return i(),Oe(),a});return r?i.unshift(a):i.push(a),a}Jt(`${R(en[e].replace(/ hook$/,""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}const Ir=e=>(t,n=qa)=>{io&&"sp"!==e||Or(e,(...e)=>t(...e),n)},Pr=Ir("bm"),Er=Ir("m"),Mr=Ir("bu"),Dr=Ir("u"),Rr=Ir("bum"),Lr=Ir("um"),Nr=Ir("sp"),jr=Ir("rtg"),Fr=Ir("rtc");function zr(e,t=qa){Or("ec",e,t)}const Br="components";function Vr(e,t){return Ur(Br,e,!0,t)||e}const Hr=Symbol.for("v-ndc");function Wr(e){return Ur("directives",e)}function Ur(e,t,n=!0,r=!1){const i=Bn||qa;if(i){const a=i.type;if(e===Br){const e=ho(a,!1);if(e&&(e===t||e===P(t)||e===D(P(t))))return a}const o=Xr(i[e]||a[e],t)||Xr(i.appContext[e],t);if(!o&&r)return a;if(n&&!o){const n=e===Br?"\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.":"";Jt(`Failed to resolve ${e.slice(0,-1)}: ${t}${n}`)}return o}Jt(`resolve${D(e.slice(0,-1))} can only be used in render() or setup().`)}function Xr(e,t){return e&&(e[t]||e[P(t)]||e[D(P(t))])}function Gr(e,t,n,r){let i;const a=n,o=f(e);if(o||g(e)){let n=!1,r=!1;o&&_t(e)&&(n=!At(e),r=kt(e),e=Ve(e)),i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(n?r?It(Ot(e[o])):Ot(e[o]):e[o],o,void 0,a)}else if("number"==typeof e){Number.isInteger(e)||Jt(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a)}else if(b(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,a)}}else i=[];return i}function Yr(e,t,n={},r,i){if(Bn.ce||Bn.parent&&Sr(Bn.parent)&&Bn.parent.ce)return Aa(),Pa(ba,null,[Na("slot",n,r)],64);let a=e[t];a&&a.length>1&&(Jt("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),a=()=>[]),a&&a._c&&(a._d=!1),Aa();const o=a&&Kr(a(n)),s=n.key||o&&o.key,l=Pa(ba,{key:(s&&!y(s)?s:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&1===e._?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Kr(e){return e.some(e=>!Ea(e)||e.type!==xa&&!(e.type===ba&&!Kr(e.children)))?e:null}const qr=e=>e?ro(e)?uo(e):qr(e.parent):null,Zr=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>xt(e.props),$attrs:e=>xt(e.attrs),$slots:e=>xt(e.slots),$refs:e=>xt(e.refs),$parent:e=>qr(e.parent),$root:e=>qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||(e.f=()=>{hn(e.update)}),$nextTick:e=>e.n||(e.n=fn.bind(e.proxy)),$watch:e=>ra.bind(e)}),Jr=e=>"_"===e||"$"===e,Qr=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),$r={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:l,appContext:u}=e;if("__isVue"===t)return!0;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else{if(Qr(i,t))return s[t]=1,i[t];if(a!==n&&d(a,t))return s[t]=2,a[t];if((c=e.propsOptions[0])&&d(c,t))return s[t]=3,o[t];if(r!==n&&d(r,t))return s[t]=4,r[t];ti&&(s[t]=0)}}const f=Zr[t];let h,p;return f?("$attrs"===t?(Fe(e.attrs,"get",""),ca()):"$slots"===t&&Fe(e,"get",t),f(e)):(h=l.__cssModules)&&(h=h[t])?h:r!==n&&d(r,t)?(s[t]=4,r[t]):(p=u.config.globalProperties,d(p,t)?p[t]:void(!Bn||g(t)&&0===t.indexOf("__v")||(a!==n&&Jr(t[0])&&d(a,t)?Jt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Bn&&Jt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,r){const{data:i,setupState:a,ctx:o}=e;return Qr(a,t)?(a[t]=r,!0):a.__isScriptSetup&&d(a,t)?(Jt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)?(Jt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?(Jt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:r}):o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,propsOptions:o}},s){let l;return!!r[s]||e!==n&&d(e,s)||Qr(t,s)||(l=o[0])&&d(l,s)||d(i,s)||d(Zr,s)||d(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ei(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}$r.ownKeys=e=>(Jt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));let ti=!0;function ni(e){const t=ai(e),n=e.proxy,r=e.ctx;ti=!1,t.beforeCreate&&ri(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:h,mounted:p,beforeUpdate:m,updated:g,activated:y,deactivated:x,beforeDestroy:S,beforeUnmount:_,destroyed:k,unmounted:A,render:C,renderTracked:T,renderTriggered:O,errorCaptured:I,serverPrefetch:P,expose:E,inheritAttrs:M,components:D,directives:R,filters:L}=t,N=function(){const e=Object.create(null);return(t,n)=>{e[n]?Jt(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}();{const[t]=e.propsOptions;if(t)for(const e in t)N("Props",e)}if(c&&function(e,t,n=i){f(e)&&(e=ui(e));for(const r in e){const i=e[r];let a;a=b(i)?"default"in i?yi(i.from||r,i.default,!0):yi(i.from||r):yi(i),Pt(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[r]=a,n("Inject",r)}}(c,r,N),s)for(const i in s){const e=s[i];v(e)?(Object.defineProperty(r,i,{value:e.bind(n),configurable:!0,enumerable:!0,writable:!0}),N("Methods",i)):Jt(`Method "${i}" has type "${typeof e}" in the component definition. Did you reference the function correctly?`)}if(a){v(a)||Jt("The data option must be a function. Plain object usage is no longer supported.");const t=a.call(n,n);if(w(t)&&Jt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),b(t)){e.data=bt(t);for(const e in t)N("Data",e),Jr(e[0])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:()=>t[e],set:i})}else Jt("data() should return an object.")}if(ti=!0,o)for(const f in o){const e=o[f],t=v(e)?e.bind(n,n):v(e.get)?e.get.bind(n,n):i;t===i&&Jt(`Computed property "${f}" has no getter.`);const a=!v(e)&&v(e.set)?e.set.bind(n):()=>{Jt(`Write operation failed: computed property "${f}" is readonly.`)},s=vo({get:t,set:a});Object.defineProperty(r,f,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}),N("Computed",f)}if(l)for(const i in l)ii(l[i],r,n,i);if(u){const e=v(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{gi(t,e[t])})}function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&ri(d,e,"c"),j(Pr,h),j(Er,p),j(Mr,m),j(Dr,g),j(kr,y),j(Ar,x),j(zr,I),j(Fr,T),j(jr,O),j(Rr,_),j(Lr,A),j(Nr,P),f(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===i&&(e.render=C),null!=M&&(e.inheritAttrs=M),D&&(e.components=D),R&&(e.directives=R),P&&br(e)}function ri(e,t,n){nn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let i=r.includes(".")?ia(n,r):()=>n[r];if(g(e)){const n=t[e];v(n)?ta(i,n):Jt(`Invalid watch handler specified by key "${e}"`,n)}else if(v(e))ta(i,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>ii(e,t,n,r));else{const r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)?ta(i,r,e):Jt(`Invalid watch handler specified by key "${e.handler}"`,r)}else Jt(`Invalid watch option: "${r}"`,e)}function ai(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach(e=>oi(l,e,o,!0)),oi(l,t,o)):l=t,b(t)&&a.set(t,l),l}function oi(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&oi(e,a,n,!0),i&&i.forEach(t=>oi(e,t,n,!0));for(const o in t)if(r&&"expose"===o)Jt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const r=si[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const si={data:li,props:fi,emits:fi,methods:di,computed:di,beforeCreate:ci,created:ci,beforeMount:ci,mounted:ci,beforeUpdate:ci,updated:ci,beforeDestroy:ci,beforeUnmount:ci,destroyed:ci,unmounted:ci,activated:ci,deactivated:ci,errorCaptured:ci,serverPrefetch:ci,components:di,directives:di,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const r in t)n[r]=ci(e[r],t[r]);return n},provide:li,inject:function(e,t){return di(ui(e),ui(t))}};function li(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function ui(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ci(e,t){return e?[...new Set([].concat(e,t))]:t}function di(e,t){return e?l(Object.create(null),e,t):t}function fi(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:l(Object.create(null),ei(e),ei(null!=t?t:{})):t}function hi(){return{app:null,config:{isNativeTag:a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let pi=0;function mi(e,t){return function(t,n=null){v(t)||(t=l({},t)),null==n||b(n)||(Jt("root props passed to app.mount() must be an object."),n=null);const r=hi(),i=new WeakSet,a=[];let o=!1;const s=r.app={_uid:pi++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:yo,get config(){return r.config},set config(e){Jt("app.config cannot be replaced. Modify individual options instead.")},use:(e,...t)=>(i.has(e)?Jt("Plugin has already been applied to target app."):e&&v(e.install)?(i.add(e),e.install(s,...t)):v(e)?(i.add(e),e(s,...t)):Jt('A plugin must either be a function or an object with an "install" function.'),s),mixin:e=>(r.mixins.includes(e)?Jt("Mixin has already been applied to target app"+(e.name?`: ${e.name}`:"")):r.mixins.push(e),s),component:(e,t)=>(no(e,r.config),t?(r.components[e]&&Jt(`Component "${e}" has already been registered in target app.`),r.components[e]=t,s):r.components[e]),directive:(e,t)=>(Un(e),t?(r.directives[e]&&Jt(`Directive "${e}" has already been registered in target app.`),r.directives[e]=t,s):r.directives[e]),mount(i,a,l){if(!o){i.__vue_app__&&Jt("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const a=s._ceVNode||Na(t,n);return a.appContext=r,!0===l?l="svg":!1===l&&(l=void 0),r.reload=()=>{const t=ja(a);t.el=null,e(t,i,l)},e(a,i,l),o=!0,s._container=i,i.__vue_app__=s,s._instance=a.component,function(e,t){En("app:init",e,t,{Fragment:ba,Text:wa,Comment:xa,Static:Sa})}(s,yo),uo(a.component)}Jt("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`")},onUnmount(e){"function"!=typeof e&&Jt("Expected function as first argument to app.onUnmount(), but got "+typeof e),a.push(e)},unmount(){o?(nn(a,s._instance,16),e(null,s._container),s._instance=null,function(e){En("app:unmount",e)}(s),delete s._container.__vue_app__):Jt("Cannot unmount an app that is not mounted.")},provide:(e,t)=>(e in r.provides&&(d(r.provides,e)?Jt(`App already provides property with key "${String(e)}". It will be overwritten with the new value.`):Jt(`App already provides property with key "${String(e)}" inherited from its parent element. It will be overwritten with the new value.`)),r.provides[e]=t,s),runWithContext(e){const t=vi;vi=s;try{return e()}finally{vi=t}}};return s}}let vi=null;function gi(e,t){if(qa){let n=qa.provides;const r=qa.parent&&qa.parent.provides;r===n&&(n=qa.provides=Object.create(r)),n[e]=t}else Jt("provide() can only be used inside setup().")}function yi(e,t,n=!1){const r=Za();if(r||vi){let i=vi?vi._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t;Jt(`injection "${String(e)}" not found.`)}else Jt("inject() can only be used inside setup() or functional components.")}const bi={},wi=()=>Object.create(bi),xi=e=>Object.getPrototypeOf(e)===bi;function Si(e,t,n,r=!1){const i={},a=wi();e.propsDefaults=Object.create(null),_i(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);Oi(t||{},i,e),n?e.props=r?i:St(i,!1,rt,dt,vt):e.type.props?e.props=i:e.props=a,e.attrs=a}function _i(e,t,r,i){const[a,o]=e.propsOptions;let s,l=!1;if(t)for(let n in t){if(C(n))continue;const u=t[n];let c;a&&d(a,c=P(n))?o&&o.includes(c)?(s||(s={}))[c]=u:r[c]=u:la(e.emitsOptions,n)||n in i&&u===i[n]||(i[n]=u,l=!0)}if(o){const t=Tt(r),i=s||n;for(let n=0;n<o.length;n++){const s=o[n];r[s]=ki(a,t,s,i[s],e,!d(i,s))}}return l}function ki(e,t,n,r,i,a){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===r){const e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){const{propsDefaults:a}=i;if(n in a)r=a[n];else{const o=$a(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:!o[1]||""!==r&&r!==M(n)||(r=!0))}return r}const Ai=new WeakMap;function Ci(e,t,i=!1){const a=i?Ai:t.propsCache,o=a.get(e);if(o)return o;const s=e.props,u={},c=[];let h=!1;if(!v(e)){const n=e=>{h=!0;const[n,r]=Ci(e,t,!0);l(u,n),r&&c.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!h)return b(e)&&a.set(e,r),r;if(f(s))for(let r=0;r<s.length;r++){g(s[r])||Jt("props must be strings when using array syntax.",s[r]);const e=P(s[r]);Ti(e)&&(u[e]=n)}else if(s){b(s)||Jt("invalid props options",s);for(const e in s){const t=P(e);if(Ti(t)){const n=s[e],r=u[t]=f(n)||v(n)?{type:n}:l({},n),i=r.type;let a=!1,o=!0;if(f(i))for(let e=0;e<i.length;++e){const t=i[e],n=v(t)&&t.name;if("Boolean"===n){a=!0;break}"String"===n&&(o=!1)}else a=v(i)&&"Boolean"===i.name;r[0]=a,r[1]=o,(a||d(r,"default"))&&c.push(t)}}}const p=[u,c];return b(e)&&a.set(e,p),p}function Ti(e){return"$"!==e[0]&&!C(e)||(Jt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Oi(e,t,n){const r=Tt(t),i=n.propsOptions[0],a=Object.keys(e).map(e=>P(e));for(const o in i){let e=i[o];null!=e&&Ii(o,r[o],e,xt(r),!a.includes(o))}}function Ii(e,t,n,r,i){const{type:a,required:o,validator:s,skipCheck:l}=n;if(o&&i)Jt('Missing required prop: "'+e+'"');else if(null!=t||o){if(null!=a&&!0!==a&&!l){let n=!1;const r=f(a)?a:[a],i=[];for(let e=0;e<r.length&&!n;e++){const{valid:a,expectedType:o}=Ei(t,r[e]);i.push(o||""),n=a}if(!n)return void Jt(function(e,t,n){if(0===n.length)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(D).join(" | ")}`;const i=n[0],a=_(t),o=Mi(t,i),s=Mi(t,a);1===n.length&&Di(i)&&!function(...e){return e.some(e=>"boolean"===e.toLowerCase())}(i,a)&&(r+=` with value ${o}`);r+=`, got ${a} `,Di(a)&&(r+=`with value ${s}.`);return r}(e,t,i))}s&&!s(t,r)&&Jt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Pi=t("String,Number,Boolean,Function,Symbol,BigInt");function Ei(e,t){let n;const r=function(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e)return e.constructor&&e.constructor.name||"";return""}(t);if("null"===r)n=null===e;else if(Pi(r)){const i=typeof e;n=i===r.toLowerCase(),n||"object"!==i||(n=e instanceof t)}else n="Object"===r?b(e):"Array"===r?f(e):e instanceof t;return{valid:n,expectedType:r}}function Mi(e,t){return"String"===t?`"${e}"`:"Number"===t?`${Number(e)}`:`${e}`}function Di(e){return["string","number","boolean"].some(t=>e.toLowerCase()===t)}const Ri=e=>"_"===e||"__"===e||"_ctx"===e||"$stable"===e,Li=e=>f(e)?e.map(Ha):[Ha(e)],Ni=(e,t,n)=>{if(t._n)return t;const r=Wn((...r)=>(!qa||null===n&&Bn||n&&n.root!==qa.root||Jt(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Li(t(...r))),n);return r._c=!1,r},ji=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Ri(i))continue;const n=e[i];if(v(n))t[i]=Ni(i,n,r);else if(null!=n){Jt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const e=Li(n);t[i]=()=>e}}},Fi=(e,t)=>{_r(e.vnode)||Jt("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Li(t);e.slots.default=()=>n},zi=(e,t,n)=>{for(const r in t)!n&&Ri(r)||(e[r]=t[r])};let Bi,Vi;function Hi(e,t){e.appContext.config.performance&&Ui()&&Vi.mark(`vue-${t}-${e.uid}`),jn(e,t,Ui()?Vi.now():Date.now())}function Wi(e,t){if(e.appContext.config.performance&&Ui()){const n=`vue-${t}-${e.uid}`,r=n+":end";Vi.mark(r),Vi.measure(`<${po(e,e.type)}> ${t}`,n,r),Vi.clearMarks(n),Vi.clearMarks(r)}Fn(e,t,Ui()?Vi.now():Date.now())}function Ui(){return void 0!==Bi||("undefined"!=typeof window&&window.performance?(Bi=!0,Vi=window.performance):Bi=!1),Bi}const Xi=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):mn(e)};function Gi(e){return function(e){const t=B();t.__VUE__=!0,Mn(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:a,remove:o,patchProp:s,createElement:l,createText:u,createComment:c,setText:h,setElementText:p,parentNode:m,nextSibling:v,setScopeId:g=i,insertStaticContent:y}=e,b=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,l=!xn&&!!t.dynamicChildren)=>{if(e===t)return;e&&!Ma(e,t)&&(r=te(e),Z(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case wa:x(e,t,n,r);break;case xa:S(e,t,n,r);break;case Sa:null==e?_(t,n,r,o):k(e,t,n,o);break;case ba:z(e,t,n,r,i,a,o,s,l);break;default:1&d?O(e,t,n,r,i,a,o,s,l):6&d?V(e,t,n,r,i,a,o,s,l):64&d||128&d?u.process(e,t,n,r,i,a,o,s,l,ie):Jt("Invalid VNode type:",u,`(${typeof u})`)}null!=c&&i?xr(c,e&&e.ref,a,t||e,!t):null==c&&e&&null!=e.ref&&xr(e.ref,null,a,e,!0)},x=(e,t,n,r)=>{if(null==e)a(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,n,r)=>{null==e?a(t.el=c(t.children||""),n,r):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},k=(e,t,n,r)=>{if(t.children!==e.children){const i=v(e.anchor);T(e),[t.el,t.anchor]=y(t.children,n,i,r)}else t.el=e.el,t.anchor=e.anchor},A=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=v(e),a(e,n,r),e=i;a(t,n,r)},T=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},O=(e,t,n,r,i,a,o,s,l)=>{"svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e?I(t,n,r,i,a,o,s,l):R(e,t,i,a,o,s,l)},I=(e,t,n,r,i,o,u,c)=>{let d,f;const{props:h,shapeFlag:m,transition:v,dirs:g}=e;if(d=e.el=l(e.type,o,h&&h.is,h),8&m?p(d,e.children):16&m&&D(e.children,d,null,r,i,Yi(e,o),u,c),g&&Gn(e,null,r,"created"),E(d,e,e.scopeId,u,r),h){for(const e in h)"value"===e||C(e)||s(d,e,null,h[e],o,r);"value"in h&&s(d,"value",null,h.value,o),(f=h.onVnodeBeforeMount)&&Ga(f,r,e)}j(d,"__vnode",e,!0),j(d,"__vueParentComponent",r,!0),g&&Gn(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,v);y&&v.beforeEnter(d),a(d,t,n),((f=h&&h.onVnodeMounted)||y||g)&&Xi(()=>{f&&Ga(f,r,e),y&&v.enter(d),g&&Gn(e,null,r,"mounted")},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let a=0;a<r.length;a++)g(e,r[a]);if(i){let n=i.subTree;if(n.patchFlag>0&&2048&n.patchFlag&&(n=ha(n.children)||n),t===n||ya(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,o,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?Wa(e[u]):Ha(e[u]);b(null,l,t,n,r,i,a,o,s)}},R=(e,t,r,i,a,o,l)=>{const u=t.el=e.el;u.__vnode=t;let{patchFlag:c,dynamicChildren:d,dirs:f}=t;c|=16&e.patchFlag;const h=e.props||n,m=t.props||n;let v;if(r&&Ki(r,!1),(v=m.onVnodeBeforeUpdate)&&Ga(v,r,t,e),f&&Gn(t,e,r,"beforeUpdate"),r&&Ki(r,!0),xn&&(c=0,l=!1,d=null),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&p(u,""),d?(L(e.dynamicChildren,d,u,r,i,Yi(t,a),o),qi(e,t)):l||G(e,t,u,null,r,i,Yi(t,a),o,!1),c>0){if(16&c)F(u,h,m,r,a);else if(2&c&&h.class!==m.class&&s(u,"class",null,m.class,a),4&c&&s(u,"style",h.style,m.style,a),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],i=h[n],o=m[n];o===i&&"value"!==n||s(u,n,i,o,a,r)}}1&c&&e.children!==t.children&&p(u,t.children)}else l||null!=d||F(u,h,m,r,a);((v=m.onVnodeUpdated)||f)&&Xi(()=>{v&&Ga(v,r,t,e),f&&Gn(t,e,r,"updated")},i)},L=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===ba||!Ma(l,u)||198&l.shapeFlag)?m(l.el):n;b(l,u,c,null,r,i,a,o,!0)}},F=(e,t,r,i,a)=>{if(t!==r){if(t!==n)for(const n in t)C(n)||n in r||s(e,n,t[n],null,a,i);for(const n in r){if(C(n))continue;const o=r[n],l=t[n];o!==l&&"value"!==n&&s(e,n,l,o,a,i)}"value"in r&&s(e,"value",t.value,r.value,a)}},z=(e,t,n,r,i,o,s,l,c)=>{const d=t.el=e?e.el:u(""),f=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:m}=t;(xn||2048&h)&&(h=0,c=!1,p=null),m&&(l=l?l.concat(m):m),null==e?(a(d,n,r),a(f,n,r),D(t.children||[],n,f,i,o,s,l,c)):h>0&&64&h&&p&&e.dynamicChildren?(L(e.dynamicChildren,p,n,i,o,s,l),qi(e,t)):G(e,t,n,f,i,o,s,l,c)},V=(e,t,n,r,i,a,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):H(t,n,r,i,a,o,l):W(e,t,l)},H=(e,t,r,a,o,s,l)=>{const u=e.component=function(e,t,r){const a=e.type,o=(t?t.appContext:e.appContext)||Ya,s={uid:Ka++,vnode:e,type:a,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ci(a,o),emitsOptions:sa(a,o),emit:null,emitted:null,propsDefaults:n,inheritAttrs:a.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};s.ctx=function(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Zr).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Zr[n](e),set:i})}),t}(s),s.root=t?t.root:s,s.emit=oa.bind(null,s),e.ce&&e.ce(s);return s}(e,a,o);if(u.type.__hmrId&&function(e){const t=e.type.__hmrId;let n=_n.get(t);n||(kn(t,e.type),n=_n.get(t)),n.instances.add(e)}(u),Kt(e),Hi(u,"mount"),_r(e)&&(u.ctx.renderer=ie),Hi(u,"init"),function(e,t=!1,n=!1){t&&Qa(t);const{props:r,children:a}=e.vnode,o=ro(e);Si(e,r,o,t),((e,t,n)=>{const r=e.slots=wi();if(32&e.vnode.shapeFlag){const e=t.__;e&&j(r,"__",e,!0);const i=t._;i?(zi(r,t,n),n&&j(r,"_",i,!0)):ji(t,r)}else t&&Fi(e,t)})(e,a,n||t);const s=o?function(e,t){var n;const r=e.type;r.name&&no(r.name,e.appContext.config);if(r.components){const t=Object.keys(r.components);for(let n=0;n<t.length;n++)no(t[n],e.appContext.config)}if(r.directives){const e=Object.keys(r.directives);for(let t=0;t<e.length;t++)Un(e[t])}r.compilerOptions&&oo()&&Jt('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.');e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$r),function(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:i})})}(e);const{setup:a}=r;if(a){Te();const i=e.setupContext=a.length>1?function(e){const t=t=>{if(e.exposed&&Jt("expose() should be called only once per setup()."),null!=t){let e=typeof t;"object"===e&&(f(t)?e="array":Pt(t)&&(e="ref")),"object"!==e&&Jt(`expose() should be passed a plain object, received ${e}.`)}e.exposed=t||{}};{let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,lo))},get slots(){return r||(r=function(e){return new Proxy(e.slots,{get:(t,n)=>(Fe(e,"get","$slots"),t[n])})}(e))},get emit(){return(t,...n)=>e.emit(t,...n)},expose:t})}}(e):null,o=$a(e),s=tn(a,e,0,[xt(e.props),i]),l=w(s);if(Oe(),o(),!l&&!e.sp||Sr(e)||br(e),l){if(s.then(eo,eo),t)return s.then(n=>{ao(e,n,t)}).catch(t=>{rn(t,e,0)});if(e.asyncDep=s,!e.suspense){Jt(`Component <${null!=(n=r.name)?n:"Anonymous"}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else ao(e,s,t)}else so(e,t)}(e,t):void 0;t&&Qa(!1)}(u,!1,l),Wi(u,"init"),xn&&(e.el=null),u.asyncDep){if(o&&o.registerDep(u,U,l),!e.el){const n=u.subTree=Na(xa);S(null,n,t,r),e.placeholder=n.el}}else U(u,e,t,r,o,s,l);qt(),Wi(u,"mount")},W=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if((i||s)&&xn)return!0;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||ga(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?ga(r,o,u):!!o;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(o[n]!==r[n]&&!la(u,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return Kt(t),X(r,t,n),void qt();r.next=t,r.update()}else t.el=e.el,r.vnode=t},U=(e,t,n,r,i,a,o)=>{const s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:l,vnode:u}=e;{const n=Zi(e);if(n)return t&&(t.el=u.el,X(e,t,o)),void n.asyncDep.then(()=>{e.isUnmounted||s()})}let c,d=t;Kt(t||e.vnode),Ki(e,!1),t?(t.el=u.el,X(e,t,o)):t=u,n&&N(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&Ga(c,l,t,u),Ki(e,!0),Hi(e,"render");const f=da(e);Wi(e,"render");const h=e.subTree;e.subTree=f,Hi(e,"patch"),b(h,f,m(h.el),te(h),e,i,a),Wi(e,"patch"),t.el=f.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,f.el),r&&Xi(r,i),(c=t.props&&t.props.onVnodeUpdated)&&Xi(()=>Ga(c,l,t,u),i),Rn(e),qt()}else{let o;const{el:s,props:l}=t,{bm:u,m:c,parent:d,root:f,type:h}=e,p=Sr(t);Ki(e,!1),u&&N(u),!p&&(o=l&&l.onVnodeBeforeMount)&&Ga(o,d,t),Ki(e,!0);{f.ce&&!1!==f.ce._def.shadowRoot&&f.ce._injectChildStyle(h),Hi(e,"render");const o=e.subTree=da(e);Wi(e,"render"),Hi(e,"patch"),b(null,o,n,r,e,i,a),Wi(e,"patch"),t.el=o.el}if(c&&Xi(c,i),!p&&(o=l&&l.onVnodeMounted)){const e=t;Xi(()=>Ga(o,d,e),i)}(256&t.shapeFlag||d&&Sr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Xi(e.a,i),e.isMounted=!0,Dn(e),t=n=r=null}};e.scope.on();const l=e.effect=new fe(s);e.scope.off();const u=e.update=l.run.bind(l),c=e.job=l.runIfDirty.bind(l);c.i=e,c.id=e.uid,l.scheduler=()=>hn(c),Ki(e,!0),l.onTrack=e.rtc?t=>N(e.rtc,t):void 0,l.onTrigger=e.rtg?t=>N(e.rtg,t):void 0,u()},X=(e,t,r)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Tt(i),[l]=e.propsOptions;let u=!1;if(function(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}(e)||!(r||o>0)||16&o){let r;_i(e,t,i,a)&&(u=!0);for(const a in s)t&&(d(t,a)||(r=M(a))!==a&&d(t,r))||(l?!n||void 0===n[a]&&void 0===n[r]||(i[a]=ki(l,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(const e in a)t&&d(t,e)||(delete a[e],u=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(la(e.emitsOptions,o))continue;const c=t[o];if(l)if(d(a,o))c!==a[o]&&(a[o]=c,u=!0);else{const t=P(o);i[t]=ki(l,s,t,c,e,!1)}else c!==a[o]&&(a[o]=c,u=!0)}}u&&ze(e.attrs,"set",""),Oi(t||{},i,e)}(e,t.props,i,r),((e,t,r)=>{const{vnode:i,slots:a}=e;let o=!0,s=n;if(32&i.shapeFlag){const n=t._;n?xn?(zi(a,t,r),ze(e,"set","$slots")):r&&1===n?o=!1:zi(a,t,r):(o=!t.$stable,ji(t,a)),s=t}else t&&(Fi(e,t),s={default:1});if(o)for(const n in a)Ri(n)||null!=s[n]||delete a[n]})(e,t.children,r),Te(),vn(e),Oe()},G=(e,t,n,r,i,a,o,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void K(u,d,n,r,i,a,o,s,l);if(256&f)return void Y(u,d,n,r,i,a,o,s,l)}8&h?(16&c&&ee(u,i,a),d!==u&&p(n,d)):16&c?16&h?K(u,d,n,r,i,a,o,s,l):ee(u,i,a,!0):(8&c&&p(n,""),16&h&&D(d,n,r,i,a,o,s,l))},Y=(e,t,n,i,a,o,s,l,u)=>{t=t||r;const c=(e=e||r).length,d=t.length,f=Math.min(c,d);let h;for(h=0;h<f;h++){const r=t[h]=u?Wa(t[h]):Ha(t[h]);b(e[h],r,n,null,a,o,s,l,u)}c>d?ee(e,a,o,!0,!1,f):D(t,n,i,a,o,s,l,u,f)},K=(e,t,n,i,a,o,s,l,u)=>{let c=0;const d=t.length;let f=e.length-1,h=d-1;for(;c<=f&&c<=h;){const r=e[c],i=t[c]=u?Wa(t[c]):Ha(t[c]);if(!Ma(r,i))break;b(r,i,n,null,a,o,s,l,u),c++}for(;c<=f&&c<=h;){const r=e[f],i=t[h]=u?Wa(t[h]):Ha(t[h]);if(!Ma(r,i))break;b(r,i,n,null,a,o,s,l,u),f--,h--}if(c>f){if(c<=h){const e=h+1,r=e<d?t[e].el:i;for(;c<=h;)b(null,t[c]=u?Wa(t[c]):Ha(t[c]),n,r,a,o,s,l,u),c++}}else if(c>h)for(;c<=f;)Z(e[c],a,o,!0),c++;else{const p=c,m=c,v=new Map;for(c=m;c<=h;c++){const e=t[c]=u?Wa(t[c]):Ha(t[c]);null!=e.key&&(v.has(e.key)&&Jt("Duplicate keys found during update:",JSON.stringify(e.key),"Make sure keys are unique."),v.set(e.key,c))}let g,y=0;const w=h-m+1;let x=!1,S=0;const _=new Array(w);for(c=0;c<w;c++)_[c]=0;for(c=p;c<=f;c++){const r=e[c];if(y>=w){Z(r,a,o,!0);continue}let i;if(null!=r.key)i=v.get(r.key);else for(g=m;g<=h;g++)if(0===_[g-m]&&Ma(r,t[g])){i=g;break}void 0===i?Z(r,a,o,!0):(_[i-m]=c+1,i>=S?S=i:x=!0,b(r,t[i],n,null,a,o,s,l,u),y++)}const k=x?function(e){const t=e.slice(),n=[0];let r,i,a,o,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<l?a=s+1:o=s;l<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,o=n[a-1];for(;a-- >0;)n[a]=o,o=t[o];return n}(_):r;for(g=k.length-1,c=w-1;c>=0;c--){const e=m+c,r=t[e],f=t[e+1],h=e+1<d?f.el||f.placeholder:i;0===_[c]?b(null,r,n,h,a,o,s,l,u):x&&(g<0||c!==k[g]?q(r,n,h,2):g--)}}},q=(e,t,n,r,i=null)=>{const{el:s,type:l,transition:u,children:c,shapeFlag:d}=e;if(6&d)return void q(e.component.subTree,t,n,r);if(128&d)return void e.suspense.move(t,n,r);if(64&d)return void l.move(e,t,n,ie);if(l===ba){a(s,t,n);for(let e=0;e<c.length;e++)q(c[e],t,n,r);return void a(e.anchor,t,n)}if(l===Sa)return void A(e,t,n);if(2!==r&&1&d&&u)if(0===r)u.beforeEnter(s),a(s,t,n),Xi(()=>u.enter(s),i);else{const{leave:r,delayLeave:i,afterLeave:l}=u,c=()=>{e.ctx.isUnmounted?o(s):a(s,t,n)},d=()=>{r(s,()=>{c(),l&&l()})};i?i(s,c,d):d()}else a(s,t,n)},Z=(e,t,n,r=!1,i=!1)=>{const{type:a,props:o,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:f,cacheIndex:h}=e;if(-2===d&&(i=!1),null!=s&&(Te(),xr(s,null,n,e,!0),Oe()),null!=h&&(t.renderCache[h]=void 0),256&c)return void t.ctx.deactivate(e);const p=1&c&&f,m=!Sr(e);let v;if(m&&(v=o&&o.onVnodeBeforeUnmount)&&Ga(v,t,e),6&c)$(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&Gn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,ie,r):u&&!u.hasOnce&&(a!==ba||d>0&&64&d)?ee(u,t,n,!1,!0):(a===ba&&384&d||!i&&16&c)&&ee(l,t,n),r&&J(e)}(m&&(v=o&&o.onVnodeUnmounted)||p)&&Xi(()=>{v&&Ga(v,t,e),p&&Gn(e,null,t,"unmounted")},n)},J=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===ba)return void(e.patchFlag>0&&2048&e.patchFlag&&i&&!i.persisted?e.children.forEach(e=>{e.type===xa?o(e.el):J(e)}):Q(n,r));if(t===Sa)return void T(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},Q=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},$=(e,t,n)=>{e.type.__hmrId&&function(e){_n.get(e.type.__hmrId).instances.delete(e)}(e);const{bum:r,scope:i,job:a,subTree:o,um:s,m:l,a:u,parent:c,slots:{__:d}}=e;var h;Ji(l),Ji(u),r&&N(r),c&&f(d)&&d.forEach(e=>{c.renderCache[e]=void 0}),i.stop(),a&&(a.flags|=8,Z(o,e,t,n)),s&&Xi(s,t),Xi(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),h=e,On&&"function"==typeof On.cleanupBuffer&&!On.cleanupBuffer(h)&&Ln(h)},ee=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)Z(e[o],t,n,r,i)},te=e=>{if(6&e.shapeFlag)return te(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[Yn];return n?v(n):t};let ne=!1;const re=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ne||(ne=!0,vn(),gn(),ne=!1)},ie={p:b,um:Z,m:q,r:J,mt:H,mc:D,pc:G,pbc:L,n:te,o:e};let ae;return{render:re,hydrate:ae,createApp:mi(re)}}(e)}function Yi({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ki({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qi(e,t,n=!1){const r=e.children,i=t.children;if(f(r)&&f(i))for(let a=0;a<r.length;a++){const e=r[a];let t=i[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[a]=Wa(i[a]),t.el=e.el),n||-2===t.patchFlag||qi(e,t)),t.type===wa&&(t.el=e.el),t.type!==xa||t.el||(t.el=e.el),t.el&&(t.el.__vnode=t)}}function Zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zi(t)}function Ji(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Qi=Symbol.for("v-scx"),$i=()=>{{const e=yi(Qi);return e||Jt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ea(e,t){return na(e,null,t)}function ta(e,t,n){return v(t)||Jt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),na(e,t,n)}function na(e,t,r=n){const{immediate:a,deep:o,flush:s,once:u}=r;t||(void 0!==a&&Jt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Jt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==u&&Jt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=l({},r);c.onWarn=Jt;const d=t&&a||!t&&"post"!==s;let f;if(io)if("sync"===s){const e=$i();f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const h=qa;c.call=(e,t,n)=>nn(e,h,t,n);let p=!1;"post"===s?c.scheduler=e=>{Xi(e,h&&h.suspense)}:"sync"!==s&&(p=!0,c.scheduler=(e,t)=>{t?e():hn(e)}),c.augmentJob=e=>{t&&(e.flags|=4),p&&(e.flags|=2,h&&(e.id=h.uid,e.i=h))};const m=Xt(e,t,c);return io&&(f?f.push(m):d&&m()),m}function ra(e,t,n){const r=this.proxy,i=g(e)?e.includes(".")?ia(r,e):()=>r[e]:e.bind(r,r);let a;v(t)?a=t:(a=t.handler,n=t);const o=$a(this),s=na(i,a.bind(r),n);return o(),s}function ia(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const aa=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${P(t)}Modifiers`]||e[`${M(t)}Modifiers`];function oa(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||n;{const{emitsOptions:n,propsOptions:[i]}=e;if(n)if(t in n){const e=n[t];if(v(e)){e(...r)||Jt(`Invalid event arguments: event validation failed for event "${t}".`)}}else i&&R(P(t))in i||Jt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${R(P(t))}" prop.`)}let a=r;const o=t.startsWith("update:"),s=o&&aa(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(F))),function(e,t,n){En("component:emit",e.appContext.app,e,t,n)}(e,t,a);{const n=t.toLowerCase();n!==t&&i[R(n)]&&Jt(`Event "${n}" is emitted in component ${po(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${M(t)}" instead of "${t}".`)}let l,u=i[l=R(t)]||i[l=R(P(t))];!u&&o&&(u=i[l=R(M(t))]),u&&nn(u,e,6,a);const c=i[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,nn(c,e,6,a)}}function sa(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let o={},s=!1;if(!v(e)){const r=e=>{const n=sa(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||s?(f(a)?a.forEach(e=>o[e]=null):l(o,a),b(e)&&r.set(e,o),o):(b(e)&&r.set(e,null),null)}function la(e,t){return!(!e||!o(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,M(t))||d(e,t))}let ua=!1;function ca(){ua=!0}function da(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:l,attrs:u,emit:c,render:d,renderCache:f,props:h,data:p,setupState:m,ctx:v,inheritAttrs:g}=e,y=Hn(e);let b,w;ua=!1;try{if(4&n.shapeFlag){const e=i||r,t=m.__isScriptSetup?new Proxy(e,{get:(e,t,n)=>(Jt(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(e,t,n))}):e;b=Ha(d.call(t,e,f,xt(h),m,p,v)),w=u}else{const e=t;u===h&&ca(),b=Ha(e.length>1?e(xt(h),{get attrs(){return ca(),xt(u)},slots:l,emit:c}):e(xt(h),null)),w=t.props?u:pa(u)}}catch(_){_a.length=0,rn(_,e,1),b=Na(xa)}let x,S=b;if(b.patchFlag>0&&2048&b.patchFlag&&([S,x]=fa(b)),w&&!1!==g){const e=Object.keys(w),{shapeFlag:t}=S;if(e.length)if(7&t)a&&e.some(s)&&(w=ma(w,a)),S=ja(S,w,!1,!0);else if(!ua&&S.type!==xa){const e=Object.keys(u),t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];o(i)?s(i)||t.push(i[2].toLowerCase()+i.slice(3)):n.push(i)}n.length&&Jt(`Extraneous non-props attributes (${n.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),t.length&&Jt(`Extraneous non-emits event listeners (${t.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}return n.dirs&&(va(S)||Jt("Runtime directive used on component with non-element root node. The directives will not function as intended."),S=ja(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(va(S)||Jt("Component inside <Transition> renders non-element root node that cannot be animated."),vr(S,n.transition)),x?x(S):b=S,Hn(y),b}const fa=e=>{const t=e.children,n=e.dynamicChildren,r=ha(t,!1);if(!r)return[e,void 0];if(r.patchFlag>0&&2048&r.patchFlag)return fa(r);const i=t.indexOf(r),a=n?n.indexOf(r):-1;return[Ha(r),r=>{t[i]=r,n&&(a>-1?n[a]=r:r.patchFlag>0&&(e.dynamicChildren=[...n,r]))}]};function ha(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(!Ea(i))return;if(i.type!==xa||"v-if"===i.children){if(n)return;if(n=i,t&&n.patchFlag>0&&2048&n.patchFlag)return ha(n.children)}}return n}const pa=e=>{let t;for(const n in e)("class"===n||"style"===n||o(n))&&((t||(t={}))[n]=e[n]);return t},ma=(e,t)=>{const n={};for(const r in e)s(r)&&r.slice(9)in t||(n[r]=e[r]);return n},va=e=>7&e.shapeFlag||e.type===xa;function ga(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(t[a]!==e[a]&&!la(n,a))return!0}return!1}const ya=e=>e.__isSuspense;const ba=Symbol.for("v-fgt"),wa=Symbol.for("v-txt"),xa=Symbol.for("v-cmt"),Sa=Symbol.for("v-stc"),_a=[];let ka=null;function Aa(e=!1){_a.push(ka=e?null:[])}let Ca=1;function Ta(e,t=!1){Ca+=e,e<0&&ka&&t&&(ka.hasOnce=!0)}function Oa(e){return e.dynamicChildren=Ca>0?ka||r:null,_a.pop(),ka=_a[_a.length-1]||null,Ca>0&&ka&&ka.push(e),e}function Ia(e,t,n,r,i,a){return Oa(La(e,t,n,r,i,a,!0))}function Pa(e,t,n,r,i){return Oa(Na(e,t,n,r,i,!0))}function Ea(e){return!!e&&!0===e.__v_isVNode}function Ma(e,t){if(6&t.shapeFlag&&e.component){const n=Sn.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Da=({key:e})=>null!=e?e:null,Ra=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||Pt(e)||v(e)?{i:Bn,r:e,k:t,f:!!n}:e:null);function La(e,t=null,n=null,r=0,i=null,a=(e===ba?0:1),o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Da(t),ref:t&&Ra(t),scopeId:Vn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Bn};return s?(Ua(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=g(n)?8:16),l.key!=l.key&&Jt("VNode created with invalid key (NaN). VNode type:",l.type),Ca>0&&!o&&ka&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&ka.push(l),l}const Na=(...e)=>function(e,t=null,n=null,r=0,i=null,a=!1){e&&e!==Hr||(e||Jt(`Invalid vnode type when creating vnode: ${e}.`),e=xa);if(Ea(e)){const r=ja(e,t,!0);return n&&Ua(r,n),Ca>0&&!a&&ka&&(6&r.shapeFlag?ka[ka.indexOf(e)]=r:ka.push(r)),r.patchFlag=-2,r}mo(e)&&(e=e.__vccOpts);if(t){t=function(e){return e?Ct(e)||xi(e)?l({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=G(e)),b(n)&&(Ct(n)&&!f(n)&&(n=l({},n)),t.style=V(n))}const o=g(e)?1:ya(e)?128:Kn(e)?64:b(e)?4:v(e)?2:0;4&o&&Ct(e)&&Jt("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Tt(e));return La(e,t,n,r,i,o,a,!0)}(...e);function ja(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Xa(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Da(u),ref:t&&t.ref?n&&a?f(a)?a.concat(Ra(t)):[a,Ra(t)]:Ra(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:-1===o&&f(s)?s.map(Fa):s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ba?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ja(e.ssContent),ssFallback:e.ssFallback&&ja(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&vr(c,l.clone(c)),c}function Fa(e){const t=ja(e);return f(e.children)&&(t.children=e.children.map(Fa)),t}function za(e=" ",t=0){return Na(wa,null,e,t)}function Ba(e,t){const n=Na(Sa,null,e);return n.staticCount=t,n}function Va(e="",t=!1){return t?(Aa(),Pa(xa,null,e)):Na(xa,null,e)}function Ha(e){return null==e||"boolean"==typeof e?Na(xa):f(e)?Na(ba,null,e.slice()):Ea(e)?Wa(e):Na(wa,null,String(e))}function Wa(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ja(e)}function Ua(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ua(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xi(t)?3===r&&Bn&&(1===Bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Bn}}else v(t)?(t={default:t,_ctx:Bn},n=32):(t=String(t),64&r?(n=16,t=[za(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xa(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=G([t.class,r.class]));else if("style"===e)t.style=V([t.style,r.style]);else if(o(e)){const n=t[e],i=r[e];!i||n===i||f(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function Ga(e,t,n,r=null){nn(e,t,7,[n,r])}const Ya=hi();let Ka=0;let qa=null;const Za=()=>qa||Bn;let Ja,Qa;{const e=B(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ja=t("__VUE_INSTANCE_SETTERS__",e=>qa=e),Qa=t("__VUE_SSR_SETTERS__",e=>io=e)}const $a=e=>{const t=qa;return Ja(e),e.scope.on(),()=>{e.scope.off(),Ja(t)}},eo=()=>{qa&&qa.scope.off(),Ja(null)},to=t("slot,component");function no(e,{isNativeTag:t}){(to(e)||t(e))&&Jt("Do not use built-in or reserved HTML elements as component id: "+e)}function ro(e){return 4&e.vnode.shapeFlag}let io=!1;function ao(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)?(Ea(t)&&Jt("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=jt(t),function(e){const{ctx:t,setupState:n}=e;Object.keys(Tt(n)).forEach(e=>{if(!n.__isScriptSetup){if(Jr(e[0]))return void Jt(`setup() return property ${JSON.stringify(e)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[e],set:i})}})}(e)):void 0!==t&&Jt("setup() should return an object. Received: "+(null===t?"null":typeof t)),so(e,n)}const oo=()=>!0;function so(e,t,n){const r=e.type;e.render||(e.render=r.render||i);{const t=$a(e);Te();try{ni(e)}finally{Oe(),t()}}r.render||e.render!==i||t||(r.template?Jt('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Jt("Component is missing template or render function: ",r))}const lo={get:(e,t)=>(ca(),Fe(e,"get",""),e[t]),set:()=>(Jt("setupContext.attrs is readonly."),!1),deleteProperty:()=>(Jt("setupContext.attrs is readonly."),!1)};function uo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(jt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&j(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Zr?Zr[n](e):void 0,has:(e,t)=>t in e||t in Zr})):e.proxy;var t}const co=/(?:^|[-_])(\w)/g,fo=e=>e.replace(co,e=>e.toUpperCase()).replace(/[-_]/g,"");function ho(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function po(e,t,n=!1){let r=ho(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?fo(r):n?"App":"Anonymous"}function mo(e){return v(e)&&"__vccOpts"in e}const vo=(e,t)=>{const n=function(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new Vt(r,i,n)}(e,0,io);{const e=Za();e&&e.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function go(e,t,n){const r=arguments.length;return 2===r?b(t)&&!f(t)?Ea(t)?Na(e,null,[t]):Na(e,t):Na(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Ea(n)&&(n=[n]),Na(e,t,n))}const yo="3.5.18",bo=Jt;
/**
  * @vue/runtime-dom v3.5.18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/
let wo;const xo="undefined"!=typeof window&&window.trustedTypes;if(xo)try{wo=xo.createPolicy("vue",{createHTML:e=>e})}catch(kJe){bo(`Error creating trusted types policy: ${kJe}`)}const So=wo?e=>wo.createHTML(e):e=>e,_o="undefined"!=typeof document?document:null,ko=_o&&_o.createElement("template"),Ao={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?_o.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?_o.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?_o.createElement(e,{is:n}):_o.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>_o.createTextNode(e),createComment:e=>_o.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_o.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{ko.innerHTML=So("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=ko.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Co="transition",To="animation",Oo=Symbol("_vtc"),Io={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Po=l({},lr,Io),Eo=(e=>(e.displayName="Transition",e.props=Po,e))((e,{slots:t})=>go(dr,function(e){const t={};for(const l in e)l in Io||(t[l]=e[l]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(b(e))return[Ro(e.enter),Ro(e.leave)];{const t=Ro(e);return[t,t]}}(i),v=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:x,onLeave:S,onLeaveCancelled:_,onBeforeAppear:k=y,onAppear:A=w,onAppearCancelled:C=x}=t,T=(e,t,n,r)=>{e._enterCancelled=r,No(e,t?d:s),No(e,t?c:o),n&&n()},O=(e,t)=>{e._isLeaving=!1,No(e,f),No(e,p),No(e,h),t&&t()},I=e=>(t,n)=>{const i=e?A:w,o=()=>T(t,e,n);Mo(i,[t,o]),jo(()=>{No(t,e?u:a),Lo(t,e?d:s),Do(i)||zo(t,r,v,o)})};return l(t,{onBeforeEnter(e){Mo(y,[e]),Lo(e,a),Lo(e,o)},onBeforeAppear(e){Mo(k,[e]),Lo(e,u),Lo(e,c)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>O(e,t);Lo(e,f),e._enterCancelled?(Lo(e,h),Ho()):(Ho(),Lo(e,h)),jo(()=>{e._isLeaving&&(No(e,f),Lo(e,p),Do(S)||zo(e,r,g,n))}),Mo(S,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),Mo(x,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),Mo(C,[e])},onLeaveCancelled(e){O(e),Mo(_,[e])}})}(e),t)),Mo=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Do=e=>!!e&&(f(e)?e.some(e=>e.length>1):e.length>1);function Ro(e){const t=(e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return function(e,t){void 0!==e&&("number"!=typeof e?Jt(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Jt(`${t} is NaN - the duration expression might be incorrect.`))}(t,"<transition> explicit duration"),t}function Lo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Oo]||(e[Oo]=new Set)).add(t)}function No(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[Oo];n&&(n.delete(t),n.size||(e[Oo]=void 0))}function jo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fo=0;function zo(e,t,n,r){const i=e._endId=++Fo,a=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=function(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${Co}Delay`),a=r(`${Co}Duration`),o=Bo(i,a),s=r(`${To}Delay`),l=r(`${To}Duration`),u=Bo(s,l);let c=null,d=0,f=0;t===Co?o>0&&(c=Co,d=o,f=a.length):t===To?u>0&&(c=To,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?Co:To:null,f=c?c===Co?a.length:l.length:0);const h=c===Co&&/\b(transform|all)(,|$)/.test(r(`${Co}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=t=>{t.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function Bo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Vo(t)+Vo(e[n])))}function Vo(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ho(){return document.body.offsetHeight}const Wo=Symbol("_vod"),Uo=Symbol("_vsh"),Xo={beforeMount(e,{value:t},{transition:n}){e[Wo]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Go(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Go(e,!0),r.enter(e)):r.leave(e,()=>{Go(e,!1)}):Go(e,t))},beforeUnmount(e,{value:t}){Go(e,t)}};function Go(e,t){e.style.display=t?e[Wo]:"none",e[Uo]=!t}Xo.name="show";const Yo=Symbol("CSS_VAR_TEXT"),Ko=/(^|;)\s*display\s*:/;const qo=/[^\\];\s*$/,Zo=/\s*!important$/;function Jo(e,t,n){if(f(n))n.forEach(n=>Jo(e,t,n));else if(null==n&&(n=""),qo.test(n)&&bo(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=$o[t];if(n)return n;let r=P(t);if("filter"!==r&&r in e)return $o[t]=r;r=D(r);for(let i=0;i<Qo.length;i++){const n=Qo[i]+r;if(n in e)return $o[t]=n}return t}(e,t);Zo.test(n)?e.setProperty(M(r),n.replace(Zo,""),"important"):e[r]=n}}const Qo=["Webkit","Moz","ms"],$o={};const es="http://www.w3.org/1999/xlink";function ts(e,t,n,r,i,a=Z(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(es,t.slice(6,t.length)):e.setAttributeNS(es,t,n):null==n||a&&!J(n)?e.removeAttribute(t):e.setAttribute(t,a?"":y(n)?String(n):n)}function ns(e,t,n,r,i){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?So(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const r="OPTION"===a?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=J(n):null==n&&"string"===r?(n="",o=!0):"number"===r&&(n=0,o=!0)}try{e[t]=n}catch(kJe){o||bo(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${n} is invalid.`,kJe)}o&&e.removeAttribute(i||t)}function rs(e,t,n,r){e.addEventListener(t,n,r)}const is=Symbol("_vei");function as(e,t,n,r,i=null){const a=e[is]||(e[is]={}),o=a[t];if(r&&o)o.value=cs(r,t);else{const[n,s]=function(e){let t;if(os.test(e)){let n;for(t={};n=e.match(os);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):M(e.slice(2));return[n,t]}(t);if(r){const o=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();nn(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=us(),n}(cs(r,t),i);rs(e,n,o,s)}else o&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,o,s),a[t]=void 0)}}const os=/(?:Once|Passive|Capture)$/;let ss=0;const ls=Promise.resolve(),us=()=>ss||(ls.then(()=>ss=0),ss=Date.now());function cs(e,t){return v(e)||f(e)?e:(bo(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?\nExpected function or array of functions, received type ${typeof e}.`),i)}const ds=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const fs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>N(t,e):t},hs=Symbol("_assign"),ps={deep:!0,created(e,t,n){e[hs]=fs(n),rs(e,"change",()=>{const t=e._modelValue,n=function(e){return"_value"in e?e._value:e.value}(e),r=e.checked,i=e[hs];if(f(t)){const e=ee(t,n),a=-1!==e;if(r&&!a)i(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),i(n)}}else if(p(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(vs(e,r))})},mounted:ms,beforeUpdate(e,t,n){e[hs]=fs(n),ms(e,t,n)}};function ms(e,{value:t,oldValue:n},r){let i;if(e._modelValue=t,f(t))i=ee(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Q(t,vs(e,!0))}e.checked!==i&&(e.checked=i)}function vs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gs=["ctrl","shift","alt","meta"],ys={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>gs.some(n=>e[`${n}Key`]&&!t.includes(n))},bs=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=ys[t[e]];if(r&&r(n,t))return}return e(n,...r)})},ws=l({patchProp:(e,t,n,r,i,a)=>{const l="svg"===i;"class"===t?function(e,t,n){const r=e[Oo];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,i=g(n);let a=!1;if(n&&!i){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Jo(r,t,"")}else for(const e in t)null==n[e]&&Jo(r,e,"");for(const e in n)"display"===e&&(a=!0),Jo(r,e,n[e])}else if(i){if(t!==n){const e=r[Yo];e&&(n+=";"+e),r.cssText=n,a=Ko.test(n)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=a?r.display:"",e[Uo]&&(r.display="none"))}(e,n,r):o(t)?s(t)||as(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&ds(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(ds(t)&&g(n))return!1;return t in e}(e,t,r,l))?(ns(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||ts(e,t,r,l,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&g(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),ts(e,t,r,l)):ns(e,P(t),r,0,t)}},Ao);let xs;const Ss=(...e)=>{const t=(xs||(xs=Gi(ws))).createApp(...e);!function(e){Object.defineProperty(e.config,"isNativeTag",{value:e=>Y(e)||K(e)||q(e),writable:!1})}(t),function(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get:()=>t,set(){bo("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get:()=>(bo(r),n),set(){bo(r)}})}}(t);const{mount:n}=t;return t.mount=e=>{const r=function(e){if(g(e)){const t=document.querySelector(e);return t||bo(`Failed to mount app: mount target selector "${e}" returned null.`),t}window.ShadowRoot&&e instanceof window.ShadowRoot&&"closed"===e.mode&&bo('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs');return e}
/**
  * vue v3.5.18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/(e);if(!r)return;const i=t._component;v(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const a=n(r,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};
/*!
    * shared v11.1.12
    * (c) 2025 kazuya kawaguchi
    * Released under the MIT License.
    */
function _s(e,t){}!function(){if("undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},r={style:"color:#f5222d"},i={style:"color:#eb2f96"},a={__vue_custom_formatter:!0,header(t){if(!b(t))return null;if(t.__isVue)return["div",e,"VueInstance"];if(Pt(t)){Te();const n=t.value;return Oe(),["div",{},["span",e,h(t)],"<",u(n),">"]}return _t(t)?["div",{},["span",e,At(t)?"ShallowReactive":"Reactive"],"<",u(t),">"+(kt(t)?" (readonly)":"")]:kt(t)?["div",{},["span",e,At(t)?"ShallowReadonly":"Readonly"],"<",u(t),">"]:null},hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...o(e.$)]}};function o(e){const t=[];e.type.props&&e.props&&t.push(s("props",Tt(e.props))),e.setupState!==n&&t.push(s("setup",e.setupState)),e.data!==n&&t.push(s("data",Tt(e.data)));const r=c(e,"computed");r&&t.push(s("computed",r));const a=c(e,"inject");return a&&t.push(s("injected",a)),t.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function s(e,t){return t=l({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map(e=>["div",{},["span",i,e+": "],u(t[e],!1)])]]:["span",{}]}function u(e,n=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",r,JSON.stringify(e)]:"boolean"==typeof e?["span",i,e]:b(e)?["object",{object:n?Tt(e):e}]:["span",r,String(e)]}function c(e,t){const n=e.type;if(v(n))return;const r={};for(const i in e.ctx)d(n,i,t)&&(r[i]=e.ctx[i]);return r}function d(e,t,n){const r=e[n];return!!(f(r)&&r.includes(t)||b(r)&&t in r)||!(!e.extends||!d(e.extends,t,n))||!(!e.mixins||!e.mixins.some(e=>d(e,t,n)))||void 0}function h(e){return At(e)?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(a):window.devtoolsFormatters=[a]}();const ks={};function As(e){ks[e]||(ks[e]=!0)}const Cs="undefined"!=typeof window;let Ts,Os;{const e=Cs&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ts=t=>{e.mark(t)},Os=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Is=/\{([0-9a-zA-Z]+)\}/g;function Ps(e,...t){return 1===t.length&&qs(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(Is,(e,n)=>t.hasOwnProperty(n)?t[n]:"")}const Es=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ms=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ds=e=>"number"==typeof e&&isFinite(e),Rs=e=>"[object RegExp]"===Js(e),Ls=e=>Qs(e)&&0===Object.keys(e).length,Ns=Object.assign,js=Object.create,Fs=(e=null)=>js(e);let zs;const Bs=()=>zs||(zs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Fs());function Vs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Hs(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Ws=Object.prototype.hasOwnProperty;function Us(e,t){return Ws.call(e,t)}const Xs=Array.isArray,Gs=e=>"function"==typeof e,Ys=e=>"string"==typeof e,Ks=e=>"boolean"==typeof e,qs=e=>null!==e&&"object"==typeof e,Zs=Object.prototype.toString,Js=e=>Zs.call(e),Qs=e=>"[object Object]"===Js(e);function $s(e,t=""){return e.reduce((e,n,r)=>0===r?e+n:e+t+n,"")}function el(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get("*")||[]).slice().map(e=>e(t,n))}}}const tl=e=>!qs(e)||Xs(e);function nl(e,t){if(tl(e)||tl(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{"__proto__"!==r&&(qs(e[r])&&!qs(t[r])&&(t[r]=Array.isArray(e[r])?[]:Fs()),tl(t[r])||tl(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}
/*!
    * message-compiler v11.1.12
    * (c) 2025 kazuya kawaguchi
    * Released under the MIT License.
    */function rl(e,t,n){return{start:e,end:t}}const il=1,al=2,ol=3,sl=4,ll=5,ul=6,cl=7,dl=8,fl=9,hl=10,pl=11,ml=12,vl=13,gl=14,yl=15,bl=16,wl={[il]:"Expected token: '{0}'",[al]:"Invalid token in placeholder: '{0}'",[ol]:"Unterminated single quote in placeholder",[sl]:"Unknown escape sequence: \\{0}",[ll]:"Invalid unicode escape sequence: {0}",[ul]:"Unbalanced closing brace",[cl]:"Unterminated closing brace",[dl]:"Empty placeholder",[fl]:"Not allowed nest placeholder",[hl]:"Invalid linked format",[pl]:"Plural must have messages",[ml]:"Unexpected empty linked modifier",[vl]:"Unexpected empty linked key",[gl]:"Unexpected lexical analysis in token: '{0}'",[yl]:"unhandled codegen node type: '{0}'",[bl]:"unhandled mimifier node type: '{0}'"};function xl(e,t,n={}){const{domain:r,messages:i,args:a}=n,o=Ps((i||wl)[e]||"",...a||[]),s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function Sl(e){throw e}const _l=/<\/?[\w\s="/.':;#-\/]+>/,kl=" ",Al="\n",Cl=String.fromCharCode(8232),Tl=String.fromCharCode(8233);function Ol(e){const t=e;let n=0,r=1,i=1,a=0;const o=e=>"\r"===t[e]&&t[e+1]===Al,s=e=>t[e]===Tl,l=e=>t[e]===Cl,u=e=>o(e)||(e=>t[e]===Al)(e)||s(e)||l(e),c=e=>o(e)||s(e)||l(e)?Al:t[e];function d(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}return{index:()=>n,line:()=>r,column:()=>i,peekOffset:()=>a,charAt:c,currentChar:()=>c(n),currentPeek:()=>c(n+a),next:d,peek:function(){return o(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,i=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)d();a=0}}}const Il=void 0;function Pl(e,t={}){const n=!1!==t.location,r=Ol(e),i=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(e,t,r,...i){const a=u();if(t.column+=r,t.offset+=r,c){const r=xl(e,n?rl(a.startLoc,t):null,{domain:"tokenizer",args:i});c(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;const i={type:t};return n&&(i.loc=rl(e.startLoc,e.endLoc)),null!=r&&(i.value=r),i}const h=e=>f(e,13);function p(e,t){return e.currentChar()===t?(e.next(),t):(d(il,a(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===kl||e.currentPeek()===Al;)t+=e.currentPeek(),e.peek();return t}function v(e){const t=m(e);return e.skipToPeek(),t}function g(e){if(e===Il)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Il)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function w(e,t=!0){const n=(t=!1,r="")=>{const i=e.currentPeek();return"{"===i?t:"@"!==i&&i?"|"===i?!(r===kl||r===Al):i===kl?(e.peek(),n(!0,kl)):i!==Al||(e.peek(),n(!0,Al)):t},r=n();return t&&e.resetPeek(),r}function x(e,t){const n=e.currentChar();return n===Il?Il:t(n)?(e.next(),n):null}function S(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function _(e){return x(e,S)}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function A(e){return x(e,k)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function T(e){return x(e,C)}function O(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function I(e){return x(e,O)}function P(e){let t="",n="";for(;t=T(e);)n+=t;return n}function E(e){return"'"!==e&&e!==Al}function M(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return D(e,t,4);case"U":return D(e,t,6);default:return d(sl,a(),0,t),""}}function D(e,t,n){p(e,t);let r="";for(let i=0;i<n;i++){const n=I(e);if(!n){d(ll,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function R(e){return"{"!==e&&"}"!==e&&e!==kl&&e!==Al}function L(e){v(e);let t="",n="";for(;t=x(e,R);)n+=t;return n}function N(e){v(e);const t=p(e,"|");return v(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(fl,a(),0),e.next(),n=f(t,2,"{"),v(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(dl,a(),0),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&v(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(cl,a(),0),n=F(e,t)||h(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(b(e))return t.braceNest>0&&d(cl,a(),0),n=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(cl,a(),0),t.braceNest=0,z(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){v(e);let t="",n="";for(;t=A(e);)n+=t;const r=e.currentChar();if(r&&"}"!==r&&r!==Il&&r!==kl&&r!==Al&&"\u3000"!==r){const t=L(e);return d(al,a(),0,n+t),n+t}return e.currentChar()===Il&&d(cl,a(),0),n}(e)),v(e),n;if(i=y(e,t))return n=f(t,5,function(e){v(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${P(e)}`):t+=P(e),e.currentChar()===Il&&d(cl,a(),0),t}(e)),v(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){v(e),p(e,"'");let t="",n="";for(;t=x(e,E);)n+="\\"===t?M(e):t;const r=e.currentChar();return r===Al||r===Il?(d(ol,a(),0),r===Al&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),v(e),n;if(!r&&!i&&!o)return n=f(t,12,L(e)),d(al,a(),0,n.value),v(e),n;break}}return n}function F(e,t){const{currentType:n}=t;let r=null;const i=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||i!==Al&&i!==kl||d(hl,a(),0),i){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return v(e),e.next(),f(t,8,".");case":":return v(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(v(e),F(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(v(e),f(t,11,function(e){let t="",n="";for(;t=_(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===kl||!t)&&(t===Al?(e.peek(),r()):w(e,!1))},i=r();return e.resetPeek(),i}(e,t)?(v(e),"{"===i?j(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===kl?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&d(hl,a(),0),t.braceNest=0,t.inLinked=!1,z(e,t))}}function z(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||h(t);if(t.inLinked)return F(e,t)||h(t);switch(e.currentChar()){case"{":return j(e,t)||h(t);case"}":return d(ul,a(),0),e.next(),f(t,3,"}");case"@":return F(e,t)||h(t);default:if(b(e))return n=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,n;if(w(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===kl||n===Al)if(w(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=o,l.offset=i(),l.startLoc=a(),r.currentChar()===Il?f(l,13):z(r,l)},currentOffset:i,currentPosition:a,context:u}}const El=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ml(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"\ufffd"}}}function Dl(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,i,a,...o){const s=e.currentPosition();if(s.offset+=a,s.column+=a,n){const e=xl(r,t?rl(i,s):null,{domain:"parser",args:o});n(e)}}function i(e,n,r){const i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(5,r,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(4,r,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(9,r,o);return s.value=t.replace(El,Ml),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e){const t=e.context(),n=i(6,t.offset,t.startLoc);let o=e.nextToken();if(8===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=i(8,o,s);return 11!==t.type?(r(e,ml,n.lastStartLoc,0),l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,gl,n.lastStartLoc,0,Rl(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&r(e,gl,t.lastStartLoc,0,Rl(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&r(e,gl,t.lastStartLoc,0,Rl(o)),n.key=function(e,t){const n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}(e,o.value||"");break;case 4:null==o.value&&r(e,gl,t.lastStartLoc,0,Rl(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&r(e,gl,t.lastStartLoc,0,Rl(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&r(e,gl,t.lastStartLoc,0,Rl(o)),n.key=u(e,o.value||"");break;default:{r(e,vl,t.lastStartLoc,0);const s=e.context(),l=i(7,s.offset,s.startLoc);return l.value="",a(l,s.offset,s.startLoc),n.key=l,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=i(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const i=d||e.nextToken();switch(d=null,i.type){case 0:null==i.value&&r(e,gl,t.lastStartLoc,0,Rl(i)),n.items.push(o(e,i.value||""));break;case 5:null==i.value&&r(e,gl,t.lastStartLoc,0,Rl(i)),n.items.push(s(e,i.value||""));break;case 4:null==i.value&&r(e,gl,t.lastStartLoc,0,Rl(i)),n.items.push(l(e,i.value||""));break;case 6:null==i.value&&r(e,gl,t.lastStartLoc,0,Rl(i)),n.items.push(u(e,i.value||""));break;case 7:{const t=c(e);n.items.push(t.node),d=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,s=d(e);return 13===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const u=i(1,t,n);u.cases=[],u.cases.push(o);do{const t=d(e);l||(l=0===t.items.length),u.cases.push(t)}while(13!==s.currentType);return l&&r(e,pl,n,0),a(u,e.currentOffset(),e.currentPosition()),u}(e,n,o,s)}return{parse:function(n){const o=Pl(n,Ns({},e)),s=o.context(),l=i(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&r(o,gl,s.lastStartLoc,0,n[s.offset]||""),a(l,o.currentOffset(),o.currentPosition()),l}}}function Rl(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function Ll(e,t){for(let n=0;n<e.length;n++)Nl(e[n],t)}function Nl(e,t){switch(e.type){case 1:Ll(e.cases,t),t.helper("plural");break;case 2:Ll(e.items,t);break;case 6:Nl(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function jl(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Nl(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Fl(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=$s(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function zl(e){switch(e.t=e.type,e.type){case 0:{const t=e;zl(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)zl(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)zl(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;zl(t.key),t.k=t.key,delete t.key,t.modifier&&(zl(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw xl(bl,null,{domain:"minifier",args:[e.type]})}delete e.type}function Bl(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Bl(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let n=0;n<i&&(Bl(e,t.cases[n]),n!==i-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a<i&&(Bl(e,t.items[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Bl(e,t.key),t.modifier?(e.push(", "),Bl(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;default:throw xl(yl,null,{domain:"parser",args:[t.type]})}}function Vl(e,t={}){const n=Ns({},t),r=!!n.jit,i=!!n.minify,a=null==n.optimize||n.optimize,o=Dl(n).parse(e);return r?(a&&function(e){const t=e.body;2===t.type?Fl(t):t.cases.forEach(e=>Fl(e))}(o),i&&zl(o),{ast:o,code:""}):(jl(o,n),((e,t={})=>{const n=Ys(t.mode)?t.mode:"normal",r=Ys(t.filename)?t.filename:"message.intl";t.sourceMap;const i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,o=e.helpers||[],s=function(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,a=!1!==t.location,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};function s(e,t){o.code+=e}function l(e,t=!0){const n=t?r:"";s(i?n+"  ".repeat(e):n)}return a&&e.loc&&(o.source=e.loc.source),{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&l(t)},newline:function(){l(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{filename:r,breakLineCode:i,needIndent:a});s.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),o.length>0&&(s.push(`const { ${$s(o.map(e=>`${e}: _${e}`),", ")} } = ctx`),s.newline()),s.push("return "),Bl(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}})(o,n))}
/*!
    * core-base v11.1.12
    * (c) 2025 kazuya kawaguchi
    * Released under the MIT License.
    */function Hl(e){return qs(e)&&0===Kl(e)&&(Us(e,"b")||Us(e,"body"))}const Wl=["b","body"];const Ul=["c","cases"];const Xl=["s","static"];const Gl=["i","items"];const Yl=["t","type"];function Kl(e){return $l(e,Yl)}const ql=["v","value"];function Zl(e,t){const n=$l(e,ql);if(null!=n)return n;throw tu(t)}const Jl=["m","modifier"];const Ql=["k","key"];function $l(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(Us(e,n)&&null!=e[n])return e[n]}return n}const eu=[...Wl,...Ul,...Xl,...Gl,...Ql,...Jl,...ql,...Yl];function tu(e){return new Error(`unhandled node type: ${e}`)}function nu(e){return t=>function(e,t){const n=(r=t,$l(r,Wl));var r;if(null==n)throw tu(0);if(1===Kl(n)){const t=function(e){return $l(e,Ul,[])}(n);return e.plural(t.reduce((t,n)=>[...t,ru(e,n)],[]))}return ru(e,n)}(t,e)}function ru(e,t){const n=function(e){return $l(e,Xl)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return $l(e,Gl,[])}(t).reduce((t,n)=>[...t,iu(e,n)],[]);return e.normalize(n)}}function iu(e,t){const n=Kl(t);switch(n){case 3:case 9:case 7:case 8:return Zl(t,n);case 4:{const r=t;if(Us(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Us(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw tu(n)}case 5:{const r=t;if(Us(r,"i")&&Ds(r.i))return e.interpolate(e.list(r.i));if(Us(r,"index")&&Ds(r.index))return e.interpolate(e.list(r.index));throw tu(n)}case 6:{const n=t,r=function(e){return $l(e,Jl)}(n),i=function(e){const t=$l(e,Ql);if(t)return t;throw tu(6)}(n);return e.linked(iu(e,i),r?iu(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}function au(e,t){t&&(e=>_l.test(e))(e)&&Ps("Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.",{source:e})}const ou=e=>e;let su=Fs();let lu=null;const uu=cu("function:translate");function cu(e){return t=>lu&&lu.emit(e,t)}const du=17,fu=18,hu=19,pu=20,mu=21,vu=22,gu=23;function yu(e){return xl(e,null,{messages:bu})}const bu={[du]:"Invalid arguments",[fu]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[hu]:"The argument provided is not a valid ISO date string",[pu]:"Not support non-string message",[mu]:"cannot support promise value",[vu]:"cannot support async function",[gu]:"cannot support locale type"};function wu(e,t){return null!=t.locale?Su(t.locale):Su(e.locale)}let xu;function Su(e){if(Ys(e))return e;if(Gs(e)){if(e.resolvedOnce&&null!=xu)return xu;if("Function"===e.constructor.name){const n=e();if(qs(t=n)&&Gs(t.then)&&Gs(t.catch))throw yu(mu);return xu=n}throw yu(vu)}throw yu(gu);var t}function _u(e,t,n){return[...new Set([n,...Xs(t)?t:qs(t)?Object.keys(t):Ys(t)?[t]:[n]])]}function ku(e,t,n){const r=Ys(n)?n:Wu,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;Xs(e);)e=Au(a,e,t);const o=Xs(t)||!Qs(t)?t:t.default?t.default:null;e=Ys(o)?[o]:o,Xs(e)&&Au(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Au(e,t,n){let r=!0;for(let i=0;i<t.length&&Ks(r);i++){const a=t[i];Ys(a)&&(r=Cu(e,t[i],n))}return r}function Cu(e,t,n){let r;const i=t.split("-");do{r=Tu(e,i.join("-"),n),i.splice(-1,1)}while(i.length&&!0===r);return r}function Tu(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const i=t.replace(/!/g,"");e.push(i),(Xs(n)||Qs(n))&&n[i]&&(r=n[i])}return r}const Ou=[];Ou[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ou[1]={w:[1],".":[2],"[":[4],o:[7]},Ou[2]={w:[2],i:[3,0],0:[3,0]},Ou[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ou[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ou[5]={"'":[4,0],o:8,l:[5,0]},Ou[6]={'"':[4,0],o:8,l:[6,0]};const Iu=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Pu(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Eu(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Iu.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Mu=new Map;function Du(e,t){return qs(e)?e[t]:null}const Ru=1,Lu=2,Nu=3,ju=4,Fu=5,zu=6,Bu=7,Vu={[Ru]:"Not found '{key}' key in '{locale}' locale messages.",[Lu]:"Fall back to translate '{key}' key with '{target}' locale.",[Nu]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ju]:"Fall back to number format '{key}' key with '{target}' locale.",[Fu]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[zu]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Bu]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Hu(e,...t){return Ps(Vu[e],...t)}const Wu="en-US",Uu=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Xu,Gu,Yu;let Ku=null;const qu=()=>Ku;let Zu=null;const Ju=e=>{Zu=e};let Qu=0;function $u(e={}){const t=Gs(e.onWarn)?e.onWarn:_s,n=Ys(e.version)?e.version:"11.1.12",r=Ys(e.locale)||Gs(e.locale)?e.locale:Wu,i=Gs(r)?Wu:r,a=Xs(e.fallbackLocale)||Qs(e.fallbackLocale)||Ys(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i,o=Qs(e.messages)?e.messages:ec(i),s=Qs(e.datetimeFormats)?e.datetimeFormats:ec(i),l=Qs(e.numberFormats)?e.numberFormats:ec(i),u=Ns(Fs(),e.modifiers,{upper:(e,t)=>"text"===t&&Ys(e)?e.toUpperCase():"vnode"===t&&qs(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&Ys(e)?e.toLowerCase():"vnode"===t&&qs(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&Ys(e)?Uu(e):"vnode"===t&&qs(e)&&"__v_isVNode"in e?Uu(e.children):e}),c=e.pluralRules||Fs(),d=Gs(e.missing)?e.missing:null,f=!Ks(e.missingWarn)&&!Rs(e.missingWarn)||e.missingWarn,h=!Ks(e.fallbackWarn)&&!Rs(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,m=!!e.unresolving,v=Gs(e.postTranslation)?e.postTranslation:null,g=Qs(e.processor)?e.processor:null,y=!Ks(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,w=Gs(e.messageCompiler)?e.messageCompiler:Xu;Gs(e.messageCompiler)&&As(Hu(Bu));const x=Gs(e.messageResolver)?e.messageResolver:Gu||Du,S=Gs(e.localeFallbacker)?e.localeFallbacker:Yu||_u,_=qs(e.fallbackContext)?e.fallbackContext:void 0,k=e,A=qs(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,C=qs(k.__numberFormatters)?k.__numberFormatters:new Map,T=qs(k.__meta)?k.__meta:{};Qu++;const O={version:n,cid:Qu,locale:r,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:m,postTranslation:v,processor:g,warnHtmlMessage:y,escapeParameter:b,messageCompiler:w,messageResolver:x,localeFallbacker:S,fallbackContext:_,onWarn:t,__meta:T};return O.datetimeFormats=s,O.numberFormats=l,O.__datetimeFormatters=A,O.__numberFormatters=C,O.__v_emitter=null!=k.__v_emitter?k.__v_emitter:void 0,function(e,t,n){lu&&lu.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(O,n,T),O}const ec=e=>({[e]:Fs()});function tc(e,t){return e instanceof RegExp?e.test(t):e}function nc(e,t){return e instanceof RegExp?e.test(t):e}function rc(e,t,n,r,i){const{missing:a,onWarn:o}=e;{const r=e.__v_emitter;r&&r.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(null!==a){const r=a(e,n,t,i);return Ys(r)?r:t}return nc(r,t)&&o(Hu(Ru,{key:t,locale:n})),t}function ic(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ac(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function oc(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(ac(e,t[r]))return!0;return!1}const sc="undefined"!=typeof Intl,lc=sc&&void 0!==Intl.DateTimeFormat,uc=sc&&void 0!==Intl.NumberFormat;function cc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(!lc)return a(Hu(Fu)),"";const[l,u,c,d]=fc(...t),f=Ks(c.missingWarn)?c.missingWarn:e.missingWarn,h=Ks(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,m=wu(e,c),v=o(e,i,m);if(!Ys(l)||""===l)return new Intl.DateTimeFormat(m,d).format(u);let g,y={},b=null,w=m,x=null;const S="datetime format";for(let A=0;A<v.length;A++){if(g=x=v[A],m!==g&&tc(h,l)&&a(Hu(zu,{key:l,target:g})),m!==g){const t=e.__v_emitter;t&&t.emit("fallback",{type:S,key:l,from:w,to:x,groupId:`${S}:${l}`})}if(y=n[g]||{},b=y[l],Qs(b))break;rc(e,l,g,f,S),w=x}if(!Qs(b)||!Ys(g))return r?-1:l;let _=`${g}__${l}`;Ls(d)||(_=`${_}__${JSON.stringify(d)}`);let k=s.get(_);return k||(k=new Intl.DateTimeFormat(g,Ns({},b,d)),s.set(_,k)),p?k.formatToParts(u):k.format(u)}const dc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fc(...e){const[t,n,r,i]=e,a=Fs();let o,s=Fs();if(Ys(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw yu(hu);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();o=new Date(n);try{o.toISOString()}catch{throw yu(hu)}}else if("[object Date]"===Js(t)){if(isNaN(t.getTime()))throw yu(fu);o=t}else{if(!Ds(t))throw yu(du);o=t}return Ys(n)?a.key=n:Qs(n)&&Object.keys(n).forEach(e=>{dc.includes(e)?s[e]=n[e]:a[e]=n[e]}),Ys(r)?a.locale=r:Qs(r)&&(s=r),Qs(i)&&(s=i),[a.key||"",o,a,s]}function hc(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function pc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(!uc)return a(Hu(Nu)),"";const[l,u,c,d]=vc(...t),f=Ks(c.missingWarn)?c.missingWarn:e.missingWarn,h=Ks(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,m=wu(e,c),v=o(e,i,m);if(!Ys(l)||""===l)return new Intl.NumberFormat(m,d).format(u);let g,y={},b=null,w=m,x=null;const S="number format";for(let A=0;A<v.length;A++){if(g=x=v[A],m!==g&&tc(h,l)&&a(Hu(ju,{key:l,target:g})),m!==g){const t=e.__v_emitter;t&&t.emit("fallback",{type:S,key:l,from:w,to:x,groupId:`${S}:${l}`})}if(y=n[g]||{},b=y[l],Qs(b))break;rc(e,l,g,f,S),w=x}if(!Qs(b)||!Ys(g))return r?-1:l;let _=`${g}__${l}`;Ls(d)||(_=`${_}__${JSON.stringify(d)}`);let k=s.get(_);return k||(k=new Intl.NumberFormat(g,Ns({},b,d)),s.set(_,k)),p?k.formatToParts(u):k.format(u)}const mc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function vc(...e){const[t,n,r,i]=e,a=Fs();let o=Fs();if(!Ds(t))throw yu(du);const s=t;return Ys(n)?a.key=n:Qs(n)&&Object.keys(n).forEach(e=>{mc.includes(e)?o[e]=n[e]:a[e]=n[e]}),Ys(r)?a.locale=r:Qs(r)&&(o=r),Qs(i)&&(o=i),[a.key||"",s,a,o]}function gc(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const yc=e=>e,bc=e=>"",wc=e=>0===e.length?"":$s(e),xc=e=>null==e?"":Xs(e)||Qs(e)&&e.toString===Zs?JSON.stringify(e,null,2):String(e);function Sc(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function _c(e={}){const t=e.locale,n=function(e){const t=Ds(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ds(e.named.count)||Ds(e.named.n))?Ds(e.named.count)?e.named.count:Ds(e.named.n)?e.named.n:t:t}(e),r=qs(e.pluralRules)&&Ys(t)&&Gs(e.pluralRules[t])?e.pluralRules[t]:Sc,i=qs(e.pluralRules)&&Ys(t)&&Gs(e.pluralRules[t])?Sc:void 0,a=e.list||[],o=e.named||Fs();Ds(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t,n){const r=Gs(e.messages)?e.messages(t,!!n):!!qs(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):bc)}const l=Qs(e.processor)&&Gs(e.processor.normalize)?e.processor.normalize:wc,u=Qs(e.processor)&&Gs(e.processor.interpolate)?e.processor.interpolate:xc,c={list:e=>a[e],named:e=>o[e],plural:e=>e[r(n,e.length,i)],linked:(t,...n)=>{const[r,i]=n;let a="text",o="";1===n.length?qs(r)?(o=r.modifier||o,a=r.type||a):Ys(r)&&(o=r||o):2===n.length&&(Ys(r)&&(o=r||o),Ys(i)&&(a=i||a));const l=s(t,!0)(c),u="vnode"===a&&Xs(l)&&o?l[0]:l;return o?(d=o,e.modifiers?e.modifiers[d]:yc)(u,a):u;var d},message:s,type:Qs(e.processor)&&Ys(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:l,values:Ns(Fs(),a,o)};return c}const kc=()=>"",Ac=e=>Gs(e);function Cc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Ic(...t),c=Ks(u.missingWarn)?u.missingWarn:e.missingWarn,d=Ks(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=Ks(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,p=Ys(u.default)||Ks(u.default)?Ks(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:null,m=n||null!=p&&(Ys(p)||Gs(p)),v=wu(e,u);f&&function(e){Xs(e.list)?e.list=e.list.map(e=>Ys(e)?Vs(e):e):qs(e.named)&&Object.keys(e.named).forEach(t=>{Ys(e.named[t])&&(e.named[t]=Vs(e.named[t]))})}(u);let[g,y,b]=h?[l,v,s[v]||Fs()]:Tc(e,l,v,o,d,c),w=g,x=l;if(h||Ys(w)||Hl(w)||Ac(w)||m&&(w=p,x=w),!(h||(Ys(w)||Hl(w)||Ac(w))&&Ys(y)))return i?-1:l;if(Ys(w)&&null==e.messageCompiler)return l;let S=!1;const _=Ac(w)?w:Oc(e,l,y,w,x,()=>{S=!0});if(S)return w;const k=function(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d=(r,i)=>{let a=o(n,r);if(null==a&&(c||i)){const[,,n]=Tc(c||e,r,t,s,l,u);a=o(n,r)}if(Ys(a)||Hl(a)){let n=!1;const i=Oc(e,r,t,a,r,()=>{n=!0});return n?kc:i}return Ac(a)?a:kc},f={locale:t,modifiers:i,pluralRules:a,messages:d};e.processor&&(f.processor=e.processor);r.list&&(f.list=r.list);r.named&&(f.named=r.named);Ds(r.plural)&&(f.pluralIndex=r.plural);return f}(e,y,b,u),A=function(e,t,n){let r,i,a=null;Cs&&(a=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Ts&&Ts(r));const o=t(n);if(Cs){const n=window.performance.now(),s=e.__v_emitter;s&&a&&s.emit("message-evaluation",{type:"message-evaluation",value:o,time:n-a,groupId:`translate:${t.key}`}),r&&i&&Ts&&Os&&(Ts(i),Os("intlify message evaluation",r,i))}return o}(e,_,_c(k));let C=r?r(A,l):A;var T;f&&Ys(C)&&(T=(T=(T=C).replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Hs(n)}"`)).replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Hs(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(T)&&(T=T.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(e=>{T=T.replace(e,"$1javascript&#58;")}),C=T);{const t={timestamp:Date.now(),key:Ys(l)?l:Ac(w)?w.key:"",locale:y||(Ac(w)?w.locale:""),format:Ys(w)?w:Ac(w)?w.source:"",message:C};t.meta=Ns({},e.__meta,qu()||{}),uu(t)}return C}function Tc(e,t,n,r,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d,f=Fs(),h=null,p=n,m=null;const v="translate";for(let g=0;g<c.length;g++){if(d=m=c[g],n!==d&&!ac(n,d)&&tc(i,t)&&s(Hu(Lu,{key:t,target:d})),n!==d){const n=e.__v_emitter;n&&n.emit("fallback",{type:v,key:t,from:p,to:m,groupId:`${v}:${t}`})}f=o[d]||Fs();let r,u,y=null;if(Cs&&(y=window.performance.now(),r="intlify-message-resolve-start",u="intlify-message-resolve-end",Ts&&Ts(r)),null===(h=l(f,t))&&(h=f[t]),Cs){const n=window.performance.now(),i=e.__v_emitter;i&&y&&h&&i.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:n-y,groupId:`${v}:${t}`}),r&&u&&Ts&&Os&&(Ts(u),Os("intlify message resolve",r,u))}if(Ys(h)||Hl(h)||Ac(h))break;if(!oc(d,c)){const n=rc(e,t,d,a,v);n!==t&&(h=n)}p=m}return[h,d,f]}function Oc(e,t,n,r,i,a){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Ac(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==o){const e=()=>r;return e.locale=n,e.key=t,e}let l,u,c=null;Cs&&(c=window.performance.now(),l="intlify-message-compilation-start",u="intlify-message-compilation-end",Ts&&Ts(l));const d=o(r,function(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{a&&a(t);{const i=function(e){if(Ys(e))return e;if(e.loc&&e.loc.source)return e.loc.source}(r),a=(t.message,t.location&&i&&function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const a=[];for(let o=0;o<r.length;o++)if(i+=r[o].length+1,i>=t){for(let e=o-2;e<=o+2||n>i;e++){if(e<0||e>=r.length)continue;const s=e+1;a.push(`${s}${" ".repeat(3-String(s).length)}|  ${r[e]}`);const l=r[e].length;if(e===o){const e=t-(i-l)+1,r=Math.max(1,n>i?l-e:n-t);a.push("   |  "+" ".repeat(e)+"^".repeat(r))}else if(e>o){if(n>i){const e=Math.max(Math.min(n-i,l),1);a.push("   |  "+"^".repeat(e))}i+=l+1}}break}a.join("\n")}(i,t.location.start.offset,t.location.end.offset),e.__v_emitter);a&&i&&a.emit("compile-error",{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`})}},onCacheKey:e=>((e,t,n)=>Ms({l:e,k:t,s:n}))(t,n,e)}}(e,n,i,r,s,a));if(Cs){const n=window.performance.now(),i=e.__v_emitter;i&&c&&i.emit("message-compilation",{type:"message-compilation",message:r,time:n-c,groupId:`translate:${t}`}),l&&u&&Ts&&Os&&(Ts(u),Os("intlify message compilation",l,u))}return d.locale=n,d.key=t,d.source=r,d}function Ic(...e){const[t,n,r]=e,i=Fs();if(!(Ys(t)||Ds(t)||Ac(t)||Hl(t)))throw yu(du);const a=Ds(t)?String(t):(Ac(t),t);return Ds(n)?i.plural=n:Ys(n)?i.default=n:Qs(n)&&!Ls(n)?i.named=n:Xs(n)&&(i.list=n),Ds(r)?i.plural=r:Ys(r)?i.default=r:Qs(r)&&Ns(i,r),[a,i]}function Pc(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(Bs().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Bs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const Ec="function"==typeof Proxy;let Mc,Dc;function Rc(){return void 0!==Mc||("undefined"!=typeof window&&window.performance?(Mc=!0,Dc=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(Mc=!0,Dc=globalThis.perf_hooks.performance):Mc=!1),Mc?Dc.now():Date.now();var e}class Lc{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(kJe){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(kJe){}i=e},now:()=>Rc()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Nc(e,t){const n=e,r=Pc(),i=Pc().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Ec&&n.enableEarlyProxy;if(!i||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new Lc(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}
/*!
    * vue-i18n v11.1.12
    * (c) 2025 kazuya kawaguchi
    * Released under the MIT License.
    */const jc=24,Fc=25,zc=26,Bc=27,Vc=28,Hc=29,Wc=30,Uc=31,Xc=32,Gc=33,Yc=34;function Kc(e,...t){return xl(e,null,{messages:qc,args:t})}const qc={[jc]:"Unexpected return type in composer",[Fc]:"Invalid argument",[zc]:"Must be called at the top of a `setup` function",[Bc]:"Need to install with `app.use` function",[Xc]:"Unexpected error",[Vc]:"Required in value: {0}",[Hc]:"Invalid value",[Wc]:"Cannot setup vue-devtools plugin",[Uc]:"Need to install with `provide` function",[Gc]:"Not compatible legacy VueI18n.",[Yc]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Zc=Es("__translateVNode"),Jc=Es("__datetimeParts"),Qc=Es("__numberParts"),$c=Es("__enableEmitter"),ed=Es("__disableEmitter"),td=Es("__setPluralRules"),nd=Es("__injectWithOption"),rd=Es("__dispose"),id=8,ad=9,od=10,sd=11,ld=12,ud=13,cd={[id]:"Fall back to {type} '{key}' with root locale.",[ad]:"Not found parent scope. use the global scope.",[od]:"Ignore object flatten: '{key}' key has an string value",[sd]:"Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",[ld]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[ud]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function dd(e,...t){return Ps(cd[e],...t)}function fd(e){if(!qs(e))return e;if(Hl(e))return e;for(const t in e)if(Us(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let i=e,a=!1;for(let e=0;e<r;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=Fs()),!qs(i[n[e]])){_s(dd(od,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||(Hl(i)?eu.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Hl(i)){const e=i[n[r]];qs(e)&&fd(e)}}else qs(e[t])&&fd(e[t]);return e}function hd(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=Qs(n)?n:Xs(r)?Fs():{[e]:Fs()};if(Xs(r)&&r.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||Fs(),nl(n,o[t])):nl(n,o)}else Ys(e)&&nl(JSON.parse(e),o)}),null==i&&a)for(const s in o)Us(o,s)&&fd(o[s]);return o}function pd(e){return e.type}function md(e,t,n){let r=qs(t.messages)?t.messages:Fs();"__i18nGlobal"in n&&(r=hd(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),qs(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(qs(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function vd(e){return Na(wa,null,e,0)}const gd=()=>[],yd=()=>!1;let bd=0;function wd(e){return(t,n,r,i)=>e(n,r,Za()||void 0,i)}function xd(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,i=e.flatJson,a=Cs?Et:Mt;let o=!Ks(e.inheritLocale)||e.inheritLocale;const s=a(t&&o?t.locale.value:Ys(e.locale)?e.locale:Wu),l=a(t&&o?t.fallbackLocale.value:Ys(e.fallbackLocale)||Xs(e.fallbackLocale)||Qs(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),u=a(hd(s.value,e)),c=a(Qs(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(Qs(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:!Ks(e.missingWarn)&&!Rs(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!Ks(e.fallbackWarn)&&!Rs(e.fallbackWarn)||e.fallbackWarn,p=t?t.fallbackRoot:!Ks(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,v=Gs(e.missing)?e.missing:null,g=Gs(e.missing)?wd(e.missing):null,y=Gs(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!Ks(e.warnHtmlMessage)||e.warnHtmlMessage,w=!!e.escapeParameter;const x=t?t.modifiers:Qs(e.modifiers)?e.modifiers:{};let S,_=e.pluralRules||t&&t.pluralRules;S=(()=>{r&&Ju(null);const t={version:"11.1.12",locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:x,pluralRules:_,missing:null===g?void 0:g,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:null===y?void 0:y,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=c.value,t.numberFormats=d.value,t.__datetimeFormatters=Qs(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=Qs(S)?S.__numberFormatters:void 0,t.__v_emitter=Qs(S)?S.__v_emitter:void 0;const n=$u(t);return r&&Ju(n),n})(),ic(S,s.value,l.value);const k=vo({get:()=>s.value,set:e=>{S.locale=e,s.value=e}}),A=vo({get:()=>l.value,set:e=>{S.fallbackLocale=e,l.value=e,ic(S,s.value,e)}}),C=vo(()=>u.value),T=vo(()=>c.value),O=vo(()=>d.value);const I=(e,n,i,a,o,m)=>{let v;s.value,l.value,u.value,c.value,d.value;try{1,r||(S.fallbackContext=t?Zu:void 0),v=e(S)}finally{r||(S.fallbackContext=void 0)}if("translate exists"!==i&&Ds(v)&&-1===v||"translate exists"===i&&!v){const[e,r]=n();if(t&&Ys(e)&&(g=r,"translate"!==i||!g.resolvedMessage)){p&&(tc(h,e)||nc(f,e))&&dd(id,{key:e,type:i});{const{__v_emitter:t}=S;t&&p&&t.emit("fallback",{type:i,key:e,to:"global",groupId:`${i}:${e}`})}}return t&&p?a(t):o(e)}if(m(v))return v;throw Kc(jc);var g};function P(...e){return I(t=>Reflect.apply(Cc,null,[t,...e]),()=>Ic(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>Ys(e))}const E={normalize:function(e){return e.map(e=>Ys(e)||Ds(e)||Ks(e)?vd(String(e)):e)},interpolate:e=>e,type:"vnode"};function M(e){return u.value[e]||{}}bd++,t&&Cs&&(ta(t.locale,e=>{o&&(s.value=e,S.locale=e,ic(S,s.value,l.value))}),ta(t.fallbackLocale,e=>{o&&(l.value=e,S.fallbackLocale=e,ic(S,s.value,l.value))}));const D={id:bd,locale:k,fallbackLocale:A,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,ic(S,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:C,get modifiers(){return x},get pluralRules(){return _||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,S.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(e){h=e,S.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,S.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,S.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,S.escapeParameter=e},t:P,getLocaleMessage:M,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)Us(n,e)&&fd(n[e]);t=n[e]}u.value[e]=t,S.messages=u.value},mergeLocaleMessage:function(e,t){u.value[e]=u.value[e]||{};const n={[e]:t};if(i)for(const r in n)Us(n,r)&&fd(n[r]);nl(t=n[e],u.value[e]),S.messages=u.value},getPostTranslationHandler:function(){return Gs(y)?y:null},setPostTranslationHandler:function(e){y=e,S.postTranslation=e},getMissingHandler:function(){return v},setMissingHandler:function(e){null!==e&&(g=wd(e)),v=e,S.missing=g},[td]:function(e){_=e,S.pluralRules=_}};return D.datetimeFormats=T,D.numberFormats=O,D.rt=function(...e){const[t,n,r]=e;if(r&&!qs(r))throw Kc(Fc);return P(t,n,Ns({resolvedMessage:!0},r||{}))},D.te=function(e,t){return I(()=>{if(!e)return!1;const n=M(Ys(t)?t:s.value),r=S.messageResolver(n,e);return Hl(r)||Ac(r)||Ys(r)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),yd,e=>Ks(e))},D.tm=function(e){const n=function(e){let t=null;const n=ku(S,l.value,s.value);for(let r=0;r<n.length;r++){const i=u.value[n[r]]||{},a=S.messageResolver(i,e);if(null!=a){t=a;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},D.d=function(...e){return I(t=>Reflect.apply(cc,null,[t,...e]),()=>fc(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>"",e=>Ys(e)||Xs(e))},D.n=function(...e){return I(t=>Reflect.apply(pc,null,[t,...e]),()=>vc(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>"",e=>Ys(e)||Xs(e))},D.getDateTimeFormat=function(e){return c.value[e]||{}},D.setDateTimeFormat=function(e,t){c.value[e]=t,S.datetimeFormats=c.value,hc(S,e,t)},D.mergeDateTimeFormat=function(e,t){c.value[e]=Ns(c.value[e]||{},t),S.datetimeFormats=c.value,hc(S,e,t)},D.getNumberFormat=function(e){return d.value[e]||{}},D.setNumberFormat=function(e,t){d.value[e]=t,S.numberFormats=d.value,gc(S,e,t)},D.mergeNumberFormat=function(e,t){d.value[e]=Ns(d.value[e]||{},t),S.numberFormats=d.value,gc(S,e,t)},D[nd]=n,D[Zc]=function(...e){return I(t=>{let n;const r=t;try{r.processor=E,n=Reflect.apply(Cc,null,[r,...e])}finally{r.processor=null}return n},()=>Ic(...e),"translate",t=>t[Zc](...e),e=>[vd(e)],e=>Xs(e))},D[Jc]=function(...e){return I(t=>Reflect.apply(cc,null,[t,...e]),()=>fc(...e),"datetime format",t=>t[Jc](...e),gd,e=>Ys(e)||Xs(e))},D[Qc]=function(...e){return I(t=>Reflect.apply(pc,null,[t,...e]),()=>vc(...e),"number format",t=>t[Qc](...e),gd,e=>Ys(e)||Xs(e))},D[$c]=e=>{S.__v_emitter=e},D[ed]=()=>{S.__v_emitter=void 0},D}const Sd="vue-i18n: composer properties",_d="Vue I18n DevTools",kd="Vue I18n DevTools",Ad="Vue I18n",Cd="Search for scopes ...",Td=16764185;let Od;async function Id(e,t){return new Promise((n,r)=>{try{Nc({id:"vue-devtools-plugin-vue-i18n",label:_d,packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Sd],app:e},r=>{Od=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{!function(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n={label:`i18n (${Pd(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.vnode.el&&e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&Ed(n,e.vnode.el.__VUE_I18N__):Ed(n,e.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:kd,icon:"language",treeFilterPlaceholder:Cd}),r.on.getInspectorTree(n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,i]of t.__instances){const a="composition"===t.mode?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${Pd(r)} Scope`})}}(n,t)});const i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId)if(r.unhighlightElement(),function(e,t){const n=Nd(e.nodeId,t);n&&(e.state=function(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",a=[{type:i,key:"messages",editable:!1,value:Md(e.messages.value)}];t[i]=a;{const n="Datetime formats info",r=[{type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[n]=r;const i="Datetime formats info",a=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[i]=a}return t}(n))}(n,t),"global"===n.nodeId){if(!i.has(n.app)){const[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{const e=function(e,t){let n=null;if("global"!==e)for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}return n}(n.nodeId,t);e&&r.highlightElement(e)}}),r.on.editInspectorState(n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=Nd(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&Ys(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(Ys(e.state.value)||Xs(e.state.value)||qs(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&Ks(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Ad,color:Td}),n(!0)})}catch(kJe){r(!1)}})}function Pd(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ed(e,t){const n=Sd;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Md(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Md(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];var i;Gs(r)&&"source"in r?t[n]={_custom:{type:"function",display:"<span>\u0192</span> "+((i=r).source?`("${Rd(i.source)}")`:"(?)")}}:Hl(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:qs(r)?t[n]=Md(r):t[n]=r}),t}const Dd={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Rd(e){return e.replace(/[<>"&]/g,Ld)}function Ld(e){return Dd[e]||e}function Nd(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?"composition"===t.mode?n:n.__composer:null}}function jd(e,t){if(Od){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Od.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function Fd(e={}){const t=xd(function(e){const t=Ys(e.locale)?e.locale:Wu,n=Ys(e.fallbackLocale)||Xs(e.fallbackLocale)||Qs(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=Gs(e.missing)?e.missing:void 0,i=!Ks(e.silentTranslationWarn)&&!Rs(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!Ks(e.silentFallbackWarn)&&!Rs(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!Ks(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=Qs(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Gs(e.postTranslation)?e.postTranslation:void 0,d=!Ys(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,h=!Ks(e.sync)||e.sync;let p=e.messages;if(Qs(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce((e,n)=>{const r=e[n]||(e[n]={});return Ns(r,t[n]),e},p||{})}const{__i18n:m,__root:v,__injectWithOption:g}=e,y=e.datetimeFormats,b=e.numberFormats;return{locale:t,fallbackLocale:n,messages:p,flatJson:e.flatJson,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:v,__injectWithOption:g}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Ks(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Ks(e)?!e:e},get silentFallbackWarn(){return Ks(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Ks(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r.__enableEmitter=e=>{const n=t;n[$c]&&n[$c](e)},r.__disableEmitter=()=>{const e=t;e[ed]&&e[ed]()},r}function zd(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[td](t.pluralizationRules||e.pluralizationRules);const n=hd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const Bd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Vd(){return ba}const Hd=yr({name:"i18n-t",props:Ns({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ds(e)||!isNaN(e)}},Bd),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Zd({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(e=>"_"!==e[0]),o=Fs();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=Ys(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===ba?t.children:[t]],[]);return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},Fs())}(t,a),l=i[Zc](e.keypath,s,o),u=Ns(Fs(),r);return go(Ys(e.tag)||qs(e.tag)?e.tag:Vd(),u,l)}}}),Wd=Hd;function Ud(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const t={part:!0};let o=Fs();e.locale&&(t.locale=e.locale),Ys(e.format)?t.key=e.format:qs(e.format)&&(Ys(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Ns(Fs(),t,{[r]:e.format[r]}):t,Fs()));const s=r(e.value,t,o);let l=[t.key];Xs(s)?l=s.map((e,t)=>{const n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];var a;return Xs(a=r)&&!Ys(a[0])&&(r[0].key=`${e.type}-${t}`),r}):Ys(s)&&(l=[s]);const u=Ns(Fs(),a);return go(Ys(e.tag)||qs(e.tag)?e.tag:Vd(),u,l)}}const Xd=yr({name:"i18n-n",props:Ns({value:{type:Number,required:!0},format:{type:[String,Object]}},Bd),setup(e,t){const n=e.i18n||Zd({useScope:e.scope,__useComponent:!0});return Ud(e,t,mc,(...e)=>n[Qc](...e))}});function Gd(e){if(Ys(e))return{path:e};if(Qs(e)){if(!("path"in e))throw Kc(Vc,"path");return e}throw Kc(Hc)}function Yd(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return Ys(n)&&(o.locale=n),Ds(i)&&(o.plural=i),Ds(a)&&(o.plural=a),[t,s,o]}function Kd(e,t,...n){const r=Qs(n[0])?n[0]:{};(!Ks(r.globalInstall)||r.globalInstall)&&([Wd.name,"I18nT"].forEach(t=>e.component(t,Wd)),[Xd.name,"I18nN"].forEach(t=>e.component(t,Xd)),[$d.name,"I18nD"].forEach(t=>e.component(t,$d))),e.directive("t",function(e){const t=t=>{As(dd(ld));const{instance:n,value:r}=t;if(!n||!n.$)throw Kc(Xc);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),a=Gd(r);return[Reflect.apply(i.t,i,[...Yd(a)]),i]};return{created:(n,r)=>{const[i,a]=t(r);Cs&&e.global===a&&(n.__i18nWatcher=ta(a.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=a,n.textContent=i},unmounted:e=>{Cs&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Gd(t);e.textContent=Reflect.apply(n.t,n,[...Yd(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const qd=Es("global-vue-i18n");function Zd(e={}){const t=Za();if(null==t)throw Kc(zc);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Kc(Bc);const n=function(e){const t=yi(e.isCE?qd:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Kc(e.isCE?Uc:Xc);return t}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),i=pd(t),a=function(e,t){return Ls(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,i);if("global"===a)return md(r,e,i),r;if("parent"===a){let i=function(e,t,n=!1){let r=null;const i=t.root;let a=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=a;){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(a);null!=e&&(r=e.__composer,n&&r&&!r[nd]&&(r=null))}if(null!=r)break;if(i===a)break;a=a.parent}return r}(n,t,e.__useComponent);return null==i&&(dd(ad),i=r),i}const o=n;let s=o.__getInstance(t);if(null==s){const n=Ns({},e);"__i18n"in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=xd(n),o.__composerExtend&&(s[rd]=o.__composerExtend(s)),function(e,t,n){let r=null;Er(()=>{if(t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=el();const e=n;e[$c]&&e[$c](r),r.on("*",jd)}},t),Lr(()=>{const i=n;t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",jd),i[ed]&&i[ed](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=i[rd];a&&(a(),delete i[rd])},t)}(o,t,s),o.__setInstance(t,s)}else"local"===a&&dd(ud);return s}const Jd=["locale","fallbackLocale","availableLocales"],Qd=["t","rt","d","n","tm","te"];const $d=yr({name:"i18n-d",props:Ns({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bd),setup(e,t){const n=e.i18n||Zd({useScope:e.scope,__useComponent:!0});return Ud(e,t,dc,(...e)=>n[Jc](...e))}});var ef,tf;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(Bs().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(Bs().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Bs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(Bs().__INTLIFY_PROD_DEVTOOLS__=!1),ef=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ys(e)){const n=!Ks(t.warnHtmlMessage)||t.warnHtmlMessage;au(e,n);const r=(t.onCacheKey||ou)(e),i=su[r];if(i)return i;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||Sl;return t.onError=e=>{n=!0,r(e)},{...Vl(e,t),detectError:n}}(e,{...t,location:!0,jit:!0}),s=nu(a);return o?s:su[r]=s}{if(!Hl(e))return t.key,()=>e;const n=e.cacheKey;if(n){const t=su[n];return t||(su[n]=nu(e))}return nu(e)}},Xu=ef,Gu=function(e,t){if(!qs(e))return null;let n=Mu.get(t);if(n||(n=function(e){const t=[];let n,r,i,a,o,s,l,u=-1,c=0,d=0;const f=[];function h(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,i="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=i:r+=i},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),d++},f[3]=()=>{if(d>0)d--,c=4,f[0]();else{if(d=0,void 0===r)return!1;if(r=Eu(r),!1===r)return!1;f[1]()}};null!==c;)if(u++,n=e[u],"\\"!==n||!h()){if(a=Pu(n),l=Ou[c],o=l[a]||l.l||8,8===o)return;if(c=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(i=n,!1===s())))return;if(7===c)return t}}(t),n&&Mu.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;for(;a<r;){const e=n[a];if(eu.includes(e)&&Hl(i))return null;const t=i[e];if(void 0===t)return null;if(Gs(i))return null;i=t,a++}return i},Yu=ku;{const e=Bs();e.__INTLIFY__=!0,tf=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,lu=tf}const nf=function(e={}){const t=__VUE_I18N_LEGACY_API__&&Ks(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;t&&As(dd(sd));const n=!Ks(e.globalInjection)||e.globalInjection,r=new Map,[i,a]=function(e,t){const n=ue(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fd(e)):n.run(()=>xd(e));if(null==r)throw Kc(Xc);return[n,r]}(e,t),o=Es("vue-i18n"),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(e.__VUE_I18N__=s,e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,s),Qs(r[0])){const e=r[0];s.__composerExtend=e.__composerExtend,s.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=function(e,t){const n=Object.create(null);Jd.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Kc(Xc);const i=Pt(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Qd.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Kc(Xc);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});const r=()=>{delete e.config.globalProperties.$i18n,Qd.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}(e,s.global)),__VUE_I18N_FULL_INSTALL__&&Kd(e,s,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=Za();if(!r)throw Kc(Xc);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=zd(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Fd(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=zd(e,i);else{this.$i18n=Fd({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&md(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(this.$el&&this.$i18n){const e=this.$i18n;this.$el.__VUE_I18N__=e.__composer;const t=this.__v_emitter=el();e.__enableEmitter&&e.__enableEmitter(t),t.on("*",jd)}},unmounted(){const e=Za();if(!e)throw Kc(Xc);const t=this.$i18n;this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",jd),delete this.__v_emitter),this.$i18n&&(t.__disableEmitter&&t.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(a,a.__composer,s));const l=e.unmount;e.unmount=()=>{i&&i(),s.dispose(),l()};{if(!(await Id(e,s)))throw Kc(Wc);const n=el();if(t){const e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{const e=a;e[$c]&&e[$c](n)}n.on("*",jd)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return s}({legacy:!1,globalInjection:!0,warnHtmlMessage:!1,locale:"en",messages:{zh:{style:{productDetailPage:{logo:"zh_logo",logoText:"zh_logoText",shopdoraLogo:"zh_shopdoraLogo",detailTopButton:"zh_detail-top-button",detailButton:"zh_detail-button",detailInfoItem:"zh_detail-info-item",detailInfoItemWidth:"fit-content",detailTop:"zh_detail-top",goShopdora:"zh_goShopdora",customPopup:"zh_t-popup__content",detailInfoList:"zh_detail-info-list",detailInfoItems:"zh_detail-info-items",maxWidth:"zh_MaxWidth",filtationButton:"zh_filtationButton",pageDetailLoginTitleButton:"68px"},keywordProductListPreview:{formLabelWidth:76},tdGoodsTitle:{imgSupply:"zh_imgSupply"},productList:{salesRanking:"zh_sales-ranking",shopdoraListItem:"zh_shopdora-list-item-button-item",shopdoraListItemButton:"zh_button",buttonDetailWidth:"78px",buttonWidth:"82px",marginTop:"0px",shopdoraListItemInfoItemTitle:"zh_shopdora-list-item-info-item-title",shopdoraListId:"zh_shopdora-list-item",infoItemMainSpanWidth:"fit-content",infoItemMainSpanNoDetailWidth:"fit-content",infoItemMainSpanMaxWidth:"110px",infoItemMainSpanMarginLeft:"0px",basicInfo:"zh_basic-info",sellerWidth:"30px",cateWidth:"25px",sellerSourceTipsWidth:"40px",sellerTitle:"common_seller-span",sellerTitleMain:"common_seller-span-title",sellerTitleValue:"common_seller-span-value"},keywordPreview:{headerItem:"zh_headerItem",itemValueFontSize:"18px"},currencyRate:{currencyRateHeader:"zh_currency-rate-header"},icon:{settingHeaderName:"zh_settingHeaderName",loginTitle:"zh_loginTitle",text:"zh_text",shopIcon:"zh_shopIcon",iconImg:"zh_iconImg"},filtration:{analyseTop:"zh_top",analyseCenter:"zh_center",radioGroup:"zh_radioGroup",height:"675px",noDescHeight:"715px",filtationLoginTitleButton:"68px"},profitForm:{toolsFormWrapperCrx:"zh_tools-form-wrapper-crx",combineInput:"zh_combine-input",resultBlock:"zh_result-block"},specification:{dialogWidth:"573px",specificationWidth:"506px",progress:"zh_progress"},skuTab:{moneyText:"zh_money-text",titleText:"zh_title-text",commonBtn:"zh_common-btn"},popup:{shopeeSelect:"zh_shopeeSelect",shopdorapopup:"zh_shopdorapopup",shopeeSelectWidth:"auto"},reviewDownload:{reviewWidth:"640px",reviewTitle:"zh_reviewTitle"},keyword:{keywordCrxHeight:"149px",keywordHeaderHeight:"51px",keywordTitleWidth:"356px"},imageSearchTag:{searchTagWidth:"100px"}},popup:{pleaseSelect:"\u8bf7\u9009\u62e9"},productDetailPage:{cateNameType:"cateChName","Cross-border":"\u8de8\u5883",Local:"\u672c\u571f",None:"\u65e0"},productListPage:{seller:"\u5356\u5bb6",brand:"\u54c1\u724c",cateNameType:"cateChPath",listedOn:"\u4e0a\u67b6\u65f6\u95f4",cate:"\u7c7b\u76ee",mRank:"\u6708\u9500\u91cf\u6392\u540d",crossBorder:"\u8de8\u5883",crossBorderTip:"\u8de8\u5883",soldD30:"\u8fd130\u65e5\u9500\u91cf",soldD1AndD7:"\u8fd11\u65e5/7\u65e5\u9500\u91cf",soldD30Rate:"\u8fd130\u65e5\u9500\u91cf\u589e\u957f\u7387",salesD30:"\u8fd130\u65e5\u9500\u552e\u989d",liked_count:"\u70b9\u8d5e\u6570",totalSold:"\u603b\u9500\u91cf",totalSales:"GMV",likedCount:"\u70b9\u8d5e\u6570"},keywordProductListPreview:{cateNameType:"cateChPath",cateNamePath:"cateLocalPath",productList:"\u4ea7\u54c1\u5217\u8868\uff08\u5171 {count} \u4ea7\u54c1\uff09",check:"\u5df2\u9009\uff08{count}\uff09",page:"\u6bcf\u9875 {count} \u6761"},keywordPreview:{marketView:"\u5e02\u573a\u603b\u89c8",analyseProductTotal:"\u5206\u6790\u5546\u54c1\u603b\u6570:",totalSold:"\u603b\u9500\u91cf:",monthlySales:"\u6708\u9500\u91cf:",avgPrice:"\u5e73\u5747\u4ef7\u683c:",avgTime:"\u5e73\u5747\u4e0a\u67b6\u65f6\u95f4:",avgRating:"\u5e73\u5747\u8bc4\u5206:",more:"\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a",avg:"\u5e73\u5747:",productList:"\u67e5\u770b\u5546\u54c1\u660e\u7ec6"},keywordPage:{cateNameType:"cateZhName",keywordMining:"\u5173\u952e\u8bcd\u6316\u6398",collection:"\u6536\u85cf",collected:"\u5df2\u6536\u85cf"},historyKeywordAnalysisDialog:{exportData:"\u5bfc\u51fa\u6570\u636e",analyseTime:"\u5206\u6790\u65f6\u95f4",products:"\u4ea7\u54c1\u6570",screening:"\u7b5b\u9009",site:"\u7ad9",highFrequencyKeywords:"\u76f8\u5173\u4ea7\u54c1\u9ad8\u9891\u5173\u952e\u8bcd",serialNumber:"\u5e8f\u53f7",keyword:"\u5173\u952e\u8bcd",frequency:"\u9891\u6b21",monthlySearchVolume:"\u6708\u641c\u7d22\u91cf",searchCountTip:"\u6708\u641c\u7d22\u91cf < 200 (\u5176\u4ed6\u539f\u56e0\u8054\u7cfb\u5ba2\u670d\uff09",notInclude:"\u672a\u6536\u5f55"},iconPage:{priceCheck:"\u4eba\u6c11\u5e01\u4ef7\u683c"},chart:{listingTime:"\u4e0a\u67b6\u65f6\u95f4\u5206\u5e03:",location:"\u5546\u54c1\u53d1\u8d27\u5730:",shopType:"\u5e97\u94fa\u7c7b\u578b:",cateTop:"\u4e3b\u8425\u7c7b\u76eeTOP5:",newProduct:"\u4e0a\u65b0\u5206\u6790:",cateType:"cateChName"},imageSearchTag:{searchTag:"\u56fe\u641c\u540c\u6b3e"},common:{language:"\u8bed\u8a00",changeLanguage:"\u5207\u6362\u8bed\u8a00",clickLogin:"\u70b9\u51fb\u767b\u5f55",loginNow:"\u7acb\u5373\u767b\u5f55",helpCenter:"\u5e2e\u52a9\u4e2d\u5fc3",helpCenterUrl:"https://help.shopdora.cn/",contact:"\u8054\u7cfb\u5ba2\u670d",goToShopdora:"\u53bbshopdora.com",membershipPrice:"\u4f1a\u5458\u4ef7\u683c",imageSearch:"\u56fe\u641c\u540c\u6b3e",update:"\u7248\u672c\u66f4\u65b0",goToUpdate:"\u524d\u5f80\u66f4\u65b0",latestVersion:"\u5df2\u662f\u6700\u65b0\u7248\u672c",warnTitle:"\u6e29\u99a8\u63d0\u793a\uff1aShopdora\u63d2\u4ef6\u9700\u767b\u5f55\u540e\u65b9\u53ef\u67e5\u770b\u5b8c\u6574\u6570\u636e\u3002",textCrx:"Shopee\u5927\u6570\u636e\u9009\u54c1\u4e13\u5bb6",copyTitle:"\u590d\u5236\u6807\u9898",copyLink:"\u590d\u5236\u94fe\u63a5",clickCopy:"\u70b9\u51fb\u590d\u5236",customList:"\u81ea\u5b9a\u4e49\u5217\u8868\u4fe1\u606f",logout:"\u9000\u51fa\u767b\u5f55",confirm:"\u786e\u5b9a",cancel:"\u53d6\u6d88",wxCodeName:"\u626b\u7801\u6dfb\u52a0\u5ba2\u670d\u5fae\u4fe1",activated:"\u5df2\u6fc0\u6d3b",disabled:"\u5df2\u7981\u7528",pleaseSelect:"\u8bf7\u9009\u62e9",expireDate:"\u6709\u6548\u671f\u81f3",isLogin:"\u63d2\u4ef6\u767b\u5f55\u540e\u65b9\u53ef\u67e5\u770b\u5b8c\u6574\u6570\u636e",getHistory:"\u67e5\u770b\u5386\u53f2\u8bb0\u5f55",monitorDesc:"\u8be5\u4ea7\u54c1\u5df2\u52a0\u5165\u76d1\u63a7",tips:"SKU\u6570\u636e\uff1a\u8bbf\u95ee{shop}\u672c\u571f\u524d\u53f0\u67e5\u770b\u3002",helpTips:"\u5982\u4f55\u8bbf\u95eeShopee\uff1f",productSkuTipsName:"\u60a8\u662f\u514d\u8d39\u7528\u6237\uff0c\u5347\u7ea7\u5957\u9910\u540e\u5373\u53ef\u67e5\u770b",upgradePackage:"\u5347\u7ea7\u5957\u9910",tipMoreComment:"\u4e86\u89e3\u66f4\u591a\u8bc4\u8bba\u5206\u6790\uff0c\u8bf7",clickLearnMore:"\u70b9\u51fb\u4e86\u89e3",tipUpgrade:"\u4ec5\u9650\u4ed8\u8d39\u7528\u6237\uff0c{upgradePackage}\u540e\u5373\u53ef\u67e5\u770b",jumpNow:"\u7acb\u5373\u8df3\u8f6c",allTrends:"\u70b9\u51fb\u67e5\u770b\u5168\u90e8\u8d8b\u52bf",nothing:"\u65e0",empty:"\u7a7a",pdd:"\u62fc\u591a\u591a",loading:"\u6b63\u5728\u52a0\u8f7d...",queryProduct:"\u67e5\u8be2\u5546\u54c1\u4e2d...",clickCopyLink:"\u70b9\u51fb\u590d\u5236\u94fe\u63a5",notInclude:"\u672a\u6536\u5f55",goShopdoraWeb:"\u53bbShopdora\u5b98\u7f51",day:"\u5929",all:"\u5168\u90e8",clickSwitch:"\u70b9\u51fb\u5207\u6362",iKnow:"\u6211\u77e5\u9053\u4e86",unknown:"\u672a\u77e5",page:"\u9875",exportData:"\u5bfc\u51fa\u6570\u636e",exportProductList:"\u5bfc\u51fa\u4ea7\u54c1\u5217\u8868",frequency:"\u9891\u6b21",serialNumber:"\u5e8f\u53f7",available:"\u6709",reset:"\u91cd\u7f6e",goWeb:"\u524d\u5f80\u5b98\u7f51",view:"\u67e5\u770b",title:"\u6807\u9898",link:"\u94fe\u63a5",search:"\u67e5\u8be2",yes:"\u662f",no:"\u5426",pageNumber:"\u9875\u7801",ranking:"\u6392\u540d",rec:"\u6761",currency:"\xa5",rmb:"\xa5",usd:"$"},page:{pageInfo:"\u7b2c{page}\u9875",pageColorInfo:'<span style="color: rgba(0, 0, 0, 0.9)">(\u7b2c</span>{page}<span style="color: rgba(0, 0, 0, 0.9)">\u9875)</span>'},login:{loginOther:"\u767b\u5f55\u5176\u4ed6\u8d26\u53f7",welcome:"\u6b22\u8fce\u767b\u5f55 Shopdora",forgotPassword:"\u627e\u56de\u5bc6\u7801",notAccount:"\u6ca1\u6709\u8d26\u53f7\uff1f ",goRegister:"\u7acb\u5373\u6ce8\u518c",password:"\u5bc6\u7801\u767b\u5f55",loginSuccess:"\u767b\u5f55\u6210\u529f",mobileOrAccount:"\u624b\u673a\u53f7/\u5b50\u8d26\u53f7",enterPassword:"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801",passwordTip:"\u81f3\u5c11\u9700\u89816\u4f4d",passwordNotEmpty:"\u5bc6\u7801\u5fc5\u586b",mobileOrAccountTip:"\u624b\u673a\u53f7/\u5b50\u8d26\u53f7\u5fc5\u586b"},info:{sellerSource:"\u5356\u5bb6\u6765\u6e90",storeId:"\u5e97\u94faID",storeName:"\u5e97\u94fa\u540d",storeType:"\u5e97\u94fa\u7c7b\u578b",store:"\u5e97\u94fa",id:"ID",productId:"\u5546\u54c1id",productId2:"\u4ea7\u54c1id",productId3:"\u4ea7\u54c1ID",seller:"\u5356\u5bb6",brand:"\u54c1\u724c",brandName:"\u54c1\u724c\u540d",cate:"\u7c7b\u76ee",cateName:"\u7c7b\u76ee\u540d\u79f0",productLink:"\u4ea7\u54c1\u94fe\u63a5",productImg:"\u5546\u54c1\u56fe",tipCate:"\u8be5\u5173\u952e\u8bcd\u4e0b\u524d3\u9875\u4ea7\u54c1\u6240\u5c5e\u4e3b\u8981\u7c7b\u76ee\uff0c\u5728\u7efc\u5408\u7b5b\u9009\u4e0b\uff0c\u641c\u7d22\u8be5\u5173\u952e\u8bcd\uff0c\u51fa\u73b0\u5728\u524d\u4e09\u9875\u7684\u4ea7\u54c1\uff0c{br}\u6309\u7167\u4ea7\u54c1\u7c7b\u76ee\u7edf\u8ba1\u4ea7\u54c1\u6570\u6700\u591a\u7684\u7c7b\u76ee\u5373\u4e3a\u8be5\u5173\u952e\u8bcd\u7684\u7c7b\u76ee\u3002\u7528\u4e8e\u786e\u8ba4\u5173\u952e\u8bcd\u6240\u5c5e\u884c\u4e1a\u548c\u7ec6\u5206\u5e02\u573a<br/>",topKeywords:"\u9ad8\u9891\u5173\u952e\u8bcd",keyword:"\u5173\u952e\u8bcd",time:"\u4e0a\u67b6\u65f6\u95f4",timeRange:"\u4e0a\u67b6\u65f6\u95f4\u533a\u95f4",soldD30:"\u8fd130\u65e5\u9500\u91cf",soldD1AndD7:"\u8fd11\u65e5/7\u65e5\u9500\u91cf",soldD30Rate:"\u8fd130\u65e5\u9500\u91cf\u589e\u957f\u7387",salesD30:"\u8fd130\u65e5\u9500\u552e\u989d",liked_count:"\u70b9\u8d5e\u6570",totalSold:"\u603b\u9500\u91cf",totalSales:"\u603b\u9500\u552e\u989d",sold:"\u9500\u91cf",sales:"\u9500\u552e\u989d",selectAll:"\u5168\u9009\uff08\u4ea7\u54c1\u6570\uff1a%s\uff09",selectByCondition:"\u6309\u6761\u4ef6\u9009\u62e9\uff08\u4ea7\u54c1\u6570\uff1a%s\uff09",batchSelect:"\u6279\u91cf\u9009\u62e9\uff08\u4ea7\u54c1\u6570\uff1a%s\uff09",monthlySales:"\u6708\u9500\u91cf",monthlySalesSort:"\u6708\u9500\u91cf\u6392\u540d",monthlyRevenue:"\u6708\u9500\u552e\u989d",min:"\u6700\u5c0f\u503c",max:"\u6700\u5927\u503c",cny:"\u4eba\u6c11\u5e01",localUnit:"\u672c\u571f\u8d27\u5e01",cnyPrice:"\u4eba\u6c11\u5e01\u4ef7\u683c",switchToTheLocalCurrency:"\u70b9\u51fb\u5207\u6362\u672c\u571f\u8d27\u5e01",switchToTheCurrency:"\u70b9\u51fb\u5207\u6362\u672c\u7ad9\u8d27\u5e01",searchTrend:"\u641c\u7d22\u8d8b\u52bf",tipSearchTrend:"\u8be5\u5173\u952e\u8bcd\u7684\u5468\u641c\u7d22\u8d8b\u52bf\uff0c\u5bf9\u4e8e\u5b63\u8282\u6027\u5173\u952e\u8bcd\uff0c\u53ef\u80fd\u53ea\u6709\u90e8\u5206\u65f6\u95f4\u6bb5\u6709\u641c\u7d22\u91cf\uff1b\u5982\u679c\u5173\u952e\u8bcd\u641c\u7d22\u91cf\u8fc7\u5c0f\uff0c\u7cfb\u7edf\u5c06\u4e0d\u518d\u6536\u5f55<br/>",searchVolume30D:"\u8fd130\u65e5\u641c\u7d22\u91cf",avgDailySearches:"\u5e73\u5747\u65e5\u641c\u7d22\u91cf",moMSearchGrowth:"\u6708\u641c\u7d22\u589e\u957f\u7387",tipSearchVolume30D_1:"\u8fc7\u53bb30\u65e5\u5728shopee\u641c\u7d22\u6846\u4e2d\u641c\u7d22\u8fc7\u8be5\u5173\u952e\u8bcd\u7684\u6b21\u6570",tipSearchVolume30D_2:"\u5e73\u5747\u65e5\u641c\u7d22\u91cf\u662f\u57fa\u4e8e\u8fc7\u53bb30\u65e5\u641c\u7d22\u91cf\u8ba1\u7b97\u7684\u5e73\u5747\u503c",tipSearchVolume30D_3:"\u6708\u641c\u7d22\u91cf\u589e\u957f\u7387=\uff08\u8fd130\u5929\u641c\u7d22\u91cf-\u4e0a30\u5929\u641c\u7d22\u91cf\uff09/\u4e0a\u6708\u641c\u7d22\u91cf*100%",tipSearchVolume30D_4:"\u641c\u7d22\u91cf\u6570\u636e\u6bcf\u65e5\u66f4\u65b0",productCount:"\u5546\u54c1\u6570",supplyDemandRatio:"\u4f9b\u9700\u6bd4",tipProductCount_1:"\u5546\u54c1\u6570\uff1a\u6307\u641c\u7d22\u8be5\u5173\u952e\u8bcd\u540e\u51fa\u73b0\u4e86\u591a\u5c11\u76f8\u5173\u4ea7\u54c1\uff1b",tipProductCount_2:"\u4f9b\u9700\u6bd4\uff1a=\u5e73\u5747\u65e5\u641c\u7d22\u91cf(\u9700\u6c42) / \u5546\u54c1\u6570(\u4f9b\u5e94)\uff0c\u7528\u4e8e\u8bc4\u4f30\u9700\u6c42\u7684\u5f3a\u5ea6",tipProductCount_3:"\u5546\u54c1\u6570\u6bcf\u5468\u66f4\u65b0\uff0c\u4f9b\u9700\u6bd4\u6bcf\u65e5\u66f4\u65b0\u3002",avgPrice:"\u4ea7\u54c1\u5e73\u5747\u4ef7\u683c",avgRatingScore:"\u5e73\u5747\u8bc4\u5206\u6570",ratingCount:"\u8bc4\u5206\u6570",tipAvgPrice_1:"\u8be5\u5173\u952e\u8bcd\u5728Shopee\u641c\u7d22\u7ed3\u679c\u524d3\u9875(\u81ea\u7136\u641c\u7d22\u7ed3\u679c) \u7684\u4ea7\u54c1\u5e73\u5747\u4ef7\u683c/\u8bc4\u5206\u6570/\u8bc4\u5206\u503c",tipAvgPrice_2:"\u8be5\u6570\u636e\u6bcf\u5468\u66f4\u65b0",ppcBid:"ppc\u7ade\u4ef7",tipPpcBid_1:"\u8be5\u5173\u952e\u8bcd\u5728Shopee\u7ad9\u5185\u6295\u653e\u5e7f\u544a\u65f6\u7684\u5efa\u8bae\u4ef7\u683c\uff0c\u8be5\u4ef7\u683c\u53ef\u4ee5\u53cd\u6620\u5e02\u573a\u7ade\u4e89\u5ea6\uff0c{br}\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8bc4\u4f30\u8425\u9500\u8d39\u7528\u3002\u5efa\u8bae\u4f18\u5148\u9009\u62e9\u51fa\u4ef7\u4f4e\u4e14\u641c\u7d22\u91cf\u4ea4\u9ad8\u7684\u5173\u952e\u8bcd;<br/>",tipPpcBid_2:"\u6570\u636e\u6bcf\u65e5\u66f4\u65b0",updateDataWeek:"\u6570\u636e\u6bcf\u5468\u66f4\u65b0",noDataText:"\u65e0\u66f4\u65b0",crossBorder:"\u8de8\u5883",local:"\u672c\u571f",soldNow:"\u5df2\u552e",mainImg:"\u4e3b\u56fe",past30DayOfSalesAndSalesRevenue:"\u8fd130\u5929\u9500\u91cf&\u9500\u552e\u989d\u8be6\u60c5",video:"\u89c6\u9891",relatedProduct:"\u76f8\u5173\u4ea7\u54c1",loadedProducts:"\u5df2\u52a0\u8f7d\u5546\u54c1\u6570",avgLoadedPrice:"\u5df2\u52a0\u8f7d\u5546\u54c1\u6570\u5e73\u5747\u4ef7\u683c",avgListingTime:"\u5e73\u5747\u4e0a\u67b6\u65f6\u95f4"},time:{day:"{day}\u5929",month:"{month}\u4e2a\u6708",year:"{year}\u5e74",oneMonth:"1\u4e2a\u6708",threeMonth:"3\u4e2a\u6708",sixMonth:"6\u4e2a\u6708",oneYear:"\u8fd1\u4e00\u5e74",twoYear:"\u8fd1\u4e24\u5e74",numTwoYear:"\u8fd12\u5e74",numOneYear:"\u8fd11\u5e74",pastSixMonth:"\u8fd16\u4e2a\u6708",pastThreeMonth:"\u8fd13\u4e2a\u6708",pastOneMonth:"\u8fd11\u4e2a\u6708",thanTwoYear:"\u4e24\u5e74\u4ee5\u4e0a"},sku:{skuSalesDetails:"SKU\u9500\u91cf\u9884\u4f30",skuBtnMonitorTip:"\u76d1\u63a7",loginViewData:"\u767b\u5f55\u67e5\u770b\u6570\u636e",viewSkuAnalysis:"\u67e5\u770bSKU\u5206\u6790\u62a5\u544a",quantity:"\u5e93\u5b58",tipAnalysis:"\u67e5\u770b\u8be5Listing\u6240\u5c5e\u7c7b\u76ee\u7684\u5e02\u573a\u5206\u6790\uff0c\u8fdb\u884c\u6f5c\u529b\u5e02\u573a\u6316\u6398",tipPriceAnalysis:"\u6309\u7167\u5f53\u524dLisiting\u7684\u552e\u4ef7\u8fdb\u884c\u8d27\u6e90\u7684\u5229\u6da6\u5206\u6790",tipKeyWordsAnalysis:"\u5bf9\u5df2\u9009\u62e9\u4ea7\u54c1listging\u8fdb\u884c\u667a\u80fd\u5206\u6790\uff0c\u5e2e\u52a9\u5bb6\u4e86\u89e3\u5df2\u9009\u62e9\u4ea7\u54c1\u4f7f\u7528\u7684\u9ad8\u9891\u5173\u952e\u8bcd\u53ca\u5173\u952e\u8bcd\u641c\u7d22\u91cf\uff0c\u638c\u63e1\u7ade\u54c1\u7684\u5173\u952e\u8bcd\u9009\u62e9\uff0c\u8c03\u6574\u8fd0\u8425\u7b56\u7565",tipKeyWords:"\u67e5\u8be2\u81ea\u7136\u6d41\u91cf\u8bcd\u548c\u5e7f\u544a\u6d41\u91cf\u8bcd\uff0c\u4e86\u89e3\u6d41\u91cf\u7ed3\u679c\u4ee5\u53ca\u7ade\u54c1\u6d41\u91cf\u5e03\u5c40",tipHistory:"\u67e5\u770b\u5386\u53f2\u9500\u91cf\u3001\u8bc4\u4ef7\u3001\u6392\u540d\u7b49\u8d8b\u52bf\u53d8\u5316\uff0c\u628a\u63e1\u6574\u4f53\u8d70\u5411",tipProductSalesD30:"\u67e5\u770b\u4ea7\u54c1\u8fd1\u4e00\u4e2a\u6708\u7684\u9500\u91cf\u548c\u9500\u552e\u989d",tipHelpAnalysis:"\u5bf9Lisitng\u8fdb\u884c\u667a\u80fd\u8bc4\u8bba\u5206\u6790\uff0c\u5e2e\u52a9\u5bb6\u786e\u5b9a\u7545\u9500\u53d8\u4f53",tipOperation:"\u638c\u63e1\u4ea7\u54c1\u5356\u70b9\u3001\u7f3a\u70b9\u53ca\u5e94\u7528\u573a\u666f\uff0c\u5224\u65ad\u8fd0\u8425\u7b56\u7565",tipComprehensiveAnalysis:"\u5bf9\u4ea7\u54c1SKU\u8fdb\u884c\u7efc\u5408\u5206\u6790\uff0c\u5e2e\u52a9\u786e\u5b9a\u7545\u9500\u53d8\u4f53\uff0c",tipQuantity:"\u638c\u63e1\u5468\u671f\u6027\u9500\u552e\u8d8b\u52bf\uff0c\u5e93\u5b58\u7ba1\u7406\u3002",tipSkuComments:"\u4e00\u5065\u4e0b\u8f7dLisitng\u7684\u8bc4\u8bba\u5230\u672c\u5730\uff0c\u57fa\u4e8e\u8fd0\u8425\u573a\u666f\u8fdb\u884c\u4e2a\u6027\u5316\u8bc4\u8bba\u5206\u6790",tipSource:"\u6309\u7167\u56fe\u7247\u8fdb\u884c\u8d27\u6e90\u641c\u7d22\uff0c\u652f\u63011688\u3001\u62fc\u591a\u591a\u6279\u53d1\u3001<br/>1688\u56fd\u8de8\u5883\u3001\u6dd8\u5b9d\u56db\u4e2a\u7ad9\u70b9\u7684\u8d27\u6e90\u67e5\u627e",tipSearchImgByShopee:"\u901a\u8fc7\u867e\u76ae\u7684\u56fe\u7247\u5bf9\u6bd4\u529f\u80fd\u5bfb\u627e\u7ade\u54c1\uff0c\u6d1e\u5bdf\u5e02\u573a\u7ade\u4e89\u683c\u5c40",skuPrice:"SKU\u4ef7\u683c",skuSold:"SKU\u9500\u91cf\u9884\u4f30",skuSoldRate:"SKU\u9500\u91cf\u5360\u6bd4",skuQuantity:"SKU\u5e93\u5b58",marketTrend:"\u7c7b\u76ee\u8d8b\u52bf",skuImage:"SKU Images",skuSalesFromRatingTip:"\u57fa\u4e8e\u6700\u591a\u524d 300 \u6761\u8bc4\u8bba\u6570\u636e\u9884\u4f30",skuSalesFromRatingWarn:"\u57fa\u4e8e\u6700\u591a\u524d 300 \u6761\u8bc4\u8bba\u9884\u4f30SKU\u9500\u91cf\u53ca\u5360\u6bd4\uff0c\u53ef\u901a\u8fc7\u300cAI\u8bc4\u8bba\u5206\u6790\u300d\u67e5\u770b\u591a\u81f33000 \u6761\u8bc4\u8bba\u7684\u6570\u636e\u5206\u6790"},analyse:{trafficAnalysis:"\u6d41\u91cf\u5206\u6790",titleAnalysis:"\u6807\u9898\u5206\u6790",comprehensiveAnalysis:"\u7efc\u5408\u5206\u6790",hijackingAnalysis:"\u8ddf\u5356\u5206\u6790",analysisRecord:"\u5206\u6790\u8bb0\u5f55",overallRating:"\u7efc\u5408\u8bc4\u4ef7",marketAnalysis:"\u5e02\u573a\u5206\u6790",productReviewAnalysis:"\u4ea7\u54c1\u8bc4\u8bba\u5206\u6790",analyseTime:"\u5206\u6790\u65f6\u95f4",highFrequencyKeywords:"\u76f8\u5173\u4ea7\u54c1\u9ad8\u9891\u5173\u952e\u8bcd",analysisHistory:"\u5206\u6790\u5386\u53f2",analysisSuccessful:"\u5206\u6790\u6210\u529f",analysisFailed:"\u5206\u6790\u5931\u8d25",status:"\u72b6\u6001",name:"\u540d\u79f0",action:"\u64cd\u4f5c"},reviewAnalysisContent:{commentator:"\u8bc4\u8bba\u4eba",commentContent:"\u8bc4\u8bba\u5185\u5bb9",starRating:"\u661f\u7ea7",variant:"\u53d8\u4f53",variantPrice:"\u53d8\u4f53\u4ef7\u683c",imgUrl:"\u56fe\u7247\u94fe\u63a5",reviewImg:"\u5546\u54c1\u56fe",reviewImg1:"\u5546\u54c1\u56fe1",reviewImg2:"\u5546\u54c1\u56fe2",reviewImg3:"\u5546\u54c1\u56fe3",videoUrl:"\u89c6\u9891\u94fe\u63a5\u94fe\u63a5",commentTime:"\u8bc4\u8bba\u65f6\u95f4"},skuExcel:{name:"Sku\u540d\u79f0",price:"\u4ef7\u683c",soldRate:"\u9500\u91cf\u5360\u6bd4",quantity:"\u5e93\u5b58",site:"\u7ad9"},tools:{download:"\u4e0b\u8f7d",profitCalculator:"\u5229\u6da6\u8ba1\u7b97\u5668",imagesSupplyPage:"\u56fe\u641c\u8d27\u6e90",exportToExcel:"\u5bfc\u51faExcel",downloadImg:"\u4e0b\u8f7d\u56fe\u7247\u89c6\u9891",analyseValue:"AI\u8bc4\u8bba\u5206\u6790",queryAnalysis:"\u67e5\u770b\u5206\u6790",analysisInProgress:"\u5206\u6790\u4e2d...",downloadReviews:"\u8bc4\u8bba\u4e0b\u8f7d",downloading:"\u4e0b\u8f7d\u4e2d..",downloadNow:"\u7acb\u5373\u4e0b\u8f7d",allTheMainImages:"\u5168\u9009\u4e3b\u56fe",allSKUImages:"\u5168\u9009SKU\u56fe",viewHighFrequencyWords:"\u67e5\u770b\u9ad8\u9891\u8bcd",viewHighFrequencyWordsTip:"\u9ad8\u9891\u5173\u952e\u8bcd\u5206\u6790\u4e2d\uff0c\u8bf7\u7a0d\u540e",viewHighFrequencyWordsWaitTip:"\u9884\u8ba13-5\u5206\u949f\u5b8c\u6210\u6807\u9898\u6536\u96c6\u4e0e\u5206\u6790\uff0c\u5206\u6790\u5b8c\u6210\u540e\u53ef\u76f4\u63a5\u5728\u5f53\u524d\u9875\u9762\u67e5\u770b\u9ad8\u9891\u5173\u952e\u8bcd\uff0c\u4e5f\u53ef\u4ee5\u5728\u5386\u53f2\u8bb0\u5f55\u4e2d\u67e5\u770b\u3002",dateFormat:"YYYY\u5e74MM\u6708DD\u65e5",searchResultText:"\u641c\u7d22\u7ed3\u679c\u9875\u603b\u89c8"},msg:{basicInfo:"\u57fa\u7840\u4fe1\u606f",copySuccess:"\u590d\u5236\u6210\u529f",copyFail:"\u590d\u5236\u5931\u8d25",pddLogin:"\u67e5\u8be2\u62fc\u591a\u591a\u6279\u53d1\u5546\u54c1\uff0c\u6309\u7167\u62fc\u591a\u591a\u6279\u53d1\u8981\u6c42\uff0c\u9700\u8981\u5148\u8bbf\u95ee\u62fc\u591a\u591a\u6279\u53d1\u9875\u9762\u767b\u5f55\u518d\u8fdb\u884c\u67e5\u8be2\u3002",pddLoginButton:"\u70b9\u51fb\u8bbf\u95ee\u62fc\u591a\u591a\u6279\u53d1\u767b\u5f55",pddVerify:"\u62fc\u591a\u591a\u5b58\u5728\u6ed1\u52a8\u6821\u9a8c\uff0c\u9700\u8981\u5148\u8bbf\u95ee\u62fc\u591a\u591a\u6279\u53d1\u9875\u9762\u6821\u9a8c\u540e\u518d\u8fdb\u884c\u67e5\u8be2\u3002",pddVerifyButton:"\u70b9\u51fb\u8bbf\u95ee\u62fc\u591a\u591a\u6279\u53d1",retry:"\u91cd\u8bd5",reselectImg:"\u91cd\u9009\u56fe\u7247",viewScoreRate:"\u770b\u8bc4\u5206\u60c5\u51b5\uff0c\u4ee5\u53ca\u4e86\u89e3\u4e0d\u540c\u661f\u7ea7\u7684\u8bc4\u5206\u5360\u6bd4",noInclude:"\u5f53\u524d\u4ea7\u54c1\u672a\u6536\u5f55",searchTip:"\u70b9\u51fb\u7ad9\u5185\u641c\u7d22\u8be5\u54c1\u724c,\u4e3a\u65e0\u65f6\u4e0d\u53ef\u641c\u7d22",searchShopTip:"\u70b9\u51fb\u8fdb\u5165\u8be5\u5356\u5bb6\u5e97\u94fa,\u672a\u6536\u5f55\u65f6\u4e0d\u53ef\u70b9\u51fb",clickProductDetail:"\u70b9\u51fb\u8fdb\u5165\u8be5\u5546\u54c1\u8be6\u60c5\u9875",clickCateSearchProduct:"\u70b9\u51fb\u6309\u7167\u7c7b\u76ee\u8fdb\u884c\u4ea7\u54c1\u641c\u7d22,\u672a\u6536\u5f55\u65f6\u4e0d\u53ef\u70b9\u51fb",downloadImgAndVideo:"\u4e00\u952e\u4e0b\u8f7d\u5f53\u524dListing\u7684\u4e3b\u56fe\u548c\u89c6\u9891\u5230\u672c\u5730",reloadPage:"\u5982\u679c\u5e93\u5b58\u4e3aN/A\uff0c\u8bf7\u60a8\u767b\u5f55\u867e\u76ae\u540e\u91cd\u65b0\u8bbf\u95ee\u5f53\u524d\u9875\u9762",analysisTitleTip:"\u5206\u6790\u548c\u4f18\u5316\u8be5\u4ea7\u54c1\u6807\u9898\uff0c\u63d0\u9ad8\u4ea7\u54c1\u6392\u540d\u3002",reviewColling:"\u8bc4\u8bba\u6536\u96c6\u4e2d\uff0c\u8bf7\u7a0d\u540e",reviewCollectionTip:"\u9884\u8ba13-5\u5206\u949f\u5b8c\u6210\u8bc4\u8bba\u6536\u96c6\u4e0e\u5206\u6790\uff0c\u5206\u6790\u5b8c\u6210\u540e\u53ef\u76f4\u63a5\u5728\u63d2\u4ef6\u4e2d\u67e5\u770bAI\u8bc4\u8bba\u603b\u7ed3\uff0c\u4e5f\u53ef\u4ee5\u8df3\u8f6c\u7f51\u9875\u67e5\u770b\u5b8c\u6574\u7684\u5206\u6790\u62a5\u544a",searchCountTip:"\u6708\u641c\u7d22\u91cf < 200 (\u5176\u4ed6\u539f\u56e0\u8054\u7cfb\u5ba2\u670d\uff09",searchImgBySource:"\u70b9\u51fb\u6309\u7167\u56fe\u7247\u8fdb\u884c\u8d27\u6e90\u641c\u7d22\uff0c\u652f\u63011688\u3001\u62fc\u591a\u591a\u6279\u53d1",noneRecord:"\u6682\u65e0\u8bb0\u5f55",noneData:"\u6682\u65e0\u6570\u636e",shopdoraDownloadImgAndVideo:"Shopdora - \u56fe\u7247\u89c6\u9891\u4e0b\u8f7d",downloadSuccess:"\u4e0b\u8f7d\u6210\u529f",mainSkuImgVideo:"\u4e3b\u56fe\u3001\u89c6\u9891\u3001SKU\u56fe",analyseKeyWord:"\u5206\u6790\u8be5\u5173\u952e\u8bcd\u641c\u7d22\u7ed3\u679c\u9875\u4ea7\u54c1\u6570\u636e\u3002\u9ed8\u8ba4\u5206\u6790\u7b2c\u4e00\u9875\uff0c\u7ffb\u9875\u53ef\u83b7\u53d6\u66f4\u591a\u4ea7\u54c1\u6570\u636e\u3002",analyseLimitProductTip:"\u4ee5\u4e0b\u4e3a\u5f53\u524d\u987515\u4e2a\u5546\u54c1\u7684\u5206\u6790\u7ed3\u679c\uff0c\u5347\u7ea7\u5957\u9910\u53ef\u5206\u6790\u66f4\u591a\u5546\u54c1",productKeyWordSalesTip:"\u9ed8\u8ba4\u52a0\u8f7d\u5f53\u524d\u9875\u9762\u6240\u6709\u5546\u54c1\uff0c\u5982\u9700\u52a0\u8f7d\u66f4\u591a\u53ef\u70b9\u51fb\u7ffb\u9875\u6309\u94ae\u3002",analyseLimitTip:"\u514d\u8d39\u7528\u6237\u4ec5\u8ba1\u7b97\u524d 15 \u4e2a\u5546\u54c1\uff1b",notLoginShopeeTip:"\u672a\u767b\u5f55 shopee \u4ec5\u52a0\u8f7d shopdora \u5df2\u6536\u5f55\u4ea7\u54c1",productKeyWordRevenueTip:"\u9ed8\u8ba4\u52a0\u603b\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u5386\u53f2\u9500\u552e\u989d\u3002",productKeyWordMothSalesTip:"\u9ed8\u8ba4\u52a0\u603b\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u6708\u9500\u91cf\u3002",productKeyWordMothRevenueTip:"\u9ed8\u8ba4\u52a0\u603b\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u6708\u9500\u552e\u989d\u3002",productKeyWordCountTip:"\u9ed8\u8ba4\u7edf\u8ba1\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u6570\u3002",productKeyWordAveragePriceTip:"\u9ed8\u8ba4\u7edf\u8ba1\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u7684\u5e73\u5747\u4ef7\u683c\u3002",productKeyWordAverageTimeTip:"\u7edf\u8ba1\u8be5\u5173\u952e\u8bcd\u5df2\u52a0\u8f7d\u5546\u54c1\u5e73\u5747\u4e0a\u67b6\u65f6\u95f4\u3002",fullDiscount:"\u6ee1{}\u51cf{}",copyMsgSuccess:"\u590d\u5236{title}\u6210\u529f",copyMsgFail:"\u590d\u5236{title}\u5931\u8d25",exportProductDetail:"\u70b9\u51fb\u67e5\u770b\u5df2\u52a0\u8f7d\u5546\u54c1\u8be6\u60c5\uff0c\u652f\u6301\u5bfc\u51fa",pleaseEnter:"\u8bf7\u8f93\u5165",copyTitlePop:"\u590d\u5236\u5f53\u524d\u9875\u9762\u6240\u6709\u4ea7\u54c1\u6807\u9898",copyUrlPop:"\u590d\u5236\u5f53\u524d\u9875\u9762\u6240\u6709\u4ea7\u54c1\u94fe\u63a5",upgradeMsg:"\u5347\u7ea7\u4f1a\u5458\u53ef\u5206\u6790\u66f4\u591a",upgradeMsg2:"\u3010\u5347\u7ea7\u4f1a\u5458\u3011"},error:{monitorSize:"\u76d1\u63a7\u6743\u76ca\u6b21\u6570\u5df2\u6d88\u8017\u5b8c\u6bd5",monitorRetry:"\u76d1\u63a7\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",skuPriceNotFound:"\u8bc4\u8bba\u5206\u6790\u65f6\u8be5sku\u5df2\u7ecf\u4e0b\u67b6\uff0c\u56e0\u4e3a\u672a\u67e5\u8be2\u5230sku\u4ef7\u683c",keywordNotFound:"\u672a\u5339\u914d\u5230\u76f8\u5173\u4fe1\u606f\uff0c\u8bf7\u8df3\u8f6c\u867e\u591a\u62c9\u7f51\u9875\u7248\u67e5\u770b\u5173\u8054\u5173\u952e\u8bcd",queryFailRetry:"\u67e5\u8be2\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",selectLogisticsChannel:"\u8bf7\u9009\u62e9\u7269\u6d41\u6e20\u9053",inputProductWeight:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u91cd\u91cf",inputPurchasePrice:"\u8bf7\u8f93\u5165\u91c7\u8d2d\u4ef7",inputFreightForTheFirstLeg:"\u8bf7\u8f93\u5165\u5934\u7a0b\u8fd0\u8d39",inputCommissionRate:"\u8bf7\u8f93\u5165\u4f63\u91d1\u8d39\u7387",inputMarketingCost:"\u8bf7\u8f93\u5165\u8425\u9500\u8d39",inputWithdrawalRate:"\u8bf7\u8f93\u5165\u63d0\u73b0\u8d39\u7387",inputReturnRate:"\u8bf7\u8f93\u5165\u9000\u8d27\u7387",inputReturnFee:"\u8bf7\u8f93\u5165\u9000\u8d27\u8d39",inputProductPrice:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u552e\u4ef7",inputNumber:"\u8bf7\u8f93\u5165\u6570\u5b57",inputActivityCostInformation:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u6210\u672c\u4fe1\u606f",requestErr:"\u8bf7\u6c42\u9519\u8bef,\u8bf7\u7a0d\u540e\u91cd\u8bd5",loginError:"\u60a8\u7684\u8d26\u53f7\u5df2\u5728\u53e6\u4e00\u53f0\u8bbe\u5907\u767b\u5f55",requestTimeoutRetry:"\u8bf7\u6c42\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5",requestTimeout:"\u8bf7\u6c42\u8d85\u65f6",zipError:"\u8bf7\u5148\u9009\u62e9\u56fe\u7247/\u89c6\u9891/SKU\u56fe",analysisProductError:"\u81f3\u5c11\u9009\u62e9\u4e24\u4e2a\u4ea7\u54c1\u8fdb\u884c\u5206\u6790",systemBusyError:"\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"},countryArea:{tw:"\u53f0\u6e7e",sg:"\u65b0\u52a0\u5761",my:"\u9a6c\u6765\u897f\u4e9a",ph:"\u83f2\u5f8b\u5bbe",th:"\u6cf0\u56fd",vn:"\u8d8a\u5357",br:"\u5df4\u897f",id:"\u5370\u5c3c",mx:"\u58a8\u897f\u54e5"},deliverChannel:{logisticsChannel:"\u7269\u6d41\u6e20\u9053",generalCargo:"\u666e\u8d27",expressChannel:"\u7279\u5feb\u6e20\u9053",buyerSelfPickupChannel:"\u4e70\u5bb6\u81ea\u53d6\u6e20\u9053",buyerSelfCollectionChannel:"\u4e70\u5bb6\u81ea\u63d0\u6e20\u9053",selfPickupLockerChannel:"\u81ea\u63d0\u67dc\u6e20\u9053",onlineSeaShippingChannel:"\u7ebf\u4e0a\u6d77\u8fd0\u6e20\u9053",heavyGoods:"\u91cd\u8d27",standardChannel:"\u6807\u51c6\u6e20\u9053",standardChannel58008:"\u6807\u51c6\u6e20\u9053(Channel 58008)",standardChannel78017:"\u6807\u51c6\u6e20\u9053(Channel 78017)",maritimeEconomicChannel:"\u6d77\u8fd0\u7ecf\u6d4e\u6e20\u9053",maritimeLargeCargoChannel:"\u6d77\u8fd0\u5927\u4ef6\u6e20\u9053",priorityChannel:"\u4f18\u5148\u6e20\u9053",standardChannelMainland:"\u6807\u51c6\u6e20\u9053 - \u5185\u5730",standardChannelHongKong:"\u6807\u51c6\u6e20\u9053 - \u9999\u6e2f",standardChannelHongKong58012:"\u6807\u51c6\u6e20\u9053 - \u9999\u6e2f(Channel 58012)",shopeeOverseas711TC:"\u8766\u76ae\u6d77\u5916 - 7-11",shopeeOverseasHiLifeAirFreightTC:"\u8766\u76ae\u6d77\u5916 - \u840a\u723e\u5bcc \uff08\u7a7a\u904b\uff09",shopeeOverseasHiLifeSeaFreightTC:"\u8766\u76ae\u6d77\u5916 - \u840a\u723e\u5bcc \uff08\u6d77\u904b\uff09",shopeeOverseasFamilyTC:"\u8766\u76ae\u6d77\u5916 - \u5168\u5bb6",shopeeOverseasHomeDelivery:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d",shopeeOverseasHomeDeliveryAirFreightTC:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d\uff08\u7a7a\u904b\uff09",shopeeOverseasHomeDeliverySeaFreightTC:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d\uff08\u6d77\u904b\uff09",shopeeOverseasShopeeStoreInstoreTC:"\u8766\u76ae\u6d77\u5916 - \u8766\u76ae\u5e97\u5230\u5e97",shopeeOverseasOKMARTSeaFreightTC:"\u8766\u76ae\u6d77\u5916 - OK MART\uff08\u6d77\u904b\uff09",lightGoods:"\u8f7b\u8d27",specialOffer:"\u7279\u8d27",specialGoodsChannelTC:"\u7279\u8ca8\u6e20\u9053",specialGoodsChannel:"\u7279\u8d27\u6e20\u9053"},productBasicInfo:{productList:"\u4ea7\u54c1\u5217\u8868",crossBorderLogisticsFee:"\u8de8\u5883\u7269\u6d41\u8d39",site:"\u7ad9\u70b9",screening:"\u7b5b\u9009",page:"\u9875",products:"\u4ea7\u54c1\u6570",sitTip:"\u9762\u5411\u4e0d\u540c\u56fd\u5bb6\u7684\u5e02\u573a\uff0c\u53ef\u9009\u62e9\u67d0\u4e00\u7ad9\u70b9\u505a\u9488\u5bf9\u6027\u7684\u8c03\u7814",currentExchangeRate:"\u5f53\u524d\u6c47\u7387",updateExchangeRate:"\u66f4\u65b0\u6c47\u7387",currentExchangeRateTip:"\u5f53\u524d\u6c47\u7387\u4ece\u5b98\u65b9\u83b7\u53d6\u83b7\u53d6\uff0c\u6bcf\u65e5\u66f4\u65b0\u3002\u4e5f\u53ef\u4ee5\u624b\u52a8\u70b9\u51fb\u66f4\u65b0\u83b7\u53d6\u6700\u65b0\u6c47\u7387",type:"\u4ea7\u54c1\u7c7b\u578b",typeTip:"\u548cshopee\u5b98\u7f51\u63d0\u4f9b\u7684\u7269\u6d41\u6e20\u9053\u4fdd\u6301\u4e00\u81f4\uff0c\u53ef\u8df3\u8f6chttps://shopee.org.cn/4990.html\u67e5\u770b<br/>shopee\u7684\u7269\u6d41\u8d39\u5206\u4e3a\u5356\u5bb6\u652f\u4ed8\u90e8\u5206\u548c\u4e70\u5bb6\u652f\u4ed8\u90e8\u5206\uff0c\u8fd9\u91cc\u7684\u8de8\u5883\u7269\u6d41\u8d39\u4e3b\u8981\u662f\u6307\u5356\u5bb6\u652f\u4ed8\u7684\u90e8\u5206",weight:"\u4ea7\u54c1\u91cd\u91cf",weightTip:"\u6839\u636eshopee SLS \u7269\u6d41\u7b56\u7565\uff0c\u91cd\u8981\u662f\u5f71\u54cd\u7269\u6d41\u8d39\u7684\u91cd\u8981\u56e0\u7d20",purchasePrice:"\u91c7\u8d2d\u4ef7",purchasePriceTip:"\u662f\u6307\u4ea7\u54c1\u4ece\u4e0a\u6e38\u91c7\u8d2d\u7684\u603b\u6210\u672c",freightForTheFirstLeg:"\u5934\u7a0b\u8fd0\u8d39",freightForTheFirstLegTip:"\u662f\u6307\u4ea7\u54c1\u4ece\u5356\u5bb6\u53d1\u653e\u5230shopee\u4ed3\u5e93\u7684\u8fd0\u8d39",commissionRate:"\u4f63\u91d1\u8d39\u7387",commissionRateTip:"shopee\u5e73\u53f0\u57fa\u4e8e\u4ea4\u6613\u6536\u53d6\u7684\u4f63\u91d1\uff0c\u9ed8\u8ba4\u4e3a6%",transactionRate:"\u4ea4\u6613\u8d39\u7387",transactionRateTip:"shopee\u5e73\u53f0\u57fa\u4e8e\u4ea4\u6613\u6536\u53d6\u7684\u4ea4\u6613\u624b\u7eed\u8d39\uff0c\u9ed8\u8ba4\u4e3a2%",marketingRate:"\u8425\u9500\u8d39\u7387",marketingAmount:"\u8425\u9500\u91d1\u989d",marketingRateTip:"\u8be5\u5546\u54c1\u63a8\u5e7f\u7684\u6240\u6709\u8425\u9500\u6210\u672c\uff0c\u5305\u62ec\u7ad9\u5185\u5916\u63a8\u5e7f\u3001\u6d3b\u52a8\u7684\u6210\u672c",withdrawalFee:"\u63d0\u73b0\u624b\u7eed\u8d39",withdrawalFeeTip:"\u5c06\u4ea4\u6613\u6240\u5f97\u5f52\u5356\u5bb6\u6240\u5f97\u90e8\u5206\uff0c\u8de8\u5883\u652f\u4ed8\u6240\u9700\u8981\u7684\u63d0\u73b0\u624b\u7eed\u8d39\u7387",returnRate:"\u9000\u8d27\u7387",returnRateTip:"\u4ea7\u54c1\u7531\u4e8e\u6d88\u8d39\u8005\u9000\u8d27\u4f1a\u7ed9\u5356\u5bb6\u5e26\u6765\u989d\u5916\u6210\u672c\uff0c\u4e00\u822c\u5c0f\u5546\u54c1\u9000\u8d27\u5546\u54c1\u5c31\u4e22\u5931\uff0c\u5927\u5546\u54c1\u9000\u8d27<br/>shopee\u5e73\u53f0\u4e5f\u4f1a\u6536\u53d6\u9000\u56de\u7684\u7269\u6d41\u6210\u672c\uff0c\u6240\u4ee5\u9000\u8d27\u7387\u5bf9\u6210\u672c\u7684\u5f71\u54cd\u5f88\u5927\u3002\u5356\u5bb6\u53ef\u4ee5\u9884\u6d4b\u9000\u8d27\u7387\u6765\u8fdb\u884c\u5206\u6790\uff0c\u6216\u8005\u6839\u636e\u4ea7\u54c1\u7684\u5b9e\u9645\u9000\u8d27\u60c5\u51b5\u8bbe\u7f6e\u9000\u8d27\u7387\u6765\u5206\u6790",commodityHandling:"\u5546\u54c1\u5904\u7406",commodityHandlingTip:"\u5546\u54c1\u9000\u8d27\u4e00\u822c\u4e22\u5f03\uff0c\u5927\u4ef6\u5546\u54c1\u4f1a\u91c7\u7528\u9000\u56de\u5883\u5185\u7684\u65b9\u5f0f\u3002\u4e0d\u540c\u7684\u65b9\u5f0f\uff0c\u552e\u540e\u6210\u672c\u4e0d\u4e00\u6837<br>i. \u4e22\u5931\uff1a\u9000\u8d27\u635f\u5931=\uff08\u91c7\u8d2d\u4ef7\uff09*\u9000\u8d27\u7387-\uff08\u4ea4\u6613\u8d39+\u4f63\u91d1\uff09*\u9000\u8d27\u7387\uff0c\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570<br>ii. \u9000\u56de\uff1a\u9000\u8d27\u635f\u5931=\uff08\u9000\u8d27\u8d39\uff09*\u9000\u8d27\u7387-\uff08\u4ea4\u6613\u8d39+\u4f63\u91d1\uff09*\u9000\u8d27\u7387\uff0c\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570",returnFee:"\u9000\u8d27\u8d39",returnFeeTip:"\u4ea7\u54c1\u7531\u4e8e\u6d88\u8d39\u8005\u9000\u8d27\u4f1a\u7ed9\u5356\u5bb6\u5e26\u6765\u989d\u5916\u6210\u672c\uff0c\u4e00\u822c\u5c0f\u5546\u54c1\u9000\u8d27\u5546\u54c1\u5c31\u4e22\u5931\uff0c\u5927\u5546\u54c1\u9000\u8d27<br>shopee\u5e73\u53f0\u4e5f\u4f1a\u6536\u53d6\u9000\u56de\u7684\u7269\u6d41\u6210\u672c\uff0c\u6240\u4ee5\u9000\u8d27\u7387\u5bf9\u6210\u672c\u7684\u5f71\u54cd\u5f88\u5927\u3002\u5356\u5bb6\u53ef\u4ee5\u9884\u6d4b\u9000\u8d27\u7387\u6765\u8fdb\u884c\u5206\u6790\uff0c\u6216\u8005\u6839\u636e\u4ea7\u54c1\u7684\u5b9e\u9645\u9000\u8d27\u60c5\u51b5\u8bbe\u7f6e\u9000\u8d27\u7387\u6765\u5206\u6790",productPrice:"\u4ea7\u54c1\u552e\u4ef7",productPriceTip:"\u662f\u6307\u5728shopee\u4e0a\u7684\u539f\u4ef7",discount:"\u6298\u6263",discountTip:"\u662f\u6307\u5728shopee\u4e0a\u7684\u6298\u6263\u7387",profit:"\u5229\u6da6",productCost:"\u5546\u54c1\u6210\u672c",platformCost:"\u5e73\u53f0\u6210\u672c",transactionFeeRate:"\u4ea4\u6613\u624b\u7eed\u8d39\u7387",marketingCost:"\u8425\u9500\u8d39",monthlySearchVolume:"\u6708\u641c\u7d22\u91cf",searchVolume:"\u641c\u7d22\u91cf"},profit:{withdrawalHandlingFeeRate:"\u63d0\u73b0\u624b\u7eed\u8d39\u7387",activityCost:"\u6d3b\u52a8\u6210\u672c",fullReductionPromotion:"\u6ee1\u51cf\u6d3b\u52a8\uff1a",full:"\u6ee1",reduce:"\u51cf",afterSalesCost:"\u552e\u540e\u6210\u672c",income:"\u6536\u5165",example:"\u4f8b\uff1a10% off \u4ee3\u8868\u62539\u6298",calculate:"\u8ba1\u7b97",profitRate:"\u5229\u6da6\u7387",profitValue:"\u5229\u6da6\u503c",profitCalculate:"\u5229\u6da6=\u6298\u6263\u540e\u7684\u552e\u4ef7-\u6240\u6709\u6210\u672c\uff08\u91c7\u8d2d\u4ef7+\u5934\u7a0b\u8fd0\u8d39+\u4f63\u91d1+\u4ea4\u6613\u624b\u7eed\u8d39+\u8425\u9500\u8d39\u7528+\u63d0\u73b0\u624b\u7eed\u8d39+\u552e\u540e\u6210\u672c+\u8de8\u5883\u7269\u6d41\u8d39\uff09",profitRateCalculate:"\u5229\u6da6\u7387=\uff08\u6298\u540e\u552e\u4ef7-\u91c7\u8d2d\u4ef7\uff09/\u91c7\u8d2d\u4ef7*100%\uff0c\u56db\u820d\u4e94\u5165\u4fdd\u75592\u4f4d\u5c0f\u6570"},option:{discard:"\u4e22\u5f03",return:"\u9000\u56de",selectProductType:"\u8bf7\u9009\u62e9\u4ea7\u54c1\u7c7b\u578b",day:"\u6309\u65e5",week:"\u6309\u5468",month:"\u6309\u6708",downloadRules:"\u4e0b\u8f7d\u89c4\u5219",downloadByReviewTimePeriod:"\u6309\u7167\u8bc4\u8bba\u65f6\u95f4\u6bb5\u4e0b\u8f7d",downloadByReviews:"\u6309\u7167\u8bc4\u8bba\u6761\u6570\u4e0b\u8f7d",timePeriod:"\u65f6\u95f4\u6bb5",numberOfReviews:"\u8bc4\u8bba\u6761\u6570",downloadFirst100:"\u4e0b\u8f7d\u524d100\u6761",downloadFirst200:"\u4e0b\u8f7d\u524d300\u6761",downloadAll:"\u4e0b\u8f7d\u5168\u90e8",organicRanking:"\u81ea\u7136\u6392\u540d",latest:"\u6700\u65b0",bestSelling:"\u6700\u70ed\u9500",lowToHigh:"\u4ef7\u683c\u4ece\u4f4e\u81f3\u9ad8",highToLow:"\u4ef7\u683c\u4ece\u9ad8\u81f3\u4f4e",disabled:"\u7981\u7528",enabled:"\u542f\u7528"},ai:{sentimentSummary:"\u60c5\u611f\u6c47\u603b",positive:"\u6b63\u9762",neutral:"\u4e2d\u6027",negative:"\u8d1f\u9762",sentimentWordList:"\u60c5\u611f\u8bcd\u8868",content:"\u5185\u5bb9",frequency:"\u51fa\u73b0\u6b21\u6570",count:"\u51fa\u73b0\u6761\u6570",aiReviewSummary:"AI\u8bc4\u8bba\u603b\u7ed3",skuViewDetail:"SKU\u8bc4\u8bba\u8be6\u60c5\uff0c\u8bc4\u8bba\u661f\u7ea7\u5360\u6bd4\uff0c\u8bc4\u8bba\u9ad8\u9891\u8bcd\u5217\u8868\uff0c\u5e2e\u52a9\u5356\u5bb6\u5224\u65ad\u8fd0\u8425\u7b56\u7565",goToWebDetail:"\u524d\u5f80web\u7aef\u67e5\u770b\u8be6\u60c5",sentimentAnalysis:"\u60c5\u611f\u5206\u6790",productSummary:"\u4ea7\u54c1\u603b\u7ed3",usageScenarios:"\u4f7f\u7528\u573a\u666f",userAttractiveSellingPoints:"\u5438\u5f15\u7528\u6237\u7684\u5356\u70b9",productAdvantages:"\u4ea7\u54c1\u4f18\u70b9",areasForImprovement:"\u5f85\u6539\u8fdb\u70b9",userExpectations:"\u7528\u6237\u671f\u5f85",noReviewsAvailable:"\u5f53\u524d\u4ea7\u54c1\u6682\u65e0\u8bc4\u8bba",few50Reviews:"\u8be5\u4ea7\u54c1\u7d2f\u8ba1\u8bc4\u8bba\u6570\u5c11\u4e8e50\u6761\uff0c\u65e0\u6cd5\u5bf9\u5176\u8fdb\u884c\u8bc4\u8bba\u603b\u7ed3\uff0c\u8bf7\u9009\u62e9\u5176\u4ed6\u4ea7\u54c1\u8fdb\u884c\u5206\u6790",userProfile:"\u7528\u6237\u753b\u50cf"},productList:{switchCurrency:"\u70b9\u51fb\u5207\u6362\u4eba\u6c11\u5e01",switchToTheLocalCurrency:"\u70b9\u51fb\u5207\u6362\u672c\u571f\u8d27\u5e01"},currency:{currencyGlobal:"CNY",currency:"\u4eba\u6c11\u5e01",currencyCN:"\u4eba\u6c11\u5e01",unit:"\xa5",area:"cn",switchCurrency:"\u70b9\u51fb\u5207\u6362\u4eba\u6c11\u5e01",switchToTheLocalCurrency:"\u70b9\u51fb\u5207\u6362\u672c\u571f\u8d27\u5e01",switchToTheCurrency:"\u70b9\u51fb\u5207\u6362\u672c\u7ad9\u8d27\u5e01",skuPriceCalculate:"",currencyExchangeRate:"\u8d27\u5e01\u6c47\u7387",chinaBankExchangeRate:"\u592e\u884c\u6c47\u7387",customExchangeRate:"\u81ea\u5b9a\u4e49\u6c47\u7387",exchangeTip:"\u8bf7\u8f93\u51651\u5143\u4eba\u6c11\u5e01\u5bf9\u5e94\u7684\u672c\u571f\u8d27\u5e01\u6c47\u7387\uff08\u5c0f\u6570\u70b9\u540e3-8\u4f4d\uff09",mx:"\u58a8\u897f\u54e5\u6bd4\u7d22",id:"\u5370\u5c3c\u76fe",br:"\u5df4\u897f\u96f7\u4e9a\u5c14",vn:"\u8d8a\u5357\u76fe",th:"\u6cf0\u94e2",ph:"\u83f2\u5f8b\u5bbe\u6bd4\u7d22",my:"\u9a6c\u5e01",sg:"\u65b0\u52a0\u5761\u5143",tw:"\u65b0\u53f0\u5e01"},profitCalculator:{currencyView:"{unit}{text}",exchangeRate:"\u8d27\u5e01\u6c47\u7387"},ads:{storeSource:"\u5e97\u94fa\u6765\u6e90",noLimit:"\u4e0d\u9650",adsProduct:"\u5e7f\u544a\u4ea7\u54c1",searchProducts:"\u67e5\u8be2\u4ea7\u54c1",adRanking:"\u5e7f\u544a\u6392\u540d",noBrand:"\u65e0\u54c1\u724c",regular:"\u666e\u901a",preferred:"\u4f18\u9009",mallStore:"Mall\u5e97",productInformation:"\u4ea7\u54c1\u4fe1\u606f",reviewRate:"\u7559\u8bc4\u7387",keywordSearch:"\u5173\u952e\u8bcd\u641c\u7d22\u4ea7\u54c1\u5217\u8868"},review:{numberOfReviews:"\u8bc4\u4ef7\u6570",stars:"{number}\u661f",ratingDistribution:"\u8bc4\u5206\u6570\u5360\u6bd4"},listingTimeCharts:{listingTime0:"1\u6708",listingTime1:"3\u6708",listingTime2:"6\u6708",listingTime3:"1\u5e74",listingTime4:"2\u5e74",listingTime5:"2\u5e74+"},locationCharts:{local:"\u672c\u571f",crossBorder:"\u8de8\u5883"},shopTypeCharts:{normal:"\u666e\u901a",mall:"mall\u5e97",preferredPlus:"\u4f18\u9009"},shopCateTopCharts:{cate:"\u5546\u54c1\u5206\u7c7b"},shopProductListingTimeCharts:{listingTime0:"7\u5929",listingTime1:"15\u5929",listingTime2:"30\u5929",listingTime5:"60\u5929"}},en:{style:{productDetailPage:{logo:"en_logo",logoText:"en_logoText",shopdoraLogo:"en_shopdoraLogo",detailTopButton:"en_detail-top-button",detailButton:"en_detail-button",detailInfoList:"en_detail-info-list",detailInfoItems:"en_detail-info-items",detailInfoItem:"en_detail-info-item",maxWidth:"en_MaxWidth",detailInfoItemWidth:"fit-content",detailTop:"en_detail-top",goShopdora:"en_goShopdora",customPopup:"en_t-popup__content",pageDetailLoginTitleButton:"68px"},keywordProductListPreview:{formLabelWidth:100},tdGoodsTitle:{imgSupply:"en_imgSupply"},productList:{salesRanking:"en_sales-ranking",shopdoraListItem:"en_shopdora-list-item-button-item",shopdoraListItemButton:"en_button",buttonDetailWidth:"100%",buttonWidth:"100%",marginTop:"5px",shopdoraListItemInfoItemTitle:"en_shopdora-list-item-info-item-title",shopdoraListId:"en_shopdora-list-item",infoItemMainSpanWidth:"fit-content",infoItemMainSpanNoDetailWidth:"fit-content",infoItemMainSpanMaxWidth:"100px",infoItemMainSpanMarginLeft:"0px",basicInfo:"en_basic-info",sellerWidth:"36px",cateWidth:"30px",sellerSourceTipsWidth:"38px",sellerTitle:"common_seller-span",sellerTitleMain:"common_seller-span-title",sellerTitleValue:"common_seller-span-value"},keywordPreview:{headerItem:"en_headerItem",itemValueFontSize:"18px"},currencyRate:{currencyRateHeader:"en_currency-rate-header"},icon:{settingHeaderName:"en_settingHeaderName",loginTitle:"en_loginTitle",text:"en_text",shopIcon:"en_shopIcon",iconImg:"en_iconImg"},filtration:{analyseTop:"en_top",analyseCenter:"en_center",radioGroup:"en_radioGroup",filtationButton:"en_filtationButton",height:"692px",noDescHeight:"732px",filtationLoginTitleButton:"68px"},profitForm:{toolsFormWrapperCrx:"en_tools-form-wrapper-crx",combineInput:"en_combine-input",resultBlock:"en_result-block"},specification:{dialogWidth:"620px",specificationWidth:"554px",progress:"en_progress"},skuTab:{moneyText:"en_money-text",titleText:"en_title-text",commonBtn:"en_common-btn"},popup:{shopeeSelect:"en_shopeeSelect",shopdorapopup:"en_shopdorapopup",shopeeSelectWidth:"auto"},reviewDownload:{reviewWidth:"740px",reviewTitle:"en_reviewTitle"},keyword:{keywordCrxHeight:"166px",keywordHeaderHeight:"68px",keywordTitleWidth:"356px"},imageSearchTag:{searchTagWidth:"130px"}},popup:{pleaseSelect:"Select"},productDetailPage:{cateNameType:"cateName",cateNamePath:"catePath","\u8de8\u5883":"Cross-border","\u672c\u571f":"Local","\u65e0":"None"},productListPage:{seller:"Seller",brand:"Brand",cateNameType:"catePath",listedOn:"Listed On",cate:"Cat.",mRank:"M-Rank",crossBorder:"CB",crossBorderTip:"Cross-border",soldD30:"30d Sales",soldD1AndD7:"1d/7d Sales",soldD30Rate:"30d Growth",salesD30:"30d GMV",totalSold:"Total Sales",totalSales:"GMV",likedCount:"Likes"},keywordProductListPreview:{cateNameType:"catePath",cateNamePath:"cateLocalPath",productList:"Product List\uff08{count} Product\uff09",check:"Selected\uff08{count}\uff09",page:"{count} Items"},keywordPreview:{marketView:"Market Overview",analyseProductTotal:"Total Products Analyzed:",totalSold:"Total Sales:",monthlySales:"Monthly Sales:",avgPrice:"Avg. Price:",avgTime:"Avg. Listing Date:",avgRating:"Avg. Rating Score:",more:"Load More",avg:"Avg:",productList:"View Product Details"},keywordPage:{cateNameType:"cateEnName",keywordMining:"Keyword Mining"},historyKeywordAnalysisDialog:{exportData:"Export Data",analyseTime:"Analysis Time",products:"Products",screening:"Filter",site:"Site",highFrequencyKeywords:"Related Product High-Frequency Keywords",serialNumber:"No.",keyword:"Keyword",frequency:"Frequency",monthlySearchVolume:"Monthly Search Volume",searchCountTip:"Monthly search volume < 200 (Contact customer service for other reasons)",notInclude:"Not Indexed"},iconPage:{priceCheck:"USD Price"},chart:{listingTime:"Listing Time Distribution:",location:"Product Shipping Locations:",shopType:"Store Type:",cateTop:"Top 5 Main Categories:",newProduct:"New Arrivals Analysis:",cateType:"cateName"},imageSearchTag:{searchTag:"Find on 1688"},common:{language:"Language",changeLanguage:"Change Language",clickLogin:"Click to login",loginNow:"Login Now",helpCenter:"Help Center",helpCenterUrl:"https://help.shopdora.com/en",contact:"Contact",goToShopdora:"Go to shopdora.com",membershipPrice:"Membership price",imageSearch:"Image Search",update:"Update",goToUpdate:"Go to Update",latestVersion:"Latest Version",warnTitle:"Full data requires plugin login shopdora",textCrx:"The Best Tool for Shopee Analytics Tool ",copyTitle:"Copy Title",copyLink:"Copy Link",clickCopy:"Click to Copy",customList:"Customize List ",logout:"Sign Out",confirm:"Confirm",cancel:"Cancel",wxCodeName:"Get Customer Service on WeChat",activated:"Activated",disabled:"Disabled",pleaseSelect:"Please Select",expireDate:"Valid Until",isLogin:"Please log in to the plugin to view complete data",getHistory:"View History",monitorDesc:"Had Added to Monitoring",tips:"SKU Data: View on Shopee local Platform.",helpTips:"How to Access Shopee?",productSkuTipsName:"You are a free user. Upgrade your plan to view this content",upgradePackage:"Upgrade",tipMoreComment:"More about review analysis",clickLearnMore:"Click to learn",tipUpgrade:"Premium users only. {upgradePackage} your plan to view",jumpNow:"Go Now",allTrends:"Click to View All Trends",nothing:"None",empty:"Empty",pdd:"PDD",loading:"Loading...",queryProduct:"Searching Products...",clickCopyLink:"Click to Copy Link",notInclude:"Not Indexed",goShopdoraWeb:"Go to shopdora.com",day:"Day",all:"All",clickSwitch:"Click to Switch",iKnow:"OK",unknown:"Unknown",page:"Page",exportData:"Export Data",exportProductList:"Export Product List",frequency:"Frequency",serialNumber:"No.",available:"Available",reset:"Reset",goWeb:"Go to shopdora.com",view:"View",title:"Title",link:"Link",search:"Search",yes:"Yes",no:"No",pageNumber:"Page Number",ranking:"Ranking",rec:"Items",currency:"$",rmb:"\xa5",usd:"$"},page:{pageInfo:"Page{page}",pageColorInfo:'<span style="color: rgba(0, 0, 0, 0.9)">(Page</span>{page}<span style="color: rgba(0, 0, 0, 0.9)">)</span>'},login:{loginOther:"Login with Other Account",welcome:"Welcome to Shopdora",forgotPassword:"Forgot password",notAccount:"Don't have an account?",goRegister:"Sign Up",password:"Password",loginSuccess:"Login Successful",mobileOrAccount:"Phone number/Sub-account",enterPassword:"Enter your password",passwordTip:"Please enter the 6-digit invitation code",mobileOrAccountTip:"Phone number/Sub-account",passwordNotEmpty:"Password"},info:{sellerSource:"Seller Source",storeId:"Store ID",storeName:"Store",storeType:"Store Type",store:"Store",id:"ID",productId:"Product ID",productId2:"Product ID",productId3:"Product ID",productLink:"Product Link",productImg:"Product Image",seller:"Seller",brand:"Brand",brandName:"Brand",cate:"Category",cateName:"Category ",tipCate:"Main categories of products in the first 3 pages under this keyword. Under comprehensive filtering, when searching this keyword, {br}the category with the most products appearing in the first three pages is the primary category for this keyword. Used to confirm the industry and niche market of the keyword{br}",topKeywords:"Top Keywords",keyword:"Keyword",time:"Listing Date",timeRange:"Listing Time Range",soldD30:"30-Day Sales",soldD1AndD7:"Last 1d/7d Sales",soldD30Rate:"30-Day Sales Growth",salesD30:"30-Day GMV",liked_count:"Likes",totalSold:"Total Sales",totalSales:"GMV",sold:"Sales",sales:"Revenue",selectAll:"Select All (Products: %s)",selectByCondition:"Select by Condition (Products: %s)",batchSelect:"Batch Select (Products: %s)",monthlySales:"Monthly Sales",monthlySalesSort:"Monthly Sales Ranking",monthlyRevenue:"Monthly Revenue",min:"Min",max:"Max",cny:"CNY",localUnit:"Local Currency",cnyPrice:"RMB Price",searchTrend:"Search Trend",tipSearchTrend:"Weekly search trends for this keyword. For seasonal keywords, search volume may only exist during certain periods. If keyword search volume is too low, the system will no longer index it{br}",searchVolume30D:"30-Day Search Volume",avgDailySearches:"Avg. Daily Searches",moMSearchGrowth:"MoM Search Growth",tipSearchVolume30D_1:"Number of times this keyword was searched in Shopee search box over the past 30 days",tipSearchVolume30D_2:"Average daily search volume is calculated based on search volume over the past 30 days",tipSearchVolume30D_3:"Monthly search volume growth rate = (Recent 30-day search volume - Previous 30-day search volume) / Previous month search volume \xd7 100%",tipSearchVolume30D_4:"Search volume  updated daily",productCount:"Product Count",supplyDemandRatio:"Supply/Demand Ratio",tipProductCount_1:"Product count: Number of related products that appear when searching this keyword",tipProductCount_2:"Demand-Supply ratio = Average daily search volume (demand) / Product count (supply), used to assess demand intensity",tipProductCount_3:"Product count updated weekly, Demand-Supply ratio updated daily.",avgPrice:"Avg.  Price",avgRatingScore:"Avg. Rating Score",ratingCount:"Rating Count",tipAvgPrice_1:"Average price/review count/rating of products in the first 3 pages of Shopee search results (organic search results) for this keyword",tipAvgPrice_2:"Updated weekly",ppcBid:"PPC Bid",tipPpcBid_1:"Suggested price for advertising this keyword within Shopee. This price reflects market competition level and can be used to evaluate marketing costs. {br}Recommend prioritizing keywords with low bid prices and high search volume; {br}",tipPpcBid_2:"Data Updated Daily",updateDataWeek:"Updated weekly",noDataText:"No updates",crossBorder:"Cross-border",local:"Local",soldNow:"Sold",mainImg:"Main Image",past30DayOfSalesAndSalesRevenue:"Sales & Revenue for Past 30 Days",video:"Video",relatedProduct:"Related Product",loadedProducts:"Loaded Products",avgLoadedPrice:"Avg. Price (Loaded)",avgListingTime:"Avg. Listing Time"},time:{day:"{day}Day",month:"{month}Month",year:"{year}Year",oneMonth:"1 Month",threeMonth:"3 Months",sixMonth:"6 Months",oneYear:"Past Year",twoYear:"Past 2 Years",numTwoYear:"Past 2 Years",numOneYear:"Past 1 Years",pastSixMonth:"Past 6 Month",pastThreeMonth:"Past 3 Month",pastOneMonth:"Past 1 Month",thanTwoYear:"Over 2 Years"},sku:{skuSalesDetails:"SKU Sales Forecast",skuBtnMonitorTip:"Monitor",loginViewData:"Login to View",viewSkuAnalysis:"View SKU Analysis Report",quantity:"Stock",tipAnalysis:"View market analysis for this listing's category and explore potential market opportunities",tipPriceAnalysis:"Profit analysis of sourcing based on current listing price",tipKeyWordsAnalysis:"Intelligent analysis of selected product listings to help sellers understand high-frequency keywords and search volumes, master competitor keyword strategies, and adjust operational tactics",tipKeyWords:"Query organic and paid traffic keywords to understand traffic performance and competitor traffic distribution",tipHistory:"View historical trends in sales volume, reviews, rankings, and other metrics to grasp overall direction",tipProductSalesD30:"",tipHelpAnalysis:"Intelligent review analysis of listings to help sellers identify best-selling variants",tipOperation:"Understand product selling points, weaknesses, and use cases to determine operational strategies",tipComprehensiveAnalysis:"Comprehensive SKU analysis to help identify best-selling variants, ",tipQuantity:"Understand seasonal sales trends, and manage inventory.",tipSkuComments:"One-click download of listing reviews to local storage for personalized review analysis based on operational scenarios",tipMoreComment:"Click to learn more about review analysis",tipSource:"Image-based sourcing search supporting four platforms: 1688, PDD Wholesale, <br/>1688 Cross-border, and Taobao",tipSearchImgByShopee:"Use Shopee's image comparison feature to find competitors and gain insights into market competition landscape",skuPrice:"SKU Price",skuSold:"SKU Sales Forecast",skuSoldRate:"SKU Sales Share",skuQuantity:"SKU Inventory",marketTrend:"Category Trends",skuImage:"SKU Images",skuSalesFromRatingTip:"Forecast from top 300 reviews",skuSalesFromRatingWarn:"SKU sales and share projected from top 300 reviews. Explore up to 3,000 reviews with AI Analysis"},analyse:{trafficAnalysis:"Traffic Analysis",titleAnalysis:"Title Analysis",comprehensiveAnalysis:"Comprehensive Analysis",hijackingAnalysis:"Find Similar",analysisRecord:"Analysis Records",overallRating:"Overall Rating",marketAnalysis:"Market Analysis",productReviewAnalysis:"Product Review Analysis",analyseTime:"Analysis Time",highFrequencyKeywords:"Related Product High-Frequency Keywords",analysisHistory:"Analysis History",analysisSuccessful:"Analysis Successful",analysisFailed:"Analysis Failed",status:"Status",name:"Name",action:"Actions"},reviewAnalysisContent:{commentator:"Reviewer",commentContent:"Review Content",starRating:"Star Rating",variant:"Variant",variantPrice:"Variant Price",imgUrl:"Image Link",reviewImg:"Product Image",reviewImg1:"Review Image 1",reviewImg2:"Review Image 2",reviewImg3:"Review Image 3",videoUrl:"Video Link",commentTime:"Review Date"},skuExcel:{name:"SKU Name",price:"Price",sold:"Sales",soldRate:"Sales Share",quantity:"Stock",site:"Site"},tools:{download:"Download",profitCalculator:"Profit Calculator",imagesSupplyPage:"Image Search for Suppliers",exportToExcel:"SKU Sales",downloadImg:"Download Images/Video",analyseValue:"AI Analysis",queryAnalysis:"View Analysis",analysisInProgress:"Analyzing..",downloadReviews:"Export Review",downloading:"Downloading..",downloadNow:"Download Now",allTheMainImages:"Select All Main Images",allSKUImages:"Select All SKU Images",viewHighFrequencyWords:"View High-Frequency Words",viewHighFrequencyWordsTip:"High-frequency keyword analysis in progress, please wait",viewHighFrequencyWordsWaitTip:"Estimated 3-5 minutes to complete title collection and analysis. After completion, you can view high-frequency keywords directly on this page or in history records.",dateFormat:"YYYY-MM-DD",searchResultText:"Search Results Overview"},msg:{basicInfo:"Basic Information",copySuccess:"Copied Successfully",copyFail:"Copy Failed",pddLogin:"To search PDD wholesale products, please first visit the PDD wholesale page to log in before querying, as required by PDD wholesale.",pddLoginButton:"Click to Access PDD Wholesale Login",pddVerify:"PDD has slide verification. Please visit the PDD wholesale page to complete verification before querying.",pddVerifyButton:"Click to Access PDD Wholesale",retry:"Retry",reselectImg:"Reselect Image",viewScoreRate:"View rating details and understand the distribution of different star ratings",noInclude:"Current product not indexed",searchTip:"",searchShopTip:"",clickProductDetail:"",clickCateSearchProduct:"",downloadImgAndVideo:"Download of current listing's main images and videos to local storage",reloadPage:"If inventory shows N/A, please log in to Shopee and revisit this page",reviewColling:"Collecting reviews, please wait",reviewCollectionTip:"Review collection and analysis is estimated to complete in 3-5 minutes. Once analysis is finished, you can view the AI review summary directly in the plugin, or jump to the webpage to view the complete analysis report",searchCountTip:"Monthly search volume < 200 (Contact customer service for other reasons)",searchImgBySource:"Click to search for sources by image, supporting 1688 and PDD Wholesale",noneRecord:"No Records",noneData:"No Data Available",shopdoraDownloadImgAndVideo:"Shopdora - Image & Video Download",downloadSuccess:"Download Successful",mainSkuImgVideo:"Main Images, Videos, SKU Images",analysisTitleTip:"Analyze and optimize this product title to improve product ranking.",analyseKeyWord:"Analyze product data from keyword search results page. Default analysis is for the first page; pagination available for more product data.",analyseLimitProductTip:"Below are analysis results for 15 products on current page. Upgrade package to analyze more products",productKeyWordSalesTip:"By default, all products on the current page are loaded. To load more, click the pagination button. ",analyseLimitTip:"Free users only get calculations for the first 15 products; ",notLoginShopeeTip:"without Shopee login, only Shopdora-collected products are displayed.",productKeyWordRevenueTip:"Default sum of historical revenue for loaded products under this keyword.",productKeyWordMothSalesTip:"Default sum of monthly sales volume for loaded products under this keyword.",productKeyWordMothRevenueTip:"Default sum of monthly revenue for loaded products under this keyword.",productKeyWordCountTip:"Default count of loaded products under this keyword.",productKeyWordAveragePriceTip:"Default average price of loaded products under this keyword.",productKeyWordAverageTimeTip:"Statistics of average listing time for loaded products under this keyword.",copyMsgSuccess:"Copy{title}Successfully",copyMsgFail:"Copy{title}Failed",exportProductDetail:"Click to view loaded product details, export supported",pleaseEnter:"Please Enter",copyTitlePop:"Copy all product titles on this page",copyUrlPop:"Copy all product links on this page",upgradeMsg:"Upgrade your membership to access more analytics. {upgradeMsg2}",upgradeMsg2:"[Upgrade Membership]"},error:{monitorSize:"Monitoring quota exhausted",monitorRetry:" Monitoring failed, please retry",skuPriceNotFound:"This SKU was delisted during review analysis as no SKU price was found",keywordNotFound:"No relevant information matched. Please visit Shopdora web version to view related keywords",queryFailRetry:"Query Failed, Please Retry",selectLogisticsChannel:"Please Select Logistics Channel",inputProductWeight:"Please Enter Product Weight",inputPurchasePrice:"Please Enter Purchase Price",inputFreightForTheFirstLeg:"Please Enter First-mile Shipping Cost",inputCommissionRate:"Please Enter Commission Rate",inputMarketingCost:"Please Enter Marketing Cost",inputWithdrawalRate:"Please Enter Withdrawal Fee Rate",inputReturnRate:"Please Enter Return Rate",inputReturnFee:"Please Enter Return Fee",inputProductPrice:"Please Enter Product Selling Price",inputNumber:"Please Enter Number",inputActivityCostInformation:"Please Enter Promotion Cost Information",requestErr:"Request Error, Please Try Again Later",loginError:"Your Account is Logged in on Another Device",requestTimeoutRetry:"Request Timeout, Please Retry",requestTimeout:"Request Timeout",zipError:"Please select images/videos/SKU images first",analysisProductError:"Select at least two products for analysis",systemBusyError:"System busy, please try again later"},countryArea:{tw:"Taiwan",sg:"Singapore",my:"Malaysia",ph:"Philippines",th:"Thailand",vn:"Vietnam",br:"Brazil",id:"Indonesia",mx:"Mexico"},deliverChannel:{logisticsChannel:"Logistics Channel",generalCargo:"Standard Goods",expressChannel:"Express Channel",buyerSelfPickupChannel:"Buyer Pickup Channel",buyerSelfCollectionChannel:"Buyer Self-Collection Channel",selfPickupLockerChannel:"Pickup Locker Channel",onlineSeaShippingChannel:"Online Sea Freight Channel",heavyGoods:"Heavy Goods",standardChannel:"Standard Channel",standardChannel58008:"Standard Channel (Channel 58008)",standardChannel78017:"Standard Channel (Channel 78017)",maritimeEconomicChannel:"Sea Freight Economy Channel",maritimeLargeCargoChannel:"Sea Freight Bulky Items Channel",priorityChannel:"Priority Channel",standardChannelMainland:"Standard Channel - Mainland",standardChannelHongKong:"Standard Channel - Hong Kong",standardChannelHongKong58012:"Standard Channel - Hong Kong (Channel 58012)",shopeeOverseas711TC:"Shopee Overseas - 7-11",shopeeOverseasHiLifeAirFreightTC:"Shopee Overseas - Hi-Life (Air Freight)",shopeeOverseasHiLifeSeaFreightTC:"Shopee Overseas - Hi-Life (Sea Freight)",shopeeOverseasFamilyTC:"Shopee Overseas - FamilyMart",shopeeOverseasHomeDelivery:"Shopee Overseas - Home Delivery",shopeeOverseasHomeDeliveryAirFreightTC:"Shopee Overseas - Home Delivery (Air Freight)",shopeeOverseasHomeDeliverySeaFreightTC:"Shopee Overseas - Home Delivery (Sea Freight)",shopeeOverseasShopeeStoreInstoreTC:"Shopee Overseas - Shopee ",shopeeOverseasOKMARTSeaFreightTC:"Shopee Overseas - OK MART (Sea Freight)",lightGoods:"Light Goods",specialOffer:"Special Goods",specialGoodsChannelTC:"Special Goods Channel",specialGoodsChannel:"Special Goods Channel"},productBasicInfo:{productList:"Product List",crossBorderLogisticsFee:"Cross-border Logistics Fee",site:"Site",screening:"Filter",page:"Page",products:"Products",sitTip:"Markets for different countries. You can select a specific site for targeted research",currentExchangeRate:"Current Exchange Rate",updateExchangeRate:"Update Exchange Rate",currentExchangeRateTip:"Current exchange rate is obtained from official sources and updated daily. You can also manually click update to get the latest rate",type:"Product Type",typeTip:"Consistent with the logistics channels provided on Shopee's official website. You can visit https://shopee.org.cn/4990.html for details. <br/>Shopee's logistics fees are divided into seller-paid and buyer-paid portions. The cross-border logistics fee here mainly refers to the seller-paid portion",weight:"Product Weight",weightTip:"According to Shopee SLS logistics strategy, weight is an important factor affecting logistics fees",purchasePrice:"Purchase Price",purchasePriceTip:"Refers to the total cost of purchasing the product from upstream suppliers",freightForTheFirstLeg:"First-mile Shipping Cost",freightForTheFirstLegTip:"Refers to the shipping cost from seller to Shopee warehouse",commissionRate:"Commission Rate",commissionRateTip:"Commission charged by Shopee platform based on transactions, default is 6%",transactionRate:"Transaction Fee Rate",transactionRateTip:"Transaction fee charged by Shopee platform based on transactions, default is 2%",marketingRate:"Marketing Cost Rate",marketingAmount:"Marketing Fee",marketingRateTip:"All marketing costs for promoting this product, including on-site and off-site promotion and campaign costs",withdrawalFee:"Withdrawal Fee",withdrawalFeeTip:"The withdrawal fee rate required for cross-border payments when transferring transaction proceeds to the seller",returnRate:"Return Rate",returnRateTip:"Product returns by consumers bring additional costs to sellers. Generally, small items are lost when returned, <br/>while large items are returned. Shopee platform also charges return logistics costs, so return rate has a significant impact on costs. Sellers can predict return rates for analysis or set return rates based on actual product return situations for analysis",commodityHandling:"Product Handling",commodityHandlingTip:"Returned goods are generally discarded, while large items are returned domestically. Different methods have different after-sales costs.<br>i. Loss: Return loss = (Purchase price) \xd7 Return rate - (Transaction fee + Commission) \xd7 Return rate, rounded to two decimal places. <br>ii. Return: Return loss = (Return fee) \xd7 Return rate - (Transaction fee + Commission) \xd7 Return rate, rounded to two decimal places",returnFee:"Return Fee",returnFeeTip:"Product returns by consumers bring additional costs to sellers. Generally, small items are lost when returned, <br>while large items are returned. Shopee platform also charges return logistics costs, so return rate has a significant impact on costs. Sellers can predict return rates for analysis or set return rates based on actual product return situations for analysis",productPrice:"Product Selling Price",productPriceTip:"The Original Price on Shopee",discount:"Discount",discountTip:"Refers to the discount rate on Shopee",profit:"Profit",productCost:"Product Cost",platformCost:"Platform Costs",transactionFeeRate:"Transaction Fee Rate",marketingCost:"Marketing Cost",monthlySearchVolume:"Monthly Search Volume",searchVolume:"Search Volume"},profit:{withdrawalHandlingFeeRate:"Withdrawal Fee Rate",activityCost:"Campaign Cost",fullReductionPromotion:"Full reduction activity: ",full:"Full",reduce:"minus",afterSalesCost:"After-sales Cost",income:"Revenue",example:"Example: 10% off means 10% discount",calculate:"Calculate",profitRate:"Profit Margin",profitValue:"Profit Value",profitCalculate:"Profit = Discounted selling price - All costs (Purchase price + First-mile shipping + Commission + Transaction fees + Marketing costs + Withdrawal fees + After-sales costs + Cross-border logistics fees)",profitRateCalculate:"Profit Margin = (Discounted Selling Price - Purchase Price) / Purchase Price \xd7 100%, rounded to 2 decimal places"},option:{discard:"Discard",return:"Return",day:"By Day",week:"By Week",month:"By Month",downloadRules:"Download Rules",downloadByReviewTimePeriod:"Download by Review Time Period",downloadByReviews:"Download by Number of Reviews",timePeriod:"Time Period",numberOfReviews:"Number of Reviews",downloadFirst100:"Download First 100",downloadFirst200:"Download First 300",downloadAll:"Download All",organicRanking:"Organic Ranking",latest:"Latest",bestSelling:"Best Selling",lowToHigh:"Price: Low to High",highToLow:"Price: High to Low",disabled:"Disabled",enabled:"Enabled"},ai:{sentimentSummary:"Sentiment Summary",positive:"Positive",neutral:"Neutral",negative:"Negative",sentimentWordList:"Sentiment Word List",content:"Content",frequency:"Frequency",count:"Count",aiReviewSummary:"AI Review Summary",skuViewDetail:"SKU review details, review star rating distribution, high-frequency word list to help sellers determine operational strategies",goToWebDetail:"Go to web version for details",sentimentAnalysis:"Sentiment Analysis",productSummary:"Product Summary",usageScenarios:"Usage Scenarios",userAttractiveSellingPoints:"User-Attractive Selling Points",productAdvantages:"Product Advantages",areasForImprovement:"Areas for Improvement",userExpectations:"User Expectations",noReviewsAvailable:"No reviews available for current product",few50Reviews:"This product has fewer than 50 cumulative reviews and cannot be summarized. Please select another product for analysis",userProfile:"User Profile"},productList:{switchCurrency:"",switchToTheLocalCurrency:""},currency:{currencyGlobal:"USD",currency:"USD",currencyCN:"RMB",unit:"$",area:"us",switchCurrency:"Click to Switch to USD",switchToTheLocalCurrency:"Click to Switch to Local Currency",switchToTheCurrency:"Click to Switch Currency",currencyExchangeRate:"Exchange Rate",chinaBankExchangeRate:"China Bank Exchange Rate",customExchangeRate:"Custom Exchange Rate",exchangeTip:"Please enter the local currency exchange rate for 1 RMB (3-8 decimal places)",mx:"Mexican peso",id:"Indonesian rupiah",br:"Brazilian Real",vn:"Vietnamese dong",th:"Thai baht",ph:"Philippine peso",my:"Malaysian ringgit",sg:"Singapore dollar",tw:"New Taiwan Dollar"},profitCalculator:{currencyView:"{unit}",exchangeRate:"Exchange Rate"},ads:{storeSource:"Store Source",noLimit:"No Limit",adsProduct:"Ads",searchProducts:"Search Products",adRanking:"Ad Ranking",noBrand:"No Brand",regular:"Regular",preferred:"Preferred",mallStore:"Mall Store",productInformation:"Product Information",reviewRate:"Review Rate",keywordSearch:"Keyword Search Product List"},review:{numberOfReviews:"Number of Reviews",stars:"{number} Stars",ratingDistribution:"Rating Distribution"},listingTimeCharts:{listingTime0:"1M",listingTime1:"3M",listingTime2:"6M",listingTime3:"1Y",listingTime4:"2Y",listingTime5:"2Y+"},locationCharts:{local:"local",crossBorder:"crossBorder"},shopTypeCharts:{normal:"Regular",mall:"Mall Store",preferredPlus:"Preferred"},shopCateTopCharts:{cate:"\u5546\u54c1\u5206\u7c7b"},shopProductListingTimeCharts:{listingTime0:"7d",listingTime1:"15d",listingTime2:"30d",listingTime5:"60d"}},id:{style:{productDetailPage:{logo:"id_logo",logoText:"id_logoText",shopdoraLogo:"en_shopdoraLogo",detailTopButton:"en_detail-top-button",detailButton:"en_detail-button",detailInfoList:"en_detail-info-list",detailInfoItems:"en_detail-info-items",detailInfoItem:"en_detail-info-item",maxWidth:"en_MaxWidth",detailInfoItemWidth:"fit-content",detailTop:"en_detail-top",goShopdora:"en_goShopdora",customPopup:"en_t-popup__content",pageDetailLoginTitleButton:"100px"},keywordProductListPreview:{formLabelWidth:100},tdGoodsTitle:{imgSupply:"en_imgSupply"},productList:{salesRanking:"en_sales-ranking",shopdoraListItem:"en_shopdora-list-item-button-item",shopdoraListItemButton:"en_button",buttonDetailWidth:"100%",buttonWidth:"100%",marginTop:"5px",shopdoraListItemInfoItemTitle:"en_shopdora-list-item-info-item-title",shopdoraListId:"en_shopdora-list-item",infoItemMainSpanWidth:"fit-content",infoItemMainSpanNoDetailWidth:"fit-content",infoItemMainSpanMaxWidth:"100px",infoItemMainSpanMarginLeft:"0px",basicInfo:"en_basic-info",sellerWidth:"45px",cateWidth:"30px",sellerSourceTipsWidth:"38px",sellerTitle:"common_seller-span",sellerTitleMain:"common_seller-span-title",sellerTitleValue:"common_seller-span-value"},keywordPreview:{headerItem:"en_headerItem",itemValueFontSize:"18px"},currencyRate:{currencyRateHeader:"en_currency-rate-header"},icon:{settingHeaderName:"en_settingHeaderName",loginTitle:"en_loginTitle",text:"id_text",shopIcon:"en_shopIcon",iconImg:"id_iconImg"},filtration:{analyseTop:"en_top",analyseCenter:"en_center",radioGroup:"en_radioGroup",filtationButton:"en_filtationButton",height:"725px",noDescHeight:"765px",filtationLoginTitleButton:"100px"},profitForm:{toolsFormWrapperCrx:"en_tools-form-wrapper-crx",combineInput:"en_combine-input",resultBlock:"en_result-block"},specification:{dialogWidth:"680px",specificationWidth:"600px",progress:"en_progress"},skuTab:{moneyText:"en_money-text",titleText:"id_title-text",commonBtn:"en_common-btn"},popup:{shopeeSelect:"en_shopeeSelect",shopdorapopup:"en_shopdorapopup",shopeeSelectWidth:"auto"},reviewDownload:{reviewWidth:"800px",reviewTitle:"en_reviewTitle"},keyword:{keywordCrxHeight:"200px",keywordHeaderHeight:"102px",keywordTitleWidth:"356px"},imageSearchTag:{searchTagWidth:"125px"}},popup:{pleaseSelect:"Pilih"},productDetailPage:{cateNameType:"cateIdName",cateNamePath:"cateIdPath","\u8de8\u5883":"Lintas Batas","\u672c\u571f":"Lokal","\u65e0":"Tidak Ada"},productListPage:{seller:"Penjual",brand:"Merek",cateNameType:"cateIdPath",listedOn:"Tanggal Listing",cate:"Kat.",mRank:"ke-",crossBorder:"CB",crossBorderTip:"Lintas Batas",soldD30:"Penjualan 30h",soldD1AndD7:"Penjualan 1h/7h",soldD30Rate:"Pertumbuhan 30h",salesD30:"GMV 30h",totalSold:"Total Penjualan",totalSales:"GMV",likedCount:"Suka"},keywordProductListPreview:{cateNameType:"cateIdPath",cateNamePath:"cateLocalPath",productList:"Daftar Produk\uff08{count} Produk\uff09",check:"Terpilih\uff08{count}\uff09",page:"\u6bcf\u9875 {count} \u6761"},keywordPreview:{marketView:"Ikhtisar Pasar",analyseProductTotal:"Total Produk yang Dianalisis:",totalSold:"Total Penjualan:",monthlySales:"Penjualan Bulanan:",avgPrice:"Harga Rata-rata:",avgTime:"Tanggal Listing Rata-rata:",avgRating:"Skor Rating Rata-rata:",more:"Muat Lebih Banyak",avg:"Rata-rata:",productList:"Lihat Detail Produk"},keywordPage:{cateNameType:"cateIdName",keywordMining:"Pencarian Kata Kunci"},historyKeywordAnalysisDialog:{exportData:"Ekspor Data",analyseTime:"Waktu Analisis",products:"Produk",screening:"Filter",site:"Situs",highFrequencyKeywords:"Kata Kunci Frekuensi Tinggi Produk Terkait",serialNumber:"No.",keyword:"Kata Kunci",frequency:"Frekuensi",monthlySearchVolume:"Volume Pencarian Bulanan",searchCountTip:"Volume pencarian bulanan < 200 (Hubungi layanan pelanggan untuk alasan lain)",notInclude:"Tidak Terindeks"},iconPage:{priceCheck:"Harga IDR"},chart:{listingTime:"Distribusi Waktu Penayangan:",location:"Lokasi Pengiriman Produk:",shopType:"Jenis Toko:",cateTop:"5 Kategori Utama Teratas:",newProduct:"Analisis Produk Baru:",cateType:"cateIdName"},imageSearchTag:{searchTag:"Cari di 1688"},common:{language:"Bahasa",changeLanguage:"Ganti Bahasa",clickLogin:"Klik untuk masuk",loginNow:"Masuk Sekarang",helpCenter:"Pusat Bantuan",helpCenterUrl:"https://help.shopdora.com/en",contact:"Kontak",goToShopdora:"Pergi ke shopdora.com",membershipPrice:"Harga Keanggotaan",imageSearch:"Pencarian gambar",update:"Perbarui",goToUpdate:"Pergi untuk Memperbarui",latestVersion:"Versi Terbaru",warnTitle:"Data lengkap memerlukan login plugin Shopdora",textCrx:"Alat Analitik Shopee Terbaik",copyTitle:"Salin Judul",copyLink:"Salin Tautan",clickCopy:"Klik untuk Menyalin",customList:"Kustomisasi Daftar",logout:"Keluar",confirm:"Konfirmasi",cancel:"Batal",wxCodeName:"Dapatkan Layanan Pelanggan di WeChat",activated:"Diaktifkan",disabled:"Dinonaktifkan",pleaseSelect:"Silakan Pilih",expireDate:"Berlaku Hingga",isLogin:"Silakan login ke plugin untuk melihat data lengkap",getHistory:"Lihat Riwayat",monitorDesc:"Telah Ditambahkan ke Pemantauan",tips:"Data SKU: Lihat di Platform Lokal Shopee.",helpTips:"Bagaimana Mengakses Shopee?",productSkuTipsName:"Anda pengguna gratis. Tingkatkan paket untuk melihat konten ini",upgradePackage:"Tingkatkan",tipMoreComment:"Lebih lanjut tentang analisis ulasan",clickLearnMore:"Klik untuk mempelajari",tipUpgrade:"Hanya pengguna premium. {upgradePackage} paket Anda untuk melihat",jumpNow:"Pergi Sekarang",allTrends:"Klik untuk Lihat Semua Tren",nothing:"Tidak Ada",empty:"Kosong",pdd:"PDD",loading:"Memuat...",queryProduct:"Mencari Produk...",clickCopyLink:"Klik untuk Salin Tautan",notInclude:"Tidak Terindeks",goShopdoraWeb:"Pergi ke shopdora.com",day:"Hari",all:"Semua",clickSwitch:"Klik untuk Beralih",iKnow:"OK",unknown:"Tidak Diketahui",page:"Halaman",exportData:"Ekspor Data",exportProductList:"Ekspor Daftar Produk",frequency:"Frekuensi",serialNumber:"No.",available:"Tersedia",reset:"Atur Ulang",goWeb:"Pergi ke shopdora.com",view:"Lihat",title:"Judul",link:"Tautan",search:"Cari",yes:"Ya",no:"Tidak",pageNumber:"Nomor Halaman",ranking:"Peringkat",rec:"Item",currency:"Rp",rmb:"\xa5",usd:"$"},page:{pageInfo:"Halaman{page}",pageColorInfo:'<span style="color: rgba(0, 0, 0, 0.9)">(Halaman</span>{page}<span style="color: rgba(0, 0, 0, 0.9)">)</span>'},login:{loginOther:"Masuk dengan Akun Lain",welcome:"Selamat Datang di Shopdora",forgotPassword:"Lupa kata sandi",notAccount:"Tidak punya akun?",goRegister:"Daftar",password:"Kata Sandi",loginSuccess:"Berhasil Masuk",mobileOrAccount:"Nomor telepon/Sub-akun",enterPassword:"Masukkan kata sandi Anda",passwordTip:"Silakan masukkan kode undangan 6 digit",mobileOrAccountTip:"Nomor telepon/Sub-akun",passwordNotEmpty:"Kata Sandi"},info:{sellerSource:"Sumber Penjual",storeId:"ID Toko",storeName:"Toko",storeType:"Tipe Toko",store:"Toko",id:"ID",productId:"ID Produk",productId2:"ID Produk",productId3:"ID Produk",productLink:"Link produk",productImg:"Gambar Produk",seller:"Penjual",brand:"Merek",brandName:"Merek",cate:"Kategori",cateName:"Kategori ",tipCate:"Kategori utama produk di 3 halaman pertama untuk kata kunci ini. Di bawah penyaringan komprehensif, saat mencari kata kunci ini, {br}kategori dengan produk terbanyak yang muncul di tiga halaman pertama adalah kategori utama kata kunci ini. Digunakan untuk mengonfirmasi industri dan ceruk pasar kata kunci{br}",topKeywords:"Kata Kunci Teratas",keyword:"Kata Kunci",time:"Tanggal Listing",timeRange:"Rentang Waktu Listing",soldD30:"Penjualan 30 Hari",soldD1AndD7:"Penjualan (1h/7h)",soldD30Rate:"Pertumbuhan 30 Hari",salesD30:"GMV 30 Hari",liked_count:"Suka",totalSold:"Total Penjualan",totalSales:"GMV",sold:"Penjualan",sales:"Pendapatan",selectAll:"Pilih Semua (Produk: %s)",selectByCondition:"Pilih Berdasarkan Kondisi (Produk: %s)",batchSelect:"Pilih Massal (Produk: %s)",monthlySales:"Penjualan Bulanan",monthlySalesSort:"ke-",monthlyRevenue:"Pendapatan Bulanan",min:"Min",max:"Maks",cny:"CNY",localUnit:"Mata Uang Lokal",cnyPrice:"Harga RMB",searchTrend:"Tren Pencarian",tipSearchTrend:"Tren pencarian mingguan kata kunci ini. Untuk kata kunci musiman, volume mungkin hanya muncul pada periode tertentu. Jika volume terlalu rendah, sistem tidak lagi mengindeksnya{br}",searchVolume30D:"Volume Pencarian 30 Hari",avgDailySearches:"Rata-rata Pencarian Harian",moMSearchGrowth:"Pertumbuhan Pencarian MoM",tipSearchVolume30D_1:"Jumlah pencarian kata kunci ini di kotak pencarian Shopee dalam 30 hari terakhir",tipSearchVolume30D_2:"Rata-rata pencarian harian dihitung berdasarkan volume pencarian 30 hari terakhir",tipSearchVolume30D_3:"Pertumbuhan volume pencarian bulanan = (30 hari terakhir - 30 hari sebelumnya) / volume bulan sebelumnya \xd7 100%",tipSearchVolume30D_4:"Volume pencarian diperbarui harian",productCount:"Jumlah Produk",supplyDemandRatio:"Rasio Pasokan/Pemintaan",tipProductCount_1:"Jumlah produk: Jumlah produk terkait yang muncul saat mencari kata kunci ini",tipProductCount_2:"Rasio Permintaan-Pasokan = Rata-rata pencarian harian (permintaan) / Jumlah produk (pasokan), digunakan untuk menilai intensitas permintaan",tipProductCount_3:"Jumlah produk diperbarui mingguan, rasio permintaan-pasokan diperbarui harian.",avgPrice:"Harga Rata-rata",avgRatingScore:"Skor Rating Rata-rata",ratingCount:"Jumlah Rating",tipAvgPrice_1:"Harga rata-rata/jumlah ulasan/rating produk di 3 halaman pertama hasil pencarian organik Shopee untuk kata kunci ini",tipAvgPrice_2:"Diperbarui mingguan",ppcBid:"Tawaran PPC",tipPpcBid_1:"Harga yang disarankan untuk mengiklankan kata kunci ini di Shopee. Mencerminkan tingkat persaingan pasar dan dapat menilai biaya pemasaran. {br}Disarankan memprioritaskan kata kunci dengan tawaran rendah & volume tinggi; {br}",tipPpcBid_2:"Data Diperbarui Harian",updateDataWeek:"Diperbarui mingguan",noDataText:"Tidak ada pembaruan",crossBorder:"Lintas Batas",local:"Lokal",soldNow:"Terjual",mainImg:"Gambar Utama",past30DayOfSalesAndSalesRevenue:"Penjualan & Pendapatan 30 Hari Terakhir",video:"Video",relatedProduct:"Produk Terkait",loadedProducts:"Produk Dimuat",avgLoadedPrice:"Harga Rata-rata (Dimuat)",avgListingTime:"Waktu Listing Rata-rata"},time:{day:"{day}Harian",month:"{month}Bulan",year:"{year}Terakhir",oneMonth:"1 Bulan",threeMonth:"3 Bulan",sixMonth:"6 Bulan",oneYear:"1 Tahun Terakhir",twoYear:"2 Tahun Terakhir",numTwoYear:"2 Tahun Terakhir",numOneYear:"1 Tahun Terakhir",pastSixMonth:"6 Bulan Terakhir",pastThreeMonth:"3 Bulan Terakhir",pastOneMonth:"1 Bulan Terakhir",thanTwoYear:"Lebih dari 2 Tahun"},sku:{skuSalesDetails:"Estimasi Penjualan SKU",skuBtnMonitorTip:"Monitor",loginViewData:"Login untuk Melihat",viewSkuAnalysis:"Lihat Laporan Analisis SKU",quantity:"Stok",tipAnalysis:"Lihat analisis pasar untuk kategori listing ini dan jelajahi peluang pasar potensial",tipPriceAnalysis:"Analisis profit sumber berdasarkan harga listing saat ini",tipKeyWordsAnalysis:"Analisis cerdas listing produk terpilih membantu penjual memahami kata kunci frekuensi tinggi dan volume pencarian, strategi kata kunci pesaing, dan menyesuaikan taktik operasi",tipKeyWords:"Kueri kata kunci lalu lintas organik & berbayar untuk memahami performa trafik dan distribusi trafik pesaing",tipHistory:"Lihat tren historis volume penjualan, ulasan, peringkat, dan metrik lain untuk memahami arah keseluruhan",tipProductSalesD30:"",tipHelpAnalysis:"Analisis ulasan cerdas listing untuk membantu penjual mengidentifikasi varian terlaris",tipOperation:"Pahami poin jual produk, kelemahan, dan skenario penggunaan untuk menentukan strategi operasional",tipComprehensiveAnalysis:"Analisis SKU komprehensif membantu mengidentifikasi varian terlaris, ",tipQuantity:"Pahami tren penjualan musiman dan kelola inventaris.",tipSkuComments:"Unduh ulasan listing sekali klik ke penyimpanan lokal untuk analisis ulasan personal sesuai skenario operasi",tipMoreComment:"Klik untuk mempelajari lebih lanjut tentang analisis ulasan",tipSource:"Pencarian sumber berbasis gambar mendukung empat platform: 1688, PDD Wholesale, <br/>1688 Cross-border, dan Taobao",tipSearchImgByShopee:"Gunakan fitur perbandingan gambar Shopee untuk menemukan pesaing dan memahami lanskap persaingan",skuPrice:"Harga SKU",skuSold:"Estimasi Penjualan SKU",skuSoldRate:"Pangsa Penjualan SKU",skuQuantity:"Inventaris SKU",marketTrend:"Kategori Tren",skuImage:"Gambar SKU",skuSalesFromRatingTip:"Estimasi berdasarkan 300 ulasan teratas",skuSalesFromRatingWarn:"Proyeksi Penjualan & Pangsa Pasar SKU dari 300 Ulasan Teratas. Eksplorasi hingga 3.000 ulasan dengan Analisis AI."},analyse:{trafficAnalysis:"Analisis Trafik",titleAnalysis:"Analisis Judul",comprehensiveAnalysis:"Analisis Komprehensif",hijackingAnalysis:"Cari Serupa",analysisRecord:"Catatan Analisis",overallRating:"Rating Keseluruhan",marketAnalysis:"Analisis Pasar",productReviewAnalysis:"Analisis Ulasan Produk",analyseTime:"Waktu Analisis",highFrequencyKeywords:"Kata Kunci Frekuensi Tinggi Produk Terkait",analysisHistory:"Riwayat Analisis",analysisSuccessful:"Analisis Berhasil",analysisFailed:"Analisis Gagal",status:"Status",name:"Nama",action:"Tindakan"},reviewAnalysisContent:{commentator:"Pengulas",commentContent:"Isi Ulasan",starRating:"Rating Bintang",variant:"Varian",variantPrice:"Harga Varian",imgUrl:"Tautan Gambar",reviewImg:"Gambar Produk",reviewImg1:"Gambar Ulasan 1",reviewImg2:"Gambar Ulasan 2",reviewImg3:"Gambar Ulasan 3",videoUrl:"Tautan Video",commentTime:"Tanggal Ulasan"},skuExcel:{name:"Nama SKU",price:"Harga",sold:"Penjualan",soldRate:"Pangsa Penjualan",quantity:"Stok",site:"Situs"},tools:{download:"Unduh",profitCalculator:"Kalkulator Profit",imagesSupplyPage:"Pencarian Gambar Pemasok",exportToExcel:"Penjualan SKU",downloadImg:"Unduh Gambar/Video",analyseValue:"Analisis AI",queryAnalysis:"Lihat Analisis",analysisInProgress:"Menganalisis..",downloadReviews:"Unduh Ulasan",downloading:"Mengunduh..",downloadNow:"Unduh Sekarang",allTheMainImages:"Pilih Semua Gambar Utama",allSKUImages:"Pilih Semua Gambar SKU",viewHighFrequencyWords:"Lihat Kata Frekuensi Tinggi",viewHighFrequencyWordsTip:"Analisis kata kunci frekuensi tinggi sedang berlangsung, harap tunggu",viewHighFrequencyWordsWaitTip:"Perkiraan 3-5 menit untuk selesai pengumpulan dan analisis judul. Setelah selesai, Anda dapat melihat kata kunci frekuensi tinggi langsung di halaman ini atau di riwayat.",dateFormat:"YYYY-MM-DD",searchResultText:"Ringkasan Hasil Pencarian"},msg:{basicInfo:"Informasi Dasar",copySuccess:"Berhasil Disalin",copyFail:"Gagal Menyalin",pddLogin:"Untuk mencari produk grosir PDD, kunjungi halaman grosir PDD untuk login terlebih dahulu sebelum kueri, sesuai persyaratan PDD.",pddLoginButton:"Klik untuk Akses Login PDD Wholesale",pddVerify:"PDD memiliki verifikasi geser. Silakan kunjungi halaman grosir PDD untuk menyelesaikan verifikasi sebelum kueri.",pddVerifyButton:"Klik untuk Akses PDD Wholesale",retry:"Coba Lagi",reselectImg:"Pilih Ulang Gambar",viewScoreRate:"Lihat detail rating dan pahami distribusi berbagai bintang",noInclude:"Produk saat ini tidak terindeks",searchTip:"",searchShopTip:"",clickProductDetail:"",clickCateSearchProduct:"",downloadImgAndVideo:"Unduh gambar utama dan video listing saat ini ke penyimpanan lokal",reloadPage:"Jika stok menunjukkan N/A, silakan login ke Shopee dan kunjungi ulang halaman ini",reviewColling:"Mengumpulkan ulasan, harap tunggu",reviewCollectionTip:"Pengumpulan & analisis ulasan diperkirakan selesai dalam 3-5 menit. Setelah selesai, Anda dapat melihat ringkasan ulasan AI langsung di plugin, atau buka web untuk laporan lengkap",searchCountTip:"Volume pencarian bulanan < 200 (Hubungi layanan pelanggan untuk alasan lain)",searchImgBySource:"Klik untuk mencari sumber melalui gambar, mendukung 1688 dan PDD Wholesale",noneRecord:"Tidak Ada Catatan",noneData:"Tidak Ada Data",shopdoraDownloadImgAndVideo:"Shopdora - Unduh Gambar & Video",downloadSuccess:"Berhasil Diunduh",mainSkuImgVideo:"Gambar Utama, Video, Gambar SKU",analysisTitleTip:"Analisis & optimalkan judul produk ini untuk meningkatkan peringkat.",analyseKeyWord:"Analisis data produk dari halaman hasil pencarian kata kunci. Default halaman pertama; paginasi tersedia untuk lebih banyak data.",analyseLimitProductTip:"Di bawah ini hasil analisis 15 produk pada halaman ini. Tingkatkan paket untuk menganalisis lebih banyak",productKeyWordSalesTip:"Secara default, semua produk di halaman ini sudah dimuat. Untuk memuat lebih banyak, klik tombol paginasi.",analyseLimitTip:"Pengguna gratis hanya mendapat kalkulasi untuk 15 produk pertama; ",notLoginShopeeTip:"tanpa login Shopee, hanya produk yang dikumpulkan Shopdora yang ditampilkan.",productKeyWordRevenueTip:"Default jumlah pendapatan historis produk dimuat di bawah kata kunci ini.",productKeyWordMothSalesTip:"Default jumlah penjualan bulanan produk dimuat di bawah kata kunci ini.",productKeyWordMothRevenueTip:"Default jumlah pendapatan bulanan produk dimuat di bawah kata kunci ini.",productKeyWordCountTip:"Default jumlah produk dimuat untuk kata kunci ini.",productKeyWordAveragePriceTip:"Default harga rata-rata produk dimuat untuk kata kunci ini.",productKeyWordAverageTimeTip:"Statistik waktu listing rata-rata produk dimuat untuk kata kunci ini.",copyMsgSuccess:"Salin{title}Berhasil",copyMsgFail:"Salin{title}Gagal",exportProductDetail:"Klik untuk melihat detail produk dimuat, dukung ekspor",pleaseEnter:"Silakan Masukkan",copyTitlePop:"Salin semua judul produk di halaman ini",copyUrlPop:"Salin semua tautan produk di halaman ini",upgradeMsg:"Tingkatkan keanggotaan Anda untuk mengakses lebih banyak analitik. {upgradeMsg2}",upgradeMsg2:"[Tingkatkan Keanggotaan]"},error:{monitorSize:"Kuota pemantauan habis",monitorRetry:" Pemantauan gagal, silakan coba lagi",skuPriceNotFound:"SKU ini dihapus selama analisis ulasan karena harga SKU tidak ditemukan",keywordNotFound:"Tidak ada informasi cocok. Silakan kunjungi versi web Shopdora untuk melihat kata kunci terkait",queryFailRetry:"Kueri Gagal, Silakan Coba Lagi",selectLogisticsChannel:"Silakan Pilih Saluran Logistik",inputProductWeight:"Silakan Masukkan Berat Produk",inputPurchasePrice:"Silakan Masukkan Harga Pembelian",inputFreightForTheFirstLeg:"Silakan Masukkan Biaya First-mile",inputCommissionRate:"Silakan Masukkan Tarif Komisi",inputMarketingCost:"Silakan Masukkan Biaya Pemasaran",inputWithdrawalRate:"Silakan Masukkan Tarif Biaya Penarikan",inputReturnRate:"Silakan Masukkan Tarif Retur",inputReturnFee:"Silakan Masukkan Biaya Retur",inputProductPrice:"Silakan Masukkan Harga Jual Produk",inputNumber:"Silakan Masukkan Angka",inputActivityCostInformation:"Silakan Masukkan Info Biaya Promosi",requestErr:"Kesalahan Permintaan, Coba Lagi Nanti",loginError:"Akun Anda login di perangkat lain",requestTimeoutRetry:"Batas Waktu Permintaan, Coba Lagi",requestTimeout:"Batas Waktu Permintaan",zipError:"Silakan pilih gambar/video/gambar SKU terlebih dahulu",analysisProductError:"Pilih minimal dua produk untuk analisis",systemBusyError:"Sistem sibuk, coba lagi nanti"},countryArea:{tw:"Taiwan",sg:"Singapura",my:"Malaysia",ph:"Filipina",th:"Thailand",vn:"Vietnam",br:"Brasil",id:"Indonesia",mx:"Meksiko"},deliverChannel:{logisticsChannel:"Saluran Logistik",generalCargo:"Barang Standar",expressChannel:"Saluran Ekspres",buyerSelfPickupChannel:"Saluran Ambil Pembeli",buyerSelfCollectionChannel:"Saluran Pengambilan Mandiri Pembeli",selfPickupLockerChannel:"Saluran Loker Pengambilan",onlineSeaShippingChannel:"Saluran Pengiriman Laut Online",heavyGoods:"Barang Berat",standardChannel:"Saluran Standar",standardChannel58008:"Saluran Standar (Channel 58008)",standardChannel78017:"Saluran Standar (Channel 78017)",maritimeEconomicChannel:"Saluran Ekonomi Laut",maritimeLargeCargoChannel:"Saluran Barang Besar Laut",priorityChannel:"Saluran Prioritas",standardChannelMainland:"Saluran Standar - Daratan",standardChannelHongKong:"Saluran Standar - Hong Kong",standardChannelHongKong58012:"Saluran Standar - Hong Kong (Channel 58012)",shopeeOverseas711TC:"Shopee Luar Negeri - 7-11",shopeeOverseasHiLifeAirFreightTC:"Shopee Luar Negeri - Hi-Life (Udara)",shopeeOverseasHiLifeSeaFreightTC:"Shopee Luar Negeri - Hi-Life (Laut)",shopeeOverseasFamilyTC:"Shopee Luar Negeri - FamilyMart",shopeeOverseasHomeDelivery:"Shopee Luar Negeri - Pengiriman Rumah",shopeeOverseasHomeDeliveryAirFreightTC:"Shopee Luar Negeri - Pengiriman Rumah (Udara)",shopeeOverseasHomeDeliverySeaFreightTC:"Shopee Luar Negeri - Pengiriman Rumah (Laut)",shopeeOverseasShopeeStoreInstoreTC:"Shopee Luar Negeri - Shopee",shopeeOverseasOKMARTSeaFreightTC:"Shopee Luar Negeri - OK MART (Laut)",lightGoods:"Barang Ringan",specialOffer:"Barang Khusus",specialGoodsChannelTC:"Saluran Barang Khusus",specialGoodsChannel:"Saluran Barang Khusus"},productBasicInfo:{productList:"Daftar Produk",crossBorderLogisticsFee:"Biaya Logistik Lintas Batas",site:"Situs",screening:"Filter",page:"Halaman",products:"Produk",sitTip:"Pasar untuk negara berbeda. Anda dapat memilih situs spesifik untuk riset terarah",currentExchangeRate:"Kurs Saat Ini",updateExchangeRate:"Perbarui Kurs",currentExchangeRateTip:"Kurs saat ini diperoleh dari sumber resmi dan diperbarui harian. Anda juga bisa klik perbarui manual",type:"Tipe Produk",typeTip:"Sesuai saluran logistik di situs resmi Shopee. Kunjungi https://shopee.org.cn/4990.html untuk detail. <br/>Biaya logistik Shopee dibagi penjual & pembeli. Biaya di sini terutama porsi ditanggung penjual",weight:"Berat Produk",weightTip:"Menurut strategi logistik SLS Shopee, berat memengaruhi biaya logistik",purchasePrice:"Harga Pembelian",purchasePriceTip:"Total biaya pembelian dari pemasok hulu",freightForTheFirstLeg:"Biaya First-mile",freightForTheFirstLegTip:"Biaya kirim dari penjual ke gudang Shopee",commissionRate:"Tarif Komisi",commissionRateTip:"Komisi yang dibebankan Shopee berdasarkan transaksi, default 6%",transactionRate:"Tarif Biaya Transaksi",transactionRateTip:"Biaya transaksi yang dibebankan Shopee, default 2%",marketingRate:"Tarif Biaya Pemasaran",marketingAmount:"Biaya Pemasaran",marketingRateTip:"Semua biaya pemasaran produk ini termasuk on-site, off-site, dan kampanye",withdrawalFee:"Biaya Penarikan",withdrawalFeeTip:"Tarif biaya penarikan pembayaran lintas batas saat mentransfer hasil ke penjual",returnRate:"Tarif Retur",returnRateTip:"Retur menambah biaya. Barang kecil sering hilang saat retur, {br}barang besar dikembalikan. Platform juga mengenakan biaya logistik retur, jadi tarif retur berdampak signifikan. Penjual bisa memprediksi atau menetapkan sesuai kondisi aktual",commodityHandling:"Penanganan Produk",commodityHandlingTip:"Barang retur kecil biasanya dibuang, barang besar dikembalikan domestik. Metode berbeda biaya after-sales berbeda.<br>i. Hilang: Kerugian retur = (Harga pembelian) \xd7 Tarif retur - (Biaya transaksi + Komisi) \xd7 Tarif retur (2 desimal). <br>ii. Kembali: Kerugian retur = (Biaya retur) \xd7 Tarif retur - (Biaya transaksi + Komisi) \xd7 Tarif retur (2 desimal)",returnFee:"Biaya Retur",returnFeeTip:"Retur menambah biaya. Barang kecil hilang, {br}barang besar kembali. Shopee kenakan biaya logistik retur jadi tarif retur berdampak besar. Penjual bisa prediksi atau tetapkan tarif retur sesuai kondisi aktual",productPrice:"Harga Jual Produk",productPriceTip:"Harga Asli di Shopee",discount:"Diskon",discountTip:"Mengacu pada tingkat diskon di Shopee",profit:"Profit",productCost:"Biaya Produk",platformCost:"Biaya Platform",transactionFeeRate:"Tarif Biaya Transaksi",marketingCost:"Biaya Pemasaran",monthlySearchVolume:"Volume Pencarian Bulanan",searchVolume:"Volume Pencarian"},profit:{withdrawalHandlingFeeRate:"Tarif Biaya Penarikan",activityCost:"Biaya Kampanye",fullReductionPromotion:"Promosi potongan penuh: ",full:"Penuh",reduce:"Kurang",afterSalesCost:"Biaya After-sales",income:"Pendapatan",example:"Contoh: diskon 10% berarti potongan 10%",calculate:"Hitung",profitRate:"Margin Profit",profitValue:"Nilai Profit",profitCalculate:"Profit = Harga jual setelah diskon - Semua biaya (Harga pembelian + Biaya first-mile + Komisi + Biaya transaksi + Biaya pemasaran + Biaya penarikan + Biaya after-sales + Biaya logistik lintas batas)",profitRateCalculate:"Margin Profit = (Harga Jual Setelah Diskon - Harga Pembelian) / Harga Pembelian \xd7 100%, dibulatkan 2 desimal"},option:{discard:"Buang",return:"Kembalikan",day:"Harian",week:"Mingguan",month:"Bulanan",downloadRules:"Aturan Unduh",downloadByReviewTimePeriod:"Unduh Berdasarkan Rentang Waktu Ulasan",downloadByReviews:"Unduh Berdasarkan Jumlah Ulasan",timePeriod:"Rentang Waktu",numberOfReviews:"Jumlah Ulasan",downloadFirst100:"Unduh 100 Pertama",downloadFirst200:"Unduh 300 Pertama",downloadAll:"Unduh Semua",organicRanking:"Peringkat Organik",latest:"Terbaru",bestSelling:"Terlaris",lowToHigh:"Harga: Rendah ke Tinggi",highToLow:"Harga: Tinggi ke Rendah",disabled:"menutup",enabled:"buka"},ai:{sentimentSummary:"Ringkasan Sentimen",positive:"Positif",neutral:"Netral",negative:"Negatif",sentimentWordList:"Daftar Kata Sentimen",content:"Konten",frequency:"Frekuensi",count:"Jumlah",aiReviewSummary:"Ringkasan Ulasan AI",skuViewDetail:"Detail ulasan SKU, distribusi rating bintang, daftar kata frekuensi tinggi untuk membantu strategi operasi",goToWebDetail:"Pergi ke versi web untuk detail",sentimentAnalysis:"Analisis Sentimen",productSummary:"Ringkasan Produk",usageScenarios:"Skenario Penggunaan",userAttractiveSellingPoints:"Poin Jual Menarik bagi Pengguna",productAdvantages:"Keunggulan Produk",areasForImprovement:"Area untuk Ditingkatkan",userExpectations:"Ekspektasi Pengguna",noReviewsAvailable:"Tidak ada ulasan untuk produk ini",few50Reviews:"Produk ini memiliki kurang dari 50 ulasan kumulatif dan tidak dapat diringkas. Pilih produk lain",userProfile:"Profil Pengguna"},productList:{switchCurrency:"",switchToTheLocalCurrency:""},currency:{currencyGlobal:"IDR",currency:"USD",currencyCN:"RMB",unit:"Rp",area:"id",switchCurrency:"Klik untuk Beralih ke IDR",switchToTheLocalCurrency:"Klik untuk Beralih ke Mata Uang Lokal",switchToTheCurrency:"Klik untuk Beralih Mata Uang",currencyExchangeRate:"Kurs",chinaBankExchangeRate:"Kurs Bank China",customExchangeRate:"Kurs Kustom",exchangeTip:"Silakan masukkan kurs lokal untuk 1 RMB (3-8 desimal)",mx:"Peso Meksiko",id:"Rupiah Indonesia",br:"Real Brasil",vn:"Dong Vietnam",th:"Baht Thailand",ph:"Peso Filipina",my:"Ringgit Malaysia",sg:"Dolar Singapura",tw:"Dolar Taiwan Baru"},profitCalculator:{currencyView:"{unit}",exchangeRate:"Kurs"},ads:{storeSource:"Sumber Toko",noLimit:"Tanpa Batas",adsProduct:"Iklan",searchProducts:"Cari Produk",adRanking:"Peringkat Iklan",noBrand:"Tanpa Merek",regular:"Reguler",preferred:"Preferred",mallStore:"Toko Mall",productInformation:"Informasi Produk",reviewRate:"Tingkat Ulasan",keywordSearch:"Daftar Produk Kata Kunci"},review:{numberOfReviews:"Jumlah Ulasan",stars:"{number} Bintang",ratingDistribution:"Distribusi Rating"},listingTimeCharts:{listingTime0:"1M",listingTime1:"3M",listingTime2:"6M",listingTime3:"1Y",listingTime4:"2Y",listingTime5:"2Y+"},locationCharts:{local:"Lokal",crossBorder:"Lintas Batas"},shopTypeCharts:{normal:"Reguler",mall:"Toko Mall",preferredPlus:"Preferred"},shopCateTopCharts:{cate:"\u5546\u54c1\u5206\u7c7b"},shopProductListingTimeCharts:{listingTime0:"7d",listingTime1:"15d",listingTime2:"30d",listingTime5:"60d"}},pt:{style:{productDetailPage:{logo:"pt_logo",logoText:"pt_logoText",shopdoraLogo:"en_shopdoraLogo",detailTopButton:"en_detail-top-button",detailButton:"en_detail-button",detailInfoList:"en_detail-info-list",detailInfoItems:"en_detail-info-items",detailInfoItem:"en_detail-info-item",maxWidth:"en_MaxWidth",detailInfoItemWidth:"fit-content",detailTop:"en_detail-top",goShopdora:"en_goShopdora",customPopup:"en_t-popup__content",pageDetailLoginTitleButton:"80px"},keywordProductListPreview:{formLabelWidth:100},tdGoodsTitle:{imgSupply:"en_imgSupply"},productList:{salesRanking:"en_sales-ranking",shopdoraListItem:"en_shopdora-list-item-button-item",shopdoraListItemButton:"en_button",buttonDetailWidth:"100%",buttonWidth:"100%",marginTop:"5px",shopdoraListItemInfoItemTitle:"en_shopdora-list-item-info-item-title",shopdoraListId:"en_shopdora-list-item",infoItemMainSpanWidth:"fit-content",infoItemMainSpanNoDetailWidth:"fit-content",infoItemMainSpanMaxWidth:"100px",infoItemMainSpanMarginLeft:"0px",basicInfo:"en_basic-info",sellerWidth:"36px",cateWidth:"30px",sellerSourceTipsWidth:"38px",sellerTitle:"common_seller-span",sellerTitleMain:"common_seller-span-title",sellerTitleValue:"common_seller-span-value"},keywordPreview:{headerItem:"en_headerItem",itemValueFontSize:"16px"},currencyRate:{currencyRateHeader:"en_currency-rate-header"},icon:{settingHeaderName:"en_settingHeaderName",loginTitle:"en_loginTitle",text:"id_text",shopIcon:"en_shopIcon",iconImg:"id_iconImg"},filtration:{analyseTop:"en_top",analyseCenter:"en_center",radioGroup:"en_radioGroup",filtationButton:"en_filtationButton",height:"692px",noDescHeight:"732px",filtationLoginTitleButton:"100px"},profitForm:{toolsFormWrapperCrx:"en_tools-form-wrapper-crx",combineInput:"en_combine-input",resultBlock:"en_result-block"},specification:{dialogWidth:"730px",specificationWidth:"660px",progress:"en_progress"},skuTab:{moneyText:"en_money-text",titleText:"pt_title-text",commonBtn:"en_common-btn"},popup:{shopeeSelect:"en_shopeeSelect",shopdorapopup:"en_shopdorapopup",shopeeSelectWidth:"auto"},reviewDownload:{reviewWidth:"740px",reviewTitle:"en_reviewTitle"},keyword:{keywordCrxHeight:"166px",keywordHeaderHeight:"68px",keywordTitleWidth:"400px"},imageSearchTag:{searchTagWidth:"155px"}},popup:{pleaseSelect:"Selecionar"},productDetailPage:{cateNameType:"cateName",cateNamePath:"catePath","\u8de8\u5883":"Transfronteiri\xe7o","\u672c\u571f":"Local","\u65e0":"Nenhum"},productListPage:{seller:"Vendedor",brand:"Marca",cateNameType:"catePath",listedOn:"Publicado em",cate:"Cat.",mRank:"M-Rank",crossBorder:"CB",crossBorderTip:"Transfronteiri\xe7o",soldD30:"Vendas 30d",soldD1AndD7:"Vendas 1d/7d",soldD30Rate:"Crescimento 30d",salesD30:"GMV 30d",totalSold:"Vendas totais",totalSales:"GMV",likedCount:"Curtidas"},keywordProductListPreview:{cateNameType:"catePath",cateNamePath:"cateLocalPath",productList:"Lista de produtos ({count})",check:"Selecionados ({count})",page:"{count} itens"},keywordPreview:{marketView:"Vis\xe3o de mercado",analyseProductTotal:"Total de produtos analisados:",totalSold:"Vendas totais:",monthlySales:"Vendas mensais:",avgPrice:"Pre\xe7o m\xe9dio:",avgTime:"Data m\xe9dia de publica\xe7\xe3o:",avgRating:"Nota m\xe9dia de avalia\xe7\xe3o:",more:"Carregar mais",avg:"M\xe9dia:",productList:"Ver detalhes do produto"},keywordPage:{cateNameType:"cateEnName",keywordMining:"Minera\xe7\xe3o de palavras-chave"},historyKeywordAnalysisDialog:{exportData:"Exportar dados",analyseTime:"Tempo de an\xe1lise",products:"Produtos",screening:"Filtro",site:"Site",highFrequencyKeywords:"Palavras de alta frequ\xeancia de produtos relacionados",serialNumber:"N\xba",keyword:"Palavra-chave",frequency:"Frequ\xeancia",monthlySearchVolume:"Volume de busca mensal",searchCountTip:"Volume de busca mensal < 200 (Contate o suporte para outros motivos)",notInclude:"N\xe3o indexado"},iconPage:{priceCheck:"Pre\xe7o em USD"},chart:{listingTime:"Distribui\xe7\xe3o do tempo de listagem:",location:"Locais de envio do produto:",shopType:"Tipo de loja:",cateTop:"Top 5 categorias principais:",newProduct:"An\xe1lise de novidades:",cateType:"cateName"},imageSearchTag:{searchTag:"Procurar no 1688"},common:{language:"Idioma",changeLanguage:"Alterar idioma",clickLogin:"Clique para entrar",loginNow:"Entrar agora",helpCenter:"Central de ajuda",helpCenterUrl:"https://help.shopdora.com/en",contact:"Contato",goToShopdora:"Ir para shopdora.com",membershipPrice:"Pre\xe7o de assinatura",imageSearch:"Imagem de pesquisa",update:"Atualizar",goToUpdate:"Ir para atualizar",latestVersion:"\xdaltima vers\xe3o",warnTitle:"Dados completos exigem login do plugin Shopdora",textCrx:"A melhor ferramenta de an\xe1lise do Shopee",copyTitle:"Copiar t\xedtulo",copyLink:"Copiar link",clickCopy:"Clique para copiar",customList:"Personalizar lista",logout:"Sair",confirm:"Confirmar",cancel:"Cancelar",wxCodeName:"Atendimento ao cliente no WeChat",activated:"Ativado",disabled:"Desativado",pleaseSelect:"Selecione",expireDate:"V\xe1lido at\xe9",isLogin:"Fa\xe7a login no plugin para ver os dados completos",getHistory:"Ver hist\xf3rico",monitorDesc:"Adicionado ao monitoramento",tips:"Dados de SKU: veja na plataforma local do Shopee.",helpTips:"Como acessar o Shopee?",productSkuTipsName:"Voc\xea \xe9 um usu\xe1rio gratuito. Fa\xe7a upgrade do plano para ver este conte\xfado",upgradePackage:"Fazer upgrade",tipMoreComment:"Mais sobre an\xe1lise de avalia\xe7\xf5es",clickLearnMore:"Clique para saber mais",tipUpgrade:"Apenas para usu\xe1rios premium. {upgradePackage} seu plano para visualizar",jumpNow:"Ir agora",allTrends:"Clique para ver todas as tend\xeancias",nothing:"Nenhum",empty:"Vazio",pdd:"PDD",loading:"Carregando...",queryProduct:"Buscando produtos...",clickCopyLink:"Clique para copiar link",notInclude:"N\xe3o indexado",goShopdoraWeb:"Ir para shopdora.com",day:"Dia",all:"Tudo",clickSwitch:"Clique para alternar",iKnow:"OK",unknown:"Desconhecido",page:"P\xe1gina",exportData:"Exportar dados",exportProductList:"Exportar lista de produtos",frequency:"Frequ\xeancia",serialNumber:"N\xba",available:"Dispon\xedvel",reset:"Redefinir",goWeb:"Ir para shopdora.com",view:"Ver",title:"T\xedtulo",link:"Link",search:"Buscar",yes:"Sim",no:"N\xe3o",pageNumber:"N\xfamero da p\xe1gina",ranking:"Classifica\xe7\xe3o",rec:"Itens",currency:"$",rmb:"\xa5",usd:"$"},page:{pageInfo:"P\xe1gina {page}",pageColorInfo:'<span style="color: rgba(0, 0, 0, 0.9)">(P\xe1gina </span>{page}<span style="color: rgba(0, 0, 0, 0.9)">)</span>'},login:{loginOther:"Entrar com outra conta",welcome:"Bem-vindo ao Shopdora",forgotPassword:"Esqueceu a senha",notAccount:"N\xe3o tem uma conta?",goRegister:"Cadastrar-se",password:"Senha",loginSuccess:"Login bem-sucedido",mobileOrAccount:"Telefone/Subconta",enterPassword:"Digite sua senha",passwordTip:"Insira o c\xf3digo de convite de 6 d\xedgitos",mobileOrAccountTip:"Telefone/Subconta",passwordNotEmpty:"Senha"},info:{sellerSource:"Origem do vendedor",storeId:"ID da loja",storeName:"Loja",storeType:"Tipo de loja",store:"Loja",id:"ID",productId:"ID do produto",productId2:"ID do produto",productId3:"ID do produto",productLink:"Link do produto",productImg:"Imagem do Produto",seller:"Vendedor",brand:"Marca",brandName:"Marca",cate:"Categoria",cateName:"Categoria",tipCate:"Categorias principais dos produtos nas primeiras 3 p\xe1ginas para esta palavra-chave. Em busca abrangente, ao buscar esta palavra-chave, {br}a categoria com mais produtos nas tr\xeas primeiras p\xe1ginas \xe9 a principal para esta palavra-chave. Usado para confirmar o setor e o nicho da palavra-chave{br}",topKeywords:"Principais palavras-chave",keyword:"Palavra-chave",time:"Data de publica\xe7\xe3o",timeRange:"Intervalo de publica\xe7\xe3o",soldD30:"Vendas em 30 dias",soldD1AndD7:"Vendas 1d/7d",soldD30Rate:"Crescimento de 30 dias",salesD30:"GMV de 30 dias",liked_count:"Curtidas",totalSold:"Vendas totais",totalSales:"GMV",sold:"Vendas",sales:"Receita",selectAll:"Selecionar tudo (Produtos: %s)",selectByCondition:"Selecionar por condi\xe7\xe3o (Produtos: %s)",batchSelect:"Sele\xe7\xe3o em lote (Produtos: %s)",monthlySales:"Vendas mensais",monthlySalesSort:"Classifica\xe7\xe3o por vendas mensais",monthlyRevenue:"Receita mensal",min:"M\xedn",max:"M\xe1x",cny:"RMB",localUnit:"Moeda local",cnyPrice:"Pre\xe7o em RMB",searchTrend:"Tend\xeancia de busca",tipSearchTrend:"Tend\xeancias semanais de busca desta palavra-chave. Para termos sazonais, o volume pode existir apenas em certos per\xedodos. Se o volume for muito baixo, o sistema deixar\xe1 de indexar{br}",searchVolume30D:"Volume de busca (30 dias)",avgDailySearches:"Buscas di\xe1rias m\xe9dias",moMSearchGrowth:"Crescimento M/M de buscas",tipSearchVolume30D_1:"N\xfamero de buscas desta palavra-chave na caixa de busca do Shopee nos \xfaltimos 30 dias",tipSearchVolume30D_2:"A m\xe9dia di\xe1ria \xe9 calculada com base no volume dos \xfaltimos 30 dias",tipSearchVolume30D_3:"Crescimento mensal = (\xdaltimos 30 dias - 30 dias anteriores) / M\xeas anterior \xd7 100%",tipSearchVolume30D_4:"Volume atualizado diariamente",productCount:"N\xba de produtos",supplyDemandRatio:"Rela\xe7\xe3o oferta/demanda",tipProductCount_1:"N\xba de produtos: quantidade de produtos relacionados que aparecem ao buscar esta palavra-chave",tipProductCount_2:"Rela\xe7\xe3o oferta/demanda = Buscas di\xe1rias m\xe9dias (demanda) / N\xba de produtos (oferta)",tipProductCount_3:"N\xba de produtos atualizado semanalmente; rela\xe7\xe3o oferta/demanda atualizada diariamente.",avgPrice:"Pre\xe7o m\xe9dio",avgRatingScore:"Nota m\xe9dia",ratingCount:"N\xba de avalia\xe7\xf5es",tipAvgPrice_1:"Pre\xe7o/avalia\xe7\xf5es/notas m\xe9dias dos produtos nas 3 primeiras p\xe1ginas de resultados org\xe2nicos do Shopee para esta palavra-chave",tipAvgPrice_2:"Atualizado semanalmente",ppcBid:"Lance de PPC",tipPpcBid_1:"Pre\xe7o sugerido para anunciar esta palavra-chave no Shopee. Reflete a competi\xe7\xe3o e ajuda a avaliar custos de marketing. {br}Priorize palavras com lance baixo e alto volume de busca; {br}",tipPpcBid_2:"Dados atualizados diariamente",updateDataWeek:"Atualizado semanalmente",noDataText:"Sem atualiza\xe7\xf5es",crossBorder:"CB",local:"Local",soldNow:"Vendido",mainImg:"Imagem principal",past30DayOfSalesAndSalesRevenue:"Vendas e receita dos \xfaltimos 30 dias",video:"V\xeddeo",relatedProduct:"Produto relacionado",loadedProducts:"Produtos carregados",avgLoadedPrice:"Pre\xe7o m\xe9dio (carregados)",avgListingTime:"Tempo m\xe9dio de publica\xe7\xe3o"},time:{day:"{day} Dia(s)",month:"{month} M\xeas(es)",year:"{year} Ano(s)",oneMonth:"1 m\xeas",threeMonth:"3 meses",sixMonth:"6 meses",oneYear:"\xdaltimo ano",twoYear:"\xdaltimos 2 anos",numTwoYear:"\xdaltimos 2 anos",numOneYear:"\xdaltimos 1 ano",pastSixMonth:"\xdaltimos 6 meses",pastThreeMonth:"\xdaltimos 3 meses",pastOneMonth:"\xdaltimo 1 m\xeas",thanTwoYear:"Mais de 2 anos"},sku:{skuSalesDetails:"Previs\xe3o de vendas por SKU",skuBtnMonitorTip:"Monitorar",loginViewData:"Fa\xe7a login para ver",viewSkuAnalysis:"Ver relat\xf3rio de an\xe1lise de SKU",quantity:"Estoque",tipAnalysis:"Veja a an\xe1lise de mercado da categoria deste an\xfancio e explore oportunidades",tipPriceAnalysis:"An\xe1lise de lucro com base no pre\xe7o atual do an\xfancio",tipKeyWordsAnalysis:"An\xe1lise inteligente dos an\xfancios selecionados para entender palavras de alta frequ\xeancia e volumes de busca, dominar estrat\xe9gias de palavras-chave e ajustar t\xe1ticas",tipKeyWords:"Consulte palavras-chave org\xe2nicas e pagas para entender o tr\xe1fego e a distribui\xe7\xe3o dos concorrentes",tipHistory:"Veja tend\xeancias hist\xf3ricas de vendas, avalia\xe7\xf5es, classifica\xe7\xf5es e mais para entender a dire\xe7\xe3o geral",tipProductSalesD30:"",tipHelpAnalysis:"An\xe1lise de avalia\xe7\xf5es para identificar variantes campe\xe3s de venda",tipOperation:"Entenda os pontos de venda, fraquezas e usos do produto para definir a estrat\xe9gia",tipComprehensiveAnalysis:"An\xe1lise abrangente de SKU para identificar variantes de alto desempenho, ",tipQuantity:"Entenda a sazonalidade das vendas e gerencie o estoque.",tipSkuComments:"Baixe as avalia\xe7\xf5es do an\xfancio com um clique para an\xe1lise personalizada",tipMoreComment:"Clique para saber mais sobre an\xe1lise de avalia\xe7\xf5es",tipSource:"Busca de fornecedores por imagem com suporte a 1688, PDD Atacado, <br/>1688 Transfronteiri\xe7o e Taobao",tipSearchImgByShopee:"Use a compara\xe7\xe3o de imagens do Shopee para encontrar concorrentes e entender o cen\xe1rio",skuPrice:"Pre\xe7o do SKU",skuSold:"Previs\xe3o de vendas por SKU",skuSoldRate:"Participa\xe7\xe3o nas vendas por SKU",skuQuantity:"Estoque do SKU",marketTrend:"Tend\xeancias da categoria",skuImage:"Imagens do SKU",skuSalesFromRatingTip:"Previs\xe3o a partir das 300 principais avalia\xe7\xf5es",skuSalesFromRatingWarn:"Vendas e participa\xe7\xe3o por SKU projetadas a partir das 300 principais avalia\xe7\xf5es. Explore at\xe9 3.000 avalia\xe7\xf5es com An\xe1lise por IA"},analyse:{trafficAnalysis:"An\xe1lise de tr\xe1fego",titleAnalysis:"An\xe1lise de t\xedtulo",comprehensiveAnalysis:"An\xe1lise abrangente",hijackingAnalysis:"Encontrar similares",analysisRecord:"Registros de an\xe1lise",overallRating:"Classifica\xe7\xe3o geral",marketAnalysis:"An\xe1lise de mercado",productReviewAnalysis:"An\xe1lise de avalia\xe7\xf5es de produto",analyseTime:"Tempo de an\xe1lise",highFrequencyKeywords:"Palavras de alta frequ\xeancia de produtos relacionados",analysisHistory:"Hist\xf3rico de an\xe1lise",analysisSuccessful:"An\xe1lise conclu\xedda",analysisFailed:"Falha na an\xe1lise",status:"Status",name:"Nome",action:"A\xe7\xf5es"},reviewAnalysisContent:{commentator:"Autor da avalia\xe7\xe3o",commentContent:"Conte\xfado da avalia\xe7\xe3o",starRating:"Classifica\xe7\xe3o por estrelas",variant:"Varia\xe7\xe3o",variantPrice:"Pre\xe7o da varia\xe7\xe3o",imgUrl:"Link da imagem",reviewImg:"Imagem do Produto",reviewImg1:"Imagem da Avalia\xe7\xe3o 1",reviewImg2:"Imagem da Avalia\xe7\xe3o 2",reviewImg3:"Imagem da Avalia\xe7\xe3o 3",videoUrl:"Link do v\xeddeo",commentTime:"Data da avalia\xe7\xe3o"},skuExcel:{name:"Nome do SKU",price:"Pre\xe7o",sold:"Vendas",soldRate:"Participa\xe7\xe3o nas vendas",quantity:"Estoque",site:"Site"},tools:{download:"Baixar",profitCalculator:"Calculadora de lucro",imagesSupplyPage:"Busca de fornecedores por imagem",exportToExcel:"Vendas por SKU",downloadImg:"Baixar imagens/v\xeddeo",analyseValue:"An\xe1lise por IA",queryAnalysis:"Ver an\xe1lise",analysisInProgress:"Analisando...",downloadReviews:"Exportar avalia\xe7\xf5es",downloading:"Baixando...",downloadNow:"Baixar agora",allTheMainImages:"Selecionar todas as imagens principais",allSKUImages:"Selecionar todas as imagens de SKU",viewHighFrequencyWords:"Ver palavras de alta frequ\xeancia",viewHighFrequencyWordsTip:"An\xe1lise de palavras de alta frequ\xeancia em andamento, aguarde",viewHighFrequencyWordsWaitTip:"Estimativa de 3\u20135 minutos para concluir a coleta e a an\xe1lise do t\xedtulo. Depois, voc\xea ver\xe1 as palavras de alta frequ\xeancia nesta p\xe1gina ou no hist\xf3rico.",dateFormat:"YYYY-MM-DD",searchResultText:"Vis\xe3o geral dos resultados de busca"},msg:{basicInfo:"Informa\xe7\xf5es b\xe1sicas",copySuccess:"Copiado com sucesso",copyFail:"Falha ao copiar",pddLogin:"Para buscar produtos no PDD Atacado, acesse primeiro a p\xe1gina do PDD Atacado e fa\xe7a login antes da consulta, conforme exigido.",pddLoginButton:"Ir para login do PDD Atacado",pddVerify:"O PDD possui verifica\xe7\xe3o de deslize. Acesse a p\xe1gina do PDD Atacado para concluir a verifica\xe7\xe3o antes da consulta.",pddVerifyButton:"Ir para PDD Atacado",retry:"Tentar novamente",reselectImg:"Selecionar outra imagem",viewScoreRate:"Ver detalhes da nota e a distribui\xe7\xe3o das estrelas",noInclude:"Produto atual n\xe3o indexado",searchTip:"",searchShopTip:"",clickProductDetail:"",clickCateSearchProduct:"",downloadImgAndVideo:"Baixar imagens principais e v\xeddeos deste an\xfancio",reloadPage:"Se o estoque mostrar N/A, fa\xe7a login no Shopee e recarregue a p\xe1gina",reviewColling:"Coletando avalia\xe7\xf5es, aguarde",reviewCollectionTip:"Coleta e an\xe1lise estimadas em 3\u20135 minutos. Ap\xf3s concluir, veja o resumo por IA no plugin ou abra a web para o relat\xf3rio completo",searchCountTip:"Volume de busca mensal < 200 (Contate o suporte para outros motivos)",searchImgBySource:"Clique para buscar fornecedores por imagem (suporta 1688 e PDD Atacado)",noneRecord:"Sem registros",noneData:"Sem dados dispon\xedveis",shopdoraDownloadImgAndVideo:"Shopdora - Download de imagens e v\xeddeo",downloadSuccess:"Download conclu\xeddo",mainSkuImgVideo:"Imagens principais, v\xeddeos, imagens de SKU",analysisTitleTip:"Analise e otimize o t\xedtulo para melhorar o ranqueamento",analyseKeyWord:"Analise dados a partir da p\xe1gina de resultados por palavra-chave. Padr\xe3o: primeira p\xe1gina; use pagina\xe7\xe3o para mais dados.",analyseLimitProductTip:"Abaixo est\xe3o os resultados para 15 produtos desta p\xe1gina. Fa\xe7a upgrade para analisar mais produtos",productKeyWordSalesTip:"Por padr\xe3o, todos os produtos da p\xe1gina s\xe3o carregados. Para mais, use a pagina\xe7\xe3o.",analyseLimitTip:"Usu\xe1rios gratuitos obt\xeam c\xe1lculos apenas dos primeiros 15 produtos; ",notLoginShopeeTip:"Sem login no Shopee, apenas produtos coletados pelo Shopdora s\xe3o exibidos.",productKeyWordRevenueTip:"Soma padr\xe3o da receita hist\xf3rica dos produtos carregados para esta palavra-chave.",productKeyWordMothSalesTip:"Soma padr\xe3o do volume de vendas mensal dos produtos carregados.",productKeyWordMothRevenueTip:"Soma padr\xe3o da receita mensal dos produtos carregados.",productKeyWordCountTip:"Contagem padr\xe3o dos produtos carregados para esta palavra-chave.",productKeyWordAveragePriceTip:"Pre\xe7o m\xe9dio padr\xe3o dos produtos carregados.",productKeyWordAverageTimeTip:"Estat\xedstica do tempo m\xe9dio de publica\xe7\xe3o dos produtos carregados.",copyMsgSuccess:"Copiar {title} com sucesso",copyMsgFail:"Falha ao copiar {title}",exportProductDetail:"Clique para ver os detalhes carregados do produto; suporta exporta\xe7\xe3o",pleaseEnter:"Por favor, insira",copyTitlePop:"Copie todos os t\xedtulos dos produtos desta p\xe1gina.",copyUrlPop:"Copie todos os links de produtos desta p\xe1gina.",upgradeMsg:"Atualize sua assinatura para acessar mais an\xe1lises. {upgradeMsg2}",upgradeMsg2:"[Atualizar assinatura]"},error:{monitorSize:"Cota de monitoramento esgotada",monitorRetry:"Falha no monitoramento, tente novamente",skuPriceNotFound:"SKU removido durante a an\xe1lise; pre\xe7o de SKU n\xe3o encontrado",keywordNotFound:"Nenhuma informa\xe7\xe3o correspondente. Visite a vers\xe3o web do Shopdora para ver palavras-chave relacionadas",queryFailRetry:"Falha na consulta, tente novamente",selectLogisticsChannel:"Selecione o canal log\xedstico",inputProductWeight:"Insira o peso do produto",inputPurchasePrice:"Insira o pre\xe7o de compra",inputFreightForTheFirstLeg:"Insira o frete da primeira milha",inputCommissionRate:"Insira a taxa de comiss\xe3o",inputMarketingCost:"Insira o custo de marketing",inputWithdrawalRate:"Insira a taxa de saque",inputReturnRate:"Insira a taxa de devolu\xe7\xe3o",inputReturnFee:"Insira a taxa de devolu\xe7\xe3o",inputProductPrice:"Insira o pre\xe7o de venda do produto",inputNumber:"Insira um n\xfamero",inputActivityCostInformation:"Insira as informa\xe7\xf5es de custo da campanha",requestErr:"Erro na solicita\xe7\xe3o, tente novamente mais tarde",loginError:"Sua conta foi acessada em outro dispositivo",requestTimeoutRetry:"Tempo esgotado, tente novamente",requestTimeout:"Tempo esgotado",zipError:"Selecione primeiro imagens/v\xeddeos/imagens de SKU",analysisProductError:"Selecione pelo menos dois produtos para an\xe1lise",systemBusyError:"Sistema ocupado, tente novamente mais tarde"},countryArea:{tw:"Taiwan",sg:"Singapura",my:"Mal\xe1sia",ph:"Filipinas",th:"Tail\xe2ndia",vn:"Vietn\xe3",br:"Brasil",id:"Indon\xe9sia",mx:"M\xe9xico"},deliverChannel:{logisticsChannel:"Canal log\xedstico",generalCargo:"Carga padr\xe3o",expressChannel:"Canal expresso",buyerSelfPickupChannel:"Canal de retirada do comprador",buyerSelfCollectionChannel:"Canal de autoatendimento do comprador",selfPickupLockerChannel:"Canal de arm\xe1rio de retirada",onlineSeaShippingChannel:"Canal mar\xedtimo online",heavyGoods:"Carga pesada",standardChannel:"Canal padr\xe3o",standardChannel58008:"Canal padr\xe3o (Canal 58008)",standardChannel78017:"Canal padr\xe3o (Canal 78017)",maritimeEconomicChannel:"Canal mar\xedtimo econ\xf4mico",maritimeLargeCargoChannel:"Canal mar\xedtimo para volumes",priorityChannel:"Canal priorit\xe1rio",standardChannelMainland:"Canal padr\xe3o - Mainland",standardChannelHongKong:"Canal padr\xe3o - Hong Kong",standardChannelHongKong58012:"Canal padr\xe3o - Hong Kong (Canal 58012)",shopeeOverseas711TC:"Shopee Overseas - 7-11",shopeeOverseasHiLifeAirFreightTC:"Shopee Overseas - Hi-Life (A\xe9reo)",shopeeOverseasHiLifeSeaFreightTC:"Shopee Overseas - Hi-Life (Mar\xedtimo)",shopeeOverseasFamilyTC:"Shopee Overseas - FamilyMart",shopeeOverseasHomeDelivery:"Shopee Overseas - Entrega em domic\xedlio",shopeeOverseasHomeDeliveryAirFreightTC:"Shopee Overseas - Entrega (A\xe9reo)",shopeeOverseasHomeDeliverySeaFreightTC:"Shopee Overseas - Entrega (Mar\xedtimo)",shopeeOverseasShopeeStoreInstoreTC:"Shopee Overseas - Shopee",shopeeOverseasOKMARTSeaFreightTC:"Shopee Overseas - OK MART (Mar\xedtimo)",lightGoods:"Carga leve",specialOffer:"Carga especial",specialGoodsChannelTC:"Canal de cargas especiais",specialGoodsChannel:"Canal de cargas especiais"},productBasicInfo:{productList:"Lista de produtos",crossBorderLogisticsFee:"Taxa de log\xedstica transfronteiri\xe7a",site:"Site",screening:"Filtro",page:"P\xe1gina",products:"Produtos",sitTip:"Mercados por pa\xeds. Selecione um site para pesquisa direcionada",currentExchangeRate:"Taxa de c\xe2mbio atual",updateExchangeRate:"Atualizar taxa de c\xe2mbio",currentExchangeRateTip:"A taxa \xe9 obtida de fontes oficiais e atualizada diariamente. Voc\xea tamb\xe9m pode clicar em atualizar para obter a mais recente",type:"Tipo de produto",typeTip:"Alinhado aos canais log\xedsticos do site oficial do Shopee. Veja https://shopee.org.cn/4990.html para detalhes. <br/>As taxas log\xedsticas do Shopee se dividem entre vendedor e comprador. Aqui referem-se \xe0s taxas do vendedor",weight:"Peso do produto",weightTip:"Segundo a estrat\xe9gia SLS do Shopee, o peso impacta a taxa log\xedstica",purchasePrice:"Pre\xe7o de compra",purchasePriceTip:"Custo total de aquisi\xe7\xe3o do fornecedor",freightForTheFirstLeg:"Frete da primeira milha",freightForTheFirstLegTip:"Custo de envio do vendedor ao armaz\xe9m Shopee",commissionRate:"Taxa de comiss\xe3o",commissionRateTip:"Comiss\xe3o cobrada pelo Shopee sobre transa\xe7\xf5es; padr\xe3o 6%",transactionRate:"Taxa de transa\xe7\xe3o",transactionRateTip:"Taxa cobrada pelo Shopee sobre transa\xe7\xf5es; padr\xe3o 2%",marketingRate:"Taxa de marketing",marketingAmount:"Custo de marketing",marketingRateTip:"Todos os custos de promo\xe7\xe3o deste produto (on-site e off-site)",withdrawalFee:"Taxa de saque",withdrawalFeeTip:"Taxa cobrada por pagamentos transfronteiri\xe7os ao transferir fundos",returnRate:"Taxa de devolu\xe7\xe3o",returnRateTip:"Devolu\xe7\xf5es geram custos adicionais. Itens pequenos geralmente se perdem, {br}enquanto itens grandes retornam. O Shopee cobra log\xedstica de devolu\xe7\xe3o; ajuste a taxa conforme o cen\xe1rio real",commodityHandling:"Tratamento do produto",commodityHandlingTip:"Produtos devolvidos: pequenos geralmente s\xe3o descartados; grandes retornam domesticamente. Custos variam.<br>i. Perda: Perda = (Pre\xe7o de compra) \xd7 Taxa de devolu\xe7\xe3o - (Taxa de transa\xe7\xe3o + Comiss\xe3o) \xd7 Taxa de devolu\xe7\xe3o, com duas casas decimais. <br>ii. Devolu\xe7\xe3o: Perda = (Taxa de devolu\xe7\xe3o) \xd7 Taxa de devolu\xe7\xe3o - (Taxa de transa\xe7\xe3o + Comiss\xe3o) \xd7 Taxa de devolu\xe7\xe3o, com duas casas decimais",returnFee:"Taxa de devolu\xe7\xe3o",returnFeeTip:"Devolu\xe7\xf5es geram custos adicionais. Pequenos s\xe3o descartados, {br}grandes retornam. O Shopee tamb\xe9m cobra log\xedstica; ajuste a taxa conforme o cen\xe1rio real",productPrice:"Pre\xe7o de venda",productPriceTip:"Pre\xe7o original no Shopee",discount:"Desconto",discountTip:"Taxa de desconto no Shopee",profit:"Lucro",productCost:"Custo do produto",platformCost:"Custos da plataforma",transactionFeeRate:"Taxa de transa\xe7\xe3o",marketingCost:"Custo de marketing",monthlySearchVolume:"Volume de busca mensal",searchVolume:"Volume de busca"},profit:{withdrawalHandlingFeeRate:"Taxa de saque",activityCost:"Custo da campanha",fullReductionPromotion:"Promo\xe7\xe3o de desconto progressivo: ",full:"A cada",reduce:"menos",afterSalesCost:"Custo p\xf3s-venda",income:"Receita",example:"Ex.: 10% off significa 10% de desconto",calculate:"Calcular",profitRate:"Margem de lucro",profitValue:"Valor do lucro",profitCalculate:"Lucro = Pre\xe7o com desconto - Todos os custos (Compra + Primeira milha + Comiss\xe3o + Taxas de transa\xe7\xe3o + Marketing + Saque + P\xf3s-venda + Log\xedstica transfronteiri\xe7a)",profitRateCalculate:"Margem = (Pre\xe7o com desconto - Pre\xe7o de compra) / Pre\xe7o de compra \xd7 100%, com 2 casas decimais"},option:{discard:"Descartar",return:"Devolver",day:"Por dia",week:"Por semana",month:"Por m\xeas",downloadRules:"Regras de download",downloadByReviewTimePeriod:"Baixar por per\xedodo das avalia\xe7\xf5es",downloadByReviews:"Baixar por n\xba de avalia\xe7\xf5es",timePeriod:"Per\xedodo",numberOfReviews:"N\xba de avalia\xe7\xf5es",downloadFirst100:"Baixar primeiros 100",downloadFirst200:"Baixar primeiros 300",downloadAll:"Baixar tudo",organicRanking:"Ranking org\xe2nico",latest:"Mais recentes",bestSelling:"Mais vendidos",lowToHigh:"Pre\xe7o: menor para maior",highToLow:"Pre\xe7o: maior para menor",disabled:"desactivar",enabled:"activar"},ai:{sentimentSummary:"Resumo de sentimento",positive:"Positivo",neutral:"Neutro",negative:"Negativo",sentimentWordList:"Lista de palavras de sentimento",content:"Conte\xfado",frequency:"Frequ\xeancia",count:"Contagem",aiReviewSummary:"Resumo por IA das avalia\xe7\xf5es",skuViewDetail:"Detalhes por SKU, distribui\xe7\xe3o de estrelas e palavras de alta frequ\xeancia para guiar a opera\xe7\xe3o",goToWebDetail:"Ver detalhes na vers\xe3o web",sentimentAnalysis:"An\xe1lise de sentimento",productSummary:"Resumo do produto",usageScenarios:"Cen\xe1rios de uso",userAttractiveSellingPoints:"Pontos de venda atrativos para usu\xe1rios",productAdvantages:"Vantagens do produto",areasForImprovement:"\xc1reas de melhoria",userExpectations:"Expectativas dos usu\xe1rios",noReviewsAvailable:"Sem avalia\xe7\xf5es para o produto atual",few50Reviews:"Menos de 50 avalia\xe7\xf5es acumuladas; selecione outro produto para an\xe1lise",userProfile:"Perfil do usu\xe1rio"},productList:{switchCurrency:"",switchToTheLocalCurrency:""},currency:{currencyGlobal:"USD",currency:"USD",currencyCN:"RMB",unit:"$",area:"us",switchCurrency:"Clique para alternar para USD",switchToTheLocalCurrency:"Clique para alternar para moeda local",switchToTheCurrency:"Clique para alternar moeda",currencyExchangeRate:"Taxa de c\xe2mbio",chinaBankExchangeRate:"Taxa de c\xe2mbio do Banco da China",customExchangeRate:"Taxa de c\xe2mbio personalizada",exchangeTip:"Insira a taxa de c\xe2mbio local para 1 RMB (3\u20138 casas decimais)",mx:"Peso mexicano",id:"Rupia indon\xe9sia",br:"Real brasileiro",vn:"Dong vietnamita",th:"Baht tailand\xeas",ph:"Peso filipino",my:"Ringgit malaio",sg:"D\xf3lar de Cingapura",tw:"Novo d\xf3lar taiwan\xeas"},profitCalculator:{currencyView:"{unit}",exchangeRate:"Taxa de c\xe2mbio"},ads:{storeSource:"Origem da loja",noLimit:"Sem limite",adsProduct:"An\xfancios",searchProducts:"Buscar produtos",adRanking:"Posi\xe7\xe3o do an\xfancio",noBrand:"Sem marca",regular:"Regular",preferred:"Preferencial",mallStore:"Loja Mall",productInformation:"Informa\xe7\xf5es do produto",reviewRate:"Taxa de avalia\xe7\xf5es",keywordSearch:"Lista de produtos por palavra-chave"},review:{numberOfReviews:"N\xba de avalia\xe7\xf5es",stars:"{number} estrelas",ratingDistribution:"Distribui\xe7\xe3o das avalia\xe7\xf5es"},listingTimeCharts:{listingTime0:"1M",listingTime1:"3M",listingTime2:"6M",listingTime3:"1A",listingTime4:"2A",listingTime5:"2A+"},locationCharts:{local:"local",crossBorder:"crossBorder"},shopTypeCharts:{normal:"Regular",mall:"Loja Mall",preferredPlus:"Preferencial"},shopCateTopCharts:{cate:"Categoria"},shopProductListingTimeCharts:{listingTime0:"7d",listingTime1:"15d",listingTime2:"30d",listingTime5:"60d"}},zh_tw:{style:{productDetailPage:{logo:"zh_logo",logoText:"zh_logoText",shopdoraLogo:"zh_shopdoraLogo",detailTopButton:"zh_detail-top-button",detailButton:"zh_detail-button",detailInfoItem:"zh_detail-info-item",detailInfoItemWidth:"fit-content",detailTop:"zh_detail-top",goShopdora:"zh_goShopdora",customPopup:"zh_t-popup__content",detailInfoList:"zh_detail-info-list",detailInfoItems:"zh_detail-info-items",maxWidth:"zh_MaxWidth",filtationButton:"zh_filtationButton",pageDetailLoginTitleButton:"68px"},keywordProductListPreview:{formLabelWidth:76},tdGoodsTitle:{imgSupply:"zh_imgSupply"},productList:{salesRanking:"zh_sales-ranking",shopdoraListItem:"zh_shopdora-list-item-button-item",shopdoraListItemButton:"zh_button",buttonDetailWidth:"78px",buttonWidth:"82px",marginTop:"0px",shopdoraListItemInfoItemTitle:"zh_shopdora-list-item-info-item-title",shopdoraListId:"zh_shopdora-list-item",infoItemMainSpanWidth:"fit-content",infoItemMainSpanNoDetailWidth:"fit-content",infoItemMainSpanMaxWidth:"110px",infoItemMainSpanMarginLeft:"0px",basicInfo:"zh_basic-info",sellerWidth:"30px",cateWidth:"25px",sellerSourceTipsWidth:"40px",sellerTitle:"common_seller-span",sellerTitleMain:"common_seller-span-title",sellerTitleValue:"common_seller-span-value"},keywordPreview:{headerItem:"zh_headerItem",itemValueFontSize:"18px"},currencyRate:{currencyRateHeader:"zh_currency-rate-header"},icon:{settingHeaderName:"zh_settingHeaderName",loginTitle:"zh_loginTitle",text:"zh_text",shopIcon:"zh_shopIcon",iconImg:"zh_iconImg"},filtration:{analyseTop:"zh_top",analyseCenter:"zh_center",radioGroup:"zh_radioGroup",height:"675px",noDescHeight:"715px",filtationLoginTitleButton:"68px"},profitForm:{toolsFormWrapperCrx:"zh_tools-form-wrapper-crx",combineInput:"zh_combine-input",resultBlock:"zh_result-block"},specification:{dialogWidth:"573px",specificationWidth:"506px",progress:"zh_progress"},skuTab:{moneyText:"zh_money-text",titleText:"zh_title-text",commonBtn:"zh_common-btn"},popup:{shopeeSelect:"zh_shopeeSelect",shopdorapopup:"zh_shopdorapopup",shopeeSelectWidth:"auto"},reviewDownload:{reviewWidth:"640px",reviewTitle:"zh_reviewTitle"},keyword:{keywordCrxHeight:"149px",keywordHeaderHeight:"51px",keywordTitleWidth:"356px"},imageSearchTag:{searchTagWidth:"100px"}},popup:{pleaseSelect:"\u8acb\u9078\u64c7"},productDetailPage:{cateNameType:"cateTwName","Cross-border":"\u8de8\u5883",Local:"\u672c\u571f",None:"\u7121"},productListPage:{seller:"\u8ce3\u5bb6",brand:"\u54c1\u724c",cateNameType:"cateLocalPath",listedOn:"\u4e0a\u67b6\u6642\u9593",cate:"\u985e\u76ee",mRank:"\u6708\u92b7\u91cf\u6392\u540d",crossBorder:"\u8de8\u5883",crossBorderTip:"\u8de8\u5883",soldD30:"\u8fd130\u65e5\u92b7\u91cf",soldD1AndD7:"\u8fd11\u65e5/7\u65e5\u92b7\u91cf",soldD30Rate:"\u8fd130\u65e5\u92b7\u91cf\u589e\u9577\u7387",salesD30:"\u8fd130\u65e5\u92b7\u552e\u984d",liked_count:"\u9ede\u8b9a\u6578",totalSold:"\u7e3d\u92b7\u91cf",totalSales:"GMV",likedCount:"\u9ede\u8b9a\u6578"},keywordProductListPreview:{cateNameType:"cateLocalPath",cateNamePath:"cateLocalPath",productList:"\u7522\u54c1\u5217\u8868\uff08\u5171 {count} \u7522\u54c1\uff09",check:"\u5df2\u9078\uff08{count}\uff09",page:"\u6bcf\u9801 {count} \u689d"},keywordPreview:{marketView:"\u5e02\u5834\u7e3d\u89bd",analyseProductTotal:"\u5206\u6790\u5546\u54c1\u7e3d\u6578:",totalSold:"\u7e3d\u92b7\u91cf:",monthlySales:"\u6708\u92b7\u91cf:",avgPrice:"\u5e73\u5747\u50f9\u683c:",avgTime:"\u5e73\u5747\u4e0a\u67b6\u6642\u9593:",avgRating:"\u5e73\u5747\u8a55\u5206:",more:"\u9ede\u64ca\u52a0\u8f09\u66f4\u591a",avg:"\u5e73\u5747:",productList:"\u67e5\u770b\u5546\u54c1\u660e\u7d30"},keywordPage:{cateNameType:"cateZhName",keywordMining:"\u95dc\u9375\u8a5e\u6316\u6398",collection:"\u6536\u85cf",collected:"\u5df2\u6536\u85cf"},historyKeywordAnalysisDialog:{exportData:"\u5c0e\u51fa\u6578\u64da",analyseTime:"\u5206\u6790\u6642\u9593",products:"\u7522\u54c1\u6578",screening:"\u7be9\u9078",site:"\u7ad9",highFrequencyKeywords:"\u76f8\u95dc\u7522\u54c1\u9ad8\u983b\u95dc\u9375\u8a5e",serialNumber:"\u5e8f\u865f",keyword:"\u95dc\u9375\u8a5e",frequency:"\u983b\u6b21",monthlySearchVolume:"\u6708\u641c\u7d22\u91cf",searchCountTip:"\u6708\u641c\u7d22\u91cf < 200\uff08\u5176\u4ed6\u539f\u56e0\u806f\u7e6b\u5ba2\u670d\uff09",notInclude:"\u672a\u6536\u9304"},iconPage:{priceCheck:"\u4eba\u6c11\u5e63\u50f9\u683c"},chart:{listingTime:"\u4e0a\u67b6\u6642\u9593\u5206\u4f48:",location:"\u5546\u54c1\u767c\u8ca8\u5730:",shopType:"\u5e97\u92ea\u985e\u578b:",cateTop:"\u4e3b\u71df\u985e\u76eeTOP5:",newProduct:"\u4e0a\u65b0\u5206\u6790:",cateType:"cateTwName"},imageSearchTag:{searchTag:"\u5716\u641c\u540c\u6b3e"},common:{language:"\u8a9e\u8a00",changeLanguage:"\u5207\u63db\u8a9e\u8a00",clickLogin:"\u9ede\u64ca\u767b\u9304",loginNow:"\u7acb\u5373\u767b\u9304",helpCenter:"\u5e6b\u52a9\u4e2d\u5fc3",helpCenterUrl:"https://help.shopdora.cn/",contact:"\u806f\u7e6b\u5ba2\u670d",goToShopdora:"\u53bbshopdora.com",membershipPrice:"\u6703\u54e1\u50f9\u683c",imageSearch:"\u5716\u641c\u540c\u6b3e",update:"\u7248\u672c\u66f4\u65b0",goToUpdate:"\u524d\u5f80\u66f4\u65b0",latestVersion:"\u5df2\u662f\u6700\u65b0\u7248\u672c",warnTitle:"\u6eab\u99a8\u63d0\u793a\uff1aShopdora\u5916\u639b\u9700\u767b\u9304\u5f8c\u65b9\u53ef\u67e5\u770b\u5b8c\u6574\u6578\u64da\u3002",textCrx:"Shopee\u5927\u6578\u64da\u9078\u54c1\u5c08\u5bb6",copyTitle:"\u8907\u88fd\u6a19\u984c",copyLink:"\u8907\u88fd\u93c8\u63a5",clickCopy:"\u9ede\u64ca\u8907\u88fd",customList:"\u81ea\u5b9a\u7fa9\u5217\u8868\u4fe1\u606f",logout:"\u9000\u51fa\u767b\u9304",confirm:"\u78ba\u5b9a",cancel:"\u53d6\u6d88",wxCodeName:"\u6383\u78bc\u6dfb\u52a0\u5ba2\u670d\u5fae\u4fe1",activated:"\u5df2\u6fc0\u6d3b",disabled:"\u5df2\u7981\u7528",pleaseSelect:"\u8acb\u9078\u64c7",expireDate:"\u6709\u6548\u671f\u81f3",isLogin:"\u5916\u639b\u767b\u9304\u5f8c\u65b9\u53ef\u67e5\u770b\u5b8c\u6574\u6578\u64da",getHistory:"\u67e5\u770b\u6b77\u53f2\u8a18\u9304",monitorDesc:"\u8a72\u7522\u54c1\u5df2\u52a0\u5165\u76e3\u63a7",tips:"SKU\u6578\u64da\uff1a\u8a2a\u554f{shop}\u672c\u571f\u524d\u53f0\u67e5\u770b\u3002",helpTips:"\u5982\u4f55\u8a2a\u554fShopee\uff1f",productSkuTipsName:"\u60a8\u662f\u514d\u8cbb\u7528\u6236\uff0c\u5347\u7d1a\u5957\u9910\u5f8c\u5373\u53ef\u67e5\u770b",upgradePackage:"\u5347\u7d1a\u5957\u9910",tipMoreComment:"\u4e86\u89e3\u66f4\u591a\u8a55\u8ad6\u5206\u6790\uff0c\u8acb",clickLearnMore:"\u9ede\u64ca\u4e86\u89e3",tipUpgrade:"\u50c5\u9650\u4ed8\u8cbb\u7528\u6236\uff0c{upgradePackage}\u5f8c\u5373\u53ef\u67e5\u770b",jumpNow:"\u7acb\u5373\u8df3\u8f49",allTrends:"\u9ede\u64ca\u67e5\u770b\u5168\u90e8\u8da8\u52e2",nothing:"\u7121",empty:"\u7a7a",pdd:"\u62fc\u591a\u591a",loading:"\u6b63\u5728\u52a0\u8f09...",queryProduct:"\u67e5\u8a62\u5546\u54c1\u4e2d...",clickCopyLink:"\u9ede\u64ca\u8907\u88fd\u93c8\u63a5",notInclude:"\u672a\u6536\u9304",goShopdoraWeb:"\u53bbShopdora\u5b98\u7db2",day:"\u5929",all:"\u5168\u90e8",clickSwitch:"\u9ede\u64ca\u5207\u63db",iKnow:"\u6211\u77e5\u9053\u4e86",unknown:"\u672a\u77e5",page:"\u9801",exportData:"\u5c0e\u51fa\u6578\u64da",exportProductList:"\u5c0e\u51fa\u7522\u54c1\u5217\u8868",frequency:"\u983b\u6b21",serialNumber:"\u5e8f\u865f",available:"\u6709",reset:"\u91cd\u7f6e",goWeb:"\u524d\u5f80\u5b98\u7db2",view:"\u67e5\u770b",title:"\u6a19\u984c",link:"\u93c8\u63a5",search:"\u67e5\u8a62",yes:"\u662f",no:"\u5426",pageNumber:"\u9801\u78bc",ranking:"\u6392\u540d",rec:"\u689d",currency:"$",rmb:"\xa5",usd:"$"},page:{pageInfo:"\u7b2c{page}\u9801",pageColorInfo:'<span style="color: rgba(0, 0, 0, 0.9)">(\u7b2c</span>{page}<span style="color: rgba(0, 0, 0, 0.9)">\u9801)</span>'},login:{loginOther:"\u767b\u9304\u5176\u4ed6\u8cec\u865f",welcome:"\u6b61\u8fce\u767b\u9304 Shopdora",forgotPassword:"\u627e\u56de\u5bc6\u78bc",notAccount:"\u6c92\u6709\u8cec\u865f\uff1f ",goRegister:"\u7acb\u5373\u8a3b\u518a",password:"\u5bc6\u78bc\u767b\u9304",loginSuccess:"\u767b\u9304\u6210\u529f",mobileOrAccount:"\u624b\u6a5f\u865f/\u5b50\u8cec\u865f",enterPassword:"\u8acb\u8f38\u5165\u767b\u9304\u5bc6\u78bc",passwordTip:"\u81f3\u5c11\u9700\u89816\u4f4d",passwordNotEmpty:"\u5bc6\u78bc\u5fc5\u586b",mobileOrAccountTip:"\u624b\u6a5f\u865f/\u5b50\u8cec\u865f\u5fc5\u586b"},info:{sellerSource:"\u8ce3\u5bb6\u4f86\u6e90",storeId:"\u5e97\u92eaID",storeName:"\u5e97\u92ea\u540d",storeType:"\u5e97\u92ea\u985e\u578b",store:"\u5e97\u92ea",id:"ID",productId:"\u5546\u54c1id",productId2:"\u7522\u54c1id",productId3:"\u7522\u54c1ID",seller:"\u8ce3\u5bb6",brand:"\u54c1\u724c",brandName:"\u54c1\u724c\u540d",cate:"\u985e\u76ee",cateName:"\u985e\u76ee\u540d\u7a31",productLink:"\u7522\u54c1\u93c8\u63a5",productImg:"\u5546\u54c1\u5716",tipCate:"\u8a72\u95dc\u9375\u8a5e\u4e0b\u524d3\u9801\u7522\u54c1\u6240\u5c6c\u4e3b\u8981\u985e\u76ee\uff0c\u5728\u7d9c\u5408\u7be9\u9078\u4e0b\uff0c\u641c\u7d22\u8a72\u95dc\u9375\u8a5e\uff0c\u51fa\u73fe\u5728\u524d\u4e09\u9801\u7684\u7522\u54c1\uff0c{br}\u6309\u7167\u7522\u54c1\u985e\u76ee\u7d71\u8a08\u7522\u54c1\u6578\u6700\u591a\u7684\u985e\u76ee\u5373\u70ba\u8a72\u95dc\u9375\u8a5e\u7684\u985e\u76ee\u3002\u7528\u65bc\u78ba\u8a8d\u95dc\u9375\u8a5e\u6240\u5c6c\u884c\u696d\u548c\u7d30\u5206\u5e02\u5834<br/>",topKeywords:"\u9ad8\u983b\u95dc\u9375\u8a5e",keyword:"\u95dc\u9375\u8a5e",time:"\u4e0a\u67b6\u6642\u9593",timeRange:"\u4e0a\u67b6\u6642\u9593\u5340\u9593",soldD30:"\u8fd130\u65e5\u92b7\u91cf",soldD1AndD7:"\u8fd11\u65e5/7\u65e5\u92b7\u91cf",soldD30Rate:"\u8fd130\u65e5\u92b7\u91cf\u589e\u9577\u7387",salesD30:"\u8fd130\u65e5\u92b7\u552e\u984d",liked_count:"\u9ede\u8b9a\u6578",totalSold:"\u7e3d\u92b7\u91cf",totalSales:"\u7e3d\u92b7\u552e\u984d",sold:"\u92b7\u91cf",sales:"\u92b7\u552e\u984d",selectAll:"\u5168\u9078\uff08\u7522\u54c1\u6578\uff1a%s\uff09",selectByCondition:"\u6309\u689d\u4ef6\u9078\u64c7\uff08\u7522\u54c1\u6578\uff1a%s\uff09",batchSelect:"\u6279\u91cf\u9078\u64c7\uff08\u7522\u54c1\u6578\uff1a%s\uff09",monthlySales:"\u6708\u92b7\u91cf",monthlySalesSort:"\u6708\u92b7\u91cf\u6392\u540d",monthlyRevenue:"\u6708\u92b7\u552e\u984d",min:"\u6700\u5c0f\u503c",max:"\u6700\u5927\u503c",cny:"\u4eba\u6c11\u5e63",localUnit:"\u672c\u571f\u8ca8\u5e63",cnyPrice:"\u4eba\u6c11\u5e63\u50f9\u683c",switchToTheLocalCurrency:"\u9ede\u64ca\u5207\u63db\u672c\u571f\u8ca8\u5e63",switchToTheCurrency:"\u9ede\u64ca\u5207\u63db\u672c\u7ad9\u8ca8\u5e63",searchTrend:"\u641c\u7d22\u8da8\u52e2",tipSearchTrend:"\u8a72\u95dc\u9375\u8a5e\u7684\u5468\u641c\u7d22\u8da8\u52e2\uff0c\u5c0d\u65bc\u5b63\u7bc0\u6027\u95dc\u9375\u8a5e\uff0c\u53ef\u80fd\u53ea\u6709\u90e8\u5206\u6642\u9593\u6bb5\u6709\u641c\u7d22\u91cf\uff1b\u5982\u679c\u95dc\u9375\u8a5e\u641c\u7d22\u91cf\u904e\u5c0f\uff0c\u7cfb\u7d71\u5c07\u4e0d\u518d\u6536\u9304<br/>",searchVolume30D:"\u8fd130\u65e5\u641c\u7d22\u91cf",avgDailySearches:"\u5e73\u5747\u65e5\u641c\u7d22\u91cf",moMSearchGrowth:"\u6708\u641c\u7d22\u589e\u9577\u7387",tipSearchVolume30D_1:"\u904e\u53bb30\u65e5\u5728shopee\u641c\u7d22\u6846\u4e2d\u641c\u7d22\u904e\u8a72\u95dc\u9375\u8a5e\u7684\u6b21\u6578",tipSearchVolume30D_2:"\u5e73\u5747\u65e5\u641c\u7d22\u91cf\u662f\u57fa\u65bc\u904e\u53bb30\u65e5\u641c\u7d22\u91cf\u8a08\u7b97\u7684\u5e73\u5747\u503c",tipSearchVolume30D_3:"\u6708\u641c\u7d22\u91cf\u589e\u9577\u7387=\uff08\u8fd130\u5929\u641c\u7d22\u91cf-\u4e0a30\u5929\u641c\u7d22\u91cf\uff09/\u4e0a\u6708\u641c\u7d22\u91cf*100%",tipSearchVolume30D_4:"\u641c\u7d22\u91cf\u6578\u64da\u6bcf\u65e5\u66f4\u65b0",productCount:"\u5546\u54c1\u6578",supplyDemandRatio:"\u4f9b\u9700\u6bd4",tipProductCount_1:"\u5546\u54c1\u6578\uff1a\u6307\u641c\u7d22\u8a72\u95dc\u9375\u8a5e\u5f8c\u51fa\u73fe\u4e86\u591a\u5c11\u76f8\u95dc\u7522\u54c1\uff1b",tipProductCount_2:"\u4f9b\u9700\u6bd4\uff1a=\u5e73\u5747\u65e5\u641c\u7d22\u91cf(\u9700\u6c42) / \u5546\u54c1\u6578(\u4f9b\u61c9)\uff0c\u7528\u65bc\u8a55\u4f30\u9700\u6c42\u7684\u5f37\u5ea6",tipProductCount_3:"\u5546\u54c1\u6578\u6bcf\u5468\u66f4\u65b0\uff0c\u4f9b\u9700\u6bd4\u6bcf\u65e5\u66f4\u65b0\u3002",avgPrice:"\u7522\u54c1\u5e73\u5747\u50f9\u683c",avgRatingScore:"\u5e73\u5747\u8a55\u5206\u6578",ratingCount:"\u8a55\u5206\u6578",tipAvgPrice_1:"\u8a72\u95dc\u9375\u8a5e\u5728Shopee\u641c\u7d22\u7d50\u679c\u524d3\u9801\uff08\u81ea\u7136\u641c\u7d22\u7d50\u679c\uff09\u7684\u7522\u54c1\u5e73\u5747\u50f9\u683c/\u8a55\u5206\u6578/\u8a55\u5206\u503c",tipAvgPrice_2:"\u8a72\u6578\u64da\u6bcf\u5468\u66f4\u65b0",ppcBid:"ppc\u7af6\u50f9",tipPpcBid_1:"\u8a72\u95dc\u9375\u8a5e\u5728Shopee\u7ad9\u5167\u6295\u653e\u5ee3\u544a\u6642\u7684\u5efa\u8b70\u50f9\u683c\uff0c\u8a72\u50f9\u683c\u53ef\u4ee5\u53cd\u6620\u5e02\u5834\u7af6\u722d\u5ea6\uff0c{br}\u4e5f\u53ef\u4ee5\u7528\u65bc\u8a55\u4f30\u71df\u92b7\u8cbb\u7528\u3002\u5efa\u8b70\u512a\u5148\u9078\u64c7\u51fa\u50f9\u4f4e\u4e14\u641c\u7d22\u91cf\u8f03\u9ad8\u7684\u95dc\u9375\u8a5e;<br/>",tipPpcBid_2:"\u6578\u64da\u6bcf\u65e5\u66f4\u65b0",updateDataWeek:"\u6578\u64da\u6bcf\u5468\u66f4\u65b0",noDataText:"\u7121\u66f4\u65b0",crossBorder:"\u8de8\u5883",local:"\u672c\u571f",soldNow:"\u5df2\u552e",mainImg:"\u4e3b\u5716",past30DayOfSalesAndSalesRevenue:"\u8fd130\u5929\u92b7\u91cf&\u92b7\u552e\u984d\u8a73\u60c5",video:"\u8996\u983b",relatedProduct:"\u76f8\u95dc\u7522\u54c1",loadedProducts:"\u5df2\u52a0\u8f09\u5546\u54c1\u6578",avgLoadedPrice:"\u5df2\u52a0\u8f09\u5546\u54c1\u6578\u5e73\u5747\u50f9\u683c",avgListingTime:"\u5e73\u5747\u4e0a\u67b6\u6642\u9593"},time:{day:"{day}\u5929",month:"{month}\u500b\u6708",year:"{year}\u5e74",oneMonth:"1\u500b\u6708",threeMonth:"3\u500b\u6708",sixMonth:"6\u500b\u6708",oneYear:"\u8fd1\u4e00\u5e74",twoYear:"\u8fd1\u5169\u5e74",numTwoYear:"\u8fd12\u5e74",numOneYear:"\u8fd11\u5e74",pastSixMonth:"\u8fd16\u500b\u6708",pastThreeMonth:"\u8fd13\u500b\u6708",pastOneMonth:"\u8fd11\u500b\u6708",thanTwoYear:"\u5169\u5e74\u4ee5\u4e0a"},sku:{skuSalesDetails:"SKU\u92b7\u91cf\u9810\u4f30",skuBtnMonitorTip:"\u76e3\u63a7",loginViewData:"\u767b\u9304\u67e5\u770b\u6578\u64da",viewSkuAnalysis:"\u67e5\u770bSKU\u5206\u6790\u5831\u544a",quantity:"\u5eab\u5b58",tipAnalysis:"\u67e5\u770b\u8a72Listing\u6240\u5c6c\u985e\u76ee\u7684\u5e02\u5834\u5206\u6790\uff0c\u9032\u884c\u6f5b\u529b\u5e02\u5834\u6316\u6398",tipPriceAnalysis:"\u6309\u7167\u7576\u524dLisiting\u7684\u552e\u50f9\u9032\u884c\u8ca8\u6e90\u7684\u5229\u6f64\u5206\u6790",tipKeyWordsAnalysis:"\u5c0d\u5df2\u9078\u64c7\u7522\u54c1listging\u9032\u884c\u667a\u80fd\u5206\u6790\uff0c\u5e6b\u52a9\u5bb6\u4e86\u89e3\u5df2\u9078\u64c7\u7522\u54c1\u4f7f\u7528\u7684\u9ad8\u983b\u95dc\u9375\u8a5e\u53ca\u95dc\u9375\u8a5e\u641c\u7d22\u91cf\uff0c\u638c\u63e1\u7af6\u54c1\u7684\u95dc\u9375\u8a5e\u9078\u64c7\uff0c\u8abf\u6574\u904b\u71df\u7b56\u7565",tipKeyWords:"\u67e5\u8a62\u81ea\u7136\u6d41\u91cf\u8a5e\u548c\u5ee3\u544a\u6d41\u91cf\u8a5e\uff0c\u4e86\u89e3\u6d41\u91cf\u7d50\u679c\u4ee5\u53ca\u7af6\u54c1\u6d41\u91cf\u4f48\u5c40",tipHistory:"\u67e5\u770b\u6b77\u53f2\u92b7\u91cf\u3001\u8a55\u50f9\u3001\u6392\u540d\u7b49\u8da8\u52e2\u8b8a\u5316\uff0c\u628a\u63e1\u6574\u9ad4\u8d70\u5411",tipProductSalesD30:"\u67e5\u770b\u7522\u54c1\u8fd1\u4e00\u500b\u6708\u7684\u92b7\u91cf\u548c\u92b7\u552e\u984d",tipHelpAnalysis:"\u5c0dLisitng\u9032\u884c\u667a\u80fd\u8a55\u8ad6\u5206\u6790\uff0c\u5e6b\u52a9\u5bb6\u78ba\u5b9a\u66a2\u92b7\u8b8a\u9ad4",tipOperation:"\u638c\u63e1\u7522\u54c1\u8ce3\u9ede\u3001\u7f3a\u9ede\u53ca\u61c9\u7528\u5834\u666f\uff0c\u5224\u65b7\u904b\u71df\u7b56\u7565",tipComprehensiveAnalysis:"\u5c0d\u7522\u54c1SKU\u9032\u884c\u7d9c\u5408\u5206\u6790\uff0c\u5e6b\u52a9\u78ba\u5b9a\u66a2\u92b7\u8b8a\u9ad4\uff0c",tipQuantity:"\u638c\u63e1\u9031\u671f\u6027\u92b7\u552e\u8da8\u52e2\uff0c\u5eab\u5b58\u7ba1\u7406\u3002",tipSkuComments:"\u4e00\u5065\u4e0b\u8f09Lisitng\u7684\u8a55\u8ad6\u5230\u672c\u5730\uff0c\u57fa\u65bc\u904b\u71df\u5834\u666f\u9032\u884c\u500b\u6027\u5316\u8a55\u8ad6\u5206\u6790",tipSource:"\u6309\u7167\u5716\u7247\u9032\u884c\u8ca8\u6e90\u641c\u7d22\uff0c\u652f\u63011688\u3001\u62fc\u591a\u591a\u6279\u767c\u3001<br/>1688\u570b\u8de8\u5883\u3001\u6dd8\u5bf6\u56db\u500b\u7ad9\u9ede\u7684\u8ca8\u6e90\u67e5\u627e",tipSearchImgByShopee:"\u901a\u904e\u8766\u76ae\u7684\u5716\u7247\u5c0d\u6bd4\u529f\u80fd\u5c0b\u627e\u7af6\u54c1\uff0c\u6d1e\u5bdf\u5e02\u5834\u7af6\u722d\u683c\u5c40",skuPrice:"SKU\u50f9\u683c",skuSold:"SKU\u92b7\u91cf\u9810\u4f30",skuSoldRate:"SKU\u92b7\u91cf\u4f54\u6bd4",skuQuantity:"SKU\u5eab\u5b58",marketTrend:"\u985e\u76ee\u8da8\u52e2",skuImage:"SKU Images",skuSalesFromRatingTip:"\u57fa\u65bc\u6700\u591a\u524d 300 \u689d\u8a55\u8ad6\u6578\u64da\u9810\u4f30",skuSalesFromRatingWarn:"\u57fa\u65bc\u6700\u591a\u524d 300 \u689d\u8a55\u8ad6\u9810\u4f30SKU\u92b7\u91cf\u53ca\u4f54\u6bd4\uff0c\u53ef\u901a\u904e\u300cAI\u8a55\u8ad6\u5206\u6790\u300d\u67e5\u770b\u591a\u81f33000 \u689d\u8a55\u8ad6\u7684\u6578\u64da\u5206\u6790"},analyse:{trafficAnalysis:"\u6d41\u91cf\u5206\u6790",titleAnalysis:"\u6a19\u984c\u5206\u6790",comprehensiveAnalysis:"\u7d9c\u5408\u5206\u6790",hijackingAnalysis:"\u8ddf\u8ce3\u5206\u6790",analysisRecord:"\u5206\u6790\u8a18\u9304",overallRating:"\u7d9c\u5408\u8a55\u50f9",marketAnalysis:"\u5e02\u5834\u5206\u6790",productReviewAnalysis:"\u7522\u54c1\u8a55\u8ad6\u5206\u6790",analyseTime:"\u5206\u6790\u6642\u9593",highFrequencyKeywords:"\u76f8\u95dc\u7522\u54c1\u9ad8\u983b\u95dc\u9375\u8a5e",analysisHistory:"\u5206\u6790\u6b77\u53f2",analysisSuccessful:"\u5206\u6790\u6210\u529f",analysisFailed:"\u5206\u6790\u5931\u6557",status:"\u72c0\u614b",name:"\u540d\u7a31",action:"\u64cd\u4f5c"},reviewAnalysisContent:{commentator:"\u8a55\u8ad6\u4eba",commentContent:"\u8a55\u8ad6\u5167\u5bb9",starRating:"\u661f\u7d1a",variant:"\u8b8a\u9ad4",variantPrice:"\u8b8a\u9ad4\u50f9\u683c",imgUrl:"\u5716\u7247\u93c8\u63a5",reviewImg:"\u5546\u54c1\u5716",reviewImg1:"\u5546\u54c1\u57161",reviewImg2:"\u5546\u54c1\u57162",reviewImg3:"\u5546\u54c1\u57163",videoUrl:"\u8996\u983b\u93c8\u63a5\u93c8\u63a5",commentTime:"\u8a55\u8ad6\u6642\u9593"},skuExcel:{name:"Sku\u540d\u7a31",price:"\u50f9\u683c",soldRate:"\u92b7\u91cf\u4f54\u6bd4",quantity:"\u5eab\u5b58",site:"\u7ad9"},tools:{download:"\u4e0b\u8f09",profitCalculator:"\u5229\u6f64\u8a08\u7b97\u5668",imagesSupplyPage:"\u5716\u641c\u8ca8\u6e90",exportToExcel:"\u5c0e\u51faExcel",downloadImg:"\u4e0b\u8f09\u5716\u7247\u8996\u983b",analyseValue:"AI\u8a55\u8ad6\u5206\u6790",queryAnalysis:"\u67e5\u770b\u5206\u6790",analysisInProgress:"\u5206\u6790\u4e2d...",downloadReviews:"\u8a55\u8ad6\u4e0b\u8f09",downloading:"\u4e0b\u8f09\u4e2d..",downloadNow:"\u7acb\u5373\u4e0b\u8f09",allTheMainImages:"\u5168\u9078\u4e3b\u5716",allSKUImages:"\u5168\u9078SKU\u5716",viewHighFrequencyWords:"\u67e5\u770b\u9ad8\u983b\u8a5e",viewHighFrequencyWordsTip:"\u9ad8\u983b\u95dc\u9375\u8a5e\u5206\u6790\u4e2d\uff0c\u8acb\u7a0d\u5f8c",viewHighFrequencyWordsWaitTip:"\u9810\u8a083-5\u5206\u9418\u5b8c\u6210\u6a19\u984c\u6536\u96c6\u8207\u5206\u6790\uff0c\u5206\u6790\u5b8c\u6210\u5f8c\u53ef\u76f4\u63a5\u5728\u7576\u524d\u9801\u9762\u67e5\u770b\u9ad8\u983b\u95dc\u9375\u8a5e\uff0c\u4e5f\u53ef\u4ee5\u5728\u6b77\u53f2\u8a18\u9304\u4e2d\u67e5\u770b\u3002",dateFormat:"YYYY\u5e74MM\u6708DD\u65e5",searchResultText:"\u641c\u7d22\u7d50\u679c\u9801\u7e3d\u89bd"},msg:{basicInfo:"\u57fa\u790e\u4fe1\u606f",copySuccess:"\u8907\u88fd\u6210\u529f",copyFail:"\u8907\u88fd\u5931\u6557",pddLogin:"\u67e5\u8a62\u62fc\u591a\u591a\u6279\u767c\u5546\u54c1\uff0c\u6309\u7167\u62fc\u591a\u591a\u6279\u767c\u8981\u6c42\uff0c\u9700\u8981\u5148\u8a2a\u554f\u62fc\u591a\u591a\u6279\u767c\u9801\u9762\u767b\u9304\u518d\u9032\u884c\u67e5\u8a62\u3002",pddLoginButton:"\u9ede\u64ca\u8a2a\u554f\u62fc\u591a\u591a\u6279\u767c\u767b\u9304",pddVerify:"\u62fc\u591a\u591a\u5b58\u5728\u6ed1\u52d5\u6821\u9a57\uff0c\u9700\u8981\u5148\u8a2a\u554f\u62fc\u591a\u591a\u6279\u767c\u9801\u9762\u6821\u9a57\u5f8c\u518d\u9032\u884c\u67e5\u8a62\u3002",pddVerifyButton:"\u9ede\u64ca\u8a2a\u554f\u62fc\u591a\u591a\u6279\u767c",retry:"\u91cd\u8a66",reselectImg:"\u91cd\u9078\u5716\u7247",viewScoreRate:"\u770b\u8a55\u5206\u60c5\u6cc1\uff0c\u4ee5\u53ca\u4e86\u89e3\u4e0d\u540c\u661f\u7d1a\u7684\u8a55\u5206\u4f54\u6bd4",noInclude:"\u7576\u524d\u7522\u54c1\u672a\u6536\u9304",searchTip:"\u9ede\u64ca\u7ad9\u5167\u641c\u7d22\u8a72\u54c1\u724c,\u70ba\u7121\u6642\u4e0d\u53ef\u641c\u7d22",searchShopTip:"\u9ede\u64ca\u9032\u5165\u8a72\u8ce3\u5bb6\u5e97\u92ea,\u672a\u6536\u9304\u6642\u4e0d\u53ef\u9ede\u64ca",clickProductDetail:"\u9ede\u64ca\u9032\u5165\u8a72\u5546\u54c1\u8a73\u60c5\u9801",clickCateSearchProduct:"\u9ede\u64ca\u6309\u7167\u985e\u76ee\u9032\u884c\u7522\u54c1\u641c\u7d22,\u672a\u6536\u9304\u6642\u4e0d\u53ef\u9ede\u64ca",downloadImgAndVideo:"\u4e00\u9375\u4e0b\u8f09\u7576\u524dListing\u7684\u4e3b\u5716\u548c\u8996\u983b\u5230\u672c\u5730",reloadPage:"\u5982\u679c\u5eab\u5b58\u70baN/A\uff0c\u8acb\u60a8\u767b\u9304\u8766\u76ae\u5f8c\u91cd\u65b0\u8a2a\u554f\u7576\u524d\u9801\u9762",analysisTitleTip:"\u5206\u6790\u548c\u512a\u5316\u8a72\u7522\u54c1\u6a19\u984c\uff0c\u63d0\u9ad8\u7522\u54c1\u6392\u540d\u3002",reviewColling:"\u8a55\u8ad6\u6536\u96c6\u4e2d\uff0c\u8acb\u7a0d\u5f8c",reviewCollectionTip:"\u9810\u8a083-5\u5206\u9418\u5b8c\u6210\u8a55\u8ad6\u6536\u96c6\u8207\u5206\u6790\uff0c\u5206\u6790\u5b8c\u6210\u5f8c\u53ef\u76f4\u63a5\u5728\u5916\u639b\u4e2d\u67e5\u770bAI\u8a55\u8ad6\u7e3d\u7d50\uff0c\u4e5f\u53ef\u4ee5\u8df3\u8f49\u7db2\u9801\u67e5\u770b\u5b8c\u6574\u7684\u5206\u6790\u5831\u544a",searchCountTip:"\u6708\u641c\u7d22\u91cf < 200\uff08\u5176\u4ed6\u539f\u56e0\u806f\u7e6b\u5ba2\u670d\uff09",searchImgBySource:"\u9ede\u64ca\u6309\u7167\u5716\u7247\u9032\u884c\u8ca8\u6e90\u641c\u7d22\uff0c\u652f\u63011688\u3001\u62fc\u591a\u591a\u6279\u767c",noneRecord:"\u66ab\u7121\u8a18\u9304",noneData:"\u66ab\u7121\u6578\u64da",shopdoraDownloadImgAndVideo:"Shopdora - \u5716\u7247\u8996\u983b\u4e0b\u8f09",downloadSuccess:"\u4e0b\u8f09\u6210\u529f",mainSkuImgVideo:"\u4e3b\u5716\u3001\u8996\u983b\u3001SKU\u5716",analyseKeyWord:"\u5206\u6790\u8a72\u95dc\u9375\u8a5e\u641c\u7d22\u7d50\u679c\u9801\u7522\u54c1\u6578\u64da\u3002\u9ed8\u8a8d\u5206\u6790\u7b2c\u4e00\u9801\uff0c\u7ffb\u9801\u53ef\u7372\u53d6\u66f4\u591a\u7522\u54c1\u6578\u64da\u3002",analyseLimitProductTip:"\u4ee5\u4e0b\u70ba\u7576\u524d\u980115\u500b\u5546\u54c1\u7684\u5206\u6790\u7d50\u679c\uff0c\u5347\u7d1a\u5957\u9910\u53ef\u5206\u6790\u66f4\u591a\u5546\u54c1",productKeyWordSalesTip:"\u9ed8\u8a8d\u52a0\u8f09\u7576\u524d\u9801\u9762\u6240\u6709\u5546\u54c1\uff0c\u5982\u9700\u52a0\u8f09\u66f4\u591a\u53ef\u9ede\u64ca\u7ffb\u9801\u6309\u9215\u3002",analyseLimitTip:"\u514d\u8cbb\u7528\u6236\u50c5\u8a08\u7b97\u524d 15 \u500b\u5546\u54c1\uff1b",notLoginShopeeTip:"\u672a\u767b\u9304 shopee \u50c5\u52a0\u8f09 shopdora \u5df2\u6536\u9304\u7522\u54c1",productKeyWordRevenueTip:"\u9ed8\u8a8d\u52a0\u7e3d\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u6b77\u53f2\u92b7\u552e\u984d\u3002",productKeyWordMothSalesTip:"\u9ed8\u8a8d\u52a0\u7e3d\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u6708\u92b7\u91cf\u3002",productKeyWordMothRevenueTip:"\u9ed8\u8a8d\u52a0\u7e3d\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u6708\u92b7\u552e\u984d\u3002",productKeyWordCountTip:"\u9ed8\u8a8d\u7d71\u8a08\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u6578\u3002",productKeyWordAveragePriceTip:"\u9ed8\u8a8d\u7d71\u8a08\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u7684\u5e73\u5747\u50f9\u683c\u3002",productKeyWordAverageTimeTip:"\u7d71\u8a08\u8a72\u95dc\u9375\u8a5e\u5df2\u52a0\u8f09\u5546\u54c1\u5e73\u5747\u4e0a\u67b6\u6642\u9593\u3002",fullDiscount:"\u6eff{}\u6e1b{}",copyMsgSuccess:"\u8907\u88fd{title}\u6210\u529f",copyMsgFail:"\u8907\u88fd{title}\u5931\u6557",exportProductDetail:"\u9ede\u64ca\u67e5\u770b\u5df2\u52a0\u8f09\u5546\u54c1\u8a73\u60c5\uff0c\u652f\u6301\u5c0e\u51fa",pleaseEnter:"\u8acb\u8f38\u5165",copyTitlePop:"\u8907\u88fd\u7576\u524d\u9801\u9762\u6240\u6709\u7522\u54c1\u6a19\u984c",copyUrlPop:"\u8907\u88fd\u7576\u524d\u9801\u9762\u6240\u6709\u7522\u54c1\u93c8\u63a5",upgradeMsg:"\u5347\u7d1a\u5957\u9910\u53ef\u5206\u6790\u66f4\u591a{upgradeMsg2}",upgradeMsg2:"\u3010\u5347\u7d1a\u6703\u54e1\u3011"},error:{monitorSize:"\u76e3\u63a7\u6b0a\u76ca\u6b21\u6578\u5df2\u6d88\u8017\u5b8c\u7562",monitorRetry:"\u76e3\u63a7\u5931\u6557\uff0c\u8acb\u91cd\u8a66",skuPriceNotFound:"\u8a55\u8ad6\u5206\u6790\u6642\u8a72sku\u5df2\u7d93\u4e0b\u67b6\uff0c\u56e0\u70ba\u672a\u67e5\u8a62\u5230sku\u50f9\u683c",keywordNotFound:"\u672a\u5339\u914d\u5230\u76f8\u95dc\u4fe1\u606f\uff0c\u8acb\u8df3\u8f49\u8766\u591a\u62c9\u7db2\u9801\u7248\u67e5\u770b\u95dc\u806f\u95dc\u9375\u8a5e",queryFailRetry:"\u67e5\u8a62\u5931\u6557\uff0c\u8acb\u91cd\u8a66",selectLogisticsChannel:"\u8acb\u9078\u64c7\u7269\u6d41\u6e20\u9053",inputProductWeight:"\u8acb\u8f38\u5165\u7522\u54c1\u91cd\u91cf",inputPurchasePrice:"\u8acb\u8f38\u5165\u63a1\u8cfc\u50f9",inputFreightForTheFirstLeg:"\u8acb\u8f38\u5165\u982d\u7a0b\u904b\u8cbb",inputCommissionRate:"\u8acb\u8f38\u5165\u4f63\u91d1\u8cbb\u7387",inputMarketingCost:"\u8acb\u8f38\u5165\u71df\u92b7\u8cbb",inputWithdrawalRate:"\u8acb\u8f38\u5165\u63d0\u73fe\u8cbb\u7387",inputReturnRate:"\u8acb\u8f38\u5165\u9000\u8ca8\u7387",inputReturnFee:"\u8acb\u8f38\u5165\u9000\u8ca8\u8cbb",inputProductPrice:"\u8acb\u8f38\u5165\u7522\u54c1\u552e\u50f9",inputNumber:"\u8acb\u8f38\u5165\u6578\u5b57",inputActivityCostInformation:"\u8acb\u8f38\u5165\u6d3b\u52d5\u6210\u672c\u4fe1\u606f",requestErr:"\u8acb\u6c42\u932f\u8aa4,\u8acb\u7a0d\u5f8c\u91cd\u8a66",loginError:"\u60a8\u7684\u8cec\u865f\u5df2\u5728\u53e6\u4e00\u53f0\u8a2d\u5099\u767b\u9304",requestTimeoutRetry:"\u8acb\u6c42\u8d85\u6642\uff0c\u8acb\u91cd\u8a66",requestTimeout:"\u8acb\u6c42\u8d85\u6642",zipError:"\u8acb\u5148\u9078\u64c7\u5716\u7247/\u8996\u983b/SKU\u5716",analysisProductError:"\u81f3\u5c11\u9078\u64c7\u5169\u500b\u7522\u54c1\u9032\u884c\u5206\u6790",systemBusyError:"\u7cfb\u7d71\u7e41\u5fd9\uff0c\u8acb\u7a0d\u5f8c\u91cd\u8a66"},countryArea:{tw:"\u53f0\u7063",sg:"\u65b0\u52a0\u5761",my:"\u99ac\u4f86\u897f\u4e9e",ph:"\u83f2\u5f8b\u8cd3",th:"\u6cf0\u570b",vn:"\u8d8a\u5357",br:"\u5df4\u897f",id:"\u5370\u5c3c",mx:"\u58a8\u897f\u54e5"},deliverChannel:{logisticsChannel:"\u7269\u6d41\u6e20\u9053",generalCargo:"\u666e\u8ca8",expressChannel:"\u7279\u5feb\u6e20\u9053",buyerSelfPickupChannel:"\u8cb7\u5bb6\u81ea\u53d6\u6e20\u9053",buyerSelfCollectionChannel:"\u8cb7\u5bb6\u81ea\u63d0\u6e20\u9053",selfPickupLockerChannel:"\u81ea\u63d0\u6ac3\u6e20\u9053",onlineSeaShippingChannel:"\u7dda\u4e0a\u6d77\u904b\u6e20\u9053",heavyGoods:"\u91cd\u8ca8",standardChannel:"\u6a19\u6e96\u6e20\u9053",standardChannel58008:"\u6a19\u6e96\u6e20\u9053(Channel 58008)",standardChannel78017:"\u6a19\u6e96\u6e20\u9053(Channel 78017)",maritimeEconomicChannel:"\u6d77\u904b\u7d93\u6fdf\u6e20\u9053",maritimeLargeCargoChannel:"\u6d77\u904b\u5927\u4ef6\u6e20\u9053",priorityChannel:"\u512a\u5148\u6e20\u9053",standardChannelMainland:"\u6a19\u6e96\u6e20\u9053 - \u5167\u5730",standardChannelHongKong:"\u6a19\u6e96\u6e20\u9053 - \u9999\u6e2f",standardChannelHongKong58012:"\u6a19\u6e96\u6e20\u9053 - \u9999\u6e2f(Channel 58012)",shopeeOverseas711TC:"\u8766\u76ae\u6d77\u5916 - 7-11",shopeeOverseasHiLifeAirFreightTC:"\u8766\u76ae\u6d77\u5916 - \u840a\u723e\u5bcc\uff08\u7a7a\u904b\uff09",shopeeOverseasHiLifeSeaFreightTC:"\u8766\u76ae\u6d77\u5916 - \u840a\u723e\u5bcc\uff08\u6d77\u904b\uff09",shopeeOverseasFamilyTC:"\u8766\u76ae\u6d77\u5916 - \u5168\u5bb6",shopeeOverseasHomeDelivery:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d",shopeeOverseasHomeDeliveryAirFreightTC:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d\uff08\u7a7a\u904b\uff09",shopeeOverseasHomeDeliverySeaFreightTC:"\u8766\u76ae\u6d77\u5916 - \u5b85\u914d\uff08\u6d77\u904b\uff09",shopeeOverseasShopeeStoreInstoreTC:"\u8766\u76ae\u6d77\u5916 - \u8766\u76ae\u5e97\u5230\u5e97",shopeeOverseasOKMARTSeaFreightTC:"\u8766\u76ae\u6d77\u5916 - OK MART\uff08\u6d77\u904b\uff09",lightGoods:"\u8f15\u8ca8",specialOffer:"\u7279\u8ca8",specialGoodsChannelTC:"\u7279\u8ca8\u6e20\u9053",specialGoodsChannel:"\u7279\u8ca8\u6e20\u9053"},productBasicInfo:{productList:"\u7522\u54c1\u5217\u8868",crossBorderLogisticsFee:"\u8de8\u5883\u7269\u6d41\u8cbb",site:"\u7ad9\u9ede",screening:"\u7be9\u9078",page:"\u9801",products:"\u7522\u54c1\u6578",sitTip:"\u9762\u5411\u4e0d\u540c\u570b\u5bb6\u7684\u5e02\u5834\uff0c\u53ef\u9078\u64c7\u67d0\u4e00\u7ad9\u9ede\u505a\u91dd\u5c0d\u6027\u7684\u8abf\u7814",currentExchangeRate:"\u7576\u524d\u532f\u7387",updateExchangeRate:"\u66f4\u65b0\u532f\u7387",currentExchangeRateTip:"\u7576\u524d\u532f\u7387\u5f9e\u5b98\u65b9\u7372\u53d6\u7372\u53d6\uff0c\u6bcf\u65e5\u66f4\u65b0\u3002\u4e5f\u53ef\u4ee5\u624b\u52d5\u9ede\u64ca\u66f4\u65b0\u7372\u53d6\u6700\u65b0\u532f\u7387",type:"\u7522\u54c1\u985e\u578b",typeTip:"\u548cshopee\u5b98\u7db2\u63d0\u4f9b\u7684\u7269\u6d41\u6e20\u9053\u4fdd\u6301\u4e00\u81f4\uff0c\u53ef\u8df3\u8f49https://shopee.org.cn/4990.html\u67e5\u770b<br/>shopee\u7684\u7269\u6d41\u8cbb\u5206\u70ba\u8ce3\u5bb6\u652f\u4ed8\u90e8\u5206\u548c\u8cb7\u5bb6\u652f\u4ed8\u90e8\u5206\uff0c\u9019\u88e1\u7684\u8de8\u5883\u7269\u6d41\u8cbb\u4e3b\u8981\u662f\u6307\u8ce3\u5bb6\u652f\u4ed8\u7684\u90e8\u5206",weight:"\u7522\u54c1\u91cd\u91cf",weightTip:"\u6839\u64dashopee SLS \u7269\u6d41\u7b56\u7565\uff0c\u91cd\u8981\u662f\u5f71\u97ff\u7269\u6d41\u8cbb\u7684\u91cd\u8981\u56e0\u7d20",purchasePrice:"\u63a1\u8cfc\u50f9",purchasePriceTip:"\u662f\u6307\u7522\u54c1\u5f9e\u4e0a\u6e38\u63a1\u8cfc\u7684\u7e3d\u6210\u672c",freightForTheFirstLeg:"\u982d\u7a0b\u904b\u8cbb",freightForTheFirstLegTip:"\u662f\u6307\u7522\u54c1\u5f9e\u8ce3\u5bb6\u767c\u653e\u5230shopee\u5009\u5eab\u7684\u904b\u8cbb",commissionRate:"\u4f63\u91d1\u8cbb\u7387",commissionRateTip:"shopee\u5e73\u53f0\u57fa\u65bc\u4ea4\u6613\u6536\u53d6\u7684\u4f63\u91d1\uff0c\u9ed8\u8a8d\u70ba6%",transactionRate:"\u4ea4\u6613\u8cbb\u7387",transactionRateTip:"shopee\u5e73\u53f0\u57fa\u65bc\u4ea4\u6613\u6536\u53d6\u7684\u4ea4\u6613\u624b\u7e8c\u8cbb\uff0c\u9ed8\u8a8d\u70ba2%",marketingRate:"\u71df\u92b7\u8cbb\u7387",marketingAmount:"\u71df\u92b7\u91d1\u984d",marketingRateTip:"\u8a72\u5546\u54c1\u63a8\u5ee3\u7684\u6240\u6709\u71df\u92b7\u6210\u672c\uff0c\u5305\u62ec\u7ad9\u5167\u5916\u63a8\u5ee3\u3001\u6d3b\u52d5\u7684\u6210\u672c",withdrawalFee:"\u63d0\u73fe\u624b\u7e8c\u8cbb",withdrawalFeeTip:"\u5c07\u4ea4\u6613\u6240\u5f97\u6b78\u8ce3\u5bb6\u6240\u5f97\u90e8\u5206\uff0c\u8de8\u5883\u652f\u4ed8\u6240\u9700\u8981\u7684\u63d0\u73fe\u624b\u7e8c\u8cbb\u7387",returnRate:"\u9000\u8ca8\u7387",returnRateTip:"\u7522\u54c1\u7531\u65bc\u6d88\u8cbb\u8005\u9000\u8ca8\u6703\u7d66\u8ce3\u5bb6\u5e36\u4f86\u984d\u5916\u6210\u672c\uff0c\u4e00\u822c\u5c0f\u5546\u54c1\u9000\u8ca8\u5546\u54c1\u5c31\u4e1f\u5931\uff0c\u5927\u5546\u54c1\u9000\u8ca8<br/>shopee\u5e73\u53f0\u4e5f\u6703\u6536\u53d6\u9000\u56de\u7684\u7269\u6d41\u6210\u672c\uff0c\u6240\u4ee5\u9000\u8ca8\u7387\u5c0d\u6210\u672c\u7684\u5f71\u97ff\u5f88\u5927\u3002\u8ce3\u5bb6\u53ef\u4ee5\u9810\u6e2c\u9000\u8ca8\u7387\u4f86\u9032\u884c\u5206\u6790\uff0c\u6216\u8005\u6839\u64da\u7522\u54c1\u7684\u5be6\u969b\u9000\u8ca8\u60c5\u6cc1\u8a2d\u7f6e\u9000\u8ca8\u7387\u4f86\u5206\u6790",commodityHandling:"\u5546\u54c1\u8655\u7406",commodityHandlingTip:"\u5546\u54c1\u9000\u8ca8\u4e00\u822c\u4e1f\u68c4\uff0c\u5927\u4ef6\u5546\u54c1\u6703\u63a1\u7528\u9000\u56de\u5883\u5167\u7684\u65b9\u5f0f\u3002\u4e0d\u540c\u7684\u65b9\u5f0f\uff0c\u552e\u5f8c\u6210\u672c\u4e0d\u4e00\u6a23<br>i. \u4e1f\u5931\uff1a\u9000\u8ca8\u640d\u5931=\uff08\u63a1\u8cfc\u50f9\uff09\u9000\u8ca8\u7387-\uff08\u4ea4\u6613\u8cbb+\u4f63\u91d1\uff09\u9000\u8ca8\u7387\uff0c\u4fdd\u7559\u5169\u4f4d\u5c0f\u6578<br>ii. \u9000\u56de\uff1a\u9000\u8ca8\u640d\u5931=\uff08\u9000\u8ca8\u8cbb\uff09\u9000\u8ca8\u7387-\uff08\u4ea4\u6613\u8cbb+\u4f63\u91d1\uff09\u9000\u8ca8\u7387\uff0c\u4fdd\u7559\u5169\u4f4d\u5c0f\u6578",returnFee:"\u9000\u8ca8\u8cbb",returnFeeTip:"\u7522\u54c1\u7531\u65bc\u6d88\u8cbb\u8005\u9000\u8ca8\u6703\u7d66\u8ce3\u5bb6\u5e36\u4f86\u984d\u5916\u6210\u672c\uff0c\u4e00\u822c\u5c0f\u5546\u54c1\u9000\u8ca8\u5546\u54c1\u5c31\u4e1f\u5931\uff0c\u5927\u5546\u54c1\u9000\u8ca8<br>shopee\u5e73\u53f0\u4e5f\u6703\u6536\u53d6\u9000\u56de\u7684\u7269\u6d41\u6210\u672c\uff0c\u6240\u4ee5\u9000\u8ca8\u7387\u5c0d\u6210\u672c\u7684\u5f71\u97ff\u5f88\u5927\u3002\u8ce3\u5bb6\u53ef\u4ee5\u9810\u6e2c\u9000\u8ca8\u7387\u4f86\u9032\u884c\u5206\u6790\uff0c\u6216\u8005\u6839\u64da\u7522\u54c1\u7684\u5be6\u969b\u9000\u8ca8\u60c5\u6cc1\u8a2d\u7f6e\u9000\u8ca8\u7387\u4f86\u5206\u6790",productPrice:"\u7522\u54c1\u552e\u50f9",productPriceTip:"\u662f\u6307\u5728shopee\u4e0a\u7684\u539f\u50f9",discount:"\u6298\u6263",discountTip:"\u662f\u6307\u5728shopee\u4e0a\u7684\u6298\u6263\u7387",profit:"\u5229\u6f64",productCost:"\u5546\u54c1\u6210\u672c",platformCost:"\u5e73\u53f0\u6210\u672c",transactionFeeRate:"\u4ea4\u6613\u624b\u7e8c\u8cbb\u7387",marketingCost:"\u71df\u92b7\u8cbb",monthlySearchVolume:"\u6708\u641c\u7d22\u91cf",searchVolume:"\u641c\u7d22\u91cf"},profit:{withdrawalHandlingFeeRate:"\u63d0\u73fe\u624b\u7e8c\u8cbb\u7387",activityCost:"\u6d3b\u52d5\u6210\u672c",fullReductionPromotion:"\u6eff\u6e1b\u6d3b\u52d5\uff1a",full:"\u6eff",reduce:"\u6e1b",afterSalesCost:"\u552e\u5f8c\u6210\u672c",income:"\u6536\u5165",example:"\u4f8b\uff1a10% off \u4ee3\u8868\u62539\u6298",calculate:"\u8a08\u7b97",profitRate:"\u5229\u6f64\u7387",profitValue:"\u5229\u6f64\u503c",profitCalculate:"\u5229\u6f64=\u6298\u6263\u5f8c\u7684\u552e\u50f9-\u6240\u6709\u6210\u672c\uff08\u63a1\u8cfc\u50f9+\u982d\u7a0b\u904b\u8cbb+\u4f63\u91d1+\u4ea4\u6613\u624b\u7e8c\u8cbb+\u71df\u92b7\u8cbb\u7528+\u63d0\u73fe\u624b\u7e8c\u8cbb+\u552e\u5f8c\u6210\u672c+\u8de8\u5883\u7269\u6d41\u8cbb\uff09",profitRateCalculate:"\u5229\u6f64\u7387=\uff08\u6298\u5f8c\u552e\u50f9-\u63a1\u8cfc\u50f9\uff09/\u63a1\u8cfc\u50f9*100%\uff0c\u56db\u6368\u4e94\u5165\u4fdd\u75592\u4f4d\u5c0f\u6578"},option:{discard:"\u4e1f\u68c4",return:"\u9000\u56de",selectProductType:"\u8acb\u9078\u64c7\u7522\u54c1\u985e\u578b",day:"\u6309\u65e5",week:"\u6309\u9031",month:"\u6309\u6708",downloadRules:"\u4e0b\u8f09\u898f\u5247",downloadByReviewTimePeriod:"\u6309\u7167\u8a55\u8ad6\u6642\u9593\u6bb5\u4e0b\u8f09",downloadByReviews:"\u6309\u7167\u8a55\u8ad6\u689d\u6578\u4e0b\u8f09",timePeriod:"\u6642\u9593\u6bb5",numberOfReviews:"\u8a55\u8ad6\u689d\u6578",downloadFirst100:"\u4e0b\u8f09\u524d100\u689d",downloadFirst200:"\u4e0b\u8f09\u524d300\u689d",downloadAll:"\u4e0b\u8f09\u5168\u90e8",organicRanking:"\u81ea\u7136\u6392\u540d",latest:"\u6700\u65b0",bestSelling:"\u6700\u71b1\u92b7",lowToHigh:"\u50f9\u683c\u5f9e\u4f4e\u81f3\u9ad8",highToLow:"\u50f9\u683c\u5f9e\u9ad8\u81f3\u4f4e",disabled:"\u7981\u7528",enabled:"\u555f\u7528"},ai:{sentimentSummary:"\u60c5\u611f\u532f\u7e3d",positive:"\u6b63\u9762",neutral:"\u4e2d\u6027",negative:"\u8ca0\u9762",sentimentWordList:"\u60c5\u611f\u8a5e\u8868",content:"\u5167\u5bb9",frequency:"\u51fa\u73fe\u6b21\u6578",count:"\u51fa\u73fe\u689d\u6578",aiReviewSummary:"AI\u8a55\u8ad6\u7e3d\u7d50",skuViewDetail:"SKU\u8a55\u8ad6\u8a73\u60c5\uff0c\u8a55\u8ad6\u661f\u7d1a\u4f54\u6bd4\uff0c\u8a55\u8ad6\u9ad8\u983b\u8a5e\u5217\u8868\uff0c\u5e6b\u52a9\u8ce3\u5bb6\u5224\u65b7\u904b\u71df\u7b56\u7565",goToWebDetail:"\u524d\u5f80web\u7aef\u67e5\u770b\u8a73\u60c5",sentimentAnalysis:"\u60c5\u611f\u5206\u6790",productSummary:"\u7522\u54c1\u7e3d\u7d50",usageScenarios:"\u4f7f\u7528\u5834\u666f",userAttractiveSellingPoints:"\u5438\u5f15\u7528\u6236\u7684\u8ce3\u9ede",productAdvantages:"\u7522\u54c1\u512a\u9ede",areasForImprovement:"\u5f85\u6539\u9032\u9ede",userExpectations:"\u7528\u6236\u671f\u5f85",noReviewsAvailable:"\u7576\u524d\u7522\u54c1\u66ab\u7121\u8a55\u8ad6",few50Reviews:"\u8a72\u7522\u54c1\u7d2f\u8a08\u8a55\u8ad6\u6578\u5c11\u65bc50\u689d\uff0c\u7121\u6cd5\u5c0d\u5176\u9032\u884c\u8a55\u8ad6\u7e3d\u7d50\uff0c\u8acb\u9078\u64c7\u5176\u4ed6\u7522\u54c1\u9032\u884c\u5206\u6790",userProfile:"\u7528\u6236\u753b\u50cf"},productList:{switchCurrency:"\u9ede\u64ca\u5207\u63db\u7f8e\u5143",switchToTheLocalCurrency:"\u9ede\u64ca\u5207\u63db\u672c\u571f\u8ca8\u5e63"},currency:{currencyGlobal:"CNY",currency:"\u7f8e\u5143",currencyCN:"\u7f8e\u5143",unit:"$",area:"us",switchCurrency:"\u9ede\u64ca\u5207\u63db\u7f8e\u5143",switchToTheLocalCurrency:"\u9ede\u64ca\u5207\u63db\u672c\u571f\u8ca8\u5e63",switchToTheCurrency:"\u9ede\u64ca\u5207\u63db\u672c\u7ad9\u8ca8\u5e63",skuPriceCalculate:"",currencyExchangeRate:"\u8ca8\u5e63\u532f\u7387",chinaBankExchangeRate:"\u592e\u884c\u532f\u7387",customExchangeRate:"\u81ea\u5b9a\u7fa9\u532f\u7387",exchangeTip:"\u8acb\u8f38\u51651\u5143\u4eba\u6c11\u5e63\u5c0d\u61c9\u7684\u672c\u571f\u8ca8\u5e63\u532f\u7387\uff08\u5c0f\u6578\u9ede\u5f8c3-8\u4f4d\uff09",mx:"\u58a8\u897f\u54e5\u6bd4\u7d22",id:"\u5370\u5c3c\u76fe",br:"\u5df4\u897f\u96f7\u4e9e\u723e",vn:"\u8d8a\u5357\u76fe",th:"\u6cf0\u9296",ph:"\u83f2\u5f8b\u8cd3\u6bd4\u7d22",my:"\u99ac\u5e63",sg:"\u65b0\u52a0\u5761\u5143",tw:"\u65b0\u53f0\u5e63"},profitCalculator:{currencyView:"{unit}{text}",exchangeRate:"\u8ca8\u5e63\u532f\u7387"},ads:{storeSource:"\u5e97\u92ea\u4f86\u6e90",noLimit:"\u4e0d\u9650",adsProduct:"\u5ee3\u544a\u7522\u54c1",searchProducts:"\u67e5\u8a62\u7522\u54c1",adRanking:"\u5ee3\u544a\u6392\u540d",noBrand:"\u7121\u54c1\u724c",regular:"\u666e\u901a",preferred:"\u512a\u9078",mallStore:"Mall\u5e97",productInformation:"\u7522\u54c1\u4fe1\u606f",reviewRate:"\u7559\u8a55\u7387",keywordSearch:"\u95dc\u9375\u8a5e\u641c\u7d22\u7522\u54c1\u5217\u8868"},review:{numberOfReviews:"\u8a55\u50f9\u6578",stars:"{number}\u661f",ratingDistribution:"\u8a55\u5206\u6578\u4f54\u6bd4"},listingTimeCharts:{listingTime0:"1\u6708",listingTime1:"3\u6708",listingTime2:"6\u6708",listingTime3:"1\u5e74",listingTime4:"2\u5e74",listingTime5:"2\u5e74+"},locationCharts:{local:"\u672c\u571f",crossBorder:"\u8de8\u5883"},shopTypeCharts:{normal:"\u666e\u901a",mall:"mall\u5e97",preferredPlus:"\u512a\u9078"},shopCateTopCharts:{cate:"\u5546\u54c1\u5206\u985e"},shopProductListingTimeCharts:{listingTime0:"7\u5929",listingTime1:"15\u5929",listingTime2:"30\u5929",listingTime5:"60\u5929"}}}}),rf=[{label:"\u4e2d\u6587",value:"zh"},{label:"English",value:"en"},{label:"Bahasa",value:"id"},{label:"Portugu\xeas",value:"pt"},{label:"\u4e2d\u6587(\u7e41\u9ad4)",value:"zh_tw"}];function af(e){let t=e.length;for(;--t>=0;)e[t]=0}const of=256,sf=286,lf=30,uf=15,cf=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),df=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ff=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),hf=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pf=new Array(576);af(pf);const mf=new Array(60);af(mf);const vf=new Array(512);af(vf);const gf=new Array(256);af(gf);const yf=new Array(29);af(yf);const bf=new Array(lf);function wf(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let xf,Sf,_f;function kf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}af(bf);const Af=e=>e<256?vf[e]:vf[256+(e>>>7)],Cf=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Tf=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,Cf(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Of=(e,t,n)=>{Tf(e,n[2*t],n[2*t+1])},If=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Pf=(e,t,n)=>{const r=new Array(16);let i,a,o=0;for(i=1;i<=uf;i++)o=o+n[i-1]<<1,r[i]=o;for(a=0;a<=t;a++){let t=e[2*a+1];0!==t&&(e[2*a]=If(r[t]++,t))}},Ef=e=>{let t;for(t=0;t<sf;t++)e.dyn_ltree[2*t]=0;for(t=0;t<lf;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Mf=e=>{e.bi_valid>8?Cf(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Df=(e,t,n,r)=>{const i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},Rf=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Df(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Df(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Lf=(e,t,n)=>{let r,i,a,o,s=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0===r?Of(e,i,t):(a=gf[i],Of(e,a+of+1,t),o=cf[a],0!==o&&(i-=yf[a],Tf(e,i,o)),r--,a=Af(r),Of(e,a,n),o=df[a],0!==o&&(r-=bf[a],Tf(e,r,o)))}while(s<e.sym_next);Of(e,256,t)},Nf=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems;let o,s,l,u=-1;for(e.heap_len=0,e.heap_max=573,o=0;o<a;o++)0!==n[2*o]?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):n[2*o+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,n[2*l]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[2*l+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)Rf(e,n,o);l=a;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Rf(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[2*l]=n[2*o]+n[2*s],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[2*o+1]=n[2*s+1]=l,e.heap[1]=l++,Rf(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let u,c,d,f,h,p,m=0;for(f=0;f<=uf;f++)e.bl_count[f]=0;for(n[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)c=e.heap[u],f=n[2*n[2*c+1]+1]+1,f>l&&(f=l,m++),n[2*c+1]=f,c>r||(e.bl_count[f]++,h=0,c>=s&&(h=o[c-s]),p=n[2*c],e.opt_len+=p*(f+h),a&&(e.static_len+=p*(i[2*c+1]+h)));if(0!==m){do{for(f=l-1;0===e.bl_count[f];)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[l]--,m-=2}while(m>0);for(f=l;0!==f;f--)for(c=e.bl_count[f];0!==c;)d=e.heap[--u],d>r||(n[2*d+1]!==f&&(e.opt_len+=(f-n[2*d+1])*n[2*d],n[2*d+1]=f),c--)}})(e,t),Pf(n,u,e.bl_count)},jf=(e,t,n)=>{let r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))},Ff=(e,t,n)=>{let r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{Of(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(Of(e,i,e.bl_tree),s--),Of(e,16,e.bl_tree),Tf(e,s-3,2)):s<=10?(Of(e,17,e.bl_tree),Tf(e,s-3,3)):(Of(e,18,e.bl_tree),Tf(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}};let zf=!1;const Bf=(e,t,n,r)=>{Tf(e,0+(r?1:0),3),Mf(e),Cf(e,n),Cf(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var Vf={_tr_init:e=>{zf||((()=>{let e,t,n,r,i;const a=new Array(16);for(n=0,r=0;r<28;r++)for(yf[r]=n,e=0;e<1<<cf[r];e++)gf[n++]=r;for(gf[n-1]=r,i=0,r=0;r<16;r++)for(bf[r]=i,e=0;e<1<<df[r];e++)vf[i++]=r;for(i>>=7;r<lf;r++)for(bf[r]=i<<7,e=0;e<1<<df[r]-7;e++)vf[256+i++]=r;for(t=0;t<=uf;t++)a[t]=0;for(e=0;e<=143;)pf[2*e+1]=8,e++,a[8]++;for(;e<=255;)pf[2*e+1]=9,e++,a[9]++;for(;e<=279;)pf[2*e+1]=7,e++,a[7]++;for(;e<=287;)pf[2*e+1]=8,e++,a[8]++;for(Pf(pf,287,a),e=0;e<lf;e++)mf[2*e+1]=5,mf[2*e]=If(e,5);xf=new wf(pf,cf,257,sf,uf),Sf=new wf(mf,df,0,lf,uf),_f=new wf(new Array(0),ff,0,19,7)})(),zf=!0),e.l_desc=new kf(e.dyn_ltree,xf),e.d_desc=new kf(e.dyn_dtree,Sf),e.bl_desc=new kf(e.bl_tree,_f),e.bi_buf=0,e.bi_valid=0,Ef(e)},_tr_stored_block:Bf,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<of;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Nf(e,e.l_desc),Nf(e,e.d_desc),o=(e=>{let t;for(jf(e,e.dyn_ltree,e.l_desc.max_code),jf(e,e.dyn_dtree,e.d_desc.max_code),Nf(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*hf[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?Bf(e,t,n,r):4===e.strategy||a===i?(Tf(e,2+(r?1:0),3),Lf(e,pf,mf)):(Tf(e,4+(r?1:0),3),((e,t,n,r)=>{let i;for(Tf(e,t-257,5),Tf(e,n-1,5),Tf(e,r-4,4),i=0;i<r;i++)Tf(e,e.bl_tree[2*hf[i]+1],3);Ff(e,e.dyn_ltree,t-1),Ff(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Lf(e,e.dyn_ltree,e.dyn_dtree)),Ef(e),r&&Mf(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(gf[n]+of+1)]++,e.dyn_dtree[2*Af(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{Tf(e,2,3),Of(e,256,pf),(e=>{16===e.bi_valid?(Cf(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var Hf=(e,t,n,r)=>{let i=65535&e,a=e>>>16&65535,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{i=i+t[r++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16};const Wf=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var Uf=(e,t,n,r)=>{const i=Wf,a=r+n;e^=-1;for(let o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},Xf={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Gf={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Yf,_tr_stored_block:Kf,_tr_flush_block:qf,_tr_tally:Zf,_tr_align:Jf}=Vf,{Z_NO_FLUSH:Qf,Z_PARTIAL_FLUSH:$f,Z_FULL_FLUSH:eh,Z_FINISH:th,Z_BLOCK:nh,Z_OK:rh,Z_STREAM_END:ih,Z_STREAM_ERROR:ah,Z_DATA_ERROR:oh,Z_BUF_ERROR:sh,Z_DEFAULT_COMPRESSION:lh,Z_FILTERED:uh,Z_HUFFMAN_ONLY:ch,Z_RLE:dh,Z_FIXED:fh,Z_DEFAULT_STRATEGY:hh,Z_UNKNOWN:ph,Z_DEFLATED:mh}=Gf,vh=258,gh=262,yh=42,bh=113,wh=666,xh=(e,t)=>(e.msg=Xf[t],t),Sh=e=>2*e-(e>4?9:0),_h=e=>{let t=e.length;for(;--t>=0;)e[t]=0},kh=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=i?n-i:0}while(--t);t=i,r=t;do{n=e.prev[--r],e.prev[r]=n>=i?n-i:0}while(--t)};let Ah=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const Ch=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Th=(e,t)=>{qf(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ch(e.strm)},Oh=(e,t)=>{e.pending_buf[e.pending++]=t},Ih=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Ph=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=Hf(e.adler,t,i,n):2===e.state.wrap&&(e.adler=Uf(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Eh=(e,t)=>{let n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-gh?e.strstart-(e.w_size-gh):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+vh;let h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,u[n+o]===p&&u[n+o-1]===h&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<f);if(r=vh-(f-a),a=f-vh,r>o){if(e.match_start=t,o=r,r>=s)break;h=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead},Mh=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-gh)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),kh(e),r+=t),0===e.strm.avail_in)break;if(n=Ph(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ah(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ah(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<gh&&0!==e.strm.avail_in)},Dh=(e,t)=>{let n,r,i,a=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<a&&(0===n&&t!==th||t===Qf||n!==r+e.strm.avail_in))break;o=t===th&&n===r+e.strm.avail_in?1:0,Kf(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Ch(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Ph(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==Qf&&t!==th&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Ph(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,a=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=a||(r||t===th)&&t!==Qf&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,o=t===th&&0===e.strm.avail_in&&n===r?1:0,Kf(e,e.block_start,n,o),e.block_start+=n,Ch(e.strm)),o?3:1)},Rh=(e,t)=>{let n,r;for(;;){if(e.lookahead<gh){if(Mh(e),e.lookahead<gh&&t===Qf)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Ah(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-gh&&(e.match_length=Eh(e,n)),e.match_length>=3)if(r=Zf(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Ah(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ah(e,e.ins_h,e.window[e.strstart+1]);else r=Zf(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Th(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===th?(Th(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Th(e,!1),0===e.strm.avail_out)?1:2},Lh=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<gh){if(Mh(e),e.lookahead<gh&&t===Qf)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Ah(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-gh&&(e.match_length=Eh(e,n),e.match_length<=5&&(e.strategy===uh||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=Zf(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=Ah(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Th(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=Zf(e,0,e.window[e.strstart-1]),r&&Th(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Zf(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===th?(Th(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Th(e,!1),0===e.strm.avail_out)?1:2};function Nh(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const jh=[new Nh(0,0,0,0,Dh),new Nh(4,4,8,4,Rh),new Nh(4,5,16,8,Rh),new Nh(4,6,32,32,Rh),new Nh(4,4,16,16,Lh),new Nh(8,16,32,32,Lh),new Nh(8,16,128,128,Lh),new Nh(8,32,128,256,Lh),new Nh(32,128,258,1024,Lh),new Nh(32,258,258,4096,Lh)];function Fh(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mh,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),_h(this.dyn_ltree),_h(this.dyn_dtree),_h(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),_h(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),_h(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const zh=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==yh&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==bh&&t.status!==wh?1:0},Bh=e=>{if(zh(e))return xh(e,ah);e.total_in=e.total_out=0,e.data_type=ph;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?yh:bh,e.adler=2===t.wrap?0:1,t.last_flush=-2,Yf(t),rh},Vh=e=>{const t=Bh(e);var n;return t===rh&&((n=e.state).window_size=2*n.w_size,_h(n.head),n.max_lazy_match=jh[n.level].max_lazy,n.good_match=jh[n.level].good_length,n.nice_match=jh[n.level].nice_length,n.max_chain_length=jh[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Hh=(e,t,n,r,i,a)=>{if(!e)return ah;let o=1;if(t===lh&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||n!==mh||r<8||r>15||t<0||t>9||a<0||a>fh||8===r&&1!==o)return xh(e,ah);8===r&&(r=9);const s=new Fh;return e.state=s,s.strm=e,s.status=yh,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=a,s.method=n,Vh(e)};var Wh={deflateInit:(e,t)=>Hh(e,t,mh,15,8,hh),deflateInit2:Hh,deflateReset:Vh,deflateResetKeep:Bh,deflateSetHeader:(e,t)=>zh(e)||2!==e.state.wrap?ah:(e.state.gzhead=t,rh),deflate:(e,t)=>{if(zh(e)||t>nh||t<0)return e?xh(e,ah):ah;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===wh&&t!==th)return xh(e,0===e.avail_out?sh:ah);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Ch(e),0===e.avail_out)return n.last_flush=-1,rh}else if(0===e.avail_in&&Sh(t)<=Sh(r)&&t!==th)return xh(e,sh);if(n.status===wh&&0!==e.avail_in)return xh(e,sh);if(n.status===yh&&0===n.wrap&&(n.status=bh),n.status===yh){let t=mh+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=ch||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Ih(n,t),0!==n.strstart&&(Ih(n,e.adler>>>16),Ih(n,65535&e.adler)),e.adler=1,n.status=bh,Ch(e),0!==n.pending)return n.last_flush=-1,rh}if(57===n.status)if(e.adler=0,Oh(n,31),Oh(n,139),Oh(n,8),n.gzhead)Oh(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Oh(n,255&n.gzhead.time),Oh(n,n.gzhead.time>>8&255),Oh(n,n.gzhead.time>>16&255),Oh(n,n.gzhead.time>>24&255),Oh(n,9===n.level?2:n.strategy>=ch||n.level<2?4:0),Oh(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Oh(n,255&n.gzhead.extra.length),Oh(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Uf(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Oh(n,0),Oh(n,0),Oh(n,0),Oh(n,0),Oh(n,0),Oh(n,9===n.level?2:n.strategy>=ch||n.level<2?4:0),Oh(n,3),n.status=bh,Ch(e),0!==n.pending)return n.last_flush=-1,rh;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Ch(e),0!==n.pending)return n.last_flush=-1,rh;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-r,r)),Ch(e),0!==n.pending)return n.last_flush=-1,rh;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Oh(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-r,r)),Ch(e),0!==n.pending)return n.last_flush=-1,rh;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Oh(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Uf(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ch(e),0!==n.pending))return n.last_flush=-1,rh;Oh(n,255&e.adler),Oh(n,e.adler>>8&255),e.adler=0}if(n.status=bh,Ch(e),0!==n.pending)return n.last_flush=-1,rh}if(0!==e.avail_in||0!==n.lookahead||t!==Qf&&n.status!==wh){let r=0===n.level?Dh(n,t):n.strategy===ch?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Mh(e),0===e.lookahead)){if(t===Qf)return 1;break}if(e.match_length=0,n=Zf(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Th(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===th?(Th(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Th(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===dh?((e,t)=>{let n,r,i,a;const o=e.window;for(;;){if(e.lookahead<=vh){if(Mh(e),e.lookahead<=vh&&t===Qf)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+vh;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=vh-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Zf(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Zf(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Th(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===th?(Th(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Th(e,!1),0===e.strm.avail_out)?1:2})(n,t):jh[n.level].func(n,t);if(3!==r&&4!==r||(n.status=wh),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),rh;if(2===r&&(t===$f?Jf(n):t!==nh&&(Kf(n,0,0,!1),t===eh&&(_h(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ch(e),0===e.avail_out))return n.last_flush=-1,rh}return t!==th?rh:n.wrap<=0?ih:(2===n.wrap?(Oh(n,255&e.adler),Oh(n,e.adler>>8&255),Oh(n,e.adler>>16&255),Oh(n,e.adler>>24&255),Oh(n,255&e.total_in),Oh(n,e.total_in>>8&255),Oh(n,e.total_in>>16&255),Oh(n,e.total_in>>24&255)):(Ih(n,e.adler>>>16),Ih(n,65535&e.adler)),Ch(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?rh:ih)},deflateEnd:e=>{if(zh(e))return ah;const t=e.state.status;return e.state=null,t===bh?xh(e,oh):rh},deflateSetDictionary:(e,t)=>{let n=t.length;if(zh(e))return ah;const r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==yh||r.lookahead)return ah;if(1===i&&(e.adler=Hf(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(_h(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Mh(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=Ah(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,Mh(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,rh},deflateInfo:"pako deflate (from Nodeca project)"};const Uh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Xh=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Uh(n,t)&&(e[t]=n[t])}}return e},Gh=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,a=e.length;r<a;r++){let t=e[r];n.set(t,i),i+=t.length}return n};let Yh=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(AJe){Yh=!1}const Kh=new Uint8Array(256);for(let $=0;$<256;$++)Kh[$]=$>=252?6:$>=248?5:$>=240?4:$>=224?3:$>=192?2:1;Kh[254]=Kh[254]=1;var qh=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),55296==(64512&n)&&i+1<o&&(r=e.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),55296==(64512&n)&&i+1<o&&(r=e.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},Zh=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,i;const a=new Array(2*n);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=Kh[t];if(o>4)a[i++]=65533,r+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&r<n;)t=t<<6|63&e[r++],o--;o>1?a[i++]=65533:t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Yh)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(a,i)},Jh=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Kh[e[n]]>t?n:t};var Qh=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const $h=Object.prototype.toString,{Z_NO_FLUSH:ep,Z_SYNC_FLUSH:tp,Z_FULL_FLUSH:np,Z_FINISH:rp,Z_OK:ip,Z_STREAM_END:ap,Z_DEFAULT_COMPRESSION:op,Z_DEFAULT_STRATEGY:sp,Z_DEFLATED:lp}=Gf;function up(e){this.options=Xh({level:op,method:lp,chunkSize:16384,windowBits:15,memLevel:8,strategy:sp},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qh,this.strm.avail_out=0;let n=Wh.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==ip)throw new Error(Xf[n]);if(t.header&&Wh.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?qh(t.dictionary):"[object ArrayBuffer]"===$h.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Wh.deflateSetDictionary(this.strm,e),n!==ip)throw new Error(Xf[n]);this._dict_set=!0}}function cp(e,t){const n=new up(t);if(n.push(e,!0),n.err)throw n.msg||Xf[n.err];return n.result}up.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,a;if(this.ended)return!1;for(a=t===~~t?t:!0===t?rp:ep,"string"==typeof e?n.input=qh(e):"[object ArrayBuffer]"===$h.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===tp||a===np)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=Wh.deflate(n,a),i===ap)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Wh.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===ip;if(0!==n.avail_out){if(a>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},up.prototype.onData=function(e){this.chunks.push(e)},up.prototype.onEnd=function(e){e===ip&&(this.result=Gh(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var dp=function(e,t){return(t=t||{}).raw=!0,cp(e,t)},fp=function(e,t){return(t=t||{}).gzip=!0,cp(e,t)},hp={Deflate:up,deflate:cp,deflateRaw:dp,gzip:fp};const pp=16209;var mp=function(e,t){let n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,w,x,S,_,k,A;const C=e.state;n=e.next_in,k=e.input,r=n+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=C.dmax,l=C.wsize,u=C.whave,c=C.wnext,d=C.window,f=C.hold,h=C.bits,p=C.lencode,m=C.distcode,v=(1<<C.lenbits)-1,g=(1<<C.distbits)-1;e:do{h<15&&(f+=k[n++]<<h,h+=8,f+=k[n++]<<h,h+=8),y=p[f&v];t:for(;;){if(b=y>>>24,f>>>=b,h-=b,b=y>>>16&255,0===b)A[i++]=65535&y;else{if(!(16&b)){if(64&b){if(32&b){C.mode=16191;break e}e.msg="invalid literal/length code",C.mode=pp;break e}y=p[(65535&y)+(f&(1<<b)-1)];continue t}for(w=65535&y,b&=15,b&&(h<b&&(f+=k[n++]<<h,h+=8),w+=f&(1<<b)-1,f>>>=b,h-=b),h<15&&(f+=k[n++]<<h,h+=8,f+=k[n++]<<h,h+=8),y=m[f&g];;){if(b=y>>>24,f>>>=b,h-=b,b=y>>>16&255,16&b){if(x=65535&y,b&=15,h<b&&(f+=k[n++]<<h,h+=8,h<b&&(f+=k[n++]<<h,h+=8)),x+=f&(1<<b)-1,x>s){e.msg="invalid distance too far back",C.mode=pp;break e}if(f>>>=b,h-=b,b=i-a,x>b){if(b=x-b,b>u&&C.sane){e.msg="invalid distance too far back",C.mode=pp;break e}if(S=0,_=d,0===c){if(S+=l-b,b<w){w-=b;do{A[i++]=d[S++]}while(--b);S=i-x,_=A}}else if(c<b){if(S+=l+c-b,b-=c,b<w){w-=b;do{A[i++]=d[S++]}while(--b);if(S=0,c<w){b=c,w-=b;do{A[i++]=d[S++]}while(--b);S=i-x,_=A}}}else if(S+=c-b,b<w){w-=b;do{A[i++]=d[S++]}while(--b);S=i-x,_=A}for(;w>2;)A[i++]=_[S++],A[i++]=_[S++],A[i++]=_[S++],w-=3;w&&(A[i++]=_[S++],w>1&&(A[i++]=_[S++]))}else{S=i-x;do{A[i++]=A[S++],A[i++]=A[S++],A[i++]=A[S++],w-=3}while(w>2);w&&(A[i++]=A[S++],w>1&&(A[i++]=A[S++]))}break}if(64&b){e.msg="invalid distance code",C.mode=pp;break e}y=m[(65535&y)+(f&(1<<b)-1)]}}break}}while(n<r&&i<o);w=h>>3,n-=w,h-=w<<3,f&=(1<<h)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<o?o-i+257:257-(i-o),C.hold=f,C.bits=h};const vp=15,gp=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),yp=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),bp=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),wp=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var xp=(e,t,n,r,i,a,o,s)=>{const l=s.bits;let u,c,d,f,h,p,m=0,v=0,g=0,y=0,b=0,w=0,x=0,S=0,_=0,k=0,A=null;const C=new Uint16Array(16),T=new Uint16Array(16);let O,I,P,E=null;for(m=0;m<=vp;m++)C[m]=0;for(v=0;v<r;v++)C[t[n+v]]++;for(b=l,y=vp;y>=1&&0===C[y];y--);if(b>y&&(b=y),0===y)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(g=1;g<y&&0===C[g];g++);for(b<g&&(b=g),S=1,m=1;m<=vp;m++)if(S<<=1,S-=C[m],S<0)return-1;if(S>0&&(0===e||1!==y))return-1;for(T[1]=0,m=1;m<vp;m++)T[m+1]=T[m]+C[m];for(v=0;v<r;v++)0!==t[n+v]&&(o[T[t[n+v]]++]=v);if(0===e?(A=E=o,p=20):1===e?(A=gp,E=yp,p=257):(A=bp,E=wp,p=0),k=0,v=0,m=g,h=a,w=b,x=0,d=-1,_=1<<b,f=_-1,1===e&&_>852||2===e&&_>592)return 1;for(;;){O=m-x,o[v]+1<p?(I=0,P=o[v]):o[v]>=p?(I=E[o[v]-p],P=A[o[v]-p]):(I=96,P=0),u=1<<m-x,c=1<<w,g=c;do{c-=u,i[h+(k>>x)+c]=O<<24|I<<16|P}while(0!==c);for(u=1<<m-1;k&u;)u>>=1;if(0!==u?(k&=u-1,k+=u):k=0,v++,0===--C[m]){if(m===y)break;m=t[n+o[v]]}if(m>b&&(k&f)!==d){for(0===x&&(x=b),h+=g,w=m-x,S=1<<w;w+x<y&&(S-=C[w+x],!(S<=0));)w++,S<<=1;if(_+=1<<w,1===e&&_>852||2===e&&_>592)return 1;d=k&f,i[d]=b<<24|w<<16|h-a}}return 0!==k&&(i[h+k]=m-x<<24|64<<16),s.bits=b,0};const{Z_FINISH:Sp,Z_BLOCK:_p,Z_TREES:kp,Z_OK:Ap,Z_STREAM_END:Cp,Z_NEED_DICT:Tp,Z_STREAM_ERROR:Op,Z_DATA_ERROR:Ip,Z_MEM_ERROR:Pp,Z_BUF_ERROR:Ep,Z_DEFLATED:Mp}=Gf,Dp=16180,Rp=16190,Lp=16191,Np=16192,jp=16194,Fp=16199,zp=16200,Bp=16206,Vp=16209,Hp=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Wp(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Up=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Dp||t.mode>16211?1:0},Xp=e=>{if(Up(e))return Op;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Dp,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Ap},Gp=e=>{if(Up(e))return Op;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Xp(e)},Yp=(e,t)=>{let n;if(Up(e))return Op;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Op:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Gp(e))},Kp=(e,t)=>{if(!e)return Op;const n=new Wp;e.state=n,n.strm=e,n.window=null,n.mode=Dp;const r=Yp(e,t);return r!==Ap&&(e.state=null),r};let qp,Zp,Jp=!0;const Qp=e=>{if(Jp){qp=new Int32Array(512),Zp=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(xp(1,e.lens,0,288,qp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;xp(2,e.lens,0,32,Zp,0,e.work,{bits:5}),Jp=!1}e.lencode=qp,e.lenbits=9,e.distcode=Zp,e.distbits=5},$p=(e,t,n,r)=>{let i;const a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var em={inflateReset:Gp,inflateReset2:Yp,inflateResetKeep:Xp,inflateInit:e=>Kp(e,15),inflateInit2:Kp,inflate:(e,t)=>{let n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,w,x,S,_,k=0;const A=new Uint8Array(4);let C,T;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Up(e)||!e.output||!e.input&&0!==e.avail_in)return Op;n=e.state,n.mode===Lp&&(n.mode=Np),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,d=s,f=l,_=Ap;e:for(;;)switch(n.mode){case Dp:if(0===n.wrap){n.mode=Np;break}for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){0===n.wbits&&(n.wbits=15),n.check=0,A[0]=255&u,A[1]=u>>>8&255,n.check=Uf(n.check,A,2,0),u=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Vp;break}if((15&u)!==Mp){e.msg="unknown compression method",n.mode=Vp;break}if(u>>>=4,c-=4,S=8+(15&u),0===n.wbits&&(n.wbits=S),S>15||S>n.wbits){e.msg="invalid window size",n.mode=Vp;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&u?16189:Lp,u=0,c=0;break;case 16181:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.flags=u,(255&n.flags)!==Mp){e.msg="unknown compression method",n.mode=Vp;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Vp;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&4&n.wrap&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Uf(n.check,A,2,0)),u=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&4&n.wrap&&(A[0]=255&u,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,n.check=Uf(n.check,A,4,0)),u=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&4&n.wrap&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Uf(n.check,A,2,0)),u=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&4&n.wrap&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Uf(n.check,A,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(h=n.length,h>s&&(h=s),h&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+h),S)),512&n.flags&&4&n.wrap&&(n.check=Uf(n.check,r,h,a)),s-=h,a+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;h=0;do{S=r[a+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S))}while(S&&h<s);if(512&n.flags&&4&n.wrap&&(n.check=Uf(n.check,r,h,a)),s-=h,a+=h,S)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;h=0;do{S=r[a+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S))}while(S&&h<s);if(512&n.flags&&4&n.wrap&&(n.check=Uf(n.check,r,h,a)),s-=h,a+=h,S)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(4&n.wrap&&u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Vp;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Lp;break;case 16189:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}e.adler=n.check=Hp(u),u=0,c=0,n.mode=Rp;case Rp:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Tp;e.adler=n.check=1,n.mode=Lp;case Lp:if(t===_p||t===kp)break e;case Np:if(n.last){u>>>=7&c,c-=7&c,n.mode=Bp;break}for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,u>>>=1,c-=1,3&u){case 0:n.mode=16193;break;case 1:if(Qp(n),n.mode=Fp,t===kp){u>>>=2,c-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Vp}u>>>=2,c-=2;break;case 16193:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Vp;break}if(n.length=65535&u,u=0,c=0,n.mode=jp,t===kp)break e;case jp:n.mode=16195;case 16195:if(h=n.length,h){if(h>s&&(h=s),h>l&&(h=l),0===h)break e;i.set(r.subarray(a,a+h),o),s-=h,a+=h,l-=h,o+=h,n.length-=h;break}n.mode=Lp;break;case 16196:for(;c<14;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.nlen=257+(31&u),u>>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Vp;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.lens[O[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},_=xp(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,_){e.msg="invalid code lengths set",n.mode=Vp;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;k=n.lencode[u&(1<<n.lenbits)-1],v=k>>>24,g=k>>>16&255,y=65535&k,!(v<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(y<16)u>>>=v,c-=v,n.lens[n.have++]=y;else{if(16===y){for(T=v+2;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u>>>=v,c-=v,0===n.have){e.msg="invalid bit length repeat",n.mode=Vp;break}S=n.lens[n.have-1],h=3+(3&u),u>>>=2,c-=2}else if(17===y){for(T=v+3;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=v,c-=v,S=0,h=3+(7&u),u>>>=3,c-=3}else{for(T=v+7;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=v,c-=v,S=0,h=11+(127&u),u>>>=7,c-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Vp;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===Vp)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Vp;break}if(n.lenbits=9,C={bits:n.lenbits},_=xp(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,_){e.msg="invalid literal/lengths set",n.mode=Vp;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},_=xp(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,_){e.msg="invalid distances set",n.mode=Vp;break}if(n.mode=Fp,t===kp)break e;case Fp:n.mode=zp;case zp:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,mp(e,f),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===Lp&&(n.back=-1);break}for(n.back=0;k=n.lencode[u&(1<<n.lenbits)-1],v=k>>>24,g=k>>>16&255,y=65535&k,!(v<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(g&&!(240&g)){for(b=v,w=g,x=y;k=n.lencode[x+((u&(1<<b+w)-1)>>b)],v=k>>>24,g=k>>>16&255,y=65535&k,!(b+v<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=v,c-=v,n.back+=v,n.length=y,0===g){n.mode=16205;break}if(32&g){n.back=-1,n.mode=Lp;break}if(64&g){e.msg="invalid literal/length code",n.mode=Vp;break}n.extra=15&g,n.mode=16201;case 16201:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;k=n.distcode[u&(1<<n.distbits)-1],v=k>>>24,g=k>>>16&255,y=65535&k,!(v<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(!(240&g)){for(b=v,w=g,x=y;k=n.distcode[x+((u&(1<<b+w)-1)>>b)],v=k>>>24,g=k>>>16&255,y=65535&k,!(b+v<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=v,c-=v,n.back+=v,64&g){e.msg="invalid distance code",n.mode=Vp;break}n.offset=y,n.extra=15&g,n.mode=16203;case 16203:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Vp;break}n.mode=16204;case 16204:if(0===l)break e;if(h=f-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Vp;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=i,p=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do{i[o++]=m[p++]}while(--h);0===n.length&&(n.mode=zp);break;case 16205:if(0===l)break e;i[o++]=n.length,l--,n.mode=zp;break;case Bp:if(n.wrap){for(;c<32;){if(0===s)break e;s--,u|=r[a++]<<c,c+=8}if(f-=l,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=n.flags?Uf(n.check,i,f,o-f):Hf(n.check,i,f,o-f)),f=l,4&n.wrap&&(n.flags?u:Hp(u))!==n.check){e.msg="incorrect data check",n.mode=Vp;break}u=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(4&n.wrap&&u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Vp;break}u=0,c=0}n.mode=16208;case 16208:_=Cp;break e;case Vp:_=Ip;break e;case 16210:return Pp;default:return Op}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,(n.wsize||f!==e.avail_out&&n.mode<Vp&&(n.mode<Bp||t!==Sp))&&$p(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=n.flags?Uf(n.check,i,f,e.next_out-f):Hf(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Lp?128:0)+(n.mode===Fp||n.mode===jp?256:0),(0===d&&0===f||t===Sp)&&_===Ap&&(_=Ep),_},inflateEnd:e=>{if(Up(e))return Op;let t=e.state;return t.window&&(t.window=null),e.state=null,Ap},inflateGetHeader:(e,t)=>{if(Up(e))return Op;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,Ap):Op},inflateSetDictionary:(e,t)=>{const n=t.length;let r,i,a;return Up(e)?Op:(r=e.state,0!==r.wrap&&r.mode!==Rp?Op:r.mode===Rp&&(i=1,i=Hf(i,t,n,0),i!==r.check)?Ip:(a=$p(e,t,n,n),a?(r.mode=16210,Pp):(r.havedict=1,Ap)))},inflateInfo:"pako inflate (from Nodeca project)"};var tm=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const nm=Object.prototype.toString,{Z_NO_FLUSH:rm,Z_FINISH:im,Z_OK:am,Z_STREAM_END:om,Z_NEED_DICT:sm,Z_STREAM_ERROR:lm,Z_DATA_ERROR:um,Z_MEM_ERROR:cm}=Gf;function dm(e){this.options=Xh({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qh,this.strm.avail_out=0;let n=em.inflateInit2(this.strm,t.windowBits);if(n!==am)throw new Error(Xf[n]);if(this.header=new tm,em.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=qh(t.dictionary):"[object ArrayBuffer]"===nm.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=em.inflateSetDictionary(this.strm,t.dictionary),n!==am)))throw new Error(Xf[n])}function fm(e,t){const n=new dm(t);if(n.push(e),n.err)throw n.msg||Xf[n.err];return n.result}dm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(o=t===~~t?t:!0===t?im:rm,"[object ArrayBuffer]"===nm.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=em.inflate(n,o),a===sm&&i&&(a=em.inflateSetDictionary(n,i),a===am?a=em.inflate(n,o):a===um&&(a=sm));n.avail_in>0&&a===om&&n.state.wrap>0&&0!==e[n.next_in];)em.inflateReset(n),a=em.inflate(n,o);switch(a){case lm:case um:case sm:case cm:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||a===om))if("string"===this.options.to){let e=Jh(n.output,n.next_out),t=n.next_out-e,i=Zh(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(a!==am||0!==s){if(a===om)return a=em.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},dm.prototype.onData=function(e){this.chunks.push(e)},dm.prototype.onEnd=function(e){e===am&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gh(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var hm=function(e,t){return(t=t||{}).raw=!0,fm(e,t)},pm={Inflate:dm,inflate:fm,inflateRaw:hm,ungzip:fm};const{Deflate:mm,deflate:vm,deflateRaw:gm,gzip:ym}=hp,{Inflate:bm,inflate:wm,inflateRaw:xm,ungzip:Sm}=pm;var _m={Deflate:mm,deflate:vm,deflateRaw:gm,gzip:ym,Inflate:bm,inflate:wm,inflateRaw:xm,ungzip:Sm,constants:Gf};const km="data:image/png;base64, ";
/*!
    * @soerenmartius/vue3-clipboard v0.1.2
    * (c) 2021 Soeren Martius
    * @license MIT
    */"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Am(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cm,Tm,Om,Im=(Cm=function(e,t){
/*!
     * clipboard.js v2.0.6
     * https://clipboardjs.com/
     * 
     * Licensed MIT © Zeno Rocha
     */
var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,a)}))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){n.r(t);var r=n(0),i=n.n(r),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),l=s,u=n(1),c=n.n(u),d=n(2),f=n.n(d),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=f()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){var t=v("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(c.a);function v(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=m}]).default},e.exports=n()},Cm(Om={path:Tm,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&Om.path)}},Om.exports),Om.exports),Pm=Am(Im);const Em={autoSetContainer:!1,appendToBody:!0},Mm={config:e=>{const{autoSetContainer:t,appendToBody:n}=e;Em.autoSetContainer=t||!1,Em.appendToBody=n||!0},install:e=>{e.config.globalProperties.$vclipboard=Dm,e.directive("clipboard",{beforeMount(e,t){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{const n=new Pm(e,{text:()=>t.value,action:()=>"cut"===t.arg?"cut":"copy",container:Em.autoSetContainer?e:void 0});n.on("success",t=>{const n=e._vClipboard_success;n&&n(t)}),n.on("error",t=>{const n=e._vClipboard_error;n&&n(t)}),e._vClipboard=n}},updated(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=()=>t.value,e._vClipboard.action=()=>"cut"===t.arg?"cut":"copy")},unmounted(e,t){"success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard)}})},toClipboard:(e,t)=>Dm(e,t)},Dm=(e,t="copy")=>new Promise((n,r)=>{const i=document.createElement("button"),a=new Pm(i,{text:()=>e,action:()=>t});a.on("success",e=>{a.destroy(),n(e)}),a.on("error",e=>{a.destroy(),r(e)}),Em.appendToBody&&document.body.appendChild(i),i.click(),Em.appendToBody&&document.body.removeChild(i)});function Rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lm(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jm(e,t){var n=Object.keys(e.attrs).reduce((t,n)=>{var r;return t[(r=n,["fillOpacity","fillRule","clipRule"].includes(r)?r.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():r)]=e.attrs[n],t},{});return go(e.tag,Nm(Nm({},n),t),(e.children||[]).map(e=>jm(e,{})))}var Fm={classPrefix:"t"};function zm(e){var t=function(){var{classPrefix:e}=Fm;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}().SIZE,n=vo(()=>e.value in t?t[e.value]:"");return{style:vo(()=>void 0===e.value||e.value in t?{}:{fontSize:e.value}),className:n}}function Bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bm(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hm={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.0001 15L17.5 9.5H6.5L12.0001 15Z"}}]},Wm=yr({name:"CaretDownSmallIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-caret-down-small",i.value]),s=vo(()=>Vm(Vm({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Hm,l.value)}});function Um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Gm={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.0001 9L17.5 14.5L6.5 14.5L12.0001 9Z"}}]},Ym=yr({name:"CaretUpSmallIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-caret-up-small",i.value]),s=vo(()=>Xm(Xm({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Gm,l.value)}});function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zm={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5001 8.08582L12.0002 13.5858L6.50015 8.08582L5.08594 9.50003L12.0002 16.4142L18.9144 9.50003L17.5001 8.08582Z"}}]},Jm=yr({name:"ChevronDownIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-chevron-down",i.value]),s=vo(()=>qm(qm({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Zm,l.value)}});function Qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ev={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5001 15.9142L12.0002 10.4142L6.50015 15.9142L5.08594 14.5L12.0002 7.58582L18.9144 14.5L17.5001 15.9142Z"}}]},tv=yr({name:"ChevronUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-chevron-up",i.value]),s=vo(()=>$m($m({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(ev,l.value)}});function nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var iv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.04996 5.63599L11.9997 10.5857L16.9494 5.63599L18.3637 7.0502L13.4139 11.9999L18.3637 16.9497L16.9494 18.3639L11.9997 13.4142L7.04996 18.3639L5.63574 16.9497L10.5855 11.9999L5.63574 7.0502L7.04996 5.63599Z"}}]},av=yr({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-close",i.value]),s=vo(()=>rv(rv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(iv,l.value)}});function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13 3L13 12.5858L16.5 9.08579L17.9142 10.5L12 16.4142L6.08579 10.5L7.5 9.08579L11 12.5858L11 3L13 3ZM4.5 14V19H19.5V14H21.5V21H2.5V14H4.5Z"}}]},uv=yr({name:"DownloadIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-download",i.value]),s=vo(()=>sv(sv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(lv,l.value)}});function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 0.999999 18.0751 1 12C1 5.92487 5.92487 0.999999 12 1C18.0751 1 23 5.92487 23 12ZM13.0039 18.2539L11 18.2539L11 16.25H13.0039L13.0039 18.2539ZM11.0002 15.25V14C11.0002 13.1334 11.3904 12.4265 11.8265 11.8902C12.2582 11.3592 12.8004 10.9159 13.2364 10.5723C13.7034 10.2045 14.0002 9.63718 14.0002 9C14.0002 7.89543 13.1048 7 12.0002 7C11.1309 7 10.3888 7.5551 10.1137 8.33325L9.78049 9.27609L7.89481 8.60959L8.22806 7.66675C8.7767 6.11451 10.257 5 12.0002 5C14.2093 5 16.0002 6.79086 16.0002 9C16.0002 10.2759 15.4017 11.4125 14.4742 12.1433C14.0426 12.4834 13.6572 12.8088 13.3783 13.1519C13.1037 13.4896 13.0002 13.762 13.0002 14V15.25H11.0002Z"}}]},hv=yr({name:"HelpCircleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-help-circle",i.value]),s=vo(()=>dv(dv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(fv,l.value)}});function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 0.999999 18.0751 1 12C1 5.92487 5.92487 0.999999 12 1C18.0751 1 23 5.92487 23 12ZM11 17.5L11 10H13L13 17.5L11 17.5ZM13 8.5H10.9961L10.9961 6.49609H13L13 8.5Z"}}]},gv=yr({name:"InfoCircleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-info-circle",i.value]),s=vo(()=>mv(mv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(vv,l.value)}});function yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.05493 11C3.45261 7.40254 5.97062 4.44413 9.33156 3.40217C8.00851 5.65483 7.1892 8.23957 7.02895 11H3.05493ZM10.9922 1.04555C5.38944 1.55442 1 6.26461 1 12C1 17.7354 5.3894 22.4455 10.9922 22.9545L11 22.9643L11.4254 22.9853C11.4932 22.9887 11.5611 22.9916 11.6292 22.9939C11.7523 22.9979 11.8759 23 12 23C12.1187 23 12.2369 22.9981 12.3546 22.9944C12.4281 22.9921 12.5015 22.989 12.5746 22.9853L13 22.9643L13.0078 22.9545C18.6106 22.4455 23 17.7354 23 12C23 6.26461 18.6106 1.55443 13.0078 1.04555L12.9999 1.03571L12.5736 1.0147C12.4767 1.00972 12.3795 1.006 12.2819 1.00354C12.1882 1.00119 12.0942 1 12 1C11.9051 1 11.8104 1.0012 11.7161 1.00359C11.6192 1.00605 11.5226 1.00976 11.4263 1.0147L11.0001 1.03571L10.9922 1.04555ZM12.0011 3C13.6972 5.25767 14.7704 8.00828 14.9672 11H9.03278C9.22955 8.00828 10.3028 5.25767 11.9989 3C11.9992 3 11.9996 3 12 3C12.0004 3 12.0008 3 12.0011 3ZM7.02894 13C7.18917 15.7604 8.00847 18.3452 9.3315 20.5978C5.97059 19.5558 3.45261 16.5974 3.05493 13H7.02894ZM11.9988 21C10.3028 18.7423 9.22953 15.9917 9.03277 13H14.9672C14.7705 15.9917 13.6972 18.7423 12.0012 21C12.0008 21 12.0004 21 12 21C11.9996 21 11.9992 21 11.9988 21ZM14.6685 20.5978C15.9915 18.3452 16.8108 15.7604 16.9711 13H20.9451C20.5474 16.5974 18.0294 19.5558 14.6685 20.5978ZM16.9711 11C16.8108 8.23957 15.9915 5.65483 14.6684 3.40217C18.0294 4.44413 20.5474 7.40254 20.9451 11H16.9711Z"}}]},xv=yr({name:"InternetIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-internet",i.value]),s=vo(()=>bv(bv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(wv,l.value)}});function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 21L3 3L10.0909 3V5H5L5 19H19V13.9091H21V21H3ZM10.5858 12L17.5858 5L13 5V3L21 3L21 11H19V6.41421L12 13.4142L10.5858 12Z"}}]},Av=yr({name:"JumpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-jump",i.value]),s=vo(()=>_v(_v({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(kv,l.value)}});function Cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ov={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.2925 3.95949C15.1558 2.09618 18.1768 2.09619 20.0401 3.95949C21.9034 5.8228 21.9034 8.84381 20.0401 10.7071L17.0094 13.7379L15.5952 12.3236L18.6259 9.29291C19.7082 8.21065 19.7082 6.45596 18.6259 5.37371C17.5436 4.29145 15.789 4.29145 14.7067 5.3737L11.676 8.40444L10.2617 6.99023L13.2925 3.95949ZM15.4125 9.99989L9.99826 15.4142L8.58405 14L13.9983 8.58568L15.4125 9.99989ZM8.40395 11.6764L5.37322 14.7072C4.29096 15.7894 4.29096 17.5441 5.37322 18.6264C6.45547 19.7086 8.21016 19.7086 9.29242 18.6264L12.3232 15.5956L13.7374 17.0099L10.7066 20.0406C8.84333 21.9039 5.82231 21.9039 3.959 20.0406C2.0957 18.1773 2.0957 15.1563 3.959 13.293L6.98974 10.2622L8.40395 11.6764Z"}}]},Iv=yr({name:"LinkIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-link",i.value]),s=vo(()=>Tv(Tv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Ov,l.value)}});function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ev(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 3C14.2091 3 16 4.79086 16 7V10H8V7C8 4.79086 9.79086 3 12 3ZM18 10V7C18 3.68629 15.3137 1 12 1C8.68629 1 6 3.68629 6 7V10H3.5V22H20.5V10H18ZM5.5 12H18.5V20H5.5V12ZM9 15H15V17H9V15Z"}}]},Dv=yr({name:"LockOnIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-lock-on",i.value]),s=vo(()=>Ev(Ev({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Mv,l.value)}});function Rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M21.2072 11.793L15.293 17.7072L13.8788 16.293L17.3788 12.793L7.79297 12.793V10.793L17.3788 10.793L13.8788 7.29297L15.293 5.87876L21.2072 11.793ZM9.79297 4.29297L4.79297 4.29297L4.79297 19.293H9.79297V21.293H2.79297L2.79297 2.29297L9.79297 2.29297V4.29297Z"}}]},jv=yr({name:"LogoutIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-logout",i.value]),s=vo(()=>Lv(Lv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Nv,l.value)}});function Fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M20.4997 5.83468C18.5918 3.20865 15.4961 1.5 11.9997 1.5C6.57341 1.5 2.10958 5.61542 1.55717 10.896L1.45312 11.8905L3.44227 12.0986L3.54632 11.104C3.9933 6.83125 7.60814 3.5 11.9997 3.5C15.0404 3.5 17.7099 5.09688 19.2125 7.5H15.4997V9.5H22.4997V2.5H20.4997V5.83468ZM20.5572 11.9014L20.4532 12.896C20.0062 17.1687 16.3913 20.5 11.9997 20.5C8.95904 20.5 6.28956 18.9031 4.78702 16.5H8.49974V14.5H1.49974V21.5H3.49974V18.1653C5.40769 20.7914 8.50342 22.5 11.9997 22.5C17.4261 22.5 21.8899 18.3846 22.4423 13.104L22.5464 12.1095L20.5572 11.9014Z"}}]},Vv=yr({name:"RefreshIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-refresh",i.value]),s=vo(()=>zv(zv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Bv,l.value)}});function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Uv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15.0962 5.90381C12.5578 3.3654 8.44221 3.3654 5.90381 5.90381C3.3654 8.44221 3.3654 12.5578 5.90381 15.0962C8.44221 17.6346 12.5578 17.6346 15.0962 15.0962C17.6346 12.5578 17.6346 8.44221 15.0962 5.90381ZM4.48959 4.48959C7.80905 1.17014 13.191 1.17014 16.5104 4.48959C19.5906 7.56983 19.8126 12.4259 17.1764 15.7621L22.5208 21.1066L21.1066 22.5208L15.7621 17.1764C12.4259 19.8126 7.56983 19.5906 4.48959 16.5104C1.17014 13.191 1.17014 7.80905 4.48959 4.48959Z"}}]},Xv=yr({name:"SearchIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-search",i.value]),s=vo(()=>Wv(Wv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Uv,l.value)}});function Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 0.440552L22 3.94055V12C22 16.1271 19.4665 19.0117 17.1042 20.8031C15.9133 21.7063 14.7282 22.3623 13.8434 22.7924C13.3998 23.008 13.0283 23.1685 12.7648 23.2761C12.6329 23.33 12.5278 23.3707 12.454 23.3985C12.4171 23.4124 12.388 23.4232 12.3672 23.4307L12.3423 23.4397L12.3347 23.4424L12.3321 23.4433L12.3311 23.4436C12.3307 23.4438 12.3304 23.4439 12 22.5C11.6696 23.4439 11.6693 23.4438 11.6689 23.4436L11.6679 23.4433L11.6653 23.4424L11.6577 23.4397L11.6328 23.4307C11.612 23.4232 11.5829 23.4124 11.546 23.3985C11.4722 23.3707 11.3671 23.33 11.2352 23.2761C10.9717 23.1685 10.6002 23.008 10.1566 22.7924C9.27184 22.3623 8.08675 21.7063 6.89576 20.8031C4.53351 19.0117 2 16.1271 2 12V3.94055L12 0.440552ZM12 22.5L11.6689 23.4436L12 23.5595L12.3311 23.4436L12 22.5ZM12 21.4281C12.0029 21.4269 12.0058 21.4257 12.0087 21.4245C12.2374 21.3312 12.569 21.1881 12.9691 20.9936C13.7718 20.6034 14.8367 20.0126 15.8958 19.2095C18.0335 17.5884 20 15.223 20 12V5.35951L12 2.55951L4 5.35951V12C4 15.223 5.96649 17.5884 8.10424 19.2095C9.16325 20.0126 10.2282 20.6034 11.0309 20.9936C11.431 21.1881 11.7626 21.3312 11.9913 21.4245C11.9942 21.4257 11.9971 21.4269 12 21.4281ZM18.0721 8.34317L11.001 15.4142L6.75839 11.1716L8.17261 9.75739L11.001 12.5858L16.6579 6.92896L18.0721 8.34317Z"}}]},qv=yr({name:"SecuredIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-secured",i.value]),s=vo(()=>Yv(Yv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Kv,l.value)}});function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qv={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.0001 0.845337L21.6604 6.42269V17.5774L12.0001 23.1547L2.33984 17.5774V6.42269L12.0001 0.845337ZM12.0001 3.15474L4.33984 7.57739V16.4227L12.0001 20.8453L19.6604 16.4227V7.57739L12.0001 3.15474ZM12.0001 9.00004C10.3432 9.00004 9.0001 10.3432 9.0001 12C9.0001 13.6569 10.3432 15 12.0001 15C13.657 15 15.0001 13.6569 15.0001 12C15.0001 10.3432 13.657 9.00004 12.0001 9.00004ZM7.0001 12C7.0001 9.23861 9.23867 7.00004 12.0001 7.00004C14.7615 7.00004 17.0001 9.23861 17.0001 12C17.0001 14.7615 14.7615 17 12.0001 17C9.23867 17 7.0001 14.7615 7.0001 12Z"}}]},$v=yr({name:"SettingIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-setting",i.value]),s=vo(()=>Jv(Jv({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(Qv,l.value)}});function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ng={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.5 5.5C7.5 3.01472 9.51472 1 12 1C14.4853 1 16.5 3.01472 16.5 5.5V7H21V23H3V7H7.5V5.5ZM7.5 9H5V21H19V9H16.5V12H14.5V9H9.5V12H7.5V9ZM14.5 7V5.5C14.5 4.11929 13.3807 3 12 3C10.6193 3 9.5 4.11929 9.5 5.5V7H14.5Z"}}]},rg=yr({name:"ShopIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-shop",i.value]),s=vo(()=>tg(tg({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(ng,l.value)}});function ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ig(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var og={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 5C2 3.34315 3.34315 2 5 2H7C8.65685 2 10 3.34315 10 5V11H8V8.5H4V11H2V5ZM4 6.5H8V5C8 4.44772 7.55228 4 7 4H5C4.44772 4 4 4.44772 4 5V6.5ZM12 3.5H18C19.6569 3.5 21 4.84315 21 6.5V9H19V6.5C19 5.94772 18.5523 5.5 18 5.5H12V3.5ZM18 11.5V13H22V15H20.9381C20.7182 16.7638 19.9241 18.3492 18.7488 19.5634C19.4441 19.845 20.2041 20 21 20H22V22H21C19.5425 22 18.1765 21.6102 17.0001 20.9297C15.8234 21.6104 14.4572 22 13 22H12V20H13C13.7962 20 14.5562 19.8449 15.2514 19.5633C14.6487 18.9407 14.1463 18.2205 13.7704 17.4291L13.3413 16.5258L15.1478 15.6676L15.5769 16.5709C15.9219 17.2971 16.4081 17.9427 16.9999 18.4723C17.9921 17.5843 18.687 16.371 18.917 15H12V13H16V11.5H18ZM6 13V19C6 19.5523 6.44772 20 7 20H9.5V22H7C5.34315 22 4 20.6569 4 19V13H6Z"}}]},sg=yr({name:"TranslateIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-translate",i.value]),s=vo(()=>ag(ag({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(og,l.value)}});function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ug(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cg={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 4C10.067 4 8.5 5.567 8.5 7.5C8.5 9.433 10.067 11 12 11C13.933 11 15.5 9.433 15.5 7.5C15.5 5.567 13.933 4 12 4ZM6.5 7.5C6.5 4.46243 8.96243 2 12 2C15.0376 2 17.5 4.46243 17.5 7.5C17.5 10.5376 15.0376 13 12 13C8.96243 13 6.5 10.5376 6.5 7.5ZM3 19C3 16.2386 5.23858 14 8 14H16C18.7614 14 21 16.2386 21 19V22H3V19ZM8 16C6.34315 16 5 17.3431 5 19V20H19V19C19 17.3431 17.6569 16 16 16H8Z"}}]},dg=yr({name:"UserIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-user",i.value]),s=vo(()=>ug(ug({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(cg,l.value)}});function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var pg={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 2H22V22H2V2ZM4 4V20H20V4H4ZM8 6.37083L17.75 12L8 17.6292L8 6.37083ZM10 9.83494L10 14.1651L13.75 12L10 9.83494Z"}}]},mg=yr({name:"VideoIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-video",i.value]),s=vo(()=>hg(hg({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(pg,l.value)}});function vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach(function(t){Rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yg={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1 3H23V21H1V3ZM3 5V11H7.66667V5H3ZM9.66667 5V11H14.3333V5H9.66667ZM16.3333 5V11H21V5H16.3333ZM21 13H16.3333V19H21V13ZM14.3333 19V13H9.66667V19H14.3333ZM7.66667 19V13H3V19H7.66667Z"}}]},bg=yr({name:"ViewModuleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=zm(r),o=vo(()=>["t-icon","t-icon-view-module",i.value]),s=vo(()=>gg(gg({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>jm(yg,l.value)}}),wg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sg(e,t){return function(){return e.apply(t,arguments)}}const{toString:_g}=Object.prototype,{getPrototypeOf:kg}=Object,{iterator:Ag,toStringTag:Cg}=Symbol,Tg=(e=>t=>{const n=_g.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Og=e=>(e=e.toLowerCase(),t=>Tg(t)===e),Ig=e=>t=>typeof t===e,{isArray:Pg}=Array,Eg=Ig("undefined");function Mg(e){return null!==e&&!Eg(e)&&null!==e.constructor&&!Eg(e.constructor)&&Lg(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dg=Og("ArrayBuffer");const Rg=Ig("string"),Lg=Ig("function"),Ng=Ig("number"),jg=e=>null!==e&&"object"==typeof e,Fg=e=>{if("object"!==Tg(e))return!1;const t=kg(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Cg in e||Ag in e)},zg=Og("Date"),Bg=Og("File"),Vg=Og("Blob"),Hg=Og("FileList"),Wg=Og("URLSearchParams"),[Ug,Xg,Gg,Yg]=["ReadableStream","Request","Response","Headers"].map(Og);function Kg(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Pg(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Mg(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function qg(e,t){if(Mg(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Zg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Jg=e=>!Eg(e)&&e!==Zg;const Qg=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&kg(Uint8Array)),$g=Og("HTMLFormElement"),ey=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ty=Og("RegExp"),ny=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kg(n,(n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)}),Object.defineProperties(e,r)};const ry=Og("AsyncFunction"),iy=(ay="function"==typeof setImmediate,oy=Lg(Zg.postMessage),ay?setImmediate:oy?(sy=`axios@${Math.random()}`,ly=[],Zg.addEventListener("message",({source:e,data:t})=>{e===Zg&&t===sy&&ly.length&&ly.shift()()},!1),e=>{ly.push(e),Zg.postMessage(sy,"*")}):e=>setTimeout(e));var ay,oy,sy,ly;const uy="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Zg):"undefined"!=typeof process&&process.nextTick||iy,cy={isArray:Pg,isArrayBuffer:Dg,isBuffer:Mg,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Lg(e.append)&&("formdata"===(t=Tg(e))||"object"===t&&Lg(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Dg(e.buffer),t},isString:Rg,isNumber:Ng,isBoolean:e=>!0===e||!1===e,isObject:jg,isPlainObject:Fg,isEmptyObject:e=>{if(!jg(e)||Mg(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(kJe){return!1}},isReadableStream:Ug,isRequest:Xg,isResponse:Gg,isHeaders:Yg,isUndefined:Eg,isDate:zg,isFile:Bg,isBlob:Vg,isRegExp:ty,isFunction:Lg,isStream:e=>jg(e)&&Lg(e.pipe),isURLSearchParams:Wg,isTypedArray:Qg,isFileList:Hg,forEach:Kg,merge:function e(){const{caseless:t}=Jg(this)&&this||{},n={},r=(r,i)=>{const a=t&&qg(n,i)||i;Fg(n[a])&&Fg(r)?n[a]=e(n[a],r):Fg(r)?n[a]=e({},r):Pg(r)?n[a]=r.slice():n[a]=r};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Kg(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Kg(t,(t,r)=>{n&&Lg(t)?e[r]=Sg(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&kg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Tg,kindOfTest:Og,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Pg(e))return e;let t=e.length;if(!Ng(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ag]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$g,hasOwnProperty:ey,hasOwnProp:ey,reduceDescriptors:ny,freezeMethods:e=>{ny(e,(t,n)=>{if(Lg(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Lg(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Pg(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:qg,global:Zg,isContextDefined:Jg,isSpecCompliantForm:function(e){return!!(e&&Lg(e.append)&&"FormData"===e[Cg]&&e[Ag])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(jg(e)){if(t.indexOf(e)>=0)return;if(Mg(e))return e;if(!("toJSON"in e)){t[r]=e;const i=Pg(e)?[]:{};return Kg(e,(e,t)=>{const a=n(e,r+1);!Eg(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:ry,isThenable:e=>e&&(jg(e)||Lg(e))&&Lg(e.then)&&Lg(e.catch),setImmediate:iy,asap:uy,isIterable:e=>null!=e&&Lg(e[Ag])};function dy(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}cy.inherits(dy,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:cy.toJSONObject(this.config),code:this.code,status:this.status}}});const fy=dy.prototype,hy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hy[e]={value:e}}),Object.defineProperties(dy,hy),Object.defineProperty(fy,"isAxiosError",{value:!0}),dy.from=(e,t,n,r,i,a)=>{const o=Object.create(fy);return cy.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),dy.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};function py(e){return cy.isPlainObject(e)||cy.isArray(e)}function my(e){return cy.endsWith(e,"[]")?e.slice(0,-2):e}function vy(e,t,n){return e?e.concat(t).map(function(e,t){return e=my(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const gy=cy.toFlatObject(cy,{},null,function(e){return/^is[A-Z]/.test(e)});function yy(e,t,n){if(!cy.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=cy.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!cy.isUndefined(t[e])})).metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&cy.isSpecCompliantForm(t);if(!cy.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(cy.isDate(e))return e.toISOString();if(cy.isBoolean(e))return e.toString();if(!s&&cy.isBlob(e))throw new dy("Blob is not supported. Use a Buffer instead.");return cy.isArrayBuffer(e)||cy.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(cy.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(cy.isArray(e)&&function(e){return cy.isArray(e)&&!e.some(py)}(e)||(cy.isFileList(e)||cy.endsWith(n,"[]"))&&(s=cy.toArray(e)))return n=my(n),s.forEach(function(e,r){!cy.isUndefined(e)&&null!==e&&t.append(!0===o?vy([n],r,a):null===o?n:n+"[]",l(e))}),!1;return!!py(e)||(t.append(vy(i,n,a),l(e)),!1)}const c=[],d=Object.assign(gy,{defaultVisitor:u,convertValue:l,isVisitable:py});if(!cy.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!cy.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),cy.forEach(n,function(n,a){!0===(!(cy.isUndefined(n)||null===n)&&i.call(t,n,cy.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function by(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function wy(e,t){this._pairs=[],e&&yy(e,this,t)}const xy=wy.prototype;function Sy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _y(e,t,n){if(!t)return e;const r=n&&n.encode||Sy;cy.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(a=i?i(t,n):cy.isURLSearchParams(t)?t.toString():new wy(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}xy.append=function(e,t){this._pairs.push([e,t])},xy.toString=function(e){const t=e?function(t){return e.call(this,t,by)}:by;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ky{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){cy.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Ay={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cy={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:wy,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ty="undefined"!=typeof window&&"undefined"!=typeof document,Oy="object"==typeof navigator&&navigator||void 0,Iy=Ty&&(!Oy||["ReactNative","NativeScript","NS"].indexOf(Oy.product)<0),Py="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ey=Ty&&window.location.href||"http://localhost",My={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ty,hasStandardBrowserEnv:Iy,hasStandardBrowserWebWorkerEnv:Py,navigator:Oy,origin:Ey},Symbol.toStringTag,{value:"Module"})),...Cy};function Dy(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;if(a=!a&&cy.isArray(r)?r.length:a,s)return cy.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o;r[a]&&cy.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&cy.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!o}if(cy.isFormData(e)&&cy.isFunction(e.entries)){const n={};return cy.forEachEntry(e,(e,r)=>{t(function(e){return cy.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Ry={transitional:Ay,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=cy.isObject(e);i&&cy.isHTMLForm(e)&&(e=new FormData(e));if(cy.isFormData(e))return r?JSON.stringify(Dy(e)):e;if(cy.isArrayBuffer(e)||cy.isBuffer(e)||cy.isStream(e)||cy.isFile(e)||cy.isBlob(e)||cy.isReadableStream(e))return e;if(cy.isArrayBufferView(e))return e.buffer;if(cy.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return yy(e,new My.classes.URLSearchParams,{visitor:function(e,t,n,r){return My.isNode&&cy.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=cy.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return yy(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(cy.isString(e))try{return(t||JSON.parse)(e),cy.trim(e)}catch(kJe){if("SyntaxError"!==kJe.name)throw kJe}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ry.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(cy.isResponse(e)||cy.isReadableStream(e))return e;if(e&&cy.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(kJe){if(n){if("SyntaxError"===kJe.name)throw dy.from(kJe,dy.ERR_BAD_RESPONSE,this,null,this.response);throw kJe}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:My.classes.FormData,Blob:My.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cy.forEach(["delete","get","head","post","put","patch"],e=>{Ry.headers[e]={}});const Ly=cy.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ny=Symbol("internals");function jy(e){return e&&String(e).trim().toLowerCase()}function Fy(e){return!1===e||null==e?e:cy.isArray(e)?e.map(Fy):String(e)}function zy(e,t,n,r,i){return cy.isFunction(r)?r.call(this,t,n):(i&&(t=n),cy.isString(t)?cy.isString(r)?-1!==t.indexOf(r):cy.isRegExp(r)?r.test(t):void 0:void 0)}let By=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=jy(t);if(!i)throw new Error("header name must be a non-empty string");const a=cy.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Fy(e))}const a=(e,t)=>cy.forEach(e,(e,n)=>i(e,n,t));if(cy.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(cy.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ly[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(cy.isObject(e)&&cy.isIterable(e)){let n,r,i={};for(const t of e){if(!cy.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?cy.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=jy(e)){const n=cy.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(cy.isFunction(t))return t.call(this,e,n);if(cy.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jy(e)){const n=cy.findKey(this,e);return!(!n||void 0===this[n]||t&&!zy(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=jy(e)){const i=cy.findKey(n,e);!i||t&&!zy(0,n[i],i,t)||(delete n[i],r=!0)}}return cy.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!zy(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return cy.forEach(this,(r,i)=>{const a=cy.findKey(n,i);if(a)return t[a]=Fy(r),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();o!==i&&delete t[i],t[o]=Fy(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return cy.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&cy.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ny]=this[Ny]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=jy(e);t[r]||(!function(e,t){const n=cy.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return cy.isArray(e)?e.forEach(r):r(e),this}};function Vy(e,t){const n=this||Ry,r=t||n,i=By.from(r.headers);let a=r.data;return cy.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Hy(e){return!(!e||!e.__CANCEL__)}function Wy(e,t,n){dy.call(this,null==e?"canceled":e,dy.ERR_CANCELED,t,n),this.name="CanceledError"}function Uy(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new dy("Request failed with status code "+n.status,[dy.ERR_BAD_REQUEST,dy.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}By.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cy.reduceDescriptors(By.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),cy.freezeMethods(By),cy.inherits(Wy,dy,{__CANCEL__:!0});const Xy=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[o];i||(i=l),n[a]=s,r[a]=l;let c=o,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},a-s)))},()=>n&&o(n)]}(n=>{const a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,l=i(s);r=a;e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&a<=o?(o-a)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},Gy=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yy=e=>(...t)=>cy.asap(()=>e(...t)),Ky=My.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,My.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(My.origin),My.navigator&&/(msie|trident)/i.test(My.navigator.userAgent)):()=>!0,qy=My.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];cy.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),cy.isString(r)&&o.push("path="+r),cy.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Zy(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Jy=e=>e instanceof By?{...e}:e;function Qy(e,t){t=t||{};const n={};function r(e,t,n,r){return cy.isPlainObject(e)&&cy.isPlainObject(t)?cy.merge.call({caseless:r},e,t):cy.isPlainObject(t)?cy.merge({},t):cy.isArray(t)?t.slice():t}function i(e,t,n,i){return cy.isUndefined(t)?cy.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!cy.isUndefined(t))return r(void 0,t)}function o(e,t){return cy.isUndefined(t)?cy.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,a){return a in t?r(n,i):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Jy(e),Jy(t),0,!0)};return cy.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||i,o=a(e[r],t[r],r);cy.isUndefined(o)&&a!==s||(n[r]=o)}),n}const $y=e=>{const t=Qy({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=By.from(s),t.url=_y(Zy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),cy.isFormData(r))if(My.hasStandardBrowserEnv||My.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(My.hasStandardBrowserEnv&&(i&&cy.isFunction(i)&&(i=i(t)),i||!1!==i&&Ky(t.url))){const e=a&&o&&qy.read(o);e&&s.set(a,e)}return t},eb="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=$y(e);let i=r.data;const a=By.from(r.headers).normalize();let o,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=By.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Uy(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new dy("Request aborted",dy.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new dy("Network Error",dy.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ay;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new dy(t,i.clarifyTimeoutError?dy.ETIMEDOUT:dy.ECONNABORTED,e,m)),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&cy.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),cy.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,c]=Xy(h,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=Xy(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new Wy(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===My.protocols.indexOf(g)?n(new dy("Unsupported protocol "+g+":",dy.ERR_BAD_REQUEST,e)):m.send(i||null)})},tb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof dy?t:new Wy(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,i(new dy(`timeout ${t} of ms exceeded`,dy.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>cy.asap(o),s}},nb=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},rb=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ib=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of rb(e))yield*nb(n,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=o+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},ab="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ob=ab&&"function"==typeof ReadableStream,sb=ab&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lb=(e,...t)=>{try{return!!e(...t)}catch(kJe){return!1}},ub=ob&&lb(()=>{let e=!1;const t=new Request(My.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),cb=ob&&lb(()=>cy.isReadableStream(new Response("").body)),db={stream:cb&&(e=>e.body)};var fb;ab&&(fb=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!db[e]&&(db[e]=cy.isFunction(fb[e])?t=>t[e]():(t,n)=>{throw new dy(`Response type '${e}' is not supported`,dy.ERR_NOT_SUPPORT,n)})}));const hb=async(e,t)=>{const n=cy.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(cy.isBlob(e))return e.size;if(cy.isSpecCompliantForm(e)){const t=new Request(My.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return cy.isArrayBufferView(e)||cy.isArrayBuffer(e)?e.byteLength:(cy.isURLSearchParams(e)&&(e+=""),cy.isString(e)?(await sb(e)).byteLength:void 0)})(t):n},pb=ab&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=$y(e);u=u?(u+"").toLowerCase():"text";let h,p=tb([i,a&&a.toAbortSignal()],o);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&ub&&"get"!==n&&"head"!==n&&0!==(v=await hb(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(cy.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Gy(v,Xy(Yy(l)));r=ib(n.body,65536,e,t)}}cy.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let a=await fetch(h,f);const o=cb&&("stream"===u||"response"===u);if(cb&&(s||o&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=cy.toFiniteNumber(a.headers.get("content-length")),[n,r]=s&&Gy(t,Xy(Yy(s),!0))||[];a=new Response(ib(a.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let g=await db[cy.findKey(db,u)||"text"](a,e);return!o&&m&&m(),await new Promise((t,n)=>{Uy(t,n,{data:g,headers:By.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:h})})}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/Load failed|fetch/i.test(g.message))throw Object.assign(new dy("Network Error",dy.ERR_NETWORK,e,h),{cause:g.cause||g});throw dy.from(g,g&&g.code,e,h)}}),mb={http:null,xhr:eb,fetch:pb};cy.forEach(mb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(kJe){}Object.defineProperty(e,"adapterName",{value:t})}});const vb=e=>`- ${e}`,gb=e=>cy.isFunction(e)||null===e||!1===e,yb=e=>{e=cy.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!gb(n)&&(r=mb[(t=String(n)).toLowerCase()],void 0===r))throw new dy(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+a]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dy("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(vb).join("\n"):" "+vb(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function bb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wy(null,e)}function wb(e){bb(e),e.headers=By.from(e.headers),e.data=Vy.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yb(e.adapter||Ry.adapter)(e).then(function(t){return bb(e),t.data=Vy.call(e,e.transformResponse,t),t.headers=By.from(t.headers),t},function(t){return Hy(t)||(bb(e),t&&t.response&&(t.response.data=Vy.call(e,e.transformResponse,t.response),t.response.headers=By.from(t.response.headers))),Promise.reject(t)})}const xb="1.11.0",Sb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sb[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const _b={};Sb.transitional=function(e,t,n){return(r,i,a)=>{if(!1===e)throw new dy(function(e,t){return"[Axios v"+xb+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),dy.ERR_DEPRECATED);return t&&!_b[i]&&(_b[i]=!0),!e||e(r,i,a)}},Sb.spelling=function(e){return(e,t)=>!0};const kb={assertOptions:function(e,t,n){if("object"!=typeof e)throw new dy("options must be an object",dy.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new dy("option "+a+" must be "+n,dy.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dy("Unknown option "+a,dy.ERR_BAD_OPTION)}},validators:Sb},Ab=kb.validators;let Cb=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ky,response:new ky}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(kJe){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Qy(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&kb.assertOptions(n,{silentJSONParsing:Ab.transitional(Ab.boolean),forcedJSONParsing:Ab.transitional(Ab.boolean),clarifyTimeoutError:Ab.transitional(Ab.boolean)},!1),null!=r&&(cy.isFunction(r)?t.paramsSerializer={serialize:r}:kb.assertOptions(r,{encode:Ab.function,serialize:Ab.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),kb.assertOptions(t,{baseUrl:Ab.spelling("baseURL"),withXsrfToken:Ab.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&cy.merge(i.common,i[t.method]);i&&cy.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=By.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[wb.bind(this),void 0];for(e.unshift(...o),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let f=t;for(d=0;d<c;){const e=o[d++],t=o[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{u=wb.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return _y(Zy((e=Qy(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};cy.forEach(["delete","get","head","options"],function(e){Cb.prototype[e]=function(t,n){return this.request(Qy(n||{},{method:e,url:t,data:(n||{}).data}))}}),cy.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(Qy(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Cb.prototype[e]=t(),Cb.prototype[e+"Form"]=t(!0)});const Tb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tb).forEach(([e,t])=>{Tb[t]=e});const Ob=function e(t){const n=new Cb(t),r=Sg(Cb.prototype.request,n);return cy.extend(r,Cb.prototype,n,{allOwnKeys:!0}),cy.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Qy(t,n))},r}(Ry);Ob.Axios=Cb,Ob.CanceledError=Wy,Ob.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Wy(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Ob.isCancel=Hy,Ob.VERSION=xb,Ob.toFormData=yy,Ob.AxiosError=dy,Ob.Cancel=Ob.CanceledError,Ob.all=function(e){return Promise.all(e)},Ob.spread=function(e){return function(t){return e.apply(null,t)}},Ob.isAxiosError=function(e){return cy.isObject(e)&&!0===e.isAxiosError},Ob.mergeConfig=Qy,Ob.AxiosHeaders=By,Ob.formToJSON=e=>Dy(cy.isHTMLForm(e)?new FormData(e):e),Ob.getAdapter=yb,Ob.HttpStatusCode=Tb,Ob.default=Ob;const{Axios:Ib,AxiosError:Pb,CanceledError:Eb,isCancel:Mb,CancelToken:Db,VERSION:Rb,all:Lb,Cancel:Nb,isAxiosError:jb,spread:Fb,toFormData:zb,AxiosHeaders:Bb,HttpStatusCode:Vb,formToJSON:Hb,getAdapter:Wb,mergeConfig:Ub}=Ob;
/*!
   * vuex v4.1.0
   * (c) 2022 Evan You
   * @license MIT
   */var Xb="store";function Gb(e){return void 0===e&&(e=null),yi(null!==e?e:Xb)}function Yb(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Kb(e,t){if(!e)throw new Error("[vuex] "+t)}function qb(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Zb(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Qb(e,n,[],e._modules.root,!0),Jb(e,n,t)}function Jb(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={},s={},l=ue(!0);l.run(function(){Yb(a,function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),s[n]=vo(function(){return o[n]()}),Object.defineProperty(e.getters,n,{get:function(){return s[n].value},enumerable:!0})})}),e._state=bt({data:t}),e._scope=l,e.strict&&function(e){ta(function(){return e._state.data},function(){Kb(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function Qb(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=ew(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=tw(n,r,i),o=a.payload,s=a.options,l=a.type;if(s&&s.root||(l=t+l,e._actions[l]))return e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=tw(n,r,i),o=a.payload,s=a.options,l=a.type;(s&&s.root||(l=t+l,e._mutations[l]))&&e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return $b(e,t)}},state:{get:function(){return ew(e.state,n)}}}),i}(e,o,n);r.forEachMutation(function(t,n){!function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(t){n.call(e,r.state,t)})}(e,o+n,t,u)}),r.forEachAction(function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(t){var i,a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):a})}(e,r,i,u)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,u)}),r.forEachChild(function(r,a){Qb(e,t,n.concat(a),r,i)})}function $b(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function ew(e,t){return t.reduce(function(e,t){return e[t]},e)}function tw(e,t,n){var r;return null!==(r=e)&&"object"==typeof r&&e.type&&(n=t,t=e,e=e.type),Kb("string"==typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var nw="vuex:mutations",rw="vuex:actions",iw="vuex",aw=0;function ow(e,t){Nc({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},function(n){n.addTimelineLayer({id:nw,label:"Vuex Mutations",color:sw}),n.addTimelineLayer({id:rw,label:"Vuex Actions",color:sw}),n.addInspector({id:iw,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===iw)if(n.filter){var r=[];dw(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[cw(t._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===iw){var r=n.nodeId;$b(t,r),n.state=function(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(r.length){var a=function(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,a=r.pop();r.forEach(function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value}),i[a]=fw(function(){return e[n]})}else t[n]=fw(function(){return e[n]})}),t}(t);i.getters=Object.keys(a).map(function(e){return{key:e.endsWith("/")?uw(e):e,editable:!1,value:fw(function(){return a[e]})}})}return i}((i=t._modules,(o=(a=r).split("/").filter(function(e){return e})).reduce(function(e,t,n){var r=e[t];if(!r)throw new Error('Missing module "'+t+'" for path "'+a+'".');return n===o.length-1?r:r._children},"root"===a?i:i.root._children)),"root"===r?t.getters:t._makeLocalGettersCache,r)}var i,a,o}),n.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===iw){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit(function(){n.set(t._state.data,i,n.state.value)})}}),t.subscribe(function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(iw),n.sendInspectorState(iw),n.addTimelineEvent({layerId:nw,event:{time:Date.now(),title:e.type,data:r}})}),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=aw++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:rw,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:rw,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})})}var sw=8702998,lw={label:"namespaced",textColor:16777215,backgroundColor:6710886};function uw(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function cw(e,t){return{id:t||"root",label:uw(t),tags:e.namespaced?[lw]:[],children:Object.keys(e._children).map(function(n){return cw(e._children[n],t+n+"/")})}}function dw(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[lw]:[]}),Object.keys(t._children).forEach(function(i){dw(e,t._children[i],n,r+i+"/")})}function fw(e){try{return e()}catch(kJe){return kJe}}var hw=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},pw={namespaced:{configurable:!0}};pw.namespaced.get=function(){return!!this._rawModule.namespaced},hw.prototype.addChild=function(e,t){this._children[e]=t},hw.prototype.removeChild=function(e){delete this._children[e]},hw.prototype.getChild=function(e){return this._children[e]},hw.prototype.hasChild=function(e){return e in this._children},hw.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},hw.prototype.forEachChild=function(e){Yb(this._children,e)},hw.prototype.forEachGetter=function(e){this._rawModule.getters&&Yb(this._rawModule.getters,e)},hw.prototype.forEachAction=function(e){this._rawModule.actions&&Yb(this._rawModule.actions,e)},hw.prototype.forEachMutation=function(e){this._rawModule.mutations&&Yb(this._rawModule.mutations,e)},Object.defineProperties(hw.prototype,pw);var mw=function(e){this.register([],e,!1)};function vw(e,t,n){if(bw(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;vw(e.concat(r),t.getChild(r),n.modules[r])}}mw.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},mw.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},mw.prototype.update=function(e){vw([],this.root,e)},mw.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),bw(e,t);var i=new hw(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&Yb(t.modules,function(t,i){r.register(e.concat(i),t,n)})},mw.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},mw.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var gw={assert:function(e){return"function"==typeof e},expected:"function"},yw={getters:gw,mutations:gw,actions:{assert:function(e){return"function"==typeof e||"object"==typeof e&&"function"==typeof e.handler},expected:'function or object with "handler" function'}};function bw(e,t){Object.keys(yw).forEach(function(n){if(t[n]){var r=yw[n];Yb(t[n],function(t,i){Kb(r.assert(t),function(e,t,n,r,i){var a=t+" should be "+i+' but "'+t+"."+n+'"';e.length>0&&(a+=' in module "'+e.join(".")+'"');return a+=" is "+JSON.stringify(r)+".",a}(e,n,i,t,r.expected))})}})}var ww=function e(t){var n=this;void 0===t&&(t={}),Kb("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),Kb(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var i=t.strict;void 0===i&&(i=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new mw(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var o=this,s=this.dispatch,l=this.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=i;var u=this._modules.root.state;Qb(this,u,[],this._modules.root),Jb(this,u),r.forEach(function(e){return e(n)})},xw={state:{configurable:!0}};ww.prototype.install=function(e,t){e.provide(t||Xb,this),e.config.globalProperties.$store=this,(void 0===this._devtools||this._devtools)&&ow(e,this)},xw.state.get=function(){return this._state.data},xw.state.set=function(e){Kb(!1,"use store.replaceState() to explicit replace store state.")},ww.prototype.commit=function(e,t,n){var r=this,i=tw(e,t,n),a=i.type,o=i.payload,s=i.options,l={type:a,payload:o},u=this._mutations[a];u&&(this._withCommit(function(){u.forEach(function(e){e(o)})}),this._subscribers.slice().forEach(function(e){return e(l,r.state)}),s&&s.silent)},ww.prototype.dispatch=function(e,t){var n=this,r=tw(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(o,n.state)})}catch(kJe){}var l=s.length>1?Promise.all(s.map(function(e){return e(a)})):s[0](a);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(o,n.state)})}catch(kJe){}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(o,n.state,e)})}catch(kJe){}t(e)})})}},ww.prototype.subscribe=function(e,t){return qb(e,this._subscribers,t)},ww.prototype.subscribeAction=function(e,t){return qb("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},ww.prototype.watch=function(e,t,n){var r=this;return Kb("function"==typeof e,"store.watch only accepts a function."),ta(function(){return e(r.state,r.getters)},t,Object.assign({},n))},ww.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},ww.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),Kb(Array.isArray(e),"module path must be a string or an Array."),Kb(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),Qb(this,this.state,e,this._modules.get(e),n.preserveState),Jb(this,this.state)},ww.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),Kb(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){delete ew(t.state,e.slice(0,-1))[e[e.length-1]]}),Zb(this)},ww.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),Kb(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},ww.prototype.hotUpdate=function(e){this._modules.update(e),Zb(this,!0)},ww.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ww.prototype,xw);const Sw={token:localStorage.getItem("shopdoraToken")??"",userInfo:{},waitPay:{},unit:localStorage.getItem("display-unit")||"LOCAL",loginType:!1,history:!1},_w={setToken(e,t){chrome.storage.local.set({token:t},()=>{}),localStorage.setItem("shopdoraToken",t),chrome.runtime.sendMessage({token:t,greeting:"token"},()=>{}),e.token=t},setLoginType(e,t){e.loginType=t},removeToken(e){chrome.runtime.sendMessage({token:"",greeting:"removeToken"},()=>{}),chrome.storage.local.set({token:""},()=>{}),localStorage.setItem("shopdoraToken",""),e.token="",e.userInfo={}},removeUserInfo(e){e.userInfo={}},setUserInfo(e,t){e.userInfo=t},setHistory(e,t){e.history=t}},kw={token:e=>e.token,getLoginType:e=>e.loginType,userInfo:e=>e.userInfo,isLogin:e=>e.token&&"AAAAAAAA"!==e.token,getHistory:e=>e.history,equityInfo:e=>e.userInfo&&e.userInfo.equityDto?e.userInfo.equityDto:{resourceDtoList:[]},resourceDto:e=>t=>(e.userInfo&&e.userInfo.equityDto?e.userInfo.equityDto.resourceDtoList:[]).find(e=>e.name==t)||{},getShopListShow:e=>t=>{if(e.userInfo&&e.userInfo.customListInfo){const n=JSON.parse(e.userInfo.customListInfo);return"liked_count"===t&&void 0===n.liked_count||n[t]}return!0},description(e){const t=new Date;let n=t.getFullYear();n+="";let r=t.getMonth()+1;r<10&&(r="0"+r);let i=t.getDate();i<10&&(i="0"+i);const a=+(n+r+i);return"\u514d\u8d39\u7248"!=e.userInfo?.equityDto?.description||e.userInfo?.equityDto?.expireDate>=a}},Aw={async login({commit:e},t){try{return e("setToken",(await oQ("/user/signIn",t)).token),!0}catch(kJe){return!1}},async quickLogin({commit:e,state:t}){try{return e("setToken",(await oQ("/user/quickSignIn")).token),!0}catch(kJe){}},async getUserInfo({commit:e,state:t}){try{const t=await OQ(),n=await oQ("/user/get",{ivCode:t.invite_code,version:CQ});return e("setUserInfo",n),n}catch(kJe){}},async logout({commit:e}){try{await oQ("/user/signOut"),e("removeToken"),e("removeUserInfo")}catch(kJe){}},getWaitPayOrder({commit:e,state:t}){"master"===t.userInfo.type&&oQ("/equity/payOrder/waitPay",{}).then(t=>{"ok"===t.code&&e("setWaitPay",t.data)})}},Cw={namespaced:!0,state:Sw,mutations:_w,actions:Aw,getters:kw};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Tw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ow(e,t){if(e){if("string"==typeof e)return Tw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tw(e,t):void 0}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Iw(e){return function(e){if(Array.isArray(e))return Tw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ow(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Ew(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||Ow(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Mw(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Dw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Rw(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){var r=new RegExp("MSIE (\\d+\\.\\d+);"),i=e.match(r);if(!i)return-1;var a=parseFloat(i[1]);return a<7?6:a}return n?11:Number.MAX_SAFE_INTEGER}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lw(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var jw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function zw(e){return(zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Bw="object"==zw(jw)&&jw&&jw.Object===Object&&jw,Vw=Bw,Hw="object"==("undefined"==typeof self?"undefined":zw(self))&&self&&self.Object===Object&&self,Ww=Vw||Hw||Function("return this")(),Uw=Ww.Symbol,Xw=Uw,Gw=Object.prototype,Yw=Gw.hasOwnProperty,Kw=Gw.toString,qw=Xw?Xw.toStringTag:void 0;var Zw=function(e){var t=Yw.call(e,qw),n=e[qw];try{e[qw]=void 0;var r=!0}catch(kJe){}var i=Kw.call(e);return r&&(t?e[qw]=n:delete e[qw]),i},Jw=Object.prototype.toString;var Qw=Zw,$w=function(e){return Jw.call(e)},ex=Uw?Uw.toStringTag:void 0;var tx=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ex&&ex in Object(e)?Qw(e):$w(e)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var nx=function(e){var t=zw(e);return null!=e&&("object"==t||"function"==t)},rx=tx,ix=nx;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var ax,ox=function(e){if(!ix(e))return!1;var t=rx(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sx=Ww["__core-js_shared__"],lx=(ax=/[^.]+$/.exec(sx&&sx.keys&&sx.keys.IE_PROTO||""))?"Symbol(src)_1."+ax:"";
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var ux=function(e){return!!lx&&lx in e},cx=Function.prototype.toString;var dx=function(e){if(null!=e){try{return cx.call(e)}catch(kJe){}try{return e+""}catch(kJe){}}return""},fx=ox,hx=ux,px=nx,mx=dx,vx=/^\[object .+?Constructor\]$/,gx=Function.prototype,yx=Object.prototype,bx=gx.toString,xx=yx.hasOwnProperty,Sx=RegExp("^"+bx.call(xx).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var _x=function(e){return!(!px(e)||hx(e))&&(fx(e)?Sx:vx).test(mx(e))},kx=function(e,t){return null==e?void 0:e[t]};var Ax=function(e,t){var n=kx(e,t);return _x(n)?n:void 0},Cx=Ax(Ww,"Map");var Tx=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e,t){return e===t||e!=e&&t!=t};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Ox=function(){this.__data__=[],this.size=0},Ix=Tx;var Px=function(e,t){for(var n=e.length;n--;)if(Ix(e[n][0],t))return n;return-1},Ex=Px,Mx=Array.prototype.splice;var Dx=Px;var Rx=Px;var Lx=Px;var Nx=Ox,jx=function(e){var t=this.__data__,n=Ex(t,e);return!(n<0)&&(n==t.length-1?t.pop():Mx.call(t,n,1),--this.size,!0)},Fx=function(e){var t=this.__data__,n=Dx(t,e);return n<0?void 0:t[n][1]},zx=function(e){return Rx(this.__data__,e)>-1},Bx=function(e,t){var n=this.__data__,r=Lx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Vx(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vx.prototype.clear=Nx,Vx.prototype.delete=jx,Vx.prototype.get=Fx,Vx.prototype.has=zx,Vx.prototype.set=Bx;var Hx=Vx,Wx=Ax(Object,"create"),Ux=Wx;var Xx=function(){this.__data__=Ux?Ux(null):{},this.size=0};var Gx=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yx=Wx,Kx=Object.prototype.hasOwnProperty;var qx=function(e){var t=this.__data__;if(Yx){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Kx.call(t,e)?t[e]:void 0},Zx=Wx,Jx=Object.prototype.hasOwnProperty;var Qx=Wx;var $x=Xx,eS=Gx,tS=qx,nS=function(e){var t=this.__data__;return Zx?void 0!==t[e]:Jx.call(t,e)},rS=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qx&&void 0===t?"__lodash_hash_undefined__":t,this};function iS(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}iS.prototype.clear=$x,iS.prototype.delete=eS,iS.prototype.get=tS,iS.prototype.has=nS,iS.prototype.set=rS;var aS=iS,oS=Hx,sS=Cx;var lS=function(e){var t=zw(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var uS=function(e,t){var n=e.__data__;return lS(t)?n["string"==typeof t?"string":"hash"]:n.map},cS=uS;var dS=uS;var fS=uS;var hS=uS;var pS=function(){this.size=0,this.__data__={hash:new aS,map:new(sS||oS),string:new aS}},mS=function(e){var t=cS(this,e).delete(e);return this.size-=t?1:0,t},vS=function(e){return dS(this,e).get(e)},gS=function(e){return fS(this,e).has(e)},yS=function(e,t){var n=hS(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function bS(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bS.prototype.clear=pS,bS.prototype.delete=mS,bS.prototype.get=vS,bS.prototype.has=gS,bS.prototype.set=yS;var wS=bS;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var xS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var SS=function(e){return null!=e&&"object"==zw(e)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var _S=function(e){return function(t){return e(t)}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var kS=function(e,t){return function(n){return e(t(n))}},AS=Object.prototype;var CS=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||AS)},TS={exports:{}};var OS=function(){return!1};!function(e,t){var n=Ww,r=OS,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,s=(o?o.isBuffer:void 0)||r;e.exports=s}(TS,TS.exports);var IS=tx,PS=xS,ES=SS,MS={};MS["[object Float32Array]"]=MS["[object Float64Array]"]=MS["[object Int8Array]"]=MS["[object Int16Array]"]=MS["[object Int32Array]"]=MS["[object Uint8Array]"]=MS["[object Uint8ClampedArray]"]=MS["[object Uint16Array]"]=MS["[object Uint32Array]"]=!0,MS["[object Arguments]"]=MS["[object Array]"]=MS["[object ArrayBuffer]"]=MS["[object Boolean]"]=MS["[object DataView]"]=MS["[object Date]"]=MS["[object Error]"]=MS["[object Function]"]=MS["[object Map]"]=MS["[object Number]"]=MS["[object Object]"]=MS["[object RegExp]"]=MS["[object Set]"]=MS["[object String]"]=MS["[object WeakMap]"]=!1;var DS=function(e){return ES(e)&&PS(e.length)&&!!MS[IS(e)]},RS={exports:{}};!function(e,t){var n=Bw,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r&&n.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(kJe){}}();e.exports=o}(RS,RS.exports);var LS=DS,NS=_S,jS=RS.exports,FS=jS&&jS.isTypedArray,zS=FS?NS(FS):LS,BS=Ax,VS=function(){try{var e=BS(Object,"defineProperty");return e({},"",{}),e}catch(kJe){}}(),HS=VS;var WS=function(e,t,n){"__proto__"==t&&HS?HS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},US=WS,XS=Tx,GS=Object.prototype.hasOwnProperty;var YS=function(e,t,n){var r=e[t];GS.call(e,t)&&XS(r,n)&&(void 0!==n||t in e)||US(e,t,n)},KS=tx,qS=SS;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var ZS=function(e){return qS(e)&&"[object Arguments]"==KS(e)},JS=SS,QS=Object.prototype,$S=QS.hasOwnProperty,e_=QS.propertyIsEnumerable,t_=ZS(function(){return arguments}())?ZS:function(e){return JS(e)&&$S.call(e,"callee")&&!e_.call(e,"callee")},n_=t_,r_=Array.isArray,i_=/^(?:0|[1-9]\d*)$/;var a_=function(e,t){var n=zw(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&i_.test(e))&&e>-1&&e%1==0&&e<t},o_=ox,s_=xS;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var l_=function(e){return null!=e&&s_(e.length)&&!o_(e)},u_=Hx;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var c_=Hx,d_=Cx,f_=wS;var h_=Hx,p_=function(){this.__data__=new u_,this.size=0},m_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},v_=function(e){return this.__data__.get(e)},g_=function(e){return this.__data__.has(e)},y_=function(e,t){var n=this.__data__;if(n instanceof c_){var r=n.__data__;if(!d_||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new f_(r)}return n.set(e,t),this.size=n.size,this};function b_(e){var t=this.__data__=new h_(e);this.size=t.size}b_.prototype.clear=p_,b_.prototype.delete=m_,b_.prototype.get=v_,b_.prototype.has=g_,b_.prototype.set=y_;var w_=b_,x_={exports:{}};!function(e,t){var n=Ww,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}}(x_,x_.exports);var S_=Ww.Uint8Array,__=S_;var k_=function(e){var t=new e.constructor(e.byteLength);return new __(t).set(new __(e)),t},A_=k_;var C_=function(e,t){var n=t?A_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var T_=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},O_=nx,I_=Object.create,P_=function(){function e(){}return function(t){if(!O_(t))return{};if(I_)return I_(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),E_=kS(Object.getPrototypeOf,Object),M_=P_,D_=E_,R_=CS;var L_=function(e){return"function"!=typeof e.constructor||R_(e)?{}:M_(D_(e))},N_=YS,j_=WS;var F_=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?j_(n,s,l):N_(n,s,l)}return n};var z_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},B_=n_,V_=r_,H_=TS.exports,W_=a_,U_=zS,X_=Object.prototype.hasOwnProperty;var G_=function(e,t){var n=V_(e),r=!n&&B_(e),i=!n&&!r&&H_(e),a=!n&&!r&&!i&&U_(e),o=n||r||i||a,s=o?z_(e.length,String):[],l=s.length;for(var u in e)!t&&!X_.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||W_(u,l))||s.push(u);return s};var Y_=nx,K_=CS,q_=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Z_=Object.prototype.hasOwnProperty;var J_=G_,Q_=function(e){if(!Y_(e))return q_(e);var t=K_(e),n=[];for(var r in e)("constructor"!=r||!t&&Z_.call(e,r))&&n.push(r);return n},$_=l_;var ek=function(e){return $_(e)?J_(e,!0):Q_(e)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var tk=function(e){return e};var nk=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},rk=nk,ik=Math.max;var ak=function(e,t,n){return t=ik(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ik(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),rk(e,this,s)}};var ok=function(e){return function(){return e}},sk=VS,lk=sk?function(e,t){return sk(e,"toString",{configurable:!0,enumerable:!1,value:ok(t),writable:!0})}:tk,uk=Date.now;var ck=function(e){var t=0,n=0;return function(){var r=uk(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},dk=ck(lk),fk=l_,hk=SS;var pk=function(e){return hk(e)&&fk(e)},mk=tk,vk=ak,gk=dk;var yk=function(e,t){return gk(vk(e,t,mk),e+"")},bk=tx,wk=E_,xk=SS,Sk=Function.prototype,_k=Object.prototype,kk=Sk.toString,Ak=_k.hasOwnProperty,Ck=kk.call(Object);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Tk=function(e){if(!xk(e)||"[object Object]"!=bk(e))return!1;var t=wk(e);if(null===t)return!0;var n=Ak.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&kk.call(n)==Ck},Ok=Tx,Ik=l_,Pk=a_,Ek=nx;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Mk=function(e,t,n){if(!Ek(n))return!1;var r=zw(t);return!!("number"==r?Ik(n)&&Pk(t,n.length):"string"==r&&t in n)&&Ok(n[t],e)},Dk=WS,Rk=Tx;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Lk=function(e,t,n){(void 0!==n&&!Rk(e[t],n)||void 0===n&&!(t in e))&&Dk(e,t,n)};var Nk=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}();var jk=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Fk=F_,zk=ek;var Bk=Lk,Vk=x_.exports,Hk=C_,Wk=T_,Uk=L_,Xk=n_,Gk=r_,Yk=pk,Kk=TS.exports,qk=ox,Zk=nx,Jk=Tk,Qk=zS,$k=jk,eA=function(e){return Fk(e,zk(e))};var tA=w_,nA=Lk,rA=Nk,iA=function(e,t,n,r,i,a,o){var s=$k(e,n),l=$k(t,n),u=o.get(l);if(u)Bk(e,n,u);else{var c=a?a(s,l,n+"",e,t,o):void 0,d=void 0===c;if(d){var f=Gk(l),h=!f&&Kk(l),p=!f&&!h&&Qk(l);c=l,f||h||p?Gk(s)?c=s:Yk(s)?c=Wk(s):h?(d=!1,c=Vk(l,!0)):p?(d=!1,c=Hk(l,!0)):c=[]:Jk(l)||Xk(l)?(c=s,Xk(s)?c=eA(s):Zk(s)&&!qk(s)||(c=Uk(l))):d=!1}d&&(o.set(l,c),i(c,l,r,a,o),o.delete(l)),Bk(e,n,c)}},aA=nx,oA=ek,sA=jk;var lA=function e(t,n,r,i,a){t!==n&&rA(n,function(o,s){if(a||(a=new tA),aA(o))iA(t,n,s,r,e,i,a);else{var l=i?i(sA(t,s),o,s+"",t,n,a):void 0;void 0===l&&(l=o),nA(t,s,l)}},oA)},uA=yk,cA=Mk;var dA=function(e){return uA(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&cA(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})},fA=lA,hA=dA(function(e,t,n,r){fA(e,t,n,r)}),pA=lA,mA=dA(function(e,t,n){pA(e,t,n)}),vA=function(e){return e.ripple="ripple",e.expand="expand",e.fade="fade",e}(vA||{}),gA=mA({classPrefix:"t",animation:{include:["ripple","expand","fade"],exclude:[]},calendar:{firstDayOfWeek:1,fillWithZero:!0,controllerConfig:void 0},icon:{},input:{autocomplete:""},dialog:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmBtnTheme:{default:"primary",info:"primary",warning:"primary",danger:"primary",success:"primary"}},popconfirm:{confirmBtnTheme:{default:"primary",warning:"primary",danger:"primary"}},table:{expandIcon:void 0,sortIcon:void 0,filterIcon:void 0,treeExpandAndFoldIcon:void 0,hideSortTips:!1},select:{clearIcon:void 0,filterable:!1},drawer:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,size:"small"},tree:{folderIcon:void 0},datePicker:{firstDayOfWeek:1},steps:{errorIcon:void 0},tag:{closeIcon:void 0},form:{requiredMark:!0}},{pagination:{itemsPerPage:"{size} \u6761/\u9875",jumpTo:"\u8df3\u81f3",page:"\u9875",total:"\u5171 {total} \u9879\u6570\u636e"},cascader:{empty:"\u6682\u65e0\u6570\u636e",loadingText:"\u52a0\u8f7d\u4e2d",placeholder:"\u8bf7\u9009\u62e9"},calendar:{yearSelection:"{year} \u5e74",monthSelection:"{month} \u6708",yearRadio:"\u5e74",monthRadio:"\u6708",hideWeekend:"\u9690\u85cf\u5468\u672b",showWeekend:"\u663e\u793a\u5468\u672b",today:"\u4eca\u5929",thisMonth:"\u672c\u6708",week:"\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d,\u65e5",cellMonth:"\u4e00\u6708,\u4e8c\u6708,\u4e09\u6708,\u56db\u6708,\u4e94\u6708,\u516d\u6708,\u4e03\u6708,\u516b\u6708,\u4e5d\u6708,\u5341\u6708,\u5341\u4e00\u6708,\u5341\u4e8c\u6708"},transfer:{title:"{checked} / {total} \u9879",empty:"\u6682\u65e0\u6570\u636e",placeholder:"\u8bf7\u8f93\u5165\u5173\u952e\u8bcd\u641c\u7d22"},timePicker:{now:"\u6b64\u523b",confirm:"\u786e\u5b9a",anteMeridiem:"\u4e0a\u5348",postMeridiem:"\u4e0b\u5348",placeholder:"\u9009\u62e9\u65f6\u95f4"},dialog:{confirm:"\u786e\u8ba4",cancel:"\u53d6\u6d88"},drawer:{confirm:"\u786e\u8ba4",cancel:"\u53d6\u6d88"},popconfirm:{confirm:{content:"\u786e\u5b9a"},cancel:{content:"\u53d6\u6d88"}},table:{empty:"\u6682\u65e0\u6570\u636e",loadingText:"\u6b63\u5728\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e",loadingMoreText:"\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a",filterInputPlaceholder:"\u8bf7\u8f93\u5165\u5185\u5bb9\uff08\u65e0\u9ed8\u8ba4\u503c\uff09",sortAscendingOperationText:"\u70b9\u51fb\u5347\u5e8f",sortCancelOperationText:"\u70b9\u51fb\u53d6\u6d88\u6392\u5e8f",sortDescendingOperationText:"\u70b9\u51fb\u964d\u5e8f",clearFilterResultButtonText:"\u6e05\u7a7a\u7b5b\u9009",columnConfigButtonText:"\u5217\u914d\u7f6e",columnConfigTitleText:"\u8868\u683c\u5217\u914d\u7f6e",columnConfigDescriptionText:"\u8bf7\u9009\u62e9\u9700\u8981\u5728\u8868\u683c\u4e2d\u663e\u793a\u7684\u6570\u636e\u5217",confirmText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",resetText:"\u91cd\u7f6e",selectAllText:"\u5168\u9009",searchResultText:"\u641c\u7d22\u201c{result}\u201d\uff0c\u627e\u5230 {count} \u6761\u7ed3\u679c"},select:{empty:"\u6682\u65e0\u6570\u636e",loadingText:"\u52a0\u8f7d\u4e2d",placeholder:"\u8bf7\u9009\u62e9"},tree:{empty:"\u6682\u65e0\u6570\u636e"},treeSelect:{empty:"\u6682\u65e0\u6570\u636e",loadingText:"\u52a0\u8f7d\u4e2d",placeholder:"\u8bf7\u9009\u62e9"},datePicker:{placeholder:{date:"\u8bf7\u9009\u62e9\u65e5\u671f",month:"\u8bf7\u9009\u62e9\u6708\u4efd",year:"\u8bf7\u9009\u62e9\u5e74\u4efd"},weekdays:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u65e5"],months:["1 \u6708","2 \u6708","3 \u6708","4 \u6708","5 \u6708","6 \u6708","7 \u6708","8 \u6708","9 \u6708","10 \u6708","11 \u6708","12 \u6708"],quarters:["\u4e00\u5b63\u5ea6","\u4e8c\u5b63\u5ea6","\u4e09\u5b63\u5ea6","\u56db\u5b63\u5ea6"],rangeSeparator:" - ",direction:"ltr",format:"YYYY-MM-DD",dayAriaLabel:"\u65e5",weekAbbreviation:"\u5468",yearAriaLabel:"\u5e74",monthAriaLabel:"\u6708",confirm:"\u786e\u5b9a",selectTime:"\u9009\u62e9\u65f6\u95f4",selectDate:"\u9009\u62e9\u65e5\u671f",nextYear:"\u4e0b\u4e00\u5e74",preYear:"\u4e0a\u4e00\u5e74",nextMonth:"\u4e0b\u4e2a\u6708",preMonth:"\u4e0a\u4e2a\u6708",preDecade:"\u4e0a\u4e2a\u5341\u5e74",nextDecade:"\u4e0b\u4e2a\u5341\u5e74",now:"\u5f53\u524d"},upload:{sizeLimitMessage:"\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 {sizeLimit}",cancelUploadText:"\u53d6\u6d88\u4e0a\u4f20",triggerUploadText:{fileInput:"\u9009\u62e9\u6587\u4ef6",image:"\u70b9\u51fb\u4e0a\u4f20\u56fe\u7247",normal:"\u70b9\u51fb\u4e0a\u4f20",reupload:"\u91cd\u65b0\u4e0a\u4f20",continueUpload:"\u7ee7\u7eed\u4e0a\u4f20",delete:"\u5220\u9664"},dragger:{dragDropText:"\u91ca\u653e\u9f20\u6807",draggingText:"\u62d6\u62fd\u5230\u6b64\u533a\u57df",clickAndDragText:"\u70b9\u51fb\u4e0a\u65b9\u201c\u9009\u62e9\u6587\u4ef6\u201d\u6216\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u6b64\u533a\u57df"},file:{fileNameText:"\u6587\u4ef6\u540d",fileSizeText:"\u6587\u4ef6\u5927\u5c0f",fileStatusText:"\u72b6\u6001",fileOperationText:"\u64cd\u4f5c",fileOperationDateText:"\u4e0a\u4f20\u65e5\u671f"},progress:{uploadingText:"\u4e0a\u4f20\u4e2d",waitingText:"\u5f85\u4e0a\u4f20",failText:"\u4e0a\u4f20\u5931\u8d25",successText:"\u4e0a\u4f20\u6210\u529f"}},form:{errorMessage:{date:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684${name}",url:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684${name}",required:"${name}\u5fc5\u586b",max:"${name}\u5b57\u7b26\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7 ${validate} \u4e2a\u5b57\u7b26\uff0c\u4e00\u4e2a\u4e2d\u6587\u7b49\u4e8e\u4e24\u4e2a\u5b57\u7b26",min:"${name}\u5b57\u7b26\u957f\u5ea6\u4e0d\u80fd\u5c11\u4e8e ${validate} \u4e2a\u5b57\u7b26\uff0c\u4e00\u4e2a\u4e2d\u6587\u7b49\u4e8e\u4e24\u4e2a\u5b57\u7b26",len:"${name}\u5b57\u7b26\u957f\u5ea6\u5fc5\u987b\u662f ${validate}",enum:"${name}\u53ea\u80fd\u662f${validate}\u7b49",idcard:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684${name}",telnumber:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684${name}",pattern:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684${name}",validator:"${name}\u4e0d\u7b26\u5408\u8981\u6c42",boolean:"${name}\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u662f\u5e03\u5c14\u7c7b\u578b",number:"${name}\u5fc5\u987b\u662f\u6570\u5b57"}},input:{placeholder:"\u8bf7\u8f93\u5165"},list:{loadingText:"\u6b63\u5728\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u7b49",loadingMoreText:"\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a"},alert:{expandText:"\u5c55\u5f00\u66f4\u591a",collapseText:"\u6536\u8d77"},anchor:{copySuccessText:"\u94fe\u63a5\u590d\u5236\u6210\u529f",copyText:"\u590d\u5236\u94fe\u63a5"},colorPicker:{swatchColorTitle:"\u7cfb\u7edf\u9884\u8bbe\u989c\u8272",recentColorTitle:"\u6700\u8fd1\u4f7f\u7528\u989c\u8272",clearConfirmText:"\u786e\u5b9a\u6e05\u7a7a\u6700\u8fd1\u4f7f\u7528\u7684\u989c\u8272\u5417\uff1f"}}),yA=Symbol("configProvide");
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function bA(e){var t=yi(yA,null),n=vo(function(){return(null==t?void 0:t.value)||gA});return{t:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0];if("string"==typeof e){if(!i)return e;return e.replace(/\{\s*([\w-]+)\s*\}/g,function(e,t){return i?String(i[t]):""})}return"function"==typeof e?n.length?e.apply(void 0,n):e(go):""},globalConfig:vo(function(){return n.value[e]}),classPrefix:vo(function(){return n.value.classPrefix})}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function wA(e){var t=bA("classPrefix").classPrefix;return vo(function(){return e?"".concat(t.value,"-").concat(e):t.value})}function xA(){var e=bA("classPrefix").classPrefix;return{SIZE:vo(function(){return{small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")}}),STATUS:vo(function(){return{loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")}})}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var SA=yr({name:"TLoadingGradient",setup:function(){var e=wA();return Er(function(){!function(e){var t,n,r,i,a={};if(e){var o=null===(t=window)||void 0===t||null===(n=t.getComputedStyle)||void 0===n?void 0:n.call(t,e),s=o.color,l=o.fontSize,u=null===(r=window)||void 0===r||null===(i=r.navigator)||void 0===i?void 0:i.userAgent,c=/Safari/.test(u)&&!/Chrome/.test(u),d=/(?=.*iPhone)[?=.*MicroMessenger]/.test(u)&&!/Chrome/.test(u);if((c||d)&&(a={transformOrigin:"-1px -1px",transform:"scale(".concat(parseInt(l,10)/14,")")}),s&&Rw()>11){var f=s.match(/[\d.]+/g),h=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";Mw(e,Nw(Nw({},a),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(h," 0deg, ").concat(s," 360deg)")}))}else Mw(e,Nw(Nw({},a),{},{background:""}))}}(Za().refs.circle)}),{classPrefix:e}},render:function(){var e=this.classPrefix,t="".concat(e,"-loading__gradient"),n=[t,"".concat(e,"-icon-loading")];return Na("svg",{class:n,viewBox:"0 0 14 14",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[Na("foreignObject",{x:"1",y:"1",width:"12",height:"12"},[Na("div",{class:"".concat(t,"-conic"),ref:"circle"},null)])])}}),_A=tx,kA=r_,AA=SS;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var CA=function(e){return"string"==typeof e||!kA(e)&&AA(e)&&"[object String]"==_A(e)},TA={exports:{}},OA={exports:{}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */(function(){var e,t,n,r,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?OA.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(OA.exports=function(){return(e()-i)/1e6},t=process.hrtime,r=(e=function(){var e;return 1e9*(e=t())[0]+e[1]})(),a=1e9*process.uptime(),i=r-a):Date.now?(OA.exports=function(){return Date.now()-n},n=Date.now()):(OA.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(jw);for(var IA=OA.exports,PA="undefined"==typeof window?jw:window,EA=["moz","webkit"],MA="AnimationFrame",DA=PA["request"+MA],RA=PA["cancel"+MA]||PA["cancelRequest"+MA],LA=0;!DA&&LA<EA.length;LA++)DA=PA[EA[LA]+"Request"+MA],RA=PA[EA[LA]+"Cancel"+MA]||PA[EA[LA]+"CancelRequest"+MA];if(!DA||!RA){var NA=0,jA=0,FA=[],zA=1e3/60;DA=function(e){if(0===FA.length){var t=IA(),n=Math.max(0,zA-(t-NA));NA=n+t,setTimeout(function(){var e=FA.slice(0);FA.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(NA)}catch(kJe){setTimeout(function(){throw kJe},0)}},Math.round(n))}return FA.push({handle:++jA,callback:e,cancelled:!1}),jA},RA=function(e){for(var t=0;t<FA.length;t++)FA[t].handle===e&&(FA[t].cancelled=!0)}}TA.exports=function(e){return DA.call(PA,e)},TA.exports.cancel=function(){RA.apply(PA,arguments)},TA.exports.polyfill=function(e){e||(e=PA),e.requestAnimationFrame=DA,e.cancelAnimationFrame=RA};var BA="undefined"==typeof window,VA=!BA&&document.addEventListener?function(e,t,n,r){e&&t&&n&&e.addEventListener(t,n,r)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},HA=!BA&&document.removeEventListener?function(e,t,n,r){e&&t&&e.removeEventListener(t,n,r)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function WA(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):" ".concat(e.className," ").indexOf(" ".concat(t," "))>-1}function UA(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,a=r.length;i<a;i++){var o=r[i];o&&(e.classList?e.classList.add(o):WA(e,o)||(n+=" ".concat(o)))}e.classList||(e.className=n)}}function XA(e,t){if(e&&t){for(var n=t.split(" "),r=" ".concat(e.className," "),i=0,a=n.length;i<a;i++){var o=n[i];o&&(e.classList?e.classList.remove(o):WA(e,o)&&(r=r.replace(" ".concat(o," ")," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}var GA=function(e,t){var n="function"==typeof e?e(t):e;return n?CA(n)?document.querySelector(n):n instanceof HTMLElement?n:document.body:document.body},YA=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";return CA(e)?document.querySelector(e):"function"==typeof e?e():e},KA=function(e){var t=e.clientWidth,n=void 0===t?0:t,r=e.scrollWidth;return(void 0===r?0:r)>n},qA=function(e){if(!(e instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var t=document.createElement("input");t.type="submit",t.hidden=!0,e.appendChild(t),t.click(),e.removeChild(t)},ZA=kS(Object.keys,Object),JA=CS,QA=ZA,$A=Object.prototype.hasOwnProperty;var eC=function(e){if(!JA(e))return QA(e);var t=[];for(var n in Object(e))$A.call(e,n)&&"constructor"!=n&&t.push(n);return t},tC=Ax(Ww,"DataView"),nC=Cx,rC=Ax(Ww,"Promise"),iC=Ax(Ww,"Set"),aC=Ax(Ww,"WeakMap"),oC=tx,sC=dx,lC="[object Map]",uC="[object Promise]",cC="[object Set]",dC="[object WeakMap]",fC="[object DataView]",hC=sC(tC),pC=sC(nC),mC=sC(rC),vC=sC(iC),gC=sC(aC),yC=oC;(tC&&yC(new tC(new ArrayBuffer(1)))!=fC||nC&&yC(new nC)!=lC||rC&&yC(rC.resolve())!=uC||iC&&yC(new iC)!=cC||aC&&yC(new aC)!=dC)&&(yC=function(e){var t=oC(e),n="[object Object]"==t?e.constructor:void 0,r=n?sC(n):"";if(r)switch(r){case hC:return fC;case pC:return lC;case mC:return uC;case vC:return cC;case gC:return dC}return t});var bC=yC,wC=eC,xC=bC,SC=n_,_C=r_,kC=l_,AC=TS.exports,CC=CS,TC=zS,OC=Object.prototype.hasOwnProperty;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var IC=function(e){if(null==e)return!0;if(kC(e)&&(_C(e)||"string"==typeof e||"function"==typeof e.splice||AC(e)||TC(e)||SC(e)))return!e.length;var t=xC(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(CC(e))return!wC(e).length;for(var n in e)if(OC.call(e,n))return!1;return!0};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var PC=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},EC=tx,MC=SS;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var DC=function(e){return"symbol"==zw(e)||MC(e)&&"[object Symbol]"==EC(e)},RC=PC,LC=r_,NC=DC,jC=Uw?Uw.prototype:void 0,FC=jC?jC.toString:void 0;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var zC=function e(t){if("string"==typeof t)return t;if(LC(t))return RC(t,e)+"";if(NC(t))return FC?FC.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},BC=zC;var VC=function(e){return null==e?"":BC(e)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var HC=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a},WC=HC;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var UC=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:WC(e,t,n)},XC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var GC=function(e){return XC.test(e)};var YC=function(e){return e.split("")},KC="\\ud800-\\udfff",qC="["+KC+"]",ZC="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",JC="\\ud83c[\\udffb-\\udfff]",QC="[^"+KC+"]",$C="(?:\\ud83c[\\udde6-\\uddff]){2}",eT="[\\ud800-\\udbff][\\udc00-\\udfff]",tT="(?:"+ZC+"|"+JC+")"+"?",nT="[\\ufe0e\\ufe0f]?",rT=nT+tT+("(?:\\u200d(?:"+[QC,$C,eT].join("|")+")"+nT+tT+")*"),iT="(?:"+[QC+ZC+"?",ZC,$C,eT,qC].join("|")+")",aT=RegExp(JC+"(?="+JC+")|"+iT+rT,"g");var oT=YC,sT=GC,lT=function(e){return e.match(aT)||[]};var uT=function(e){return sT(e)?lT(e):oT(e)},cT=UC,dT=GC,fT=uT,hT=VC;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var pT=function(e){return function(t){t=hT(t);var n=dT(t)?fT(t):void 0,r=n?n[0]:t.charAt(0),i=n?cT(n,1).join(""):t.slice(1);return r[e]()+i}}("toUpperCase"),mT=VC,vT=pT;var gT=function(e){return vT(mT(e).toLowerCase())};var yT=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n};var bT=function(e){return function(t){return null==e?void 0:e[t]}},wT=bT({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),xT=VC,ST=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_T=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var kT=function(e){return(e=xT(e))&&e.replace(ST,wT).replace(_T,"")},AT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var CT=function(e){return e.match(AT)||[]},TT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var OT=function(e){return TT.test(e)},IT="\\ud800-\\udfff",PT="\\u2700-\\u27bf",ET="a-z\\xdf-\\xf6\\xf8-\\xff",MT="A-Z\\xc0-\\xd6\\xd8-\\xde",DT="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",RT="["+DT+"]",LT="\\d+",NT="["+PT+"]",jT="["+ET+"]",FT="[^"+IT+DT+LT+PT+ET+MT+"]",zT="(?:\\ud83c[\\udde6-\\uddff]){2}",BT="[\\ud800-\\udbff][\\udc00-\\udfff]",VT="["+MT+"]",HT="(?:"+jT+"|"+FT+")",WT="(?:"+VT+"|"+FT+")",UT="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",XT="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",GT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",YT="[\\ufe0e\\ufe0f]?",KT=YT+GT+("(?:\\u200d(?:"+["[^"+IT+"]",zT,BT].join("|")+")"+YT+GT+")*"),qT="(?:"+[NT,zT,BT].join("|")+")"+KT,ZT=RegExp([VT+"?"+jT+"+"+UT+"(?="+[RT,VT,"$"].join("|")+")",WT+"+"+XT+"(?="+[RT,VT+HT,"$"].join("|")+")",VT+"?"+HT+"+"+UT,VT+"+"+XT,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LT,qT].join("|"),"g");var JT=CT,QT=OT,$T=VC,eO=function(e){return e.match(ZT)||[]};var tO=yT,nO=kT,rO=function(e,t,n){return e=$T(e),void 0===(t=n?void 0:t)?QT(e)?eO(e):JT(e):e.match(t)||[]},iO=RegExp("['\u2019]","g");var aO=function(e){return function(t){return tO(rO(nO(t).replace(iO,"")),e,"")}},oO=gT,sO=aO(function(e,t,n){return t=t.toLowerCase(),e+(n?oO(t):t)}),lO=aO(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});function uO(e){var t;return nx(e)&&"defaultNode"in e?t=e.defaultNode:(Ea(e)||CA(e))&&(t=e),t}function cO(e){return nx(e)&&"params"in e?e.params:{}}function dO(e,t,n){var r,i,a,o,s=null===(r=(i=e.$slots)[sO(n)])||void 0===r?void 0:r.call(i,t);return s||((s=null===(a=(o=e.$slots)[lO(n)])||void 0===a?void 0:a.call(o,t))||null)}var fO=function(e,t,n){var r,i=cO(n),a=uO(n);if(t in e&&(r=e[t]),!1!==r)return!0===r&&a?dO(e,i,t)||a:ox(r)?r(go,i):[void 0,i,""].includes(r)&&(e.$slots[sO(t)]||e.$slots[lO(t)])?dO(e,i,t):r},hO=function(e,t,n,r){var i=cO(r),a=uO(r),o=i?{params:i}:void 0,s=fO(e,t,o),l=fO(e,n,o),u=IC(s)?l:s;return IC(u)?a:u},pO={mounted:function(e,t){if(t.value){var n=GA(t.value);null==n||n.appendChild(e)}}},mO={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}},vO=yr({name:"TLoading",directives:{TransferDom:pO},props:mO,setup:function(e,t){var n=t.slots,r=Et(!1),i={name:wA("loading"),centerClass:wA("loading--center"),fullscreenClass:wA("loading__fullscreen"),lockClass:wA("loading--lock"),overlayClass:wA("loading__overlay"),relativeClass:wA("loading__parent"),fullClass:wA("loading--full"),inheritColorClass:wA("loading--inherit-color")},a=i.name,o=i.centerClass,s=i.fullscreenClass,l=i.lockClass,u=i.overlayClass,c=i.relativeClass,d=i.fullClass,f=i.inheritColorClass,h=wA(),p=xA().SIZE,m=function(){r.value=!1;var t=setTimeout(function(){r.value=!0,clearTimeout(t)},e.delay)},v=vo(function(){return Boolean(!e.delay||e.delay&&r.value)}),g=vo(function(){var t={};return void 0!==e.zIndex&&(t.zIndex=e.zIndex),["small","medium","large"].includes(e.size)||(t["font-size"]=e.size),t}),y=vo(function(){return Boolean(e.default||n.default||e.content||n.content)}),b=vo(function(){return e.preventScrollThrough&&e.fullscreen}),w=vo(function(){return Boolean(e.text||n.text)}),x=vo(function(){return y.value&&e.loading&&v.value}),S=vo(function(){return e.fullscreen&&e.loading&&v.value}),_=vo(function(){return e.attach&&e.loading&&v.value}),k=vo(function(){return e.attach&&e.loading&&v.value}),A=vo(function(){var t=[o.value,p.value[e.size],Pw({},f.value,e.inheritColor)],n=[a.value,s.value,o.value,u.value];return{baseClasses:t,attachClasses:t.concat([a.value,d.value,Pw({},u.value,e.showOverlay)]),withContentClasses:t.concat([a.value,d.value,Pw({},u.value,e.showOverlay)]),fullScreenClasses:n,normalClasses:t.concat([a.value])}});return ta([Ft(e).loading],function(e){Ew(e,1)[0]?(m(),b.value&&UA(document.body,l.value)):b.value&&XA(document.body,l.value)}),Er(function(){e.delay&&m()}),{classPrefix:h,relativeClass:c,delayShowLoading:r,styles:g,showText:w,hasContent:y,classes:A,lockFullscreen:b,showWrapLoading:x,showNormalLoading:_,showFullScreenLoading:S,showAttachedLoading:k}},render:function(){var e=this.classes,t=e.fullScreenClasses,n=e.baseClasses,r=e.withContentClasses,i=e.attachClasses,a=e.normalClasses,o=Na(SA,{size:this.size},null),s=this.loading&&fO(this,"indicator",o),l=this.showText&&Na("div",{class:"".concat(this.classPrefix,"-loading__text")},[fO(this,"text")]);return this.fullscreen?this.showFullScreenLoading?Xn(Na("div",{class:t,style:this.styles},[Na("div",{class:n},[s,l])]),[[Wr("transfer-dom"),this.attach]]):null:this.hasContent?Na("div",{class:this.relativeClass},[hO(this,"default","content"),this.showWrapLoading&&Na("div",{class:r,style:this.styles},[s,l])]):this.attach?this.showAttachedLoading?Xn(Na("div",{class:i,style:this.styles},[s,l]),[[Wr("transfer-dom"),this.attach]]):null:Na("div",{class:a,style:this.styles},[s,l])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var yO=null;function bO(e){var t=yr({setup:function(){return{loadingOptions:bt(e)}},render:function(){return go(vO,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.loadingOptions))}}),n=GA(e.attach),r=Ss(t).mount(document.createElement("div")),i=wA("loading__parent--relative").value;return n&&(n.appendChild(r.$el),UA(n,i)),{hide:function(){r.loading=!1,r.$el.parentNode.removeChild(r.$el),XA(n,i)}}}function wO(e){var t=wA("loading--lock");return!0===e?yO=bO({fullscreen:!0,loading:!0,attach:"body"}):(XA(document.body,t.value),!1===e?(XA(document.body,t.value),yO.hide(),void(yO=null)):bO(e))}var xO=wO;xO.install=function(e){e.config.globalProperties.$loading=wO};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var SO=Symbol("TdLoading"),_O=function(e,t){var n=t.modifiers,r=n.fullscreen,i=n.inheritColor,a={attach:function(){return e},fullscreen:null!=r&&r,inheritColor:null!=i&&i,loading:t.value};e[SO]={options:a,instance:xO(a)}},kO={mounted:function(e,t){t.value&&_O(e,t)},updated:function(e,t){var n=e[SO],r=t.value;!!t.oldValue!=!!r&&(r?_O(e,t):null==n||n.instance.hide())},unmounted:function(e){var t;null===(t=e[SO])||void 0===t||t.instance.hide()}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function AO(e,t,n){var r=e;return r.install=function(i,a){i.component(t||a||r.name,e),n&&i.directive(n.name,n.comp)},r}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var CO=AO(vO,vO.name,{name:"loading",comp:kO}),TO={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,href:String,ghost:Boolean,icon:{type:Function},loading:Boolean,shape:{type:String,default:"rectangle",validator:function(e){return["rectangle","square","round","circle"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},tag:{type:String,default:void 0,validator:function(e){return["button","a","div"].includes(e)}},theme:{type:String,default:void 0,validator:function(e){return["default","primary","danger","warning","success"].includes(e)}},type:{type:String,default:"button",validator:function(e){return["submit","reset","button"].includes(e)}},variant:{type:String,default:"base",validator:function(e){return["base","outline","dashed","text"].includes(e)}},onClick:Function},OO=vA.expand,IO=vA.ripple,PO=vA.fade;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function EO(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function MO(e,t){var n,r,i=Et(null),a=wA(),o=(n=bA("animation").globalConfig,{keepExpand:(r=function(e){var t,r,i=n.value;return i&&!(null!==(t=i.exclude)&&void 0!==t&&t.includes(e))&&(null===(r=i.include)||void 0===r?void 0:r.includes(e))})(OO),keepRipple:r(IO),keepFade:r(PO)}).keepRipple,s=function(t){var n=e.value,r=function(e){var t;if(null!=e&&null!==(t=e.dataset)&&void 0!==t&&t.ripple)return e.dataset.ripple;var n=getComputedStyle(e).getPropertyValue("--ripple-color");return n||"rgba(0, 0, 0, 0.35)"}(n);if(0===t.button&&e&&o&&!(n.classList.contains("".concat(a.value,"-is-active"))||n.classList.contains("".concat(a.value,"-is-disabled"))||n.classList.contains("".concat(a.value,"-is-checked"))||n.classList.contains("".concat(a.value,"-is-loading")))){var s=getComputedStyle(n),l=parseInt(s.borderWidth,10),u=l>0?l:0,c=n.offsetWidth,d=n.offsetHeight;null===i.value.parentNode&&(EO(i.value,{position:"absolute",left:"".concat(0-u,"px"),top:"".concat(0-u,"px"),width:"".concat(c,"px"),height:"".concat(d,"px"),borderRadius:s.borderRadius,pointerEvents:"none",overflow:"hidden"}),n.appendChild(i.value));var f=document.createElement("div");EO(f,{marginTop:"0",marginLeft:"0",right:"".concat(c,"px"),width:"".concat(c+20,"px"),height:"100%",transition:"transform ".concat(200,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(400,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:r,opacity:"0.9"});for(var h=new WeakMap,p=n.children.length,m=0;m<p;++m){var v=n.children[m];""===v.style.zIndex&&v!==i.value&&(v.style.zIndex="1",h.set(v,!0))}var g=n.style.position?n.style.position:getComputedStyle(n).position;""!==g&&"static"!==g||(n.style.position="relative"),i.value.insertBefore(f,i.value.firstChild),setTimeout(function(){f.style.transform="translateX(".concat(c,"px)")},0);var y=function t(){f.style.backgroundColor="rgba(0, 0, 0, 0)",e.value&&(e.value.removeEventListener("pointerup",t,!1),e.value.removeEventListener("pointerleave",t,!1),setTimeout(function(){f.remove(),0===i.value.children.length&&i.value.remove()},500))};e.value.addEventListener("pointerup",y,!1),e.value.addEventListener("pointerleave",y,!1)}};Er(function(){var t=e.value;t&&(i.value=document.createElement("div"),t.addEventListener("pointerdown",s,!1))}),Lr(function(){var t;null===(t=e.value)||void 0===t||t.removeEventListener("pointerdown",s,!1)})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function DO(e){var t=Za(),n=vo(function(){return t.props.disabled}),r=yi("formDisabled",Object.create(null)).disabled;return vo(function(){return n.value||(null==r?void 0:r.value)||(null==e?void 0:e.value)||!1})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function RO(e,t,n){var r,i,a,o,s=null===(r=(i=e.slots)[sO(t)])||void 0===r?void 0:r.call(i,n);return s||((s=null===(a=(o=e.slots)[lO(t)])||void 0===a?void 0:a.call(o,n))||null)}var LO=function(){var e=Za();return function(t,n){var r,i=cO(n),a=uO(n);if(Object.keys(e.props).includes(t)&&(r=e.props[t]),!1!==r)return!0===r?RO(e,t,i)||a:ox(r)?r(go,i):[void 0,i,""].includes(r)&&(e.slots[sO(t)]||e.slots[lO(t)])?RO(e,t,i):r}},NO=function(){var e=LO();return function(t,n){var r=uO(n);return e(t,n)||r}},jO=function(){var e=LO();return function(t,n,r){var i=cO(r),a=uO(r),o=i?{params:i}:void 0,s=e(t,o),l=e(n,o),u=IC(s)?l:s;return IC(u)?a:u}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var BO=yr({name:"TButton",props:TO,setup:function(e,t){var n=t.attrs,r=LO(),i=jO(),a=wA("button"),o=xA(),s=o.STATUS,l=o.SIZE,u=DO(),c=Et();MO(c);var d=vo(function(){return e.disabled||e.loading||u.value}),f=vo(function(){var t=e.theme,n=e.variant;return t||("base"===n?"primary":"default")}),h=vo(function(){var t;return["".concat(a.value),l.value[e.size],"".concat(a.value,"--variant-").concat(e.variant),"".concat(a.value,"--theme-").concat(f.value),(t={},Pw(t,s.value.disabled,e.disabled||u.value),Pw(t,s.value.loading,e.loading),Pw(t,"".concat(a.value,"--shape-").concat(e.shape),"rectangle"!==e.shape),Pw(t,"".concat(a.value,"--ghost"),e.ghost),Pw(t,l.value.block,e.block),t)]});return function(){var t=i("default","content"),o=e.loading?Na(CO,{inheritColor:!0},null):r("icon"),s=o&&!t;t=t?Na("span",{class:"".concat(a.value,"__text")},[t]):"",o&&(t=[o,t]);var l={class:[].concat(Iw(h.value),[Pw({},"".concat(a.value,"--icon-only"),s)]),type:e.type,disabled:d.value,href:e.href};return go(!e.tag&&e.href?"a":e.tag||"button",zO(zO(zO({ref:c},n),l),{},{onClick:e.onClick}),[t])}}}),VO=AO(BO);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function HO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XO(e,t){var n=Object.keys(e.attrs).reduce((t,n)=>{var r;return t[(r=n,["fillOpacity","fillRule","clipRule"].includes(r)?r.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():r)]=e.attrs[n],t},{});return go(e.tag,UO(UO({},n),t),(e.children||[]).map(e=>XO(e,{})))}var GO={classPrefix:"t"};function YO(e){var t=function(){var{classPrefix:e}=GO;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}().SIZE,n=vo(()=>e.value in t?t[e.value]:"");return{style:vo(()=>void 0===e.value||e.value in t?{}:{fontSize:e.value}),className:n}}function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KO(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZO={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.5 11V8.5H5v-1h2.5V5h1v2.5H11v1H8.5V11h-1z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M3 14a1 1 0 01-1-1V3a1 1 0 011-1h10a1 1 0 011 1v10a1 1 0 01-1 1H3zm0-1h10V3H3v10z",fillOpacity:.9}}]},JO=yr({name:"AddRectangleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-add-rectangle",i.value]),s=vo(()=>qO(qO({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(ZO,l.value)}});function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.35 8.65v3.85h1.3V8.65h3.85v-1.3H8.65V3.5h-1.3v3.85H3.5v1.3h3.85z",fillOpacity:.9}}]},tI=yr({name:"AddIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-add",i.value]),s=vo(()=>$O($O({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(eI,l.value)}});function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var iI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.77 11.98l1.38 1.37.7-.7-9.7-9.7-.7.7 1.2 1.21a7.9 7.9 0 00-2.53 2.91L1 8l.12.23a7.72 7.72 0 009.65 3.75zM10 11.2A6.67 6.67 0 012.11 8c.56-1 1.34-1.83 2.26-2.43l1.08 1.09a2.88 2.88 0 003.9 3.9l.64.64zM6.21 7.42l2.37 2.37a1.88 1.88 0 01-2.37-2.37zM14.88 8.23L15 8l-.12-.23a7.73 7.73 0 00-9.35-3.86l.8.8A6.7 6.7 0 0113.9 8a6.87 6.87 0 01-2.02 2.26l.7.7a7.9 7.9 0 002.3-2.73z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M10.88 8c0 .37-.07.73-.2 1.06l-.82-.82.02-.24a1.88 1.88 0 00-2.12-1.86l-.82-.82A2.87 2.87 0 0110.88 8z",fillOpacity:.9}}]},aI=yr({name:"BrowseOffIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-browse-off",i.value]),s=vo(()=>rI(rI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(iI,l.value)}});function oI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 8a2.88 2.88 0 11-5.76 0 2.88 2.88 0 015.76 0zm-1 0a1.88 1.88 0 10-3.76 0 1.88 1.88 0 003.76 0z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M1.12 8.23A7.72 7.72 0 008 12.5c2.9 0 5.54-1.63 6.88-4.27L15 8l-.12-.23A7.73 7.73 0 008 3.5a7.74 7.74 0 00-6.88 4.27L1 8l.12.23zM8 11.5A6.73 6.73 0 012.11 8 6.73 6.73 0 0113.9 8 6.74 6.74 0 018 11.5z",fillOpacity:.9}}]},uI=yr({name:"BrowseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-browse",i.value]),s=vo(()=>sI(sI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(lI,l.value)}});function cI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 00-1 1v9a1 1 0 001 1h10a1 1 0 001-1V4a1 1 0 00-1-1h-2V1.5h-1V3zM5 5h1V4h4v1h1V4h2v2H3V4h2v1zM3 7h10v6H3V7z",fillOpacity:.9}}]},hI=yr({name:"CalendarIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-calendar",i.value]),s=vo(()=>dI(dI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(fI,l.value)}});function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15A7 7 0 108 1a7 7 0 000 14zM4.5 8.2l.7-.7L7 9.3l3.8-3.8.7.7L7 10.7 4.5 8.2z",fillOpacity:.9}}]},gI=yr({name:"CheckCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-check-circle-filled",i.value]),s=vo(()=>mI(mI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(vI,l.value)}});function yI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.43 9.92l6.23-6.22.92.92-7.15 7.14L1.97 7.3l.92-.92 3.54 3.54z",fillOpacity:.9}}]},xI=yr({name:"CheckIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-check",i.value]),s=vo(()=>bI(bI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(wI,l.value)}});function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.54 6.46l.92-.92L8 9.08l3.54-3.54.92.92L8 10.92 3.54 6.46z",fillOpacity:.9}}]},AI=yr({name:"ChevronDownIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-down",i.value]),s=vo(()=>_I(_I({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(kI,l.value)}});function CI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var OI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.04 4.46l-.92-.92L7.66 8l4.46 4.46.92-.92L9.5 8l3.54-3.54z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M8.04 4.46l-.92-.92L2.66 8l4.46 4.46.92-.92L4.5 8l3.54-3.54z",fillOpacity:.9}}]},II=yr({name:"ChevronLeftDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-left-double",i.value]),s=vo(()=>TI(TI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(OI,l.value)}});function PI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var MI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.54 3.54l.92.92L6.92 8l3.54 3.54-.92.92L5.08 8l4.46-4.46z",fillOpacity:.9}}]},DI=yr({name:"ChevronLeftIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-left",i.value]),s=vo(()=>EI(EI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(MI,l.value)}});function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.2 5.2L9 8l-2.8 2.8.71.7 3.5-3.5-3.5-3.5-.7.7z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M8 15A7 7 0 118 1a7 7 0 010 14zm0-1A6 6 0 108 2a6 6 0 000 12z",fillOpacity:.9}}]},jI=yr({name:"ChevronRightCircleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-right-circle",i.value]),s=vo(()=>LI(LI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(NI,l.value)}});function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var BI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.96 11.54l.92.92L8.34 8 3.88 3.54l-.92.92L6.5 8l-3.54 3.54zm5 0l.92.92L13.34 8 8.88 3.54l-.92.92L11.5 8l-3.54 3.54z",fillOpacity:.9}}]},VI=yr({name:"ChevronRightDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-right-double",i.value]),s=vo(()=>zI(zI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(BI,l.value)}});function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var UI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.46 12.46l-.92-.92L9.08 8 5.54 4.46l.92-.92L10.92 8l-4.46 4.46z",fillOpacity:.9}}]},XI=yr({name:"ChevronRightIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-right",i.value]),s=vo(()=>WI(WI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(UI,l.value)}});function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var KI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.46 9.54l-.92.92L8 6.92l-3.54 3.54-.92-.92L8 5.08l4.46 4.46z",fillOpacity:.9}}]},qI=yr({name:"ChevronUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-chevron-up",i.value]),s=vo(()=>YI(YI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(KI,l.value)}});function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var QI={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8A7 7 0 101 8a7 7 0 0014 0zM5.67 4.95L8 7.29l2.33-2.34.7.7L8.7 8l2.34 2.35-.71.7L8 8.71l-2.33 2.34-.7-.7L7.3 8 4.96 5.65l.71-.7z",fillOpacity:.9}}]},$I=yr({name:"CloseCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-close-circle-filled",i.value]),s=vo(()=>JI(JI({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(QI,l.value)}});function eP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 8.92L11.08 12l.92-.92L8.92 8 12 4.92 11.08 4 8 7.08 4.92 4 4 4.92 7.08 8 4 11.08l.92.92L8 8.92z",fillOpacity:.9}}]},rP=yr({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-close",i.value]),s=vo(()=>tP(tP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(nP,l.value)}});function iP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"g",attrs:{fill:"currentColor",opacity:.9,fillOpacity:.9},children:[{tag:"path",attrs:{d:"M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"}}]}]},sP=yr({name:"Edit1Icon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-edit-1",i.value]),s=vo(()=>aP(aP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(oP,l.value)}});function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 9a1 1 0 110-2 1 1 0 010 2zM7 8a1 1 0 102 0 1 1 0 00-2 0zM12 8a1 1 0 102 0 1 1 0 00-2 0z",fillOpacity:.9}}]},dP=yr({name:"EllipsisIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-ellipsis",i.value]),s=vo(()=>uP(uP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(cP,l.value)}});function fP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var pP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8A7 7 0 101 8a7 7 0 0014 0zM8.5 4v5.5h-1V4h1zm-1.1 7h1.2v1.2H7.4V11z",fillOpacity:.9}}]},mP=yr({name:"ErrorCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-error-circle-filled",i.value]),s=vo(()=>hP(hP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(pP,l.value)}});function vP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.5 2h-1v9h1V2zm.1 10.8H7.4V14h1.2v-1.2z",fillOpacity:.9}}]},bP=yr({name:"ErrorIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-error",i.value]),s=vo(()=>gP(gP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(yP,l.value)}});function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 3a1 1 0 011-1h10a1 1 0 011 1v1.79l-4.25 2.5V14h-3.5V7.29L2 4.79V3zm11 0H3v1.21l4.25 2.5V13h1.5V6.71L13 4.21V3z",fillOpacity:.9}}]},_P=yr({name:"FilterIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-filter",i.value]),s=vo(()=>xP(xP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(SP,l.value)}});function kP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var CP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8A7 7 0 101 8a7 7 0 0014 0zM5.8 6.63a2.2 2.2 0 014.39 0c0 .97-.75 1.72-1.49 2.02a.34.34 0 00-.2.32v.8h-1v-.8c0-.56.33-1.04.82-1.24.5-.2.87-.66.87-1.1a1.2 1.2 0 00-2.39 0h-1zm1.67 4.54a.53.53 0 111.05 0 .53.53 0 01-1.05 0z",fillOpacity:.9}}]},TP=yr({name:"HelpCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-help-circle-filled",i.value]),s=vo(()=>AP(AP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(CP,l.value)}});function OP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var PP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15A7 7 0 108 1a7 7 0 000 14zM7.4 4h1.2v1.2H7.4V4zm.1 2.5h1V12h-1V6.5z",fillOpacity:.9}}]},EP=yr({name:"InfoCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-info-circle-filled",i.value]),s=vo(()=>IP(IP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(PP,l.value)}});function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var RP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5 8.5h6v-1H5v1z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M3 14a1 1 0 01-1-1V3a1 1 0 011-1h10a1 1 0 011 1v10a1 1 0 01-1 1H3zm0-1h10V3H3v10z",fillOpacity:.9}}]},LP=yr({name:"MinusRectangleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-minus-rectangle",i.value]),s=vo(()=>DP(DP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(RP,l.value)}});function NP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var FP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.4 4.46l-.91-.92L7.03 8l4.46 4.46.92-.92L8.86 8l3.55-3.54zM4.8 4v8h1.3V4H4.8z",fillOpacity:.9}}]},zP=yr({name:"PageFirstIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-page-first",i.value]),s=vo(()=>jP(jP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(FP,l.value)}});function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var HP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.6 11.54l.91.92L8.97 8 4.51 3.54l-.92.92L7.14 8l-3.55 3.54zm7.6.46V4H9.9v8h1.3z",fillOpacity:.9}}]},WP=yr({name:"PageLastIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-page-last",i.value]),s=vo(()=>VP(VP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(HP,l.value)}});function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var GP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.5 7.35h9v1.3h-9v-1.3z",fillOpacity:.9}}]},YP=yr({name:"RemoveIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-remove",i.value]),s=vo(()=>XP(XP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(GP,l.value)}});function KP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZP={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 11.5a3.5 3.5 0 110-7 3.5 3.5 0 010 7zM8 13A5 5 0 108 3a5 5 0 000 10z",fillOpacity:.9}}]},JP=yr({name:"RoundIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-round",i.value]),s=vo(()=>qP(qP({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(ZP,l.value)}});function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eE={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11 8a3 3 0 11-6 0 3 3 0 016 0zm-1 0a2 2 0 10-4 0 2 2 0 004 0z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M8 1.25l6.06 3.38v6.75L8 14.75l-6.06-3.38V4.63L8 1.25zM2.94 5.21v5.58L8 13.6l5.06-2.82V5.2L8 2.4 2.94 5.21z",fillOpacity:.9}}]},tE=yr({name:"SettingIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-setting",i.value]),s=vo(()=>$P($P({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(eE,l.value)}});function nE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nE(Object(n),!0).forEach(function(t){HO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var iE={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.6 1.82a.45.45 0 01.8 0l1.8 3.65 4.03.58c.37.05.52.5.25.77l-2.91 2.84.69 4a.45.45 0 01-.66.48L8 12.25l-3.6 1.9a.45.45 0 01-.65-.48l.68-4.01-2.9-2.84a.45.45 0 01.24-.77l4.03-.58 1.8-3.65z",fillOpacity:.9}}]},aE=yr({name:"StarFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=vo(()=>e.size),{className:i,style:a}=YO(r),o=vo(()=>["t-icon","t-icon-star-filled",i.value]),s=vo(()=>rE(rE({},a.value),n.style)),l=vo(()=>({class:o.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}}));return()=>XO(iE,l.value)}});function oE(e,t){!
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e,t){Er(function(){window.addEventListener(e,t)}),Rr(function(){window.removeEventListener(e,t)})}("resize",e);var n=null;Er(function(){window.ResizeObserver&&t&&(n=new window.ResizeObserver(e)).observe(t)}),Rr(function(){var e;null===(e=n)||void 0===e||e.disconnect()})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function sE(){var e=Za();return function(t,n){var r,i;n||(n=e.slots);var a=(null===(r=n)||void 0===r||null===(i=r.default)||void 0===i?void 0:i.call(r))||[],o=[];return function e(t){if(Array.isArray(t))return t.forEach(function(t){if(t.children&&Array.isArray(t.children)){if(t.type!==ba)return;e(t.children)}else o.push(t)}),o}(a).filter(function(e){var n;return null===(n=e.type.name)||void 0===n?void 0:n.endsWith(t)})}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function lE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lE(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cE=AO(yr({name:"TSpace",props:uE({},{align:{type:String,validator:function(e){return!e||["start","end","center","baseline"].includes(e)}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return!e||["vertical","horizontal"].includes(e)}},separator:{type:[String,Function]},size:{type:[String,Number],default:"medium"}}),setup:function(e){var t,n=wA("space"),r=LO(),i=(t=Za(),function(){var e,n=t.slots;return((null==n||null===(e=n.default)||void 0===e?void 0:e.call(n))||[]).filter(function(e){return e.type!==xa}).map(function(e){return e.children&&Array.isArray(e.children)&&e.type===ba?e.children:e}).flat()}),a=vo(function(){var t={small:"8px",medium:"16px",large:"24px"},n="";return Array.isArray(e.size)?n=e.size.map(function(e){return"number"==typeof e?"".concat(e,"px"):"string"==typeof e&&t[e]||e}).join(" "):"string"==typeof e.size?n=t[e.size]||e.size:"number"==typeof e.size&&(n="".concat(e.size,"px")),uE({gap:n},e.breakLine?{"flex-wrap":"wrap"}:{})});return function(){var t,o,s,l=["".concat(n.value),(t={},Pw(t,"".concat(n.value,"-align-").concat(e.align),e.align),Pw(t,"".concat(n.value,"-").concat(e.direction),e.direction),t)];return Na("div",{class:l,style:a.value},[(o=i(),s=r("separator"),o.map(function(e,t){var r=t+1!==o.length&&s;return Na(ba,null,[Na("div",{class:"".concat(n.value,"-item")},[e]),r&&Na("div",{class:"".concat(n.value,"-item-separator")},[s])])}))])}}}));
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function dE(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function fE(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){dE(a,r,i,o,s,"next",e)}function s(e){dE(a,r,i,o,s,"throw",e)}o(void 0)})}}var hE={exports:{}},pE={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(pE),function(e){var t=pE.exports.default;function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,a=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(I){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}r.wrap=d;var h={};function p(){}function m(){}function v(){}var g={};c(g,s,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==i&&a.call(b,s)&&(g=b);var w=v.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,n){function r(i,o,s,l){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==t(d)&&a.call(d,"__await")?n.resolve(d.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):n.resolve(d).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,l)})}l(u.arg)}var i;this._invoke=function(e,t){function a(){return new n(function(n,i){r(e,t,n,i)})}return i=i?i.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=v,c(w,"constructor",v),c(v,"constructor",m),m.displayName=c(v,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},x(S.prototype),c(S.prototype,l,function(){return this}),r.AsyncIterator=S,r.async=function(e,t,n,i,a){void 0===a&&(a=Promise);var o=new S(d(e,t,n,i),a);return r.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(w),c(w,u,"Generator"),c(w,s,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(hE),hE.exports;var mE=hE.exports(),vE=mE;try{regeneratorRuntime=mE}catch(CJe){"object"===("undefined"==typeof globalThis?"undefined":zw(globalThis))?globalThis.regeneratorRuntime=mE:Function("r","regeneratorRuntime = r")(mE)}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var gE=yr({name:"TAffix",props:{container:{type:[String,Function],default:function(){return function(){return window}}},offsetBottom:{type:Number,default:0},offsetTop:{type:Number,default:0},zIndex:{type:Number},onFixedChange:Function},emits:["fixedChange"],setup:function(e,t){var n=wA("affix"),r=LO(),i=Et(null),a=Et(null),o=Et(document.createElement("div")),s=Et(!1),l=Et(!1),u=Et(),c=function(){s.value||(window.requestAnimationFrame(function(){var r,l,c=null!==(r=i.value.getBoundingClientRect())&&void 0!==r?r:{top:0,width:0,height:0},d=c.top,f=c.width,h=c.height,p=0;u.value instanceof HTMLElement&&(p=u.value.getBoundingClientRect().top);var m=d-p,v=p+(u.value[u.value instanceof Window?"innerHeight":"clientHeight"]-h)-e.offsetBottom;if(l=void 0!==e.offsetTop&&m<=e.offsetTop?p+e.offsetTop:void 0!==e.offsetBottom&&d>=v&&v,a.value){var g=!1!==l,y=i.value.contains(o.value);g?(a.value.className=n.value,a.value.style.top="".concat(l,"px"),a.value.style.width="".concat(f,"px"),a.value.style.height="".concat(h,"px"),e.zIndex&&(a.value.style.zIndex="".concat(e.zIndex)),y||(o.value.style.width="".concat(f,"px"),o.value.style.height="".concat(h,"px"),i.value.appendChild(o.value))):(a.value.removeAttribute("class"),a.value.removeAttribute("style"),y&&o.value.remove()),t.emit("fixedChange",g,{top:Number(l)}),ox(e.onFixedChange)&&e.onFixedChange(g,{top:Number(l)})}s.value=!1}),s.value=!0)},d=function(){var t=fE(vE.mark(function t(){return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fn();case 2:if(!l.value){t.next=4;break}return t.abrupt("return");case 4:u.value=YA(e.container),VA(u.value,"scroll",c),VA(window,"resize",c),l.value=!0;case 8:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),f=function(){u.value&&l.value&&(HA(u.value,"scroll",c),HA(window,"resize",c),l.value=!1)};return ta(function(){return e.offsetTop},function(){c()}),ta(function(){return e.offsetBottom},function(){c()}),ta(function(){return e.zIndex},function(){c()}),Er(d),kr(d),Ar(f),Rr(f),{affixWrapRef:i,affixRef:a,bindScroll:d,unbindScroll:f,handleScroll:c,scrollContainer:u,renderTNodeJSX:r}},render:function(){return Na("div",{ref:"affixWrapRef"},[Na("div",{ref:"affixRef"},[this.renderTNodeJSX("default")])])}}),yE=AO(gE),bE=["info","success","warning","error","question","loading"],wE="32px",xE={top:{top:wE,left:"50%",transform:"translateX(-50%)"},center:{left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%)"},left:{left:wE,top:"50%",transform:"translateY(-50%)"},bottom:{bottom:wE,left:"50%",transform:"translateX(-50%)"},right:{right:wE,top:"50%",transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"flex-end"},"top-left":{left:wE,top:wE},"top-right":{right:wE,top:wE,display:"flex",flexDirection:"column",alignItems:"flex-end"},"bottom-right":{right:wE,bottom:wE,display:"flex",flexDirection:"column",alignItems:"flex-end"},"bottom-left":{left:wE,bottom:wE}},SE=Object.keys(xE),_E={closeBtn:{type:[String,Boolean,Function],default:void 0},content:{type:[String,Function]},duration:{type:Number,default:3e3},icon:{type:[Boolean,Function],default:!0},theme:{type:String,default:"info",validator:function(e){return["info","success","warning","error","question","loading"].includes(e)}},onCloseBtnClick:Function,onDurationEnd:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function kE(e){var t=bA("icon").globalConfig,n={};return Object.keys(e).forEach(function(r){var i;n[r]=(null===(i=t.value)||void 0===i?void 0:i[r])||e[r]}),n}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var AE={duration:200,easing:"linear"};function CE(e,t){if(e){var n=function(e,t,n){if(!SE.includes(e))return null;if(["top-left","left","bottom-left"].includes(e))return[{opacity:0,marginLeft:"-".concat(t,"px")},{opacity:1,marginLeft:"0"}];if(["top-right","right","bottom-right"].includes(e))return[{opacity:0,marginRight:"-".concat(t,"px")},{opacity:1,marginRight:"0"}];if(["top","center"].includes(e))return[{opacity:0,marginTop:"-".concat(n,"px")},{opacity:1,marginTop:"0"}];if(["bottom"].includes(e))return[{opacity:0,transform:"translate3d(0, ".concat(n,"px, 0)")},{opacity:1,transform:"translate3d(0, 0, 0)"}]}(t,(null==e?void 0:e.offsetWidth)||0,(null==e?void 0:e.offsetHeight)||0);if(n)OE(e,n[n.length-1]),e.animate&&e.animate(n,AE)}}function TE(e,t,n){if(e){var r=function(e,t){if(!SE.includes(e))return null;if(["bottom-left","bottom","bottom-right"].includes(e)){return[{opacity:1,marginTop:"0px"},{opacity:0,marginTop:"".concat(t,"px")}]}var n="-".concat(t,"px");return[{opacity:1,marginTop:"0px"},{opacity:0,marginTop:n}]}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */(t,(null==e?void 0:e.offsetHeight)||0);if(!r)return n();var i=r[r.length-1];OE(e,i);var a=e.animate&&e.animate(r,AE);a?a.onfinish=function(){e.style.display="none",n()}:(e.style.display="none",n())}}function OE(e,t){for(var n=Object.keys(t),r=0;r<n.length;r+=1){var i=n[r];e.style[i]=t[i]}}function IE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IE(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var EE=yr({name:"TMessage",props:PE(PE({},_E),{},{placement:String}),setup:function(e,t){var n=t.slots,r=t.expose,i=wA("message"),a=kE({InfoCircleFilledIcon:EP,CheckCircleFilledIcon:gI,ErrorCircleFilledIcon:mP,HelpCircleFilledIcon:TP,CloseIcon:rP}),o=a.InfoCircleFilledIcon,s=a.CheckCircleFilledIcon,l=a.ErrorCircleFilledIcon,u=a.HelpCircleFilledIcon,c=a.CloseIcon,d=wA(),f=LO(),h=jO(),p=Et(null),m=Et(null),v=vo(function(){var t={};return bE.forEach(function(n){return t["".concat(d.value,"-is-").concat(n)]=e.theme===n}),[i.value,t,Pw({},"".concat(d.value,"-is-closable"),e.closeBtn||n.closeBtn)]}),g=function(t){var n;null===(n=e.onCloseBtnClick)||void 0===n||n.call(e,{e:t})},y=function(){e.duration&&clearTimeout(m.value)},b=function(){e.duration&&(m.value=Number(setTimeout(function(){y(),TE(p.value,e.placement,function(){var t;null===(t=e.onDurationEnd)||void 0===t||t.call(e)})},e.duration)))},w=function(){if(!1!==e.icon){if("function"==typeof e.icon)return e.icon(go);if(n.icon)return n.icon(null);var t={info:o,success:s,warning:l,error:l,question:u,loading:CO}[e.theme];return Na(t,null,null)}};return Pr(function(){e.duration&&b()}),Er(function(){CE(p.value,e.placement)}),r({close:g}),function(){return Na("div",{ref:p,class:v.value,onMouseenter:y,onMouseleave:b},[w(),h("content","default"),(e=Na(c,null,null),Na("span",{class:"".concat(i.value,"__close"),onClick:g},[f("closeBtn",e)]))]);var e}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ME(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ME(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var RE=6e3,LE=function(){var e=0;return function(){return e+=1}}(),NE=yr({name:"TMessageList",props:{zIndex:{type:Number,default:0},placement:{type:String,default:""}},setup:function(e,t){var n=t.expose,r=wA("message__list"),i=Et([]),a=Et([]),o=vo(function(){return DE(DE({},xE[e.placement]),{},{zIndex:e.zIndex!==RE?e.zIndex:RE})}),s=function(e){i.value.splice(e,1)},l=function(e){if(e)return isNaN(Number(e))?e:"".concat(e,"px")},u=function(e){return e.offset&&{position:"relative",left:l(e.offset[0]),top:l(e.offset[1])}},c=function(e){e&&a.value.push(e)};return n({add:function(e){var t=DE(DE({},e),{},{key:LE()});return i.value.push(t),i.value.length-1},removeAll:function(){i.value=[]},list:i,messageList:a}),function(){if(i.value.length)return Na("div",{class:r.value,style:o.value},[i.value.map(function(e,t){return Na(EE,Xa({key:e.key,style:u(e),ref:c},function(e,t){return DE(DE({},t),{},{onCloseBtnClick:function(n){return t.onCloseBtnClick&&t.onCloseBtnClick(n),s(e)},onDurationEnd:function(){return t.onDurationEnd&&t.onDurationEnd(),s(e)}})}(t,e)),null)})])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function jE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zE=new Map;var BE=function(e){var t=function(e){var t=FE({duration:3e3,attach:"body",zIndex:RE,placement:"top"},e);return t.content=e.content,t}(e),n=t.attach,r=t.placement,i=GA(n);zE.get(i)||zE.set(i,{});var a=zE.get(i)[r];if(a)a.add(t);else{var o=document.createElement("div"),s=Ss(NE,{zIndex:t.zIndex,placement:t.placement}).mount(o);s.add(t),zE.get(i)[r]=s,i.appendChild(o)}return new Promise(function(e){var t=zE.get(i)[r];fn(function(){var n=t.messageList;e(n[n.length-1])})})},VE=function(e,t,n){var r={theme:e};return"string"==typeof t?r.content=t:"object"!==zw(t)||t instanceof Array||(r=FE(FE({},r),t)),(n||0===n)&&(r.duration=n),BE(r)},HE={info:function(e,t){return VE("info",e,t)},success:function(e,t){return VE("success",e,t)},warning:function(e,t){return VE("warning",e,t)},error:function(e,t){return VE("error",e,t)},question:function(e,t){return VE("question",e,t)},loading:function(e,t){return VE("loading",e,t)},close:function(e){e.then(function(e){return e.close()})},closeAll:function(){zE instanceof Map&&zE.forEach(function(e){Object.keys(e).forEach(function(t){e[t].list=[]})})}},WE=VE;WE.install=function(e){e.config.globalProperties.$message=VE,Object.keys(HE).forEach(function(t){e.config.globalProperties.$message[t]=HE[t]})},Object.keys(HE).forEach(function(e){WE[e]=HE[e]});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var UE={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return!e||["default","primary","success","danger","warning","light"].includes(e)}}},XE={attach:{type:[String,Function],default:"body"},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:[Number,Array]},destroyOnClose:Boolean,disabled:Boolean,hideEmptyPopup:Boolean,overlayClassName:{type:[String,Object,Array]},overlayInnerClassName:{type:[String,Object,Array]},overlayInnerStyle:{type:[Boolean,Object,Function]},overlayStyle:{type:[Boolean,Object,Function]},placement:{type:String,default:"top"},showArrow:Boolean,trigger:{type:String,default:"hover",validator:function(e){return!e||["hover","click","focus","context-menu"].includes(e)}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onScroll:Function,onVisibleChange:Function},GE="top",YE="bottom",KE="right",qE="left",ZE="auto",JE=[GE,YE,KE,qE],QE="start",$E="end",eM="viewport",tM="popper",nM=JE.reduce(function(e,t){return e.concat([t+"-"+QE,t+"-"+$E])},[]),rM=[].concat(JE,[ZE]).reduce(function(e,t){return e.concat([t,t+"-"+QE,t+"-"+$E])},[]),iM=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function aM(e){return e?(e.nodeName||"").toLowerCase():null}function oM(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function sM(e){return e instanceof oM(e).Element||e instanceof Element}function lM(e){return e instanceof oM(e).HTMLElement||e instanceof HTMLElement}function uM(e){return"undefined"!=typeof ShadowRoot&&(e instanceof oM(e).ShadowRoot||e instanceof ShadowRoot)}const cM={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];lM(i)&&aM(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});lM(r)&&aM(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function dM(e){return e.split("-")[0]}var fM=Math.max,hM=Math.min,pM=Math.round;function mM(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function vM(){return!/^((?!chrome|android).)*safari/i.test(mM())}function gM(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&lM(e)&&(i=e.offsetWidth>0&&pM(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pM(r.height)/e.offsetHeight||1);var o=(sM(e)?oM(e):window).visualViewport,s=!vM()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,d=r.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function yM(e){var t=gM(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function bM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wM(e){return oM(e).getComputedStyle(e)}function xM(e){return["table","td","th"].indexOf(aM(e))>=0}function SM(e){return((sM(e)?e.ownerDocument:e.document)||window.document).documentElement}function _M(e){return"html"===aM(e)?e:e.assignedSlot||e.parentNode||(uM(e)?e.host:null)||SM(e)}function kM(e){return lM(e)&&"fixed"!==wM(e).position?e.offsetParent:null}function AM(e){for(var t=oM(e),n=kM(e);n&&xM(n)&&"static"===wM(n).position;)n=kM(n);return n&&("html"===aM(n)||"body"===aM(n)&&"static"===wM(n).position)?t:n||function(e){var t=/firefox/i.test(mM());if(/Trident/i.test(mM())&&lM(e)&&"fixed"===wM(e).position)return null;var n=_M(e);for(uM(n)&&(n=n.host);lM(n)&&["html","body"].indexOf(aM(n))<0;){var r=wM(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function CM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function TM(e,t,n){return fM(e,hM(t,n))}function OM(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function IM(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const PM={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=dM(n.placement),l=CM(s),u=[qE,KE].indexOf(s)>=0?"height":"width";if(a&&o){var c=function(e,t){return OM("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:IM(e,JE))}(i.padding,n),d=yM(a),f="y"===l?GE:qE,h="y"===l?YE:KE,p=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],m=o[l]-n.rects.reference[l],v=AM(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=p/2-m/2,b=c[f],w=g-d[u]-c[h],x=g/2-d[u]/2+y,S=TM(b,x,w),_=l;n.modifiersData[r]=((t={})[_]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&bM(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function EM(e){return e.split("-")[1]}var MM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,h=void 0===f?0:f,p=o.y,m=void 0===p?0:p,v="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=qE,w=GE,x=window;if(u){var S=AM(n),_="clientHeight",k="clientWidth";if(S===oM(n)&&"static"!==wM(S=SM(n)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),i===GE||(i===qE||i===KE)&&a===$E)w=YE,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[_])-r.height,m*=l?1:-1;if(i===qE||(i===GE||i===YE)&&a===$E)b=KE,h-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,h*=l?1:-1}var A,C=Object.assign({position:s},u&&MM),T=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:pM(n*i)/i||0,y:pM(r*i)/i||0}}({x:h,y:m},oM(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},C,((A={})[w]=y?"0":"",A[b]=g?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A)):Object.assign({},C,((t={})[w]=y?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}const RM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:dM(t.placement),variation:EM(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,DM(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,DM(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var LM={passive:!0};const NM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=oM(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,LM)}),s&&l.addEventListener("resize",n.update,LM),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,LM)}),s&&l.removeEventListener("resize",n.update,LM)}},data:{}};var jM={left:"right",right:"left",bottom:"top",top:"bottom"};function FM(e){return e.replace(/left|right|bottom|top/g,function(e){return jM[e]})}var zM={start:"end",end:"start"};function BM(e){return e.replace(/start|end/g,function(e){return zM[e]})}function VM(e){var t=oM(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function HM(e){return gM(SM(e)).left+VM(e).scrollLeft}function WM(e){var t=wM(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function UM(e){return["html","body","#document"].indexOf(aM(e))>=0?e.ownerDocument.body:lM(e)&&WM(e)?e:UM(_M(e))}function XM(e,t){var n;void 0===t&&(t=[]);var r=UM(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=oM(r),o=i?[a].concat(a.visualViewport||[],WM(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(XM(_M(o)))}function GM(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t,n){return t===eM?GM(function(e,t){var n=oM(e),r=SM(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=vM();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+HM(e),y:l}}(e,n)):sM(t)?function(e,t){var n=gM(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):GM(function(e){var t,n=SM(e),r=VM(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=fM(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=fM(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+HM(e),l=-r.scrollTop;return"rtl"===wM(i||n).direction&&(s+=fM(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(SM(e)))}function KM(e,t,n,r){var i="clippingParents"===t?function(e){var t=XM(_M(e)),n=["absolute","fixed"].indexOf(wM(e).position)>=0&&lM(e)?AM(e):e;return sM(n)?t.filter(function(e){return sM(e)&&bM(e,n)&&"body"!==aM(e)}):[]}(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=YM(e,n,r);return t.top=fM(i.top,t.top),t.right=hM(i.right,t.right),t.bottom=hM(i.bottom,t.bottom),t.left=fM(i.left,t.left),t},YM(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qM(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?dM(i):null,o=i?EM(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case GE:t={x:s,y:n.y-r.height};break;case YE:t={x:s,y:n.y+n.height};break;case KE:t={x:n.x+n.width,y:l};break;case qE:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?CM(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case QE:t[u]=t[u]-(n[c]/2-r[c]/2);break;case $E:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ZM(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?eM:u,d=n.elementContext,f=void 0===d?tM:d,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,v=void 0===m?0:m,g=OM("number"!=typeof v?v:IM(v,JE)),y=f===tM?"reference":tM,b=e.rects.popper,w=e.elements[p?y:f],x=KM(sM(w)?w:w.contextElement||SM(e.elements.popper),l,c,o),S=gM(e.elements.reference),_=qM({reference:S,element:b,placement:i}),k=GM(Object.assign({},b,_)),A=f===tM?k:S,C={top:x.top-A.top+g.top,bottom:A.bottom-x.bottom+g.bottom,left:x.left-A.left+g.left,right:A.right-x.right+g.right},T=e.modifiersData.offset;if(f===tM&&T){var O=T[i];Object.keys(C).forEach(function(e){var t=[KE,YE].indexOf(e)>=0?1:-1,n=[GE,YE].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t})}return C}const JM={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,g=dM(v),y=l||(g===v||!p?[FM(v)]:function(e){if(dM(e)===ZE)return[];var t=FM(e);return[BM(e),t,BM(t)]}(v)),b=[v].concat(y).reduce(function(e,n){return e.concat(dM(n)===ZE?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?rM:l,c=EM(r),d=c?s?nM:nM.filter(function(e){return EM(e)===c}):JE,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=ZM(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[dM(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,_=!0,k=b[0],A=0;A<b.length;A++){var C=b[A],T=dM(C),O=EM(C)===QE,I=[GE,YE].indexOf(T)>=0,P=I?"width":"height",E=ZM(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=I?O?KE:qE:O?YE:GE;w[P]>x[P]&&(M=FM(M));var D=FM(M),R=[];if(a&&R.push(E[T]<=0),s&&R.push(E[M]<=0,E[D]<=0),R.every(function(e){return e})){k=C,_=!1;break}S.set(C,R)}if(_)for(var L=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},N=p?3:1;N>0;N--){if("break"===L(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function QM(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $M(e){return[GE,KE,YE,qE].some(function(t){return e[t]>=0})}const eD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=rM.reduce(function(e,n){return e[n]=function(e,t,n){var r=dM(e),i=[qE,GE].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[qE,KE].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e},{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}};const tD={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,v=ZM(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=dM(t.placement),y=EM(t.placement),b=!y,w=CM(g),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var I,P="y"===w?GE:qE,E="y"===w?YE:KE,M="y"===w?"height":"width",D=S[w],R=D+v[P],L=D-v[E],N=h?-k[M]/2:0,j=y===QE?_[M]:k[M],F=y===QE?-k[M]:-_[M],z=t.elements.arrow,B=h&&z?yM(z):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[P],W=V[E],U=TM(0,_[M],B[M]),X=b?_[M]/2-N-U-H-C.mainAxis:j-U-H-C.mainAxis,G=b?-_[M]/2+N+U+W+C.mainAxis:F+U+W+C.mainAxis,Y=t.elements.arrow&&AM(t.elements.arrow),K=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(I=null==T?void 0:T[w])?I:0,Z=D+G-q,J=TM(h?hM(R,D+X-q-K):R,D,h?fM(L,Z):L);S[w]=J,O[w]=J-D}if(s){var Q,$="x"===w?GE:qE,ee="x"===w?YE:KE,te=S[x],ne="y"===x?"height":"width",re=te+v[$],ie=te-v[ee],ae=-1!==[GE,qE].indexOf(g),oe=null!=(Q=null==T?void 0:T[x])?Q:0,se=ae?re:te-_[ne]-k[ne]-oe+C.altAxis,le=ae?te+_[ne]+k[ne]-oe-C.altAxis:ie,ue=h&&ae?function(e,t,n){var r=TM(e,t,n);return r>n?n:r}(se,te,le):TM(h?se:re,te,h?le:ie);S[x]=ue,O[x]=ue-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function nD(e,t,n){void 0===n&&(n=!1);var r,i,a=lM(t),o=lM(t)&&function(e){var t=e.getBoundingClientRect(),n=pM(t.width)/e.offsetWidth||1,r=pM(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=SM(t),l=gM(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==aM(t)||WM(s))&&(u=(r=t)!==oM(r)&&lM(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:VM(r)),lM(t)?((c=gM(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=HM(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function rD(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function iD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var aD={placement:"bottom",modifiers:[],strategy:"absolute"};function oD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function sD(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?aD:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},aD,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;u(),i.options=Object.assign({},a,i.options,s),i.scrollParents={reference:sM(e)?XM(e):e.contextElement?XM(e.contextElement):[],popper:XM(t)};var c,d,f=function(e){var t=rD(e);return iM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((c=[].concat(r,i.options.modifiers),d=c.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return i.orderedModifiers=f.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:i,name:t,instance:l,options:r}),u=function(){};o.push(s||u)}}),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(oD(t,n)){i.rects={reference:nD(t,AM(n),"fixed"===i.options.strategy),popper:yM(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,u=a.options,c=void 0===u?{}:u,d=a.name;"function"==typeof o&&(i=o({state:i,options:c,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:iD(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!oD(e,t))return l;function u(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var lD=sD({defaultModifiers:[NM,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=qM({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},RM,cM,eD,JM,tD,PM,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ZM(t,{elementContext:"reference"}),s=ZM(t,{altBoundary:!0}),l=QM(o,r),u=QM(s,i,a),c=$M(l),d=$M(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function uD(){var e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){Array.isArray(t)?e.push.apply(e,Iw(t)):t.type===ba?e.push.apply(e,Iw(uD(t.children))):e.push(t)}),e.filter(function(e){return!(e&&("undefined"!=typeof Comment&&e.type===Comment||e.type===ba&&0===e.children.length||e.type===wa&&""===e.children.trim()))})}function cD(e,t){var n;if(null!==(n=window)&&void 0!==n&&n.ResizeObserver&&e){var r=null,i=new ResizeObserver(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])[0]||{}).contentRect;if(function(e,t){if(e&&t)return!!["width","height","x","y"].some(function(n){return e[n]!==t[n]})}(e,r))return r=e,void t(e);r||(r=e)});if(1===e.nodeType)return i.observe(e),function(){i.unobserve(e)}}}var dD=yr({emits:["resize"],data:function(){return{cleanOR:null}},mounted:function(){var e=this;this.cleanOR=cD(this.$el,function(){e.$emit("resize")})},unmounted:function(){var e;null===(e=this.cleanOR)||void 0===e||e.call(this)},render:function(){var e,t=uD(this.$slots.default());return t.length>1||(null===(e=t[0])||void 0===e?void 0:e.type)===wa?Na("span",null,[t]):t[0]}}),fD=yr({emits:["resize"],setup:function(e,t){var n,r,i,a=t.emit,o=Et(null);return n=function(){return o.value.children[0]},r=function(){a("resize")},Er(function(){i=cD(n(),r)}),Lr(function(){var e;null===(e=i)||void 0===e||e()}),{el:o}},render:function(){return Na("div",{ref:"el",style:"position: absolute; top: 0px; left: 0px; width: 100%"},[this.$slots.default()])}}),hD=yr({inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:XE.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function(e,t){var n=t.emit,r=Et(null),i=Et(!1);return Er(function(){requestAnimationFrame(function(){i.value=e.visible}),e.forwardRef(r.value.$el)}),ta(function(){return e.visible},function(t){t&&(i.value=e.visible)}),{mountContent:i,triggerRef:r,unmountContent:function(){i.value=!1},emitResize:function(){n("resize")},emitContentMounted:function(){n("contentMounted")}}},render:function(){var e,t,n,r=this;return Na(ba,null,[Na(dD,Xa({class:this.$attrs.class},{ref:"triggerRef",onResize:this.emitResize}),(n=t=this.$slots.default(),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Ea(n)?t:{default:function(){return[t]}})),this.mountContent&&Na(nr,{to:GA(this.attach,null===(e=this.triggerRef)||void 0===e?void 0:e.$el)},{default:function(){return[Na(fD,{onResize:r.emitResize,onVnodeMounted:r.emitContentMounted},{default:function(){return[r.$slots.content&&r.$slots.content()]}})]}})])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function pD(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"value",a=Za(),o=a.emit,s=a.attrs,l=Et();return l.value=n,void 0!==e.value?l.value=e.value:void 0!==t.value&&(l.value=t.value),ta(e,function(e){l.value=e}),ta(t,function(e){l.value=e}),[l,function(n){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];s["onUpdate:".concat(i)]?null==o||o.apply(void 0,["update:".concat(i),n].concat(u)):s["onUpdate:modelValue"]&&(null==o||o.apply(void 0,["update:modelValue",n].concat(u))),void 0===e.value&&void 0===t.value&&(l.value=n),null==r||r.apply(void 0,[n].concat(u))}]}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function mD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mD(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gD=["click","hover","focus","context-menu"],yD=Symbol("popup");var bD=yr({name:"TPopup",props:vD(vD({},XE),{},{expandAnimation:{type:Boolean}}),setup:function(e,t){var n,r,i=t.expose,a=Ft(e),o=Ew(pD(a.visible,a.modelValue,e.defaultVisible,e.onVisibleChange,"visible"),2),s=o[0],l=o[1],u=!1,c=Et(0),d=Et(!1),f=Et(!1),h=Et(null),p=Et(null),m=Et(null),v=Et(null),g=yi(yD,void 0),y=wA("popup"),b=xA().STATUS,w=vo(function(){var t;return["".concat(y.value,"__content"),(t={},Pw(t,"".concat(y.value,"__content--text"),"string"==typeof e.content),Pw(t,"".concat(y.value,"__content--arrow"),e.showArrow),Pw(t,b.value.disabled,e.disabled),t),e.overlayInnerClassName]}),x=vo(function(){return gD.reduce(function(t,n){return vD(vD({},t),{},Pw({},n,e.trigger.includes(n)))},{})}),S=vo(function(){var t,n,r=[].concat(null!==(t=e.delay)&&void 0!==t?t:[250,150]);return{open:r[0],close:null!==(n=r[1])&&void 0!==n?n:r[0]}});function _(){var t=e.overlayInnerStyle;h.value&&p.value&&("function"==typeof t?Mw(p.value,t(h.value,p.value)):"object"===zw(t)&&Mw(p.value,t))}function k(){var t;m.value&&s.value&&(n?n.update():n=lD(h.value,m.value,{placement:(t=e.placement,t.replace(/-(left|top)$/,"-start").replace(/-(right|bottom)$/,"-end")),onFirstUpdate:function(){fn(k)}}))}function A(){var t,r;n&&(null===(t=n)||void 0===t||t.destroy(),n=null);e.destroyOnClose&&(null===(r=v.value)||void 0===r||r.unmountContent())}function C(t,n){e.disabled||t===s.value||!t&&c.value>1||t&&d.value||l(t,n)}function T(e){null==g||g.preventClosing(e),e?c.value+=1:c.value&&(c.value-=1,c.value||(C(!1,{}),null==g||!g.hasTrigger.value.hover||null!=g&&g.mouseInRange||g.emitVisible(!1,{})))}function O(e){C(!s.value,e)}function I(e){clearTimeout(r),r=setTimeout(function(){C(!0,e)},x.value.click?0:S.value.open)}function P(e){clearTimeout(r),r=setTimeout(function(){C(!1,e)},x.value.click?0:S.value.close)}function E(e){f.value?setTimeout(function(){f.value=!1}):h.value.contains(e.target)||(c.value=0,C(!1,{trigger:"document"}))}function M(e){if(c.value>1){var t=m.value.getBoundingClientRect();if(e.x>t.x&&e.x<t.x+t.width&&e.y>t.y&&e.y<t.y+t.height)return}d.value=!1,P({}),null!=g&&g.mouseInRange&&g.onMouseLeave(e)}var D,R,L=(D=h,R=[],{add:function(e,t){VA(D.value,e,t),R.push(function(){HA(D.value,e,t)})},clean:function(){R.forEach(function(e){return null==e?void 0:e()}),R.length=0}});ta(function(){return[e.trigger,h.value]},function(){h.value&&(L.clean(),x.value.hover?(L.add("mouseenter",function(){return I({trigger:"trigger-element-hover"})}),L.add("mouseleave",function(){return P({trigger:"trigger-element-hover"})})):x.value.focus?(L.add("focusin",function(){return I({trigger:"trigger-element-focus"})}),L.add("focusout",function(){return P({trigger:"trigger-element-blur"})})):x.value.click?L.add("click",function(e){O({e:e,trigger:"trigger-element-click"})}):x.value["context-menu"]&&L.add("contextmenu",function(e){e.preventDefault(),2===e.button&&O({trigger:"context-menu"})}))}),ta(function(){return[e.overlayStyle,e.overlayInnerStyle,p.value]},function(){_(),k()});var N=yi("updateScrollTop",function(){});return ta(function(){return[s.value,p.value]},function(){s.value&&p.value&&N&&(null==N||N(p.value))}),ta(function(){return e.placement},function(){A(),k()}),ta(f,function(e){g&&(g.contentClicked.value=e)}),ta(function(){return s.value},function(e){var t,n,r,i,a;e?(T(!0),u||(VA(document,"click",E,!0),u=!0),h.value&&x.value.focus&&(t=h.value,n="keydown",a="function"==typeof(r=function(e){"Escape"===e.code&&P({trigger:"keydown-esc"})})?r:r.handleEvent,VA(t,n,function e(r){a(r),HA(t,n,e,i)},i))):(T(!1),HA(document,"click",E,!0),u=!1,d.value=!1)}),Lr(function(){s.value&&(null==g||g.preventClosing(!1)),A(),HA(document,"click",E,!0),clearTimeout(r)}),gi(yD,{preventClosing:T,emitVisible:C,contentClicked:f,mouseInRange:d,onMouseLeave:M,hasTrigger:x}),i({handleClose:P,updatePopper:k,getOverlay:function(){return p.value}}),{innerVisible:s,triggerEl:h,overlayEl:p,popperEl:m,prefixCls:y,overlayCls:w,hasTrigger:x,contentClicked:f,updatePopper:k,destroyPopper:A,getOverlayStyle:function(){var t=e.overlayStyle;if(h.value&&p.value)return"function"==typeof t?t(h.value,p.value):"object"===zw(t)?t:void 0},updateOverlayInnerStyle:_,emitVisible:C,onMouseEnter:function(){d.value=!0,I({})},onMouseLeave:M}},render:function(){var e=this,t=this.prefixCls,n=this.innerVisible,r=this.destroyOnClose,i=this.hasTrigger,a=this.getOverlayStyle,o=this.onScroll,s=fO(this,"content"),l=this.hideEmptyPopup&&["",void 0,null].includes(s),u=n||!r?Xn(Na("div",Xa({class:[t,this.overlayClassName],ref:"popperEl",style:[l&&{visibility:"hidden",pointerEvents:"none"},{zIndex:this.zIndex},a()],onMousedown:function(){e.contentClicked=!0}},i.hover&&{onMouseenter:this.onMouseEnter,onMouseleave:this.onMouseLeave}),[Na("div",Xa({class:this.overlayCls,ref:"overlayEl"},o&&{onScroll:function(e){o({e:e})}}),[s,this.showArrow&&Na("div",{class:"".concat(t,"__arrow")},null)])]),[[Xo,n]]):null;return Na(hD,{ref:"containerRef",forwardRef:function(t){return e.triggerEl=t},onContentMounted:function(){n&&(e.updatePopper(),e.updateOverlayInnerStyle())},onResize:function(){n&&e.updatePopper()},visible:n,attach:this.attach},{content:function(){return Na(Eo,{name:e.expandAnimation?"".concat(t,"--animation-expand"):"".concat(t,"--animation"),appear:!0,onEnter:e.updatePopper,onAfterLeave:e.destroyPopper},"function"==typeof(n=u)||"[object Object]"===Object.prototype.toString.call(n)&&!Ea(n)?u:{default:function(){return[u]}});var n},default:function(){return hO(e,"default","triggerElement")}})}}),wD=AO(bD);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _D=AO(yr({name:"TTooltip",props:SD(SD({},XE),UE),setup:function(e,t){var n=Et(null),r=Et(null),i=Ft(e),a=Ew(pD(i.visible,i.modelValue,e.defaultVisible,e.onVisibleChange,"visible"),2),o=a[0],s=a[1],l=Et(e.visible||e.defaultVisible),u=wA(),c=LO(),d=jO(),f=function(){var e=Et(0),t=Et(0),n=function(n){e.value=n.clientX,t.value=n.clientY};return BA||(Er(function(){window.addEventListener("mousemove",n,{passive:!0})}),Lr(function(){window.removeEventListener("mousemove",n)})),{x:e,y:t}}(),h=f.x,p=Et(h.value);Er(function(){e.duration&&l.value&&(n.value=setTimeout(function(){l.value=!1,clearTimeout(n.value),n.value=null},e.duration))});var m=function(e,t){n.value&&"document"!==(null==t?void 0:t.trigger)||(e&&(p.value=h.value),s(e,t))},v=vo(function(){return["".concat(u.value,"-tooltip"),Pw({},"".concat(u.value,"-tooltip--").concat(e.theme),e.theme),e.overlayClassName]}),g=vo(function(){return SD(SD({},e),{},{placement:"mouse"===e.placement?"bottom-left":e.placement,showArrow:"mouse"!==e.placement&&e.showArrow,content:function(){return c("content")},default:function(){return d("default","triggerElement")},overlayClassName:v.value,onVisibleChange:m})}),y=vo(function(){if("mouse"!==e.placement||0===p.value)return e.overlayInnerStyle;var t=function(e){return{transform:"translateX(".concat(p.value-e.getBoundingClientRect().left,"px)")}};return e.overlayInnerStyle?function(n,r){return SD(SD({},t(n)),ox(e.overlayInnerStyle)?e.overlayInnerStyle(n,r):e.overlayInnerStyle)}:t});ta(function(){return l.value},function(){n.value&&!l.value&&(clearTimeout(n.value),n.value=null)});return t.expose({updatePopper:function(){var e,t;null===(e=r.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)}}),function(){return Na(wD,Xa({ref:r,visible:o.value},g.value,{overlayInnerStyle:y.value}),null)}}})),kD=["from","to","direction"];
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function AD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CD(e,t){for(var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}function TD(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})}function OD(e){if("string"==typeof e)return e;if(Array.isArray(e))return e[0]&&"#"===e[0][0]&&e.unshift("90deg"),"linear-gradient( ".concat(e.join(",")," )");var t=e.from,n=e.to,r=e.direction,i=void 0===r?"to right":r,a=Dw(e,kD),o=Object.keys(a);if(o.length){var s=(o=o.sort(function(e,t){return parseFloat(e.substr(0,e.length-1))-parseFloat(t.substr(0,t.length-1))})).map(function(e){return"".concat(a[e]," ").concat(e)});return"linear-gradient(".concat(i,", ").concat(s.join(","),")")}return"linear-gradient(".concat(i,", ").concat(t,", ").concat(n,")")}function ID(e,t){var n="number"==typeof t;if(!e||0===e.length)return n?{length:0,characters:e}:0;for(var r=0,i=0;i<e.length;i++){var a=0;if(a=e.charCodeAt(i)>127||94===e.charCodeAt(i)?2:1,n&&r+a>t)return{length:r,characters:e.slice(0,i)};r+=a}return n?{length:r,characters:e}:r}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ED=yr({name:"TJumper",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{disabled:{type:[Boolean,Object]},layout:{type:String,default:"horizontal",validator:function(e){return!e||["horizontal","vertical"].includes(e)}},showCurrent:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},tips:{type:Object},variant:{type:String,default:"text",validator:function(e){return!e||["text","outline"].includes(e)}},onChange:Function}),setup:function(e){var t=wA("jumper"),n=kE({ChevronLeftIcon:DI,RoundIcon:JP,ChevronRightIcon:XI,ChevronUpIcon:qI,ChevronDownIcon:AI}),r=n.ChevronLeftIcon,i=n.RoundIcon,a=n.ChevronRightIcon,o=n.ChevronUpIcon,s=n.ChevronDownIcon,l=vo(function(){return nx(e.tips)?e.tips:!0===e.tips?{prev:"\u4e0a\u4e00\u9875",current:"\u5f53\u524d",next:"\u4e0b\u4e00\u9875"}:{}}),u=vo(function(){return nx(e.disabled)?e.disabled:!0===e.disabled?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}});return function(){var n=[t.value,Pw({},"".concat(t.value,"--outline"),"outline"===e.variant)];return Na("div",{class:n},[Na(VO,{title:l.value.prev,variant:e.variant,size:e.size,shape:"square",onClick:function(t){var n;return null===(n=e.onChange)||void 0===n?void 0:n.call(e,{e:t,trigger:"prev"})},icon:"horizontal"===e.layout?function(){return Na(r,null,null)}:function(){return Na(o,null,null)},class:"".concat(t.value,"__prev"),disabled:u.value.prev},null),e.showCurrent&&Na(VO,{title:l.value.current,variant:e.variant,size:e.size,shape:"square",onClick:function(t){var n;return null===(n=e.onChange)||void 0===n?void 0:n.call(e,{e:t,trigger:"current"})},icon:function(){return Na(i,null,null)},class:"".concat(t.value,"__current"),disabled:u.value.current},null),Na(VO,{title:l.value.next,variant:e.variant,size:e.size,shape:"square",onClick:function(t){var n;return null===(n=e.onChange)||void 0===n?void 0:n.call(e,{e:t,trigger:"next"})},icon:"horizontal"===e.layout?function(){return Na(a,null,null)}:function(){return Na(s,null,null)},class:"".concat(t.value,"__next"),disabled:u.value.next},null)])}}}),MD=AO(ED);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function DD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var LD=new Set,ND=function(e,t){},jD=function(e,t){var n="TDesign ".concat(e," Warn: ").concat(t);LD.has(n)||LD.add(n)},FD=function(e,t){};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function zD(e,t,n,r){var i=Za(),a=i.emit,o=i.attrs,s=Et();return s.value=t,void 0!==e.value&&(s.value=e.value),ta(e,function(e){s.value=e}),[s,function(t){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];o["onUpdate:".concat(r)]&&(null==a||a.apply(void 0,["update:".concat(r),t].concat(l))),void 0===e.value&&(s.value=t),null==n||n.apply(void 0,[t].concat(l))}]}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var BD={default:{type:Function},destroyOnHide:{type:Boolean,default:!0},disabled:Boolean,label:{type:[String,Function]},panel:{type:[String,Function]},removable:Boolean,value:{type:[String,Number]},onRemove:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function VD(){var e=Et(0);gi("t-display-none-element-refresh",e),Dr(function(){e.value+=1})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var WD=yr({name:"TTabPanel",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HD(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},BD),setup:function(e){var t=wA("tab-panel"),n=jO();VD();var r=yi("tabs");return function(){var i=e.value===r.value.value;return e.destroyOnHide&&!i?null:Xn(Na("div",{class:t.value},[n("default","panel")]),[[Xo,i]])}}}),UD=/\s/;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var XD=function(e){for(var t=e.length;t--&&UD.test(e.charAt(t)););return t},GD=/^\s+/;var YD=function(e){return e?e.slice(0,XD(e)+1).replace(GD,""):e},KD=nx,qD=DC,ZD=/^[-+]0x[0-9a-f]+$/i,JD=/^0b[01]+$/i,QD=/^0o[0-7]+$/i,$D=parseInt;var eR=function(e){if("number"==typeof e)return e;if(qD(e))return NaN;if(KD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=KD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=YD(e);var n=JD.test(e);return n||QD.test(e)?$D(e.slice(2),n?2:8):ZD.test(e)?NaN:+e},tR=Ww,nR=nx,rR=function(){return tR.Date.now()},iR=eR,aR=Math.max,oR=Math.min;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var sR=function(e,t,n){var r,i,a,o,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,a=i;return r=i=void 0,u=t,o=e.apply(a,n)}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=a}function m(){var e=rR();if(p(e))return v(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?oR(n,a-(e-u)):n}(e))}function v(e){return s=void 0,f&&r?h(e):(r=i=void 0,o)}function g(){var e=rR(),n=p(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?h(e):o}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),o}return t=iR(t)||0,nR(n)&&(c=!!n.leading,a=(d="maxWait"in n)?aR(iR(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?o:v(rR())},g},lR={addable:Boolean,disabled:Boolean,dragSort:Boolean,list:{type:Array},placement:{type:String,default:"top",validator:function(e){return!e||["left","top","bottom","right"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return!e||["medium","large"].includes(e)}},theme:{type:String,default:"normal",validator:function(e){return!e||["normal","card"].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onAdd:Function,onChange:Function,onDragSort:Function,onRemove:Function},uR=function(e){return(null==e?void 0:e.offsetWidth)||0},cR=function(e,t){var n=e.navsContainer,r=e.navsWrap,i=e.rightOperations,a=uR(i);if(!r||!n)return t;var o=uR(n),s=uR(r);return s<=o?0:t+o-a>s?s+a-o:t},dR=function(e,t,n){if(["left","right"].includes(n.toLowerCase()))return!1;var r=e.navsContainer,i=e.navsWrap,a=e.leftOperations,o=e.toLeftBtn;if(!i||!r)return!1;var s=uR(a),l=uR(o);return t+Math.round(s-l)>0},fR=function(e,t,n){if(["left","right"].includes(n.toLowerCase()))return!1;var r=e.navsContainer,i=e.navsWrap,a=e.rightOperations,o=e.toRightBtn;if(!i||!r)return!1;var s=uR(a),l=uR(o);return t+uR(r)-(s-l)-uR(i)<-1},hR=function(e,t){var n=e.activeTab,r=e.navsContainer,i=e.navsWrap,a=e.leftOperations,o=e.toLeftBtn,s=e.rightOperations,l=e.toRightBtn;if(!n)return t;var u=n.offsetLeft;if(!r)return t;var c,d,f=(c=uR(a),d=uR(o),0===u?c-d:c);if(t+f>u)return u-f;var h=n.offsetWidth;if(!r||!i)return t;var p,m,v,g=uR(r),y=(p=uR(s),m=uR(l),v=uR(i),Math.abs(u+h-v)<1?p-m:p);return t+g-y<u+h?u+h-g+y:t},pR=function(e,t){var n=e.navsContainer,r=e.leftOperations,i=e.toLeftBtn;if(!n)return 0;var a=uR(r),o=uR(i),s=uR(n);return Math.max(-(a-o),t-s)},mR=function(e,t){var n=e.navsContainer,r=e.navsWrap,i=e.rightOperations,a=e.toRightBtn,o=uR(i),s=uR(a),l=uR(n),u=uR(r);return Math.min(t+l-o-s,u-l+o-s)},vR=yr({name:"TTabNavItem",props:{index:Number,active:{type:Boolean},theme:lR.theme,size:lR.size,placement:lR.placement,label:{type:null},disabled:BD.disabled,removable:BD.removable,value:BD.value,onClick:Function,onRemove:Function},setup:function(e){var t=Et();MO(t);var n=wA("tabs__nav-item"),r=kE({CloseIcon:rP}).CloseIcon,i=wA(),a=xA(),o=a.STATUS,s=a.SIZE,l=function(t){var n=t.e;n.stopPropagation(),e.onRemove({e:n,value:e.value,index:e.index})},u=function(t){e.disabled||e.onClick(t)},c=vo(function(){var t;return Pw(t={},n.value,!0),Pw(t,"".concat(i.value,"-tabs__nav--card"),"card"===e.theme),Pw(t,o.value.disabled,e.disabled),Pw(t,o.value.active,e.active),Pw(t,"".concat(i.value,"-is-left"),"left"===e.placement),Pw(t,"".concat(i.value,"-is-right"),"right"===e.placement),Pw(t,s.value.medium,"medium"===e.size),Pw(t,s.value.large,"large"===e.size),t});return function(){return"card"===e.theme?Na("div",{class:c.value,onClick:u,ref:t},[Na("span",{class:"".concat(n.value,"-text-wrapper")},[e.label]),e.removable&&!e.disabled?Na(r,{class:"remove-btn",onClick:l},null):null]):Na("div",{class:c.value,onClick:u},[Na("div",{class:["".concat(n.value,"-wrapper"),(i={},Pw(i,o.value.disabled,e.disabled),Pw(i,o.value.active,e.active),i)],ref:t},[Na("span",{class:"".concat(n.value,"-text-wrapper")},[e.label])]),e.removable&&!e.disabled?Na(r,{class:"remove-btn",onClick:l},null):null]);var i}}}),gR=yr({props:{navs:{type:Array},placement:lR.placement,value:lR.value},setup:function(e){var t=wA("tabs"),n=wA(),r=vo(function(){return["".concat(t.value,"__bar"),"".concat(n.value,"-is-").concat(e.placement)]}),i=Et(null),a=function(){for(var t,n,r=Ew(["left","right"].includes(e.placement.toLowerCase())?["height","top"]:["width","left"],2),i=r[0],a=r[1],o=0,s=0;s<e.navs.length;s++){var l,u;if(e.navs[s].props.value===e.value)break;o+=(null===(l=e.navs[s])||void 0===l||null===(u=l.el)||void 0===u?void 0:u["client".concat(TD(i))])||0}return e.navs[s]?(Pw(n={},a,"".concat(o,"px")),Pw(n,i,"".concat((null===(t=e.navs[s].el)||void 0===t?void 0:t["client".concat(TD(i))])||0,"px")),n):{}};return Er(function(){fn(function(){i.value=a()})}),ta([function(){return e.navs},function(){return e.value},function(){return e.placement}],function(){fn(function(){i.value=a()})}),function(){return Na("div",{class:r.value,style:i.value},null)}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function yR(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return bR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bR(e,t)}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function bR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wR=function(e,t){var n,r=yR(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.getAttribute("draggable")&&t(i)}}catch(a){r.e(a)}finally{r.f()}},xR=function(e,t){var n;return wR(t,function(t){t.contains(e)&&(n=t)}),n};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SR(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kR=dR,AR=fR,CR=cR,TR=pR,OR=mR,IR=hR,PR=yr(_R(_R({name:"TTabNav"},{resizeObserver:null}),{},{props:{theme:lR.theme,panels:{type:Array,default:function(){return[]}},value:lR.value,placement:lR.placement,size:lR.size,disabled:lR.disabled,addable:lR.addable,onChange:lR.onChange,onAdd:lR.onAdd,onRemove:lR.onRemove,dragSort:lR.dragSort,onDragSort:lR.onDragSort},setup:function(e){var t=wA("tabs"),n=kE({ChevronLeftIcon:DI,ChevronRightIcon:XI,AddIcon:tI}),r=n.ChevronLeftIcon,i=n.ChevronRightIcon,a=n.AddIcon,o=wA(),s=xA().SIZE,l=Et(0),u=Et(!1),c=Et(!1),d=Et(),f=Et(),h=Et(),p=Et(),m=Et(),v=Et(),g=Et(),y=function(){return{navsContainer:d.value,navsWrap:f.value,leftOperations:h.value,toLeftBtn:p.value,rightOperations:m.value,toRightBtn:v.value}},b=vo(function(){return["left","right"].includes(e.placement.toLowerCase())?{}:{transform:"translate3d(".concat(-l.value,"px, 0, 0)")}}),w=vo(function(){return e.addable?{"min-height":"48px"}:null}),x=vo(function(){var n;return Pw(n={},"".concat(t.value,"__btn"),!0),Pw(n,s.value.medium,"medium"===e.size),Pw(n,s.value.large,"large"===e.size),n}),S=vo(function(){return _R(Pw({},"".concat(t.value,"__btn--left"),!0),x.value)}),_=vo(function(){return _R(Pw({},"".concat(t.value,"__btn--right"),!0),x.value)}),k=vo(function(){return _R(Pw({},"".concat(t.value,"__add-btn"),!0),x.value)}),A=vo(function(){var n;return Pw(n={},"".concat(t.value,"__nav-container"),!0),Pw(n,"".concat(t.value,"__nav--card"),"card"===e.theme),Pw(n,"".concat(o.value,"-is-").concat(e.placement),!0),Pw(n,"".concat(o.value,"-is-addable"),e.addable),n}),C=vo(function(){var e;return Pw(e={},"".concat(t.value,"__nav-scroll"),!0),Pw(e,"".concat(o.value,"-is-scrollable"),u.value||c.value),e}),T=vo(function(){return["".concat(t.value,"__nav-wrap"),"".concat(o.value,"-is-smooth"),Pw({},"".concat(o.value,"-is-vertical"),"left"===e.placement||"right"===e.placement)]}),O=function(){P(),I()};ta([l,function(){return e.placement},function(){return e.panels}],O),oE(sR(O),d.value),Er(O);var I=function(){l.value=CR(y(),l.value)},P=function(){u.value=kR(y(),l.value,e.placement),c.value=AR(y(),l.value,e.placement)},E=function(e){l.value="left"===e?TR(y(),l.value):OR(y(),l.value)},M=function(t){var n;null===(n=e.onAdd)||void 0===n||n.call(e,{e:t})},D=function(t){var n=t.e,r=t.value,i=t.index;e.onRemove({e:n,value:r,index:i})},R=function(t){(null==t?void 0:t.value)===e.value&&g.value!==t.$el&&(g.value=t.$el,l.value=IR(_R({activeTab:g.value},y()),l.value))},L=function(e){var t,n=null,r=[],i=function(e){var n=e.target;t=n,n.style.opacity="0.5"},a=function(e){e.target.style.opacity=""},o=function(e){e.preventDefault()},s=function(e){var i=xR(e.target,n.children);i&&i!==t&&(i.firstChild.style.outline="1px dashed #0052d9",r.includes(i)||r.push(i))},l=function(e){var t,n=e.target,i=yR(r);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.contains(n)||(a.firstChild.style.outline="none")}}catch(o){i.e(o)}finally{i.f()}},u=function(r){r.preventDefault(),wR(n.children,function(e){e.firstChild.style.outline="none"});var i=xR(r.target,n.children);if(i&&i.parentNode!==t){var a=[].indexOf.call(n.children,t),o=[].indexOf.call(n.children,i);o>a&&(i=n.children[o+1]),n.insertBefore(t,i);var s="card"===e.theme?a:a-1,l="card"===e.theme?o:o-1;e.onDragSort({currentIndex:s,current:e.panels[s].value,targetIndex:l,target:e.panels[l].value})}};return Lr(function(){n.removeEventListener("dragstart",i),n.removeEventListener("dragend",a),n.removeEventListener("dragover",o),n.removeEventListener("dragenter",s),document.removeEventListener("dragleave",l),document.removeEventListener("mousemove",l),n.removeEventListener("drop",u)}),{setNavsWrap:function(e){(n=e).addEventListener("dragstart",i,!1),n.addEventListener("dragend",a,!1),n.addEventListener("dragover",o,!1),n.addEventListener("dragenter",s,!1),document.addEventListener("dragleave",l,!1),document.addEventListener("mousemove",l,!1),n.addEventListener("drop",u,!1)}}}(e),N=L.setNavsWrap;Er(function(){N(f.value)});var j=vo(function(){return e.panels.map(function(t,n){var r,i;return i=null!=t&&null!==(r=t.children)&&void 0!==r&&r.label?t.children.label():"function"==typeof t.label?t.label(go):t.label||"\u9009\u9879\u5361".concat(n+1),Na(vR,{ref:R,draggable:e.dragSort,key:t.value,index:n,theme:e.theme,size:e.size,placement:e.placement,label:i,active:t.value===e.value,disabled:e.disabled||t.disabled,removable:t.removable,value:t.value,onClick:function(n){return function(t,n){var r=n.value;if(n.disabled||e.value===r)return!1;e.onChange(r)}(0,t)},onRemove:D},null)})});return function(){return Na("div",{ref:d,class:["".concat(t.value,"__nav")],style:w.value},[[Na("div",{ref:h,class:["".concat(t.value,"__operations"),"".concat(t.value,"__operations--left")]},[Na(Eo,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[u.value?Na("div",{ref:p,class:S.value,onClick:function(){return E("left")}},[Na(r,null,null)]):null]}})]),Na("div",{ref:m,class:["".concat(t.value,"__operations"),"".concat(t.value,"__operations--right")]},[Na(Eo,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[c.value?Na("div",{ref:v,class:_.value,onClick:function(){return E("right")}},[Na(i,null,null)]):null]}}),e.addable?Na("div",{class:k.value,onClick:M},[Na(a,null,null)]):null])],Na("div",{class:A.value},[Na("div",{class:C.value},[Na("div",{ref:f,class:T.value,style:b.value},["card"!==e.theme&&Na(gR,{placement:e.placement,value:e.value,navs:j.value},null),j.value])])])])}}})),ER=AO(yr({name:"TTabs",props:lR,setup:function(e){var t=wA("tabs"),n=wA(),r=LO(),i=Ft(e),a=Ew(pD(i.value,i.modelValue,e.defaultValue||"",e.onChange),2),o=a[0],s=a[1];gi("tabs",{value:o});var l=function(t){var n;null===(n=e.onAdd)||void 0===n||n.call(e,{e:t.e})},u=function(e){s(e)},c=function(t){var n=t.e,r=t.value,i=t.index;e.onRemove({value:r,index:i,e:n})},d=function(){var e=r("default");return e?e=e.map(function(e){return e.children&&Array.isArray(e.children)?e.children:e}).flat().filter(function(e){return"TTabPanel"===e.type.name}):[]},f=function(){var t,r,i=((null!==(t=e.list)&&void 0!==t&&t.length?e.list:d())||[]).map(function(e){var t=e;return e.props&&Object.keys(e.props).forEach(function(n){t[n]=e.props[n]}),t}),a={theme:e.theme,value:o.value,size:e.size,disabled:e.disabled,placement:e.placement,addable:e.addable,panels:i,dragSort:e.dragSort};return Na("div",{class:(r={},Pw(r,"".concat(n.value,"-tabs__header"),!0),Pw(r,"".concat(n.value,"-is-").concat(e.placement),!0),r)},[Na(PR,Xa(a,{onDragSort:e.onDragSort,onChange:u,onAdd:l,onRemove:c}),null)])},h=function(){var t,r=d();return null!==(t=e.list)&&void 0!==t&&t.length?e.list.map(function(e){return Na(WD,Xa(e,{onRemove:c}),null)}):r&&r.length?Na("div",{class:["".concat(n.value,"-tabs__content")]},[r]):void 0};return function(){return Na("div",{class:[t.value]},["bottom"!==e.placement?[f(),h()]:[h(),f()]])}}})),MR=AO(WD),DR=yr({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var t=wA("fake-arrow");return{classes:vo(function(){return[t.value,Pw({},"".concat(t.value,"--active"),e.isActive),e.overlayClassName]})}},render:function(){return Na("svg",{class:this.classes,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:this.overlayStyle},[Na("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black","stroke-opacity":"0.9","stroke-width":"1.3"},null)])}}),RR=tx,LR=SS;var NR=function(e){return"number"==typeof e||LR(e)&&"[object Number]"==RR(e)},jR={align:{type:String,default:"left",validator:function(e){return!e||["left","center","right"].includes(e)}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:Number},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(e){return!e||["text","number","url","tel","password","search","submit","hidden"].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function FR(){var e=bA().classPrefix,t={small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")},n={loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")};return{classPrefix:e,sizeClassNames:t,statusClassNames:n,classNames:{size:t,status:n}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zR(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var VR=function(e){var t=e.data,n=e.container,r=e.fixedHeight,i=void 0!==r&&r,a=e.lineHeight,o=void 0===a?30:a,s=e.bufferSize,l=void 0===s?20:s,u=e.threshold,c=void 0===u?100:u,d=bt({visibleData:[],cachedHeight:[],cachedScrollY:[]}),f=vo(function(){return t.value.length>c}),h=Et(0),p=new Map,m=0,v=0,g=0,y=0,b=0,w=0,x=function(){t.value.forEach(function(e,t){e.$index=t,i&&(d.cachedScrollY[t]=t*o)}),i||(d.cachedScrollY[t.value.length-1]=void 0)};x();var S=vo(function(){var e=d.cachedHeight;if(e.length){var n=e.reduce(function(e,t){return e+t||o},0);if(e.length===t.value.length)return n;var r=n/e.length;return n+(t.value.length-e.length)*r}return f.value?t.value.length*o:0}),_=vo(function(){var e=d.visibleData,t=e[0];return t?1===e.length?0:d.cachedScrollY[t.$index]:0}),k=function(){w=Math.min(b+m+2*l,t.value.length),d.visibleData=t.value.slice(b,w)},A=function(){var e,r=p.get(g);if(r){var i=null==r||null===(e=r.getBoundingClientRect())||void 0===e?void 0:e.height;d.cachedScrollY[g]=n.value.scrollTop-y,d.cachedHeight[g]=i;for(var a=g+1;a<=d.visibleData[d.visibleData.length-1].$index;a++){var o=p.get(a),s=((null==o?void 0:o.getBoundingClientRect())||{}).height;d.cachedHeight[a]=s;var l=d.cachedScrollY[a-1]+d.cachedHeight[a-1];d.cachedScrollY.splice(a,1,l)}for(var u=g-1;u>=d.visibleData[0].$index;u--){var c=p.get(u),f=((null==c?void 0:c.getBoundingClientRect())||{}).height;d.cachedHeight[u]=f;var h=d.cachedScrollY[u+1]-d.cachedHeight[u];d.cachedScrollY.splice(u,1,h)}if(d.cachedScrollY[0]>0){for(var m=d.cachedScrollY[0],x=Math.min(w,t.value.length),S=0;S<x;S++)d.cachedScrollY.splice(S,1,d.cachedScrollY[S]-m);var _=d.cachedScrollY[g-1]?d.cachedScrollY[g-1]+y:y;n.value.scrollTop=_,v=_}if(d.cachedScrollY[b]<0){var k=d.cachedHeight.slice(0,Math.max(0,g)).reduce(function(e,t){return e+t},0)+y;n.value.scrollTop=k,v=k,0===k&&(g=0,y=0)}fn(function(){var e=n.value,t=e.scrollTop,r=e.scrollHeight;if(t+e.clientHeight===r)for(var i=w-1;i>=b;i--)i===w-1?d.cachedScrollY.splice(i,1,r.value-d.cachedHeight[i]):d.cachedScrollY.splice(i,1,d.cachedScrollY[i+1]-d.cachedHeight[i])})}};!i&&ta(h,A,{flush:"post"});ta(t,function(){x(),d.visibleData=[],d.cachedScrollY=[],d.cachedHeight=[],v=0,g=0,y=0,b=0,p.clear(),t.value.length<=c?d.visibleData=t.value:k(),n.value&&(n.value.scrollTop=0)});var C=!1,T=function(){C&&(m=Math.ceil(n.value.offsetHeight/o),k())};return Er(function(){if(window&&window.IntersectionObserver){var e=new window.IntersectionObserver(function(t){var r=t[0];(r.isIntersecting||r.intersectionRatio)&&(C=!0,f.value&&T(),e.unobserve(n.value))});n.value&&e.observe(n.value)}}),BR(BR({trs:p,scrollHeight:S},Ft(d)),{},{translateY:_,handleScroll:function(){if(f.value){var e=n.value.scrollTop,r=e-v;v=e;var i=g;if(r+=y){if(r>=0){for(;i<t.value.length&&r>(d.cachedHeight[i]||o);)d.cachedHeight[i]||(d.cachedHeight[i]=o),r-=d.cachedHeight[i],i++;i>=t.value.length?(g=t.value.length-1,y=0):(g=i,y=r);var a=n.value;e+a.clientHeight===a.scrollHeight&&(g=t.value.length-m+1),b<=g-l&&(b=Math.min(t.value.length-m,g-l))<0&&(b=0)}else{for(;r<0;)i--,d.cachedHeight[i]||(d.cachedHeight[i]=o),r+=d.cachedHeight[i];i<0?(g=0,y=0):(g=i,y=r),A(),b>g-l&&(b=Math.max(0,g-l))}k()}}},handleRowMounted:function(){f.value&&h.value++},refreshContainer:T,fixedHeight:i,calculateScrollY:A})},HR=function(){var e=wA();return vo(function(){var t="".concat(e.value,"-form"),n="".concat(e.value,"-input"),r="".concat(e.value,"-is");return{form:t,label:"".concat(t,"__label"),labelTop:"".concat(t,"__label--top"),inline:"".concat(t,"-inline"),formItem:"".concat(t,"__item"),formItemWithHelp:"".concat(t,"__item-with-help"),formItemWithExtra:"".concat(t,"__item-with-extra"),controls:"".concat(t,"__controls"),controlsContent:"".concat(t,"__controls-content"),status:"".concat(t,"__status"),extra:"".concat(n,"__extra"),help:"".concat(n,"__help"),success:"".concat(r,"-success"),successBorder:"".concat(t,"--success-border"),error:"".concat(r,"-error"),warning:"".concat(r,"-warning")}})},WR=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(WR||{}),UR=Symbol("FormProvide"),XR=Symbol("FormItemProvide");
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function GR(e,t){var n=Ft(e),r=n.value,i=n.modelValue,a=Et(),o=Et(null),s=Et(),l=DO(),u=Ew(pD(r,i,e.defaultValue,e.onChange),2),c=u[0],d=u[1],f=Et(!1),h=Et(!1),p=Et(e.type),m=Et(null),v=Et(null),g=Et(""),y=vo(function(){if(g.value){var e=Ew(g.value.split("/"),2),t=e[0],n=e[1];return Number(t)>Number(n)?"error":""}return""}),b=vo(function(){return e.status?e.status:y.value}),w=vo(function(){return(c.value&&!l.value&&e.clearable&&!e.readonly||e.showClearIconOnEmpty)&&f.value}),x=function(t){var n=t.target.value;if(e.maxcharacter&&e.maxcharacter>0){var r=ID(n,e.maxcharacter);"object"===zw(r)&&(e.allowInputOverMax||(n=r.characters),g.value="".concat(r.length,"/").concat(e.maxcharacter))}e.maxlength&&e.maxlength>0&&(e.allowInputOverMax||(n=n.substring(0,e.maxlength)),g.value="".concat(n.length,"/").concat(e.maxlength)),d(n,{e:t}),fn(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=m.value;if(t){var n=String(e);t.value&&t.value!==n&&(t.value=n)}}(c.value)})},S=yi(XR,void 0);ta(function(){return e.autofocus},function(e){!0===e&&fn(function(){var e;null===(e=m.value)||void 0===e||e.focus()})},{immediate:!0}),ta(c,function(e){a.value=e},{immediate:!0}),ta(function(){return e.type},function(e){p.value=e},{immediate:!0}),ta(y,function(){var t;null===(t=e.onValidate)||void 0===t||t.call(e,{error:y.value?"exceed-maximum":void 0})});return Pr(function(){!function(){if(e.maxcharacter&&e.maxcharacter>0){var t=ID(String(c.value));g.value="".concat(t,"/").concat(e.maxcharacter)}e.maxlength&&e.maxlength>0&&(g.value="".concat(String(c.value).length,"/").concat(e.maxlength))}()}),t({inputRef:m,focus:function(){var e;return null===(e=m.value)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=m.value)||void 0===e?void 0:e.blur()}}),{isHover:f,focused:h,renderType:p,showClear:w,inputRef:m,clearIconRef:o,inputValue:a,limitNumber:g,tStatus:b,emitFocus:function(t){var n;a.value=c.value,e.disabled||e.readonly||(h.value=!0,null===(n=e.onFocus)||void 0===n||n.call(e,c.value,{e:t}))},formatAndEmitBlur:function(t){var n;(e.format&&(a.value=e.format(c.value)),h.value=!1,!function(){var e,t=s.value;if(!(t&&t.tagName&&null!==(e=o.value)&&void 0!==e&&e.$el&&["path","svg"].includes(t.tagName)))return!1;for(;t;){var n;if((null===(n=o.value)||void 0===n?void 0:n.$el)===t)return!0;t=t.parentNode}return!1}()&&e.allowTriggerBlur)&&(null===(n=e.onBlur)||void 0===n||n.call(e,c.value,{e:t}),null==S||S.handleBlur())},onHandleCompositionend:function(t){var n;x(t),null===(n=e.onCompositionend)||void 0===n||n.call(e,c.value,{e:t})},onHandleCompositionstart:function(t){var n;null===(n=e.onCompositionstart)||void 0===n||n.call(e,c.value,{e:t})},onRootClick:function(e){var t;null===(t=m.value)||void 0===t||t.focus()},emitPassword:function(){var e="password"===p.value?"text":"password";p.value=e},handleInput:function(e){var t=e.inputType&&"insertCompositionText"===e.inputType;e.isComposing||t||x(e)},emitClear:function(t){var n,r=t.e;null===(n=e.onClear)||void 0===n||n.call(e,{e:r}),d("",{e:r})},onClearIconMousedown:function(e){s.value=e.target},innerValue:c,inputPreRef:v}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function YR(e,t,n,r){var i=Et(!1),a=function(){ta(function(){return r.value+e.placeholder},function(){e.autoWidth&&fn(function(){!function(){if(t.value){var e=t.value.offsetWidth;0!==e&&(n.value.style.width="".concat(e,"px"))}}()})},{immediate:!0})};Er(function(){i.value=!1,e.autoWidth&&a()})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var KR=["isHover","tStatus","inputRef","inputPreRef","renderType","showClear","focused","inputValue","innerValue","limitNumber"];function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JR(e){var t={};return Object.keys(e).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t}var QR=yr({name:"TInput",props:ZR(ZR({},jR),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1},allowTriggerBlur:{type:Boolean,default:!0}}),setup:function(e,t){t.slots;var n=t.expose,r=bA("input").globalConfig,i=kE({BrowseIcon:uI,BrowseOffIcon:aI,CloseCircleFilledIcon:$I}),a=i.BrowseIcon,o=i.BrowseOffIcon,s=i.CloseCircleFilledIcon,l=DO(),u=wA("input"),c=wA("input__wrap"),d=wA("input__tips"),f=xA(),h=f.STATUS,p=f.SIZE,m=wA(),v=LO(),g=GR(e,n),y=g.isHover,b=g.tStatus,w=g.inputRef,x=g.inputPreRef,S=g.renderType,_=g.showClear,k=g.focused,A=g.inputValue,C=g.innerValue,T=g.limitNumber,O=Dw(g,KR);YR(e,x,w,C);var I=function(e,t,n){var r=function(e){return t.value=e};return{handleKeydown:function(t){if(!e.disabled){var r,i,a=t.code;"Enter"===a||"NumpadEnter"===a?null===(r=e.onEnter)||void 0===r||r.call(e,n.value,{e:t}):null===(i=e.onKeydown)||void 0===i||i.call(e,n.value,{e:t})}},handleKeyUp:function(t){var r;e.disabled||null===(r=e.onKeyup)||void 0===r||r.call(e,n.value,{e:t})},handleKeypress:function(t){var r;e.disabled||null===(r=e.onKeypress)||void 0===r||r.call(e,n.value,{e:t})},onHandlePaste:function(t){var n;if(!e.disabled){var r=t.clipboardData||window.clipboardData;null===(n=e.onPaste)||void 0===n||n.call(e,{e:t,pasteValue:null==r?void 0:r.getData("text/plain")})}},onHandleMousewheel:function(t){var n;return null===(n=e.onWheel)||void 0===n?void 0:n.call(e,{e:t})},onInputMouseenter:function(t){var n;r(!0),null===(n=e.onMouseenter)||void 0===n||n.call(e,{e:t})},onInputMouseleave:function(t){var n;r(!1),null===(n=e.onMouseleave)||void 0===n||n.call(e,{e:t})}}}(e,y,C),P=vo(function(){var t;return null!==(t=e.placeholder)&&void 0!==t?t:r.value.placeholder}),E=vo(function(){var t;return JR({autofocus:e.autofocus,disabled:l.value,readonly:e.readonly,placeholder:P.value,maxlength:!e.allowInputOverMax&&e.maxlength||void 0,name:e.name||void 0,type:S.value,autocomplete:null!==(t=e.autocomplete)&&void 0!==t?t:r.value.autocomplete||void 0,unselectable:e.readonly?"on":void 0})});return function(){var t,n,r=v("prefixIcon"),i=v("suffixIcon"),f=v("passwordIcon"),g=v("label",{silent:!0}),y=v("suffix"),M=T.value&&e.showLimitNumber?Na("div",{class:"".concat(m.value,"-input__limit-number")},[T.value]):null,D=g?Na("div",{class:"".concat(u.value,"__prefix")},[g]):null,R=y||M?Na("div",{class:"".concat(u.value,"__suffix")},[y,M]):null;"password"===e.type&&("password"===S.value?i=Na(o,{class:"".concat(u.value,"__suffix-clear"),onClick:O.emitPassword},null):"text"===S.value&&(i=Na(a,{class:"".concat(u.value,"__suffix-clear"),onClick:O.emitPassword},null))),_.value&&("password"===e.type?f=Na(s,{ref:O.clearIconRef,class:"".concat(u.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null):i=Na(s,{ref:O.clearIconRef,class:"".concat(u.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var L=[u.value,e.inputClass,(t={},Pw(t,p.value[e.size],"medium"!==e.size),Pw(t,h.value.disabled,l.value),Pw(t,h.value.focused,k.value),Pw(t,"".concat(m.value,"-is-").concat(b.value),b.value),Pw(t,"".concat(m.value,"-align-").concat(e.align),"left"!==e.align),Pw(t,"".concat(m.value,"-is-readonly"),e.readonly),Pw(t,"".concat(u.value,"--prefix"),r||D),Pw(t,"".concat(u.value,"--suffix"),i||R),Pw(t,"".concat(u.value,"--focused"),k.value),Pw(t,"".concat(u.value,"--auto-width"),e.autoWidth&&!e.keepWrapperWidth),t)],N=JR({onFocus:function(e){return O.emitFocus(e)},onBlur:O.formatAndEmitBlur,onKeydown:I.handleKeydown,onKeyup:I.handleKeyUp,onKeypress:I.handleKeypress,onPaste:I.onHandlePaste,onCompositionend:O.onHandleCompositionend,onCompositionstart:O.onHandleCompositionstart}),j=v("tips");return Na("div",{class:c.value},[Na("div",{class:L,onClick:O.onRootClick,onMouseenter:I.onInputMouseenter,onMouseleave:I.onInputMouseleave,onWheel:I.onHandleMousewheel},[r?Na("span",{class:["".concat(u.value,"__prefix"),"".concat(u.value,"__prefix-icon")]},[r]):null,D,e.showInput&&Na("input",Xa({class:"".concat(u.value,"__inner")},E.value,N,{ref:w,value:null!==(n=A.value)&&void 0!==n?n:"",onInput:function(e){return O.handleInput(e)}}),null),e.autoWidth&&Na("span",{ref:x,class:"".concat(m.value,"-input__input-pre")},[C.value||P.value]),R,f?Na("span",{class:["".concat(u.value,"__suffix"),"".concat(u.value,"__suffix-icon"),"".concat(u.value,"__clear")]},[f]):null,i?Na("span",{class:["".concat(u.value,"__suffix"),"".concat(u.value,"__suffix-icon"),Pw({},"".concat(u.value,"__clear"),_.value)]},[i]):null]),j&&Na("div",{class:"".concat(d.value," ").concat(m.value,"-input__tips--").concat(e.status||"normal")},[j])])}}}),$R=yr({name:"TInputGroup",props:{separate:{type:Boolean,default:!1}},setup:function(e){var t=wA("input-group"),n=LO(),r=vo(function(){return[t.value,Pw({},"".concat(t.value,"--separate"),e.separate)]});return function(){return Na("div",{class:r.value},[n("default")])}}}),eL=AO(QR);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function tL(e){return new Array(e).fill(0).join("")}function nL(e){if(!e)return!0;if("number"==typeof e)return Number.isNaN(e);if(!/^[0-9|e|E|-]+\.*[0-9|e|E|-]*$/.test(e))return!1;for(var t=0,n=0,r=0,i=0,a=e.length;i<a;i++){if("."===e[i]&&(r+=1)>1)return!1;if(/(e|E)+/.test(e[i])&&(t+=1)>1)return!1;if("-"===e[i]&&(n+=1)>2)return!1}return!0}function rL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return-1!==e.indexOf(".")?(FD("InputNumber","num is not a integer number."),e):!e||"0"===e&&t?"":"0"===e?e:(t?e.replace(/0+$/,""):e.replace(/^0+/,""))||"0"}function iL(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=rL(e,n),i=rL(t,n),a=r.length>i.length,o=a?r:i,s=a?i:r,l=[],u=[],c=n?0:o.length-s.length,d=n?s.length:o.length,f=d-1;f>=0;f--){var h=f-c,p=Number(o[f])+(Number(s[h])||0)+(u[f]||0);p>=10&&(u[f-1]=1),l.unshift(String(p%10))}return u[-1]&&l.unshift("1"),n?l.concat(o.slice(d,o.length)).join(""):l.join("")}function aL(e,t){var n=Ew(e.split("."),2),r=n[0],i=void 0===r?"0":r,a=n[1],o=void 0===a?"0":a,s=Ew(t.split("."),2),l=s[0],u=void 0===l?"0":l,c=s[1],d=void 0===c?"0":c,f=iL(i,u);if("0"===o&&"0"===d)return f;var h=rL(o,!0),p=rL(d,!0),m=iL(h,p,!0),v=m.length;return v>h.length&&v>p.length?[rL(iL(f,"1")),rL(m.slice(1),!0)].filter(function(e){return e}).join("."):[rL(f),rL(m,!0)].filter(function(e){return e}).join(".")}function oL(e,t){var n=rL(e),r=rL(t);if(n.length===r.length){for(var i=0,a=n.length;i<a;i++){if(n[i]>r[i])return 1;if(n[i]<r[i])return-1}return 0}return n.length>r.length?1:-1}function sL(e,t){for(var n=e&&"0"!==e?e.replace(/0+$/,""):"0",r=t&&"0"!==t?t.replace(/0+$/,""):"0",i=0,a=Math.max(n.length,r.length);i<a;i++){if((n[i]||0)>(r[i]||0))return 1;if((n[i]||0)<(r[i]||0))return-1}return 0}function lL(e){return[-1/0,1/0].includes(Number(e))}function uL(e){return Number(e)<Number.MAX_SAFE_INTEGER&&Number(e)>Number.MIN_SAFE_INTEGER}function cL(e,t,n){var r=uL(e)&&uL(t)&&!n,i=lL(e)||lL(t);return r||i?Number(e)===Number(t)?0:Number(e)>Number(t)?1:-1:function(e,t){var n=Ew(e.split("."),2),r=n[0],i=n[1],a=Ew(t.split("."),2),o=a[0],s=a[1],l=oL(r.replace("-",""),o.replace("-","")),u=r.includes("-"),c=o.includes("-");return u&&!c?-1:!u&&c?1:u&&c?0===l?0:l>0?-1:1:0===l?sL(i,s):l}(String(e),String(t))}function dL(e,t,n){if(e===t)return"0";for(var r=n||{},i=r.decimal,a=r.stayZero,o=rL(e),s=rL(t),l=oL(o,s)>0,u=l?o:s,c=l?s:o,d=[],f=[],h=i?0:u.length-c.length,p=i?c.length:u.length,m=p-1;m>=0;m--){var v=m-h,g=Number(u[m])-(Number(c[v])||0)-(f[m]||0);g<0&&(f[m-1]=1,g+=10),d.unshift(String(g))}if(i)return d.concat(u.slice(p,u.length)).join("");var y=d.join("");return a||(y=y.replace(/^0+/,"")),rL(l?y:"-".concat(y))}function fL(e,t){if(e===t)return"0";var n=cL(e,t,!0)>0,r=n?t:e,i=Ew((n?e:t).split("."),2),a=i[0],o=i[1],s=void 0===o?"0":o,l=Ew(r.split("."),2),u=l[0],c=l[1],d=void 0===c?"0":c,f=dL(a,u);if("0"===s&&"0"===d)return n?f:"-".concat(f);var h="",p=s;s.length<d.length&&(p="".concat(s).concat(tL(d.length-s.length))),sL(p,d)>=0?h=dL(p,d,{decimal:!0}):(s.length<d.length||"0"===s?(h=dL("1".concat(p),d,{stayZero:!0}),h=tL(d.length-h.length)+h):h=dL(s,d,{decimal:!0}),f=dL(f,"1"));var m=h?[f,h].join("."):f;return n?m:"-".concat(m)}function hL(e,t){if(null==e||""===e)return e;if("-"===e)return 0;if("."===e[e.length-1])return e.slice(0,-1);var n=(null==t?void 0:t.largeNumber)&&CA(e),r=e;return(CA(e)&&e.includes("e")||NR(e))&&(r=n?function(e){var t=Ew(e.split("e"),2),n=t[0],r=t[1],i=Ew(e.split("."),2),a=i[0],o=i[1],s=void 0===o?"":o,l=Number(r),u=Ew(s.split("e"),1)[0];if(l>u.length){var c=tL(l-u.length);return n.replace(/(^0+|\.)/g,"")+c}var d=a.replace(/^0+/,"")+u.slice(0,l),f=u.slice(l);return f?[d,f].join("."):d}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */(e):Number(e)),void 0!==(null==t?void 0:t.decimalPlaces)&&(r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(arguments.length>2&&void 0!==arguments[2]&&!arguments[2])return Number(e).toFixed(t);if("string"!=typeof e)return String(e);var n=Ew(e.split("."),2),r=n[0],i=n[1];if(!i)return t?[e,tL(t)].join("."):e;if(0===t)return Number(i[0])>=5?aL(r,"1"):r;var a=i.slice(0,t);return i.length<t?a+=tL(t-i.length):a=Number(i[t])>=5?aL(a,"1"):a,[r,a].join(".")}(r,t.decimalPlaces,t.largeNumber)),n||void 0!==(null==t?void 0:t.decimalPlaces)?r:Number(r)}function pL(e,t){var n,r;if(!e||!t)return(e||0)+(t||0);var i=(null===(n=e.toString().split(".")[1])||void 0===n?void 0:n.length)||0,a=(null===(r=t.toString().split(".")[1])||void 0===r?void 0:r.length)||0;if(!i||!a)return e+t;var o=e,s=t,l=Math.abs(i-a),u=Math.pow(10,Math.max(i,a));if(l>0){var c=Math.pow(10,l);i>a?(o=Number(e.toString().replace(".","")),s=Number(t.toString().replace(".",""))*c):(o=Number(e.toString().replace(".",""))*c,s=Number(t.toString().replace(".","")))}else o=Number(e.toString().replace(".","")),s=Number(t.toString().replace(".",""));return(o+s)/u}function mL(e,t){var n,r;if(!e||!t)return(e||0)-(t||0);var i=(null===(n=e.toString().split(".")[1])||void 0===n?void 0:n.length)||0,a=(null===(r=t.toString().split(".")[1])||void 0===r?void 0:r.length)||0,o=Math.pow(10,Math.max(i,a));return Number(((e*o-t*o)/o).toFixed(i>=a?i:a))}function vL(e){var t=e.op,n=e.step,r=e.lastValue,i=void 0===r?0:r,a=e.max,o=e.min,s=e.largeNumber;if(n<=0)return FD("InputNumber","step must be larger than 0."),i;var l,u,c,d=NR(n)?String(n):n;return"add"===t?s&&CA(i)?l=function(e,t){var n="-"===e[0],r="-"===t[0];if(n&&!r)return fL(t,e.slice(1));if(n&&r){var i=aL(t.slice(1),e.slice(1));return"-".concat(i)}return!n&&r?fL(e,t.slice(1)):aL(e,t)}(String(i),String(d)):(u=Number(i||0),c=Number(n),l=u<0&&c>0?mL(c,Math.abs(u)):u<0&&c<0?-1*pL(Math.abs(u),Math.abs(c)):u>0&&c<0?mL(u,Math.abs(c)):pL(u,c)):"reduce"===t&&(l=s&&CA(i)?function(e,t){var n="-"===e[0],r="-"===t[0];if(n&&!r){var i=aL(e.slice(1),t);return"-".concat(i)}return n&&r?fL(t.slice(1),e.slice(1)):!n&&r?aL(e,t.slice(1)):fL(e,t)}(String(i),String(d)):function(e,t){return e<0&&t>0?-1*pL(Math.abs(e),t):e<0&&t<0?mL(Math.abs(t),Math.abs(e)):e>0&&t<0?pL(e,Math.abs(t)):mL(e,t)}(Number(i||0),Number(n))),void 0===i&&(l=function(e,t){if(""!==e){var n=t.max,r=t.min,i=t.lastValue,a=t.largeNumber;return nL(e)?!a||!CA(n)&&n!==1/0||!CA(r)&&r!==-1/0?Math.max(Number(r),Math.min(Number(n),Number(e))):cL(n,e,a)<0?n:cL(r,e,a)>0?r:e:i}}(l,{max:a,min:o,lastValue:i,largeNumber:s})),s?l:Number(l)}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function gL(e){var t=FR(),n=t.classPrefix,r=t.sizeClassNames,i=t.statusClassNames,a=Ft(e),o=a.value,s=a.modelValue,l=a.max,u=a.min,c=Ew(pD(o,s,e.defaultValue,e.onChange,"change"),2),d=c[0],f=c[1],h=Et(),p=Et(""),m=Et(),v=DO(),g=Et(),y=vo(function(){return v.value||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!e||(n&&CA(e)?cL(e,t,n)>0:e>t)}(d.value,e.min,e.largeNumber)}),b=vo(function(){return v.value||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!e||(n&&CA(e)?cL(e,t,n)<0:e<t)}(d.value,e.max,e.largeNumber)}),w=vo(function(){var t;return["".concat(n.value,"-input-number"),r[e.size],(t={},Pw(t,i.disabled,v.value),Pw(t,"".concat(n.value,"-is-controls-right"),"column"===e.theme),Pw(t,"".concat(n.value,"-input-number--").concat(e.theme),e.theme),Pw(t,"".concat(n.value,"-input-number--auto-width"),e.autoWidth),t)]}),x=vo(function(){return["".concat(n.value,"-input-number__decrease"),Pw({},i.disabled,y.value)]}),S=vo(function(){return["".concat(n.value,"-input-number__increase"),Pw({},i.disabled,b.value)]}),_=function(t){var n,r;if(!t&&0!==t)return"";var i=String(t);return null!==(n=h.value)&&void 0!==n&&null!==(r=n.inputRef)&&void 0!==r&&r.contains(document.activeElement)||(i=String(hL(i,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber})),e.format&&(i=String(e.format(t,{fixedNumber:i})))),i};ta(d,function(e){var t=[void 0,null].includes(e)?"":String(e);p.value=_(t)},{immediate:!0}),Er(function(){p.value=_(d.value)}),ta([d,l,u],function(){var t;if(![void 0,"",null].includes(d.value)){var n=function(e){var t=e.largeNumber,n=e.value,r=e.max,i=e.min;if(void 0!==t)return t&&NR(n)&&ND("InputNumber","largeNumber value must be a string."),cL(n,r,t)>0?"exceed-maximum":cL(n,i,t)<0?"below-minimum":void 0}({value:d.value,largeNumber:e.largeNumber,max:e.max,min:e.min});g.value=n,null===(t=e.onValidate)||void 0===t||t.call(e,{error:n})}},{immediate:!0});var k=function(t){return vL({op:t,step:e.step,max:e.max,min:e.min,lastValue:d.value,largeNumber:e.largeNumber})},A=function(t){if(!y.value&&!e.readonly){var n=k("reduce");f(n,{type:"reduce",e:t})}},C=function(t){if(!b.value&&!e.readonly){var n=k("add");f(n,{type:"add",e:t})}},T=function(){h.value.focus()};return{classPrefix:n,wrapClasses:w,reduceClasses:x,addClasses:S,displayValue:m,tDisabled:v,isError:g,listeners:{onBlur:function(t,n){var r;p.value=_(d.value);var i=hL(t,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber});i!==t&&String(i)!==t&&f(i,{type:"blur",e:n.e}),null===(r=e.onBlur)||void 0===r||r.call(e,i,n)},onFocus:function(t,n){var r;p.value=d.value||0===d.value?String(d.value):"",null===(r=e.onFocus)||void 0===r||r.call(e,t,n)},onKeydown:function(t,n){var r,i=n.e,a={ArrowUp:C,ArrowDown:A},o=i.code||i.key;void 0!==a[o]&&a[o](i),null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)},onKeyup:function(t,n){var r;null===(r=e.onKeyup)||void 0===r||r.call(e,t,n)},onKeypress:function(t,n){var r;null===(r=e.onKeypress)||void 0===r||r.call(e,t,n)},onEnter:function(t,n){var r;p.value=_(t);var i=hL(t,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber});i!==t&&String(i)!==t&&f(i,{type:"enter",e:n.e}),null===(r=e.onEnter)||void 0===r||r.call(e,i,n)},onClick:T},userInput:p,tValue:d,inputRef:h,focus:T,blur:function(){h.value.blur()},handleReduce:A,handleAdd:C,onInnerInputChange:function(t,n){if(r=t,i=e.largeNumber,!r&&"string"==typeof r||i&&nL(r)||!Number.isNaN(Number(r))||["-",".","e","E"].includes(r.slice(-1))){var r,i;p.value=t;var a=e.largeNumber||!t?t:Number(t);a===d.value||["-",".","e","E"].includes(t.slice(-1))||f(a,{type:"input",e:n.e})}}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function yL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}AO($R);var bL=yr({name:"TInputNumber",props:{align:{type:String,validator:function(e){return!e||["left","center","right"].includes(e)}},autoWidth:Boolean,decimalPlaces:{type:Number,default:void 0},disabled:Boolean,format:{type:Function},inputProps:{type:Object},label:{type:[String,Function]},largeNumber:Boolean,max:{type:[String,Number],default:1/0},min:{type:[String,Number],default:-1/0},placeholder:{type:String,default:void 0},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},step:{type:[String,Number],default:1},suffix:{type:[String,Function]},theme:{type:String,default:"row",validator:function(e){return!e||["column","row","normal"].includes(e)}},tips:{type:[String,Function]},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function},setup:function(e,t){var n=kE({AddIcon:tI,RemoveIcon:YP,ChevronDownIcon:AI,ChevronUpIcon:qI}),r=n.AddIcon,i=n.RemoveIcon,a=n.ChevronDownIcon,o=n.ChevronUpIcon,s=gL(e),l=s.inputRef;return t.expose(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s)),function(){var n="column"===e.theme?Na(a,{size:e.size},null):Na(i,{size:e.size},null),u="column"===e.theme?Na(o,{size:e.size},null):Na(r,{size:e.size},null),c=s.isError.value?"error":e.status;return Na("div",{class:s.wrapClasses.value},["normal"!==e.theme&&Na(VO,{class:s.reduceClasses.value,disabled:s.tDisabled.value,onClick:s.handleReduce,variant:"outline",shape:"square",icon:function(){return n}},null),Na(eL,Xa({ref:l,disabled:s.tDisabled.value,readonly:e.readonly,autocomplete:"off",placeholder:e.placeholder,unselectable:e.readonly?"on":"off",autoWidth:e.autoWidth,align:e.align||("row"===e.theme?"center":void 0),status:c,label:e.label,suffix:e.suffix},s.listeners,e.inputProps,{value:s.userInput.value,onChange:s.onInnerInputChange}),t.slots),"normal"!==e.theme&&Na(VO,{class:s.addClasses.value,disabled:s.tDisabled.value,onClick:s.handleAdd,variant:"outline",shape:"square",icon:function(){return u}},null),e.tips&&Na("div",{class:"".concat(s.classPrefix.value,"-input__tips ").concat(s.classPrefix.value,"-input__tips--").concat(c)},[e.tips])])}}}),wL=AO(bL),xL=r_,SL=DC,_L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kL=/^\w*$/;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var AL=function(e,t){if(xL(e))return!1;var n=zw(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!SL(e))||(kL.test(e)||!_L.test(e)||null!=t&&e in Object(t))},CL=wS;function TL(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(TL.Cache||CL),n}TL.Cache=CL;var OL=TL;var IL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PL=/\\(\\)?/g,EL=function(e){var t=OL(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(IL,function(e,n,r,i){t.push(r?i.replace(PL,"$1"):n||e)}),t}),ML=r_,DL=AL,RL=EL,LL=VC;var NL=function(e,t){return ML(e)?e:DL(e,t)?[e]:RL(LL(e))},jL=DC;var FL=function(e){if("string"==typeof e||jL(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},zL=NL,BL=FL;var VL=function(e,t){for(var n=0,r=(t=zL(t,e)).length;null!=e&&n<r;)e=e[BL(t[n++])];return n&&n==r?e:void 0},HL=YS,WL=NL,UL=a_,XL=nx,GL=FL;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var YL=function(e,t,n,r){if(!XL(e))return e;for(var i=-1,a=(t=WL(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=GL(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=XL(c)?c:UL(t[i+1])?[]:{})}HL(s,l,u),s=s[l]}return e};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var KL=NL,qL=n_,ZL=r_,JL=a_,QL=xS,$L=FL;var eN=function(e,t){return null!=e&&t in Object(e)},tN=function(e,t,n){for(var r=-1,i=(t=KL(t,e)).length,a=!1;++r<i;){var o=$L(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&QL(i)&&JL(o,i)&&(ZL(e)||qL(e))};var nN=function(e,t){return null!=e&&tN(e,t,eN)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var rN=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},iN=n_,aN=r_,oN=Uw?Uw.isConcatSpreadable:void 0;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var sN=rN,lN=function(e){return aN(e)||iN(e)||!!(oN&&e&&e[oN])};var uN=function e(t,n,r,i,a){var o=-1,s=t.length;for(r||(r=lN),a||(a=[]);++o<s;){var l=t[o];n>0&&r(l)?n>1?e(l,n-1,r,i,a):sN(a,l):i||(a[a.length]=l)}return a},cN=uN;var dN=function(e){return(null==e?0:e.length)?cN(e,1):[]},fN=ak,hN=dk;var pN=function(e){return hN(fN(e,void 0,dN),e+"")},mN=VL,vN=YL,gN=NL;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var yN=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=mN(e,o);n(s,o)&&vN(a,gN(o,e),s)}return a},bN=nN;var wN=function(e,t){return yN(e,t,function(t,n){return bN(e,n)})},xN=pN(function(e,t){return null==e?{}:wN(e,t)}),SN=G_,_N=eC,kN=l_;var AN=function(e){return kN(e)?SN(e):_N(e)};var CN=function(){return[]},TN=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a},ON=CN,IN=Object.prototype.propertyIsEnumerable,PN=Object.getOwnPropertySymbols,EN=PN?function(e){return null==e?[]:(e=Object(e),TN(PN(e),function(t){return IN.call(e,t)}))}:ON,MN=rN,DN=r_;var RN=function(e,t,n){var r=t(e);return DN(e)?r:MN(r,n(e))},LN=RN,NN=EN,jN=AN;var FN=function(e){return LN(e,jN,NN)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var zN=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},BN=F_,VN=AN;var HN=function(e,t){return e&&BN(t,VN(t),e)},WN=F_,UN=ek;var XN=function(e,t){return e&&WN(t,UN(t),e)},GN=F_,YN=EN;var KN=function(e,t){return GN(e,YN(e),t)},qN=rN,ZN=E_,JN=EN,QN=CN,$N=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)qN(t,JN(e)),e=ZN(e);return t}:QN,ej=F_,tj=$N;var nj=function(e,t){return ej(e,tj(e),t)},rj=RN,ij=$N,aj=ek;var oj=function(e){return rj(e,aj,ij)},sj=Object.prototype.hasOwnProperty;var lj=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&sj.call(e,"index")&&(n.index=e.index,n.input=e.input),n},uj=k_;var cj=function(e,t){var n=t?uj(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},dj=/\w*$/;var fj=function(e){var t=new e.constructor(e.source,dj.exec(e));return t.lastIndex=e.lastIndex,t},hj=Uw?Uw.prototype:void 0,pj=hj?hj.valueOf:void 0;var mj=k_,vj=cj,gj=fj,yj=function(e){return pj?Object(pj.call(e)):{}},bj=C_;var wj=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return mj(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return vj(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return bj(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return gj(e);case"[object Symbol]":return yj(e)}},xj=bC,Sj=SS;var _j=function(e){return Sj(e)&&"[object Map]"==xj(e)},kj=_S,Aj=RS.exports,Cj=Aj&&Aj.isMap,Tj=Cj?kj(Cj):_j,Oj=bC,Ij=SS;var Pj=function(e){return Ij(e)&&"[object Set]"==Oj(e)},Ej=_S,Mj=RS.exports,Dj=Mj&&Mj.isSet,Rj=Dj?Ej(Dj):Pj,Lj=w_,Nj=zN,jj=YS,Fj=HN,zj=XN,Bj=x_.exports,Vj=T_,Hj=KN,Wj=nj,Uj=FN,Xj=oj,Gj=bC,Yj=lj,Kj=wj,qj=L_,Zj=r_,Jj=TS.exports,Qj=Tj,$j=nx,eF=Rj,tF=AN,nF=ek,rF="[object Arguments]",iF="[object Function]",aF="[object Object]",oF={};oF[rF]=oF["[object Array]"]=oF["[object ArrayBuffer]"]=oF["[object DataView]"]=oF["[object Boolean]"]=oF["[object Date]"]=oF["[object Float32Array]"]=oF["[object Float64Array]"]=oF["[object Int8Array]"]=oF["[object Int16Array]"]=oF["[object Int32Array]"]=oF["[object Map]"]=oF["[object Number]"]=oF[aF]=oF["[object RegExp]"]=oF["[object Set]"]=oF["[object String]"]=oF["[object Symbol]"]=oF["[object Uint8Array]"]=oF["[object Uint8ClampedArray]"]=oF["[object Uint16Array]"]=oF["[object Uint32Array]"]=!0,oF["[object Error]"]=oF[iF]=oF["[object WeakMap]"]=!1;var sF=function e(t,n,r,i,a,o){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=a?r(t,i,a,o):r(t)),void 0!==s)return s;if(!$j(t))return t;var d=Zj(t);if(d){if(s=Yj(t),!l)return Vj(t,s)}else{var f=Gj(t),h=f==iF||"[object GeneratorFunction]"==f;if(Jj(t))return Bj(t,l);if(f==aF||f==rF||h&&!a){if(s=u||h?{}:qj(t),!l)return u?Wj(t,zj(s,t)):Hj(t,Fj(s,t))}else{if(!oF[f])return a?t:{};s=Kj(t,f,l)}}o||(o=new Lj);var p=o.get(t);if(p)return p;o.set(t,s),eF(t)?t.forEach(function(i){s.add(e(i,n,r,i,t,o))}):Qj(t)&&t.forEach(function(i,a){s.set(a,e(i,n,r,a,t,o))});var m=d?void 0:(c?u?Xj:Uj:u?nF:tF)(t);return Nj(m||t,function(i,a){m&&(i=t[a=i]),jj(s,a,e(i,n,r,a,t,o))}),s},lF=sF;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var uF=function(e){return lF(e,5)},cF=VL;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var dF,fF=function(e,t,n){var r=null==e?void 0:cF(e,t);return void 0===r?n:r},hF={exports:{}},pF=hF.exports;var mF=(dF||(dF=1,function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",o=32,s=128,l=256,u=1/0,c=9007199254740991,d=NaN,f=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",l]],p="[object Arguments]",m="[object Array]",v="[object Boolean]",g="[object Date]",y="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",S="[object Number]",_="[object Object]",k="[object Promise]",A="[object RegExp]",C="[object Set]",T="[object String]",O="[object Symbol]",I="[object WeakMap]",P="[object ArrayBuffer]",E="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",L="[object Int16Array]",N="[object Int32Array]",j="[object Uint8Array]",F="[object Uint8ClampedArray]",z="[object Uint16Array]",B="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,G=RegExp(U.source),Y=RegExp(X.source),K=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Oe="["+we+"]",Ie="["+Ce+"]",Pe="["+xe+"]",Ee="\\d+",Me="["+Se+"]",De="["+_e+"]",Re="[^"+we+Ce+Ee+Se+_e+ke+"]",Le="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+ke+"]",Be="\\u200d",Ve="(?:"+De+"|"+Re+")",He="(?:"+ze+"|"+Re+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ue="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+Pe+"|"+Le+")?",Ge="["+Ae+"]?",Ye=Ge+Xe+"(?:"+Be+"(?:"+[Ne,je,Fe].join("|")+")"+Ge+Xe+")*",Ke="(?:"+[Me,je,Fe].join("|")+")"+Ye,qe="(?:"+[Ne+Pe+"?",Pe,je,Fe,Oe].join("|")+")",Ze=RegExp(Te,"g"),Je=RegExp(Pe,"g"),Qe=RegExp(Le+"(?="+Le+")|"+qe+Ye,"g"),$e=RegExp([ze+"?"+De+"+"+We+"(?="+[Ie,ze,"$"].join("|")+")",He+"+"+Ue+"(?="+[Ie,ze+Ve,"$"].join("|")+")",ze+"?"+Ve+"+"+We,ze+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ee,Ke].join("|"),"g"),et=RegExp("["+Be+we+xe+Ae+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[M]=it[D]=it[R]=it[L]=it[N]=it[j]=it[F]=it[z]=it[B]=!0,it[p]=it[m]=it[P]=it[v]=it[E]=it[g]=it[y]=it[b]=it[x]=it[S]=it[_]=it[A]=it[C]=it[T]=it[I]=!1;var at={};at[p]=at[m]=at[P]=at[E]=at[v]=at[g]=at[M]=at[D]=at[R]=at[L]=at[N]=at[x]=at[S]=at[_]=at[A]=at[C]=at[T]=at[O]=at[j]=at[F]=at[z]=at[B]=!0,at[y]=at[b]=at[I]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof wg&&wg&&wg.Object===Object&&wg,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),ft=t&&!t.nodeType&&t,ht=ft&&e&&!e.nodeType&&e,pt=ht&&ht.exports===ft,mt=pt&&ut.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(kJe){}}(),gt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,bt=vt&&vt.isMap,wt=vt&&vt.isRegExp,xt=vt&&vt.isSet,St=vt&&vt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function It(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Mt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Rt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Wt("length");function jt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ft(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Vt,n)}function Bt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Vt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:d}function Wt(e){return function(t){return null==t?n:t[e]}}function Ut(e){return function(t){return null==e?n:e[t]}}function Xt(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Gt(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,dn(e)+1).replace(ne,""):e}function qt(e){return function(t){return e(t)}}function Zt(e,t){return Et(t,function(t){return e[t]})}function Jt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var en=Ut({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),tn=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function un(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Nt(e)}function cn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var fn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var re=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,we=t.Date,xe=t.Error,Se=t.Function,_e=t.Math,ke=t.Object,Ae=t.RegExp,Ce=t.String,Te=t.TypeError,Oe=re.prototype,Ie=Se.prototype,Pe=ke.prototype,Ee=t["__core-js_shared__"],Me=Ie.toString,De=Pe.hasOwnProperty,Re=0,Le=function(){var e=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ne=Pe.toString,je=Me.call(ke),Fe=dt._,ze=Ae("^"+Me.call(De).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=pt?t.Buffer:n,Ve=t.Symbol,He=t.Uint8Array,We=Be?Be.allocUnsafe:n,Ue=on(ke.getPrototypeOf,ke),Xe=ke.create,Ge=Pe.propertyIsEnumerable,Ye=Oe.splice,Ke=Ve?Ve.isConcatSpreadable:n,qe=Ve?Ve.iterator:n,Qe=Ve?Ve.toStringTag:n,et=function(){try{var e=la(ke,"defineProperty");return e({},"",{}),e}catch(kJe){}}(),ot=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=we&&we.now!==dt.Date.now&&we.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=_e.ceil,ht=_e.floor,mt=ke.getOwnPropertySymbols,vt=Be?Be.isBuffer:n,Nt=t.isFinite,Ut=Oe.join,pn=on(ke.keys,ke),mn=_e.max,vn=_e.min,gn=we.now,yn=t.parseInt,bn=_e.random,wn=Oe.reverse,xn=la(t,"DataView"),Sn=la(t,"Map"),_n=la(t,"Promise"),kn=la(t,"Set"),An=la(t,"WeakMap"),Cn=la(ke,"create"),Tn=An&&new An,On={},In=ja(xn),Pn=ja(Sn),En=ja(_n),Mn=ja(kn),Dn=ja(An),Rn=Ve?Ve.prototype:n,Ln=Rn?Rn.valueOf:n,Nn=Rn?Rn.toString:n;function jn(e){if(ts(e)&&!Uo(e)&&!(e instanceof Vn)){if(e instanceof Bn)return e;if(De.call(e,"__wrapped__"))return Fa(e)}return new Bn(e)}var Fn=function(){function e(){}return function(t){if(!es(t))return{};if(Xe)return Xe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function zn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Yn(e,t){var n=Uo(e),r=!n&&Wo(e),i=!n&&!r&&Ko(e),a=!n&&!r&&!i&&us(e),o=n||r||i||a,s=o?Yt(e.length,Ce):[],l=s.length;for(var u in e)!t&&!De.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ma(u,l))||s.push(u);return s}function Kn(e){var t=e.length;return t?e[Xr(0,t-1)]:n}function qn(e,t){return Ea(Ci(e),ir(t,0,e.length))}function Zn(e){return Ea(Ci(e))}function Jn(e,t,r){(r!==n&&!Bo(e[t],r)||r===n&&!(t in e))&&nr(e,t,r)}function Qn(e,t,r){var i=e[t];De.call(e,t)&&Bo(i,r)&&(r!==n||t in e)||nr(e,t,r)}function $n(e,t){for(var n=e.length;n--;)if(Bo(e[n][0],t))return n;return-1}function er(e,t,n,r){return ur(e,function(e,i,a){t(r,e,n(e),a)}),r}function tr(e,t){return e&&Ti(t,Es(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var r=-1,i=t.length,a=re(i),o=null==e;++r<i;)a[r]=o?n:Cs(e,t[r]);return a}function ir(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ar(e,t,r,i,a,o){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!es(e))return e;var d=Uo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ci(e,s)}else{var f=da(e),h=f==b||f==w;if(Ko(e))return wi(e,l);if(f==_||f==p||h&&!a){if(s=u||h?{}:ha(e),!l)return u?function(e,t){return Ti(e,ca(e),t)}(e,function(e,t){return e&&Ti(t,Ms(t),e)}(s,e)):function(e,t){return Ti(e,ua(e),t)}(e,tr(s,e))}else{if(!at[f])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case P:return xi(e);case v:case g:return new i(+e);case E:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case D:case R:case L:case N:case j:case F:case z:case B:return Si(e,n);case x:return new i;case S:case T:return new i(e);case A:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case O:return r=e,Ln?ke(Ln.call(r)):{}}}(e,f,l)}}o||(o=new Gn);var m=o.get(e);if(m)return m;o.set(e,s),os(e)?e.forEach(function(n){s.add(ar(n,t,r,n,e,o))}):ns(e)&&e.forEach(function(n,i){s.set(i,ar(n,t,r,i,e,o))});var y=d?n:(c?u?ta:ea:u?Ms:Es)(e);return At(y||e,function(n,i){y&&(n=e[i=n]),Qn(s,i,ar(n,t,r,i,e,o))}),s}function or(e,t,r){var i=r.length;if(null==e)return!i;for(e=ke(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function sr(e,t,i){if("function"!=typeof e)throw new Te(r);return Ta(function(){e.apply(n,i)},t)}function lr(e,t,n,r){var i=-1,a=It,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Et(t,qt(n))),r?(a=Pt,o=!1):t.length>=200&&(a=Jt,o=!1,t=new Xn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,o&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,r)||l.push(c)}return l}jn.templateSettings={escape:K,evaluate:q,interpolate:Z,variable:"",imports:{_:jn}},jn.prototype=zn.prototype,jn.prototype.constructor=jn,Bn.prototype=Fn(zn.prototype),Bn.prototype.constructor=Bn,Vn.prototype=Fn(zn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Cn){var r=t[e];return r===i?n:r}return De.call(t,e)?t[e]:n},Hn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==n:De.call(t,e)},Hn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cn&&t===n?i:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=$n(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,r=$n(t,e);return r<0?n:t[r][1]},Wn.prototype.has=function(e){return $n(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Wn),string:new Hn}},Un.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return oa(this,e).get(e)},Un.prototype.has=function(e){return oa(this,e).has(e)},Un.prototype.set=function(e,t){var n=oa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,i),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var ur=Pi(gr),cr=Pi(yr,!0);function dr(e,t){var n=!0;return ur(e,function(e,r,i){return n=!!t(e,r,i)}),n}function fr(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===n?s==s&&!ls(s):r(s,l)))var l=s,u=o}return u}function hr(e,t){var n=[];return ur(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function pr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=pa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?pr(s,t-1,n,r,i):Mt(i,s):r||(i[i.length]=s)}return i}var mr=Ei(),vr=Ei(!0);function gr(e,t){return e&&mr(e,t,Es)}function yr(e,t){return e&&vr(e,t,Es)}function br(e,t){return Ot(t,function(t){return Jo(e[t])})}function wr(e,t){for(var r=0,i=(t=vi(t,e)).length;null!=e&&r<i;)e=e[Na(t[r++])];return r&&r==i?e:n}function xr(e,t,n){var r=t(e);return Uo(e)?r:Mt(r,n(e))}function Sr(e){return null==e?e===n?"[object Undefined]":"[object Null]":Qe&&Qe in ke(e)?function(e){var t=De.call(e,Qe),r=e[Qe];try{e[Qe]=n;var i=!0}catch(kJe){}var a=Ne.call(e);return i&&(t?e[Qe]=r:delete e[Qe]),a}(e):function(e){return Ne.call(e)}(e)}function _r(e,t){return e>t}function kr(e,t){return null!=e&&De.call(e,t)}function Ar(e,t){return null!=e&&t in ke(e)}function Cr(e,t,r){for(var i=r?Pt:It,a=e[0].length,o=e.length,s=o,l=re(o),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=Et(d,qt(t))),u=vn(d.length,u),l[s]=!r&&(t||a>=120&&d.length>=120)?new Xn(s&&d):n}d=e[0];var f=-1,h=l[0];e:for(;++f<a&&c.length<u;){var p=d[f],m=t?t(p):p;if(p=r||0!==p?p:0,!(h?Jt(h,m):i(c,m,r))){for(s=o;--s;){var v=l[s];if(!(v?Jt(v,m):i(e[s],m,r)))continue e}h&&h.push(m),c.push(p)}}return c}function Tr(e,t,r){var i=null==(e=ka(e,t=vi(t,e)))?e:e[Na(qa(t))];return null==i?n:_t(i,e,r)}function Or(e){return ts(e)&&Sr(e)==p}function Ir(e,t,r,i,a){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,i,a,o){var s=Uo(e),l=Uo(t),u=s?m:da(e),c=l?m:da(t),d=(u=u==p?_:u)==_,f=(c=c==p?_:c)==_,h=u==c;if(h&&Ko(e)){if(!Ko(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new Gn),s||us(e)?Qi(e,t,r,i,a,o):function(e,t,n,r,i,a,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!a(new He(e),new He(t)));case v:case g:case S:return Bo(+e,+t);case y:return e.name==t.name&&e.message==t.message;case A:case T:return e==t+"";case x:var s=an;case C:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=Qi(s(e),s(t),r,i,a,o);return o.delete(e),c;case O:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,u,r,i,a,o);if(!(1&r)){var b=d&&De.call(e,"__wrapped__"),w=f&&De.call(t,"__wrapped__");if(b||w){var k=b?e.value():e,I=w?t.value():t;return o||(o=new Gn),a(k,I,r,i,o)}}return!!h&&(o||(o=new Gn),function(e,t,r,i,a,o){var s=1&r,l=ea(e),u=l.length,c=ea(t),d=c.length;if(u!=d&&!s)return!1;for(var f=u;f--;){var h=l[f];if(!(s?h in t:De.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);for(var g=s;++f<u;){var y=e[h=l[f]],b=t[h];if(i)var w=s?i(b,y,h,t,e,o):i(y,b,h,e,t,o);if(!(w===n?y===b||a(y,b,r,i,o):w)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(v=!1)}return o.delete(e),o.delete(t),v}(e,t,r,i,a,o))}(e,t,r,i,Ir,a))}function Pr(e,t,r,i){var a=r.length,o=a,s=!i;if(null==e)return!o;for(e=ke(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=r[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Gn;if(i)var h=i(c,d,u,e,t,f);if(!(h===n?Ir(d,c,3,i,f):h))return!1}}return!0}function Er(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Jo(e)?ze:pe).test(ja(e));var t}function Mr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Uo(e)?Fr(e[0],e[1]):jr(e):fl(e)}function Dr(e){if(!wa(e))return pn(e);var t=[];for(var n in ke(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Rr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=wa(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function Nr(e,t){var n=-1,r=Go(e)?re(e.length):[];return ur(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function jr(e){var t=sa(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Fr(e,t){return ga(e)&&xa(t)?Sa(Na(e),t):function(r){var i=Cs(r,e);return i===n&&i===t?Ts(r,e):Ir(t,i,3)}}function zr(e,t,r,i,a){e!==t&&mr(t,function(o,s){if(a||(a=new Gn),es(o))!function(e,t,r,i,a,o,s){var l=Aa(e,r),u=Aa(t,r),c=s.get(u);if(c)Jn(e,r,c);else{var d=o?o(l,u,r+"",e,t,s):n,f=d===n;if(f){var h=Uo(u),p=!h&&Ko(u),m=!h&&!p&&us(u);d=u,h||p||m?Uo(l)?d=l:Yo(l)?d=Ci(l):p?(f=!1,d=wi(u,!0)):m?(f=!1,d=Si(u,!0)):d=[]:is(u)||Wo(u)?(d=l,Wo(l)?d=gs(l):es(l)&&!Jo(l)||(d=ha(u))):f=!1}f&&(s.set(u,d),a(d,u,i,o,s),s.delete(u)),Jn(e,r,d)}}(e,t,s,r,zr,i,a);else{var l=i?i(Aa(e,s),o,s+"",e,t,a):n;l===n&&(l=o),Jn(e,s,l)}},Ms)}function Br(e,t){var r=e.length;if(r)return ma(t+=t<0?r:0,r)?e[t]:n}function Vr(e,t,n){t=t.length?Et(t,function(e){return Uo(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[rl];var r=-1;return t=Et(t,qt(aa())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Nr(e,function(e,n,i){return{criteria:Et(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=_i(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Hr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=wr(e,o);n(s,o)&&Zr(a,vi(o,e),s)}return a}function Wr(e,t,n,r){var i=r?Bt:zt,a=-1,o=t.length,s=e;for(e===t&&(t=Ci(t)),n&&(s=Et(e,qt(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ma(i)?Ye.call(e,i,1):li(e,i)}}return e}function Xr(e,t){return e+ht(bn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Oa(_a(e,t,rl),e+"")}function Kr(e){return Kn(Bs(e))}function qr(e,t){var n=Bs(e);return Ea(n,ir(t,0,n.length))}function Zr(e,t,r,i){if(!es(e))return e;for(var a=-1,o=(t=vi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var u=Na(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var d=l[u];(c=i?i(d,u,l):n)===n&&(c=es(d)?d:ma(t[a+1])?[]:{})}Qn(l,u,c),l=l[u]}return e}var Jr=Tn?function(e,t){return Tn.set(e,t),e}:rl,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function $r(e){return Ea(Bs(e))}function ei(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=re(i);++r<i;)a[r]=e[r+t];return a}function ti(e,t){var n;return ur(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ls(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ri(e,t,rl,n)}function ri(e,t,r,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,l=null===t,u=ls(t),c=t===n;a<o;){var d=ht((a+o)/2),f=r(e[d]),h=f!==n,p=null===f,m=f==f,v=ls(f);if(s)var g=i||m;else g=c?m&&(i||h):l?m&&h&&(i||!p):u?m&&h&&!p&&(i||!v):!p&&!v&&(i?f<=t:f<t);g?a=d+1:o=d}return vn(o,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Bo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ai(e){return"number"==typeof e?e:ls(e)?d:+e}function oi(e){if("string"==typeof e)return e;if(Uo(e))return Et(e,oi)+"";if(ls(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=It,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Pt;else if(a>=200){var u=t?null:Gi(e);if(u)return ln(u);o=!1,i=Jt,l=new Xn}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,o&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function li(e,t){return null==(e=ka(e,t=vi(t,e)))||delete e[Na(qa(t))]}function ui(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ei(e,r?0:a,r?a+1:i):ei(e,r?a+1:0,r?i:a)}function di(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Dt(t,function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))},n)}function fi(e,t,n){var r=e.length;if(r<2)return r?si(e[0]):[];for(var i=-1,a=re(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=lr(a[i]||o,e[s],t,n));return si(pr(a,1),t,n)}function hi(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:n;r(s,e[i],l)}return s}function pi(e){return Yo(e)?e:[]}function mi(e){return"function"==typeof e?e:rl}function vi(e,t){return Uo(e)?e:ga(e,t)?[e]:La(ys(e))}var gi=Yr;function yi(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ei(e,t,r)}var bi=ot||function(e){return dt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Si(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(e,t){if(e!==t){var r=e!==n,i=null===e,a=e==e,o=ls(e),s=t!==n,l=null===t,u=t==t,c=ls(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!a)return 1;if(!i&&!o&&!c&&e<t||c&&r&&a&&!i&&!o||l&&r&&a||!s&&a||!u)return-1}return 0}function ki(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,u=mn(a-o,0),c=re(l+u),d=!r;++s<l;)c[s]=t[s];for(;++i<o;)(d||i<a)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function Ai(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,u=t.length,c=mn(a-s,0),d=re(c+u),f=!r;++i<c;)d[i]=e[i];for(var h=i;++l<u;)d[h+l]=t[l];for(;++o<s;)(f||i<a)&&(d[h+n[o]]=e[i++]);return d}function Ci(e,t){var n=-1,r=e.length;for(t||(t=re(r));++n<r;)t[n]=e[n];return t}function Ti(e,t,r,i){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=i?i(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),a?nr(r,l,u):Qn(r,l,u)}return r}function Oi(e,t){return function(n,r){var i=Uo(n)?kt:er,a=t?t():{};return i(n,e,aa(r,2),a)}}function Ii(e){return Yr(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(a--,o):n,s&&va(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=ke(t);++i<a;){var l=r[i];l&&e(t,l,i,o)}return t})}function Pi(e,t){return function(n,r){if(null==n)return n;if(!Go(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ke(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Ei(e){return function(t,n,r){for(var i=-1,a=ke(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Mi(e){return function(t){var r=rn(t=ys(t))?cn(t):n,i=r?r[0]:t.charAt(0),a=r?yi(r,1).join(""):t.slice(1);return i[e]()+a}}function Di(e){return function(t){return Dt(Js(Ws(t).replace(Ze,"")),e,"")}}function Ri(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Li(e){return function(t,r,i){var a=ke(t);if(!Go(t)){var o=aa(r,3);t=Es(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function Ni(e){return $i(function(t){var i=t.length,a=i,o=Bn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Te(r);if(o&&!l&&"wrapper"==ra(s))var l=new Bn([],!0)}for(a=l?a:i;++a<i;){var u=ra(s=t[a]),c="wrapper"==u?na(s):n;l=c&&ya(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ra(c[0])].apply(l,c[3]):1==s.length&&ya(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Uo(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function ji(e,t,r,i,a,o,l,u,c,d){var f=t&s,h=1&t,p=2&t,m=24&t,v=512&t,g=p?n:Ri(e);return function s(){for(var y=arguments.length,b=re(y),w=y;w--;)b[w]=arguments[w];if(m)var x=ia(s),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(i&&(b=ki(b,i,a,m)),o&&(b=Ai(b,o,l,m)),y-=S,m&&y<d){var _=sn(b,x);return Ui(e,t,ji,s.placeholder,r,b,_,u,c,d-y)}var k=h?r:this,A=p?k[e]:e;return y=b.length,u?b=function(e,t){for(var r=e.length,i=vn(t.length,r),a=Ci(e);i--;){var o=t[i];e[i]=ma(o,r)?a[o]:n}return e}(b,u):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==dt&&this instanceof s&&(A=g||Ri(A)),A.apply(k,b)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return gr(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function zi(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;"string"==typeof r||"string"==typeof i?(r=oi(r),i=oi(i)):(r=ai(r),i=ai(i)),a=e(r,i)}return a}}function Bi(e){return $i(function(t){return t=Et(t,qt(aa())),Yr(function(n){var r=this;return e(t,function(e){return _t(e,r,n)})})})}function Vi(e,t){var r=(t=t===n?" ":oi(t)).length;if(r<2)return r?Gr(t,e):t;var i=Gr(t,ft(e/un(t)));return rn(t)?yi(cn(i),0,e).join(""):i.slice(0,e)}function Hi(e){return function(t,r,i){return i&&"number"!=typeof i&&va(t,r,i)&&(r=i=n),t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n,r){for(var i=-1,a=mn(ft((t-e)/(n||1)),0),o=re(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,r,i=i===n?t<r?1:-1:hs(i),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Ui(e,t,r,i,a,s,l,u,c,d){var f=8&t;t|=f?o:64,4&(t&=~(f?64:o))||(t&=-4);var h=[e,t,a,f?s:n,f?l:n,f?n:s,f?n:l,u,c,d],p=r.apply(n,h);return ya(e)&&Ca(p,h),p.placeholder=i,Ia(p,e,t)}function Xi(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:vn(ps(n),292))&&Nt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Gi=kn&&1/ln(new kn([,-0]))[1]==u?function(e){return new kn(e)}:ll;function Yi(e){return function(t){var n=da(t);return n==x?an(t):n==C?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Et(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ki(e,t,i,u,c,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(r);var m=u?u.length:0;if(m||(t&=-97,u=c=n),f=f===n?f:mn(ps(f),0),h=h===n?h:ps(h),m-=c?c.length:0,64&t){var v=u,g=c;u=c=n}var y=p?n:na(e),b=[e,t,i,u,c,v,g,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,u=r==s&&8==n||r==s&&n==l&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!u)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var d=e[3];e[3]=d?ki(d,c,t[4]):c,e[4]=d?sn(e[3],a):t[4]}(c=t[5])&&(d=e[5],e[5]=d?Ai(d,c,t[6]):c,e[6]=d?sn(e[5],a):t[6]),(c=t[7])&&(e[7]=c),r&s&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],i=b[2],u=b[3],c=b[4],!(h=b[9]=b[9]===n?p?0:e.length:mn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,r){var i=Ri(e);return function a(){for(var o=arguments.length,s=re(o),l=o,u=ia(a);l--;)s[l]=arguments[l];var c=o<3&&s[0]!==u&&s[o-1]!==u?[]:sn(s,u);return(o-=c.length)<r?Ui(e,t,ji,a.placeholder,n,s,c,n,n,r-o):_t(this&&this!==dt&&this instanceof a?i:e,this,s)}}(e,t,h):t!=o&&33!=t||c.length?ji.apply(n,b):function(e,t,n,r){var i=1&t,a=Ri(e);return function t(){for(var o=-1,s=arguments.length,l=-1,u=r.length,c=re(u+s),d=this&&this!==dt&&this instanceof t?a:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++o];return _t(d,i?n:this,c)}}(e,t,i,u);else var w=function(e,t,n){var r=1&t,i=Ri(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Ia((y?Jr:Ca)(w,b),e,t)}function qi(e,t,r,i){return e===n||Bo(e,Pe[r])&&!De.call(i,r)?t:e}function Zi(e,t,r,i,a,o){return es(e)&&es(t)&&(o.set(t,e),zr(e,t,n,Zi,o),o.delete(t)),e}function Ji(e){return is(e)?n:e}function Qi(e,t,r,i,a,o){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&r?new Xn:n;for(o.set(e,t),o.set(t,e);++f<l;){var m=e[f],v=t[f];if(i)var g=s?i(v,m,f,t,e,o):i(m,v,f,e,t,o);if(g!==n){if(g)continue;h=!1;break}if(p){if(!Lt(t,function(e,t){if(!Jt(p,t)&&(m===e||a(m,e,r,i,o)))return p.push(t)})){h=!1;break}}else if(m!==v&&!a(m,v,r,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function $i(e){return Oa(_a(e,n,Ua),e+"")}function ea(e){return xr(e,Es,ua)}function ta(e){return xr(e,Ms,ca)}var na=Tn?function(e){return Tn.get(e)}:ll;function ra(e){for(var t=e.name+"",n=On[t],r=De.call(On,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ia(e){return(De.call(jn,"placeholder")?jn:e).placeholder}function aa(){var e=jn.iteratee||il;return e=e===il?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function oa(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function sa(e){for(var t=Es(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xa(i)]}return t}function la(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Er(r)?r:n}var ua=mt?function(e){return null==e?[]:(e=ke(e),Ot(mt(e),function(t){return Ge.call(e,t)}))}:ml,ca=mt?function(e){for(var t=[];e;)Mt(t,ua(e)),e=Ue(e);return t}:ml,da=Sr;function fa(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,a=!1;++r<i;){var o=Na(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&$o(i)&&ma(o,i)&&(Uo(e)||Wo(e))}function ha(e){return"function"!=typeof e.constructor||wa(e)?{}:Fn(Ue(e))}function pa(e){return Uo(e)||Wo(e)||!!(Ke&&e&&e[Ke])}function ma(e,t){var n=typeof e;return!!(t=null==t?c:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Go(n)&&ma(t,n.length):"string"==r&&t in n)&&Bo(n[t],e)}function ga(e,t){if(Uo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||Q.test(e)||!J.test(e)||null!=t&&e in ke(t)}function ya(e){var t=ra(e),n=jn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=na(n);return!!r&&e===r[0]}(xn&&da(new xn(new ArrayBuffer(1)))!=E||Sn&&da(new Sn)!=x||_n&&da(_n.resolve())!=k||kn&&da(new kn)!=C||An&&da(new An)!=I)&&(da=function(e){var t=Sr(e),r=t==_?e.constructor:n,i=r?ja(r):"";if(i)switch(i){case In:return E;case Pn:return x;case En:return k;case Mn:return C;case Dn:return I}return t});var ba=Ee?Jo:vl;function wa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function xa(e){return e==e&&!es(e)}function Sa(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in ke(r))}}function _a(e,t,r){return t=mn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=mn(n.length-t,0),o=re(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=re(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),_t(e,this,s)}}function ka(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function Aa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ca=Pa(Jr),Ta=ct||function(e,t){return dt.setTimeout(e,t)},Oa=Pa(Qr);function Ia(e,t,n){var r=t+"";return Oa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(h,function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(oe):[]}(r),n)))}function Pa(e){var t=0,r=0;return function(){var i=gn(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ea(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Xr(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Ma,Da,Ra,La=(Ma=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace($,function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)}),t},Da=Ro(Ma,function(e){return 500===Ra.size&&Ra.clear(),e}),Ra=Da.cache,Da);function Na(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return Me.call(e)}catch(kJe){}try{return e+""}catch(kJe){}}return""}function Fa(e){if(e instanceof Vn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Ci(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var za=Yr(function(e,t){return Yo(e)?lr(e,pr(t,1,Yo,!0)):[]}),Ba=Yr(function(e,t){var r=qa(t);return Yo(r)&&(r=n),Yo(e)?lr(e,pr(t,1,Yo,!0),aa(r,2)):[]}),Va=Yr(function(e,t){var r=qa(t);return Yo(r)&&(r=n),Yo(e)?lr(e,pr(t,1,Yo,!0),n,r):[]});function Ha(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=mn(r+i,0)),Ft(e,aa(t,3),i)}function Wa(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=ps(r),a=r<0?mn(i+a,0):vn(a,i-1)),Ft(e,aa(t,3),a,!0)}function Ua(e){return null!=e&&e.length?pr(e,1):[]}function Xa(e){return e&&e.length?e[0]:n}var Ga=Yr(function(e){var t=Et(e,pi);return t.length&&t[0]===e[0]?Cr(t):[]}),Ya=Yr(function(e){var t=qa(e),r=Et(e,pi);return t===qa(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Cr(r,aa(t,2)):[]}),Ka=Yr(function(e){var t=qa(e),r=Et(e,pi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Cr(r,n,t):[]});function qa(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Za=Yr(Ja);function Ja(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Qa=$i(function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Ur(e,Et(t,function(e){return ma(e,n)?+e:e}).sort(_i)),r});function $a(e){return null==e?e:wn.call(e)}var eo=Yr(function(e){return si(pr(e,1,Yo,!0))}),to=Yr(function(e){var t=qa(e);return Yo(t)&&(t=n),si(pr(e,1,Yo,!0),aa(t,2))}),no=Yr(function(e){var t=qa(e);return t="function"==typeof t?t:n,si(pr(e,1,Yo,!0),n,t)});function ro(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,function(e){if(Yo(e))return t=mn(e.length,t),!0}),Yt(t,function(t){return Et(e,Wt(t))})}function io(e,t){if(!e||!e.length)return[];var r=ro(e);return null==t?r:Et(r,function(e){return _t(t,n,e)})}var ao=Yr(function(e,t){return Yo(e)?lr(e,t):[]}),oo=Yr(function(e){return fi(Ot(e,Yo))}),so=Yr(function(e){var t=qa(e);return Yo(t)&&(t=n),fi(Ot(e,Yo),aa(t,2))}),lo=Yr(function(e){var t=qa(e);return t="function"==typeof t?t:n,fi(Ot(e,Yo),n,t)}),uo=Yr(ro),co=Yr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,io(e,r)});function fo(e){var t=jn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var po=$i(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Vn&&ma(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[a],thisArg:n}),new Bn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(a)}),mo=Oi(function(e,t,n){De.call(e,n)?++e[n]:nr(e,n,1)}),vo=Li(Ha),go=Li(Wa);function yo(e,t){return(Uo(e)?At:ur)(e,aa(t,3))}function bo(e,t){return(Uo(e)?Ct:cr)(e,aa(t,3))}var wo=Oi(function(e,t,n){De.call(e,n)?e[n].push(t):nr(e,n,[t])}),xo=Yr(function(e,t,n){var r=-1,i="function"==typeof t,a=Go(e)?re(e.length):[];return ur(e,function(e){a[++r]=i?_t(t,e,n):Tr(e,t,n)}),a}),So=Oi(function(e,t,n){nr(e,n,t)});function _o(e,t){return(Uo(e)?Et:Nr)(e,aa(t,3))}var ko=Oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ao=Yr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,pr(t,1),[])}),Co=ut||function(){return dt.Date.now()};function To(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ki(e,s,n,n,n,n,t)}function Oo(e,t){var i;if("function"!=typeof t)throw new Te(r);return e=ps(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Io=Yr(function(e,t,n){var r=1;if(n.length){var i=sn(n,ia(Io));r|=o}return Ki(e,r,t,n,i)}),Po=Yr(function(e,t,n){var r=3;if(n.length){var i=sn(n,ia(Po));r|=o}return Ki(t,r,e,n,i)});function Eo(e,t,i){var a,o,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(r);function m(t){var r=a,i=o;return a=o=n,d=t,l=e.apply(i,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||h&&e-d>=s}function g(){var e=Co();if(v(e))return y(e);u=Ta(g,function(e){var n=t-(e-c);return h?vn(n,s-(e-d)):n}(e))}function y(e){return u=n,p&&a?m(e):(a=o=n,l)}function b(){var e=Co(),r=v(e);if(a=arguments,o=this,c=e,r){if(u===n)return function(e){return d=e,u=Ta(g,t),f?m(e):l}(c);if(h)return bi(u),u=Ta(g,t),m(c)}return u===n&&(u=Ta(g,t)),l}return t=vs(t)||0,es(i)&&(f=!!i.leading,s=(h="maxWait"in i)?mn(vs(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),b.cancel=function(){u!==n&&bi(u),d=0,a=c=o=u=n},b.flush=function(){return u===n?l:y(Co())},b}var Mo=Yr(function(e,t){return sr(e,1,t)}),Do=Yr(function(e,t,n){return sr(e,vs(t)||0,n)});function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ro.Cache||Un),n}function Lo(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=Un;var No=gi(function(e,t){var n=(t=1==t.length&&Uo(t[0])?Et(t[0],qt(aa())):Et(pr(t,1),qt(aa()))).length;return Yr(function(r){for(var i=-1,a=vn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return _t(e,this,r)})}),jo=Yr(function(e,t){var r=sn(t,ia(jo));return Ki(e,o,n,t,r)}),Fo=Yr(function(e,t){var r=sn(t,ia(Fo));return Ki(e,64,n,t,r)}),zo=$i(function(e,t){return Ki(e,l,n,n,n,t)});function Bo(e,t){return e===t||e!=e&&t!=t}var Vo=Wi(_r),Ho=Wi(function(e,t){return e>=t}),Wo=Or(function(){return arguments}())?Or:function(e){return ts(e)&&De.call(e,"callee")&&!Ge.call(e,"callee")},Uo=re.isArray,Xo=gt?qt(gt):function(e){return ts(e)&&Sr(e)==P};function Go(e){return null!=e&&$o(e.length)&&!Jo(e)}function Yo(e){return ts(e)&&Go(e)}var Ko=vt||vl,qo=yt?qt(yt):function(e){return ts(e)&&Sr(e)==g};function Zo(e){if(!ts(e))return!1;var t=Sr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Jo(e){if(!es(e))return!1;var t=Sr(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(e){return"number"==typeof e&&e==ps(e)}function $o(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=bt?qt(bt):function(e){return ts(e)&&da(e)==x};function rs(e){return"number"==typeof e||ts(e)&&Sr(e)==S}function is(e){if(!ts(e)||Sr(e)!=_)return!1;var t=Ue(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==je}var as=wt?qt(wt):function(e){return ts(e)&&Sr(e)==A},os=xt?qt(xt):function(e){return ts(e)&&da(e)==C};function ss(e){return"string"==typeof e||!Uo(e)&&ts(e)&&Sr(e)==T}function ls(e){return"symbol"==typeof e||ts(e)&&Sr(e)==O}var us=St?qt(St):function(e){return ts(e)&&$o(e.length)&&!!it[Sr(e)]},cs=Wi(Lr),ds=Wi(function(e,t){return e<=t});function fs(e){if(!e)return[];if(Go(e))return ss(e)?cn(e):Ci(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=da(e);return(t==x?an:t==C?ln:Bs)(e)}function hs(e){return e?(e=vs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ir(ps(e),0,f):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return d;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=he.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?d:+e}function gs(e){return Ti(e,Ms(e))}function ys(e){return null==e?"":oi(e)}var bs=Ii(function(e,t){if(wa(t)||Go(t))Ti(t,Es(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])}),ws=Ii(function(e,t){Ti(t,Ms(t),e)}),xs=Ii(function(e,t,n,r){Ti(t,Ms(t),e,r)}),Ss=Ii(function(e,t,n,r){Ti(t,Es(t),e,r)}),_s=$i(rr),ks=Yr(function(e,t){e=ke(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&va(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Ms(o),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===n||Bo(d,Pe[c])&&!De.call(e,c))&&(e[c]=o[c])}return e}),As=Yr(function(e){return e.push(n,Zi),_t(Rs,n,e)});function Cs(e,t,r){var i=null==e?n:wr(e,t);return i===n?r:i}function Ts(e,t){return null!=e&&fa(e,t,Ar)}var Os=Fi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n},el(rl)),Is=Fi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]},aa),Ps=Yr(Tr);function Es(e){return Go(e)?Yn(e):Dr(e)}function Ms(e){return Go(e)?Yn(e,!0):Rr(e)}var Ds=Ii(function(e,t,n){zr(e,t,n)}),Rs=Ii(function(e,t,n,r){zr(e,t,n,r)}),Ls=$i(function(e,t){var n={};if(null==e)return n;var r=!1;t=Et(t,function(t){return t=vi(t,e),r||(r=t.length>1),t}),Ti(e,ta(e),n),r&&(n=ar(n,7,Ji));for(var i=t.length;i--;)li(n,t[i]);return n}),Ns=$i(function(e,t){return null==e?{}:function(e,t){return Hr(e,t,function(t,n){return Ts(e,n)})}(e,t)});function js(e,t){if(null==e)return{};var n=Et(ta(e),function(e){return[e]});return t=aa(t),Hr(e,n,function(e,n){return t(e,n[0])})}var Fs=Yi(Es),zs=Yi(Ms);function Bs(e){return null==e?[]:Zt(e,Es(e))}var Vs=Di(function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)});function Hs(e){return Zs(ys(e).toLowerCase())}function Ws(e){return(e=ys(e))&&e.replace(ge,en).replace(Je,"")}var Us=Di(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Xs=Di(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Gs=Mi("toLowerCase"),Ys=Di(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=Di(function(e,t,n){return e+(n?" ":"")+Zs(t)}),qs=Di(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Zs=Mi("toUpperCase");function Js(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Qs=Yr(function(e,t){try{return _t(e,n,t)}catch(kJe){return Zo(kJe)?kJe:new xe(kJe)}}),$s=$i(function(e,t){return At(t,function(t){t=Na(t),nr(e,t,Io(e[t],e))}),e});function el(e){return function(){return e}}var tl=Ni(),nl=Ni(!0);function rl(e){return e}function il(e){return Mr("function"==typeof e?e:ar(e,1))}var al=Yr(function(e,t){return function(n){return Tr(n,e,t)}}),ol=Yr(function(e,t){return function(n){return Tr(e,n,t)}});function sl(e,t,n){var r=Es(t),i=br(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=br(t,Es(t)));var a=!(es(n)&&"chain"in n&&!n.chain),o=Jo(e);return At(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})}),e}function ll(){}var ul=Bi(Et),cl=Bi(Tt),dl=Bi(Lt);function fl(e){return ga(e)?Wt(Na(e)):function(e){return function(t){return wr(t,e)}}(e)}var hl=Hi(),pl=Hi(!0);function ml(){return[]}function vl(){return!1}var gl,yl=zi(function(e,t){return e+t},0),bl=Xi("ceil"),wl=zi(function(e,t){return e/t},1),xl=Xi("floor"),Sl=zi(function(e,t){return e*t},1),_l=Xi("round"),kl=zi(function(e,t){return e-t},0);return jn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=To,jn.assign=bs,jn.assignIn=ws,jn.assignInWith=xs,jn.assignWith=Ss,jn.at=_s,jn.before=Oo,jn.bind=Io,jn.bindAll=$s,jn.bindKey=Po,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Uo(e)?e:[e]},jn.chain=fo,jn.chunk=function(e,t,r){t=(r?va(e,t,r):t===n)?1:mn(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=re(ft(i/t));a<i;)s[o++]=ei(e,a,a+=t);return s},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(Uo(n)?Ci(n):[n],pr(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=aa();return e=t?Et(e,function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]}):[],Yr(function(n){for(var r=-1;++r<t;){var i=e[r];if(_t(i[0],this,n))return _t(i[1],this,n)}})},jn.conforms=function(e){return function(e){var t=Es(e);return function(n){return or(n,e,t)}}(ar(e,1))},jn.constant=el,jn.countBy=mo,jn.create=function(e,t){var n=Fn(e);return null==t?n:tr(n,t)},jn.curry=function e(t,r,i){var a=Ki(t,8,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},jn.curryRight=function e(t,r,i){var a=Ki(t,16,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},jn.debounce=Eo,jn.defaults=ks,jn.defaultsDeep=As,jn.defer=Mo,jn.delay=Do,jn.difference=za,jn.differenceBy=Ba,jn.differenceWith=Va,jn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ei(e,(t=r||t===n?1:ps(t))<0?0:t,i):[]},jn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ei(e,0,(t=i-(t=r||t===n?1:ps(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0):[]},jn.fill=function(e,t,r,i){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&va(e,t,r)&&(r=0,i=a),function(e,t,r,i){var a=e.length;for((r=ps(r))<0&&(r=-r>a?0:a+r),(i=i===n||i>a?a:ps(i))<0&&(i+=a),i=r>i?0:ms(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},jn.filter=function(e,t){return(Uo(e)?Ot:hr)(e,aa(t,3))},jn.flatMap=function(e,t){return pr(_o(e,t),1)},jn.flatMapDeep=function(e,t){return pr(_o(e,t),u)},jn.flatMapDepth=function(e,t,r){return r=r===n?1:ps(r),pr(_o(e,t),r)},jn.flatten=Ua,jn.flattenDeep=function(e){return null!=e&&e.length?pr(e,u):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?pr(e,t=t===n?1:ps(t)):[]},jn.flip=function(e){return Ki(e,512)},jn.flow=tl,jn.flowRight=nl,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},jn.functions=function(e){return null==e?[]:br(e,Es(e))},jn.functionsIn=function(e){return null==e?[]:br(e,Ms(e))},jn.groupBy=wo,jn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},jn.intersection=Ga,jn.intersectionBy=Ya,jn.intersectionWith=Ka,jn.invert=Os,jn.invertBy=Is,jn.invokeMap=xo,jn.iteratee=il,jn.keyBy=So,jn.keys=Es,jn.keysIn=Ms,jn.map=_o,jn.mapKeys=function(e,t){var n={};return t=aa(t,3),gr(e,function(e,r,i){nr(n,t(e,r,i),e)}),n},jn.mapValues=function(e,t){var n={};return t=aa(t,3),gr(e,function(e,r,i){nr(n,r,t(e,r,i))}),n},jn.matches=function(e){return jr(ar(e,1))},jn.matchesProperty=function(e,t){return Fr(e,ar(t,1))},jn.memoize=Ro,jn.merge=Ds,jn.mergeWith=Rs,jn.method=al,jn.methodOf=ol,jn.mixin=sl,jn.negate=Lo,jn.nthArg=function(e){return e=ps(e),Yr(function(t){return Br(t,e)})},jn.omit=Ls,jn.omitBy=function(e,t){return js(e,Lo(aa(t)))},jn.once=function(e){return Oo(2,e)},jn.orderBy=function(e,t,r,i){return null==e?[]:(Uo(t)||(t=null==t?[]:[t]),Uo(r=i?n:r)||(r=null==r?[]:[r]),Vr(e,t,r))},jn.over=ul,jn.overArgs=No,jn.overEvery=cl,jn.overSome=dl,jn.partial=jo,jn.partialRight=Fo,jn.partition=ko,jn.pick=Ns,jn.pickBy=js,jn.property=fl,jn.propertyOf=function(e){return function(t){return null==e?n:wr(e,t)}},jn.pull=Za,jn.pullAll=Ja,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,aa(n,2)):e},jn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wr(e,t,n,r):e},jn.pullAt=Qa,jn.range=hl,jn.rangeRight=pl,jn.rearg=zo,jn.reject=function(e,t){return(Uo(e)?Ot:hr)(e,Lo(aa(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=aa(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Ur(e,i),n},jn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Yr(e,t=t===n?t:ps(t))},jn.reverse=$a,jn.sampleSize=function(e,t,r){return t=(r?va(e,t,r):t===n)?1:ps(t),(Uo(e)?qn:qr)(e,t)},jn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},jn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Zr(e,t,r,i)},jn.shuffle=function(e){return(Uo(e)?Zn:$r)(e)},jn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&va(e,t,r)?(t=0,r=i):(t=null==t?0:ps(t),r=r===n?i:ps(r)),ei(e,t,r)):[]},jn.sortBy=Ao,jn.sortedUniq=function(e){return e&&e.length?ii(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,aa(t,2)):[]},jn.split=function(e,t,r){return r&&"number"!=typeof r&&va(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=oi(t))&&rn(e)?yi(cn(e),0,r):e.split(t,r):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:mn(ps(t),0),Yr(function(n){var r=n[t],i=yi(n,0,t);return r&&Mt(i,r),_t(e,this,i)})},jn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},jn.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===n?1:ps(t))<0?0:t):[]},jn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ei(e,(t=i-(t=r||t===n?1:ps(t)))<0?0:t,i):[]},jn.takeRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?ci(e,aa(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Te(r);return es(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Eo(e,t,{leading:i,maxWait:t,trailing:a})},jn.thru=ho,jn.toArray=fs,jn.toPairs=Fs,jn.toPairsIn=zs,jn.toPath=function(e){return Uo(e)?Et(e,Na):ls(e)?[e]:Ci(La(ys(e)))},jn.toPlainObject=gs,jn.transform=function(e,t,n){var r=Uo(e),i=r||Ko(e)||us(e);if(t=aa(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:es(e)&&Jo(a)?Fn(Ue(e)):{}}return(i?At:gr)(e,function(e,r,i){return t(n,e,r,i)}),n},jn.unary=function(e){return To(e,1)},jn.union=eo,jn.unionBy=to,jn.unionWith=no,jn.uniq=function(e){return e&&e.length?si(e):[]},jn.uniqBy=function(e,t){return e&&e.length?si(e,aa(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?si(e,n,t):[]},jn.unset=function(e,t){return null==e||li(e,t)},jn.unzip=ro,jn.unzipWith=io,jn.update=function(e,t,n){return null==e?e:ui(e,t,mi(n))},jn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ui(e,t,mi(r),i)},jn.values=Bs,jn.valuesIn=function(e){return null==e?[]:Zt(e,Ms(e))},jn.without=ao,jn.words=Js,jn.wrap=function(e,t){return jo(mi(t),e)},jn.xor=oo,jn.xorBy=so,jn.xorWith=lo,jn.zip=uo,jn.zipObject=function(e,t){return hi(e||[],t||[],Qn)},jn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Zr)},jn.zipWith=co,jn.entries=Fs,jn.entriesIn=zs,jn.extend=ws,jn.extendWith=xs,sl(jn,jn),jn.add=yl,jn.attempt=Qs,jn.camelCase=Vs,jn.capitalize=Hs,jn.ceil=bl,jn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),ir(vs(e),t,r)},jn.clone=function(e){return ar(e,4)},jn.cloneDeep=function(e){return ar(e,5)},jn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:n)},jn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:n)},jn.conformsTo=function(e,t){return null==t||or(e,t,Es(t))},jn.deburr=Ws,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=wl,jn.endsWith=function(e,t,r){e=ys(e),t=oi(t);var i=e.length,a=r=r===n?i:ir(ps(r),0,i);return(r-=t.length)>=0&&e.slice(r,a)==t},jn.eq=Bo,jn.escape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(X,tn):e},jn.escapeRegExp=function(e){return(e=ys(e))&&te.test(e)?e.replace(ee,"\\$&"):e},jn.every=function(e,t,r){var i=Uo(e)?Tt:dr;return r&&va(e,t,r)&&(t=n),i(e,aa(t,3))},jn.find=vo,jn.findIndex=Ha,jn.findKey=function(e,t){return jt(e,aa(t,3),gr)},jn.findLast=go,jn.findLastIndex=Wa,jn.findLastKey=function(e,t){return jt(e,aa(t,3),yr)},jn.floor=xl,jn.forEach=yo,jn.forEachRight=bo,jn.forIn=function(e,t){return null==e?e:mr(e,aa(t,3),Ms)},jn.forInRight=function(e,t){return null==e?e:vr(e,aa(t,3),Ms)},jn.forOwn=function(e,t){return e&&gr(e,aa(t,3))},jn.forOwnRight=function(e,t){return e&&yr(e,aa(t,3))},jn.get=Cs,jn.gt=Vo,jn.gte=Ho,jn.has=function(e,t){return null!=e&&fa(e,t,kr)},jn.hasIn=Ts,jn.head=Xa,jn.identity=rl,jn.includes=function(e,t,n,r){e=Go(e)?e:Bs(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&zt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=mn(r+i,0)),zt(e,t,i)},jn.inRange=function(e,t,r){return t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=vs(e),t,r)},jn.invoke=Ps,jn.isArguments=Wo,jn.isArray=Uo,jn.isArrayBuffer=Xo,jn.isArrayLike=Go,jn.isArrayLikeObject=Yo,jn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Sr(e)==v},jn.isBuffer=Ko,jn.isDate=qo,jn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Go(e)&&(Uo(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||us(e)||Wo(e)))return!e.length;var t=da(e);if(t==x||t==C)return!e.size;if(wa(e))return!Dr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Ir(e,t)},jn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Ir(e,t,n,r):!!i},jn.isError=Zo,jn.isFinite=function(e){return"number"==typeof e&&Nt(e)},jn.isFunction=Jo,jn.isInteger=Qo,jn.isLength=$o,jn.isMap=ns,jn.isMatch=function(e,t){return e===t||Pr(e,t,sa(t))},jn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Pr(e,t,sa(t),r)},jn.isNaN=function(e){return rs(e)&&e!=+e},jn.isNative=function(e){if(ba(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Er(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=rs,jn.isObject=es,jn.isObjectLike=ts,jn.isPlainObject=is,jn.isRegExp=as,jn.isSafeInteger=function(e){return Qo(e)&&e>=-9007199254740991&&e<=c},jn.isSet=os,jn.isString=ss,jn.isSymbol=ls,jn.isTypedArray=us,jn.isUndefined=function(e){return e===n},jn.isWeakMap=function(e){return ts(e)&&da(e)==I},jn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Sr(e)},jn.join=function(e,t){return null==e?"":Ut.call(e,t)},jn.kebabCase=Us,jn.last=qa,jn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=(a=ps(r))<0?mn(i+a,0):vn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,Vt,a,!0)},jn.lowerCase=Xs,jn.lowerFirst=Gs,jn.lt=cs,jn.lte=ds,jn.max=function(e){return e&&e.length?fr(e,rl,_r):n},jn.maxBy=function(e,t){return e&&e.length?fr(e,aa(t,2),_r):n},jn.mean=function(e){return Ht(e,rl)},jn.meanBy=function(e,t){return Ht(e,aa(t,2))},jn.min=function(e){return e&&e.length?fr(e,rl,Lr):n},jn.minBy=function(e,t){return e&&e.length?fr(e,aa(t,2),Lr):n},jn.stubArray=ml,jn.stubFalse=vl,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Sl,jn.nth=function(e,t){return e&&e.length?Br(e,ps(t)):n},jn.noConflict=function(){return dt._===this&&(dt._=Fe),this},jn.noop=ll,jn.now=Co,jn.pad=function(e,t,n){e=ys(e);var r=(t=ps(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(ht(i),n)+e+Vi(ft(i),n)},jn.padEnd=function(e,t,n){e=ys(e);var r=(t=ps(t))?un(e):0;return t&&r<t?e+Vi(t-r,n):e},jn.padStart=function(e,t,n){e=ys(e);var r=(t=ps(t))?un(e):0;return t&&r<t?Vi(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(ys(e).replace(ne,""),t||0)},jn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&va(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hs(e),t===n?(t=e,e=0):t=hs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=bn();return vn(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return Xr(e,t)},jn.reduce=function(e,t,n){var r=Uo(e)?Dt:Xt,i=arguments.length<3;return r(e,aa(t,4),n,i,ur)},jn.reduceRight=function(e,t,n){var r=Uo(e)?Rt:Xt,i=arguments.length<3;return r(e,aa(t,4),n,i,cr)},jn.repeat=function(e,t,r){return t=(r?va(e,t,r):t===n)?1:ps(t),Gr(ys(e),t)},jn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,r){var i=-1,a=(t=vi(t,e)).length;for(a||(a=1,e=n);++i<a;){var o=null==e?n:e[Na(t[i])];o===n&&(i=a,o=r),e=Jo(o)?o.call(e):o}return e},jn.round=_l,jn.runInContext=e,jn.sample=function(e){return(Uo(e)?Kn:Kr)(e)},jn.size=function(e){if(null==e)return 0;if(Go(e))return ss(e)?un(e):e.length;var t=da(e);return t==x||t==C?e.size:Dr(e).length},jn.snakeCase=Ys,jn.some=function(e,t,r){var i=Uo(e)?Lt:ti;return r&&va(e,t,r)&&(t=n),i(e,aa(t,3))},jn.sortedIndex=function(e,t){return ni(e,t)},jn.sortedIndexBy=function(e,t,n){return ri(e,t,aa(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Bo(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return ni(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ri(e,t,aa(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Bo(e[n],t))return n}return-1},jn.startCase=Ks,jn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ir(ps(n),0,e.length),t=oi(t),e.slice(n,n+t.length)==t},jn.subtract=kl,jn.sum=function(e){return e&&e.length?Gt(e,rl):0},jn.sumBy=function(e,t){return e&&e.length?Gt(e,aa(t,2)):0},jn.template=function(e,t,r){var i=jn.templateSettings;r&&va(e,t,r)&&(t=n),e=ys(e),t=xs({},t,i,qi);var a,o,s=xs({},t.imports,i.imports,qi),l=Es(s),u=Zt(s,l),c=0,d=t.interpolate||ye,f="__p += '",h=Ae((t.escape||ye).source+"|"+d.source+"|"+(d===Z?ce:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),p="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(be,nn),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),f+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(V,""):f).replace(H,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Qs(function(){return Se(l,p+"return "+f).apply(n,u)});if(v.source=f,Zo(v))throw v;return v},jn.times=function(e,t){if((e=ps(e))<1||e>c)return[];var n=f,r=vn(e,f);t=aa(t),e-=f;for(var i=Yt(r,t);++n<e;)t(n);return i},jn.toFinite=hs,jn.toInteger=ps,jn.toLength=ms,jn.toLower=function(e){return ys(e).toLowerCase()},jn.toNumber=vs,jn.toSafeInteger=function(e){return e?ir(ps(e),-9007199254740991,c):0===e?e:0},jn.toString=ys,jn.toUpper=function(e){return ys(e).toUpperCase()},jn.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Kt(e);if(!e||!(t=oi(t)))return e;var i=cn(e),a=cn(t);return yi(i,Qt(i,a),$t(i,a)+1).join("")},jn.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,dn(e)+1);if(!e||!(t=oi(t)))return e;var i=cn(e);return yi(i,0,$t(i,cn(t))+1).join("")},jn.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ne,"");if(!e||!(t=oi(t)))return e;var i=cn(e);return yi(i,Qt(i,cn(t))).join("")},jn.truncate=function(e,t){var r=30,i="...";if(es(t)){var a="separator"in t?t.separator:a;r="length"in t?ps(t.length):r,i="omission"in t?oi(t.omission):i}var o=(e=ys(e)).length;if(rn(e)){var s=cn(e);o=s.length}if(r>=o)return e;var l=r-un(i);if(l<1)return i;var u=s?yi(s,0,l).join(""):e.slice(0,l);if(a===n)return u+i;if(s&&(l+=u.length-l),as(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=Ae(a.source,ys(de.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(oi(a),l)!=l){var h=u.lastIndexOf(a);h>-1&&(u=u.slice(0,h))}return u+i},jn.unescape=function(e){return(e=ys(e))&&G.test(e)?e.replace(U,fn):e},jn.uniqueId=function(e){var t=++Re;return ys(e)+t},jn.upperCase=qs,jn.upperFirst=Zs,jn.each=yo,jn.eachRight=bo,jn.first=Xa,sl(jn,(gl={},gr(jn,function(e,t){De.call(jn.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),jn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){jn[e].placeholder=jn}),At(["drop","take"],function(e,t){Vn.prototype[e]=function(r){r=r===n?1:mn(ps(r),0);var i=this.__filtered__&&!t?new Vn(this):this.clone();return i.__filtered__?i.__takeCount__=vn(r,i.__takeCount__):i.__views__.push({size:vn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),At(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),At(["head","last"],function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}}),At(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}}),Vn.prototype.compact=function(){return this.filter(rl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr(function(e,t){return"function"==typeof e?new Vn(this):this.map(function(n){return Tr(n,e,t)})}),Vn.prototype.reject=function(e){return this.filter(Lo(aa(e)))},Vn.prototype.slice=function(e,t){e=ps(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ps(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(f)},gr(Vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=jn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(jn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Vn,u=s[0],c=l||Uo(t),d=function(e){var t=a.apply(jn,Mt([e],s));return i&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=o&&!f,m=l&&!h;if(!o&&c){t=m?t:new Vn(this);var v=e.apply(t,s);return v.__actions__.push({func:ho,args:[d],thisArg:n}),new Bn(v,f)}return p&&m?e.apply(this,s):(v=this.thru(d),p?i?v.value()[0]:v.value():v)})}),At(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Uo(i)?i:[],e)}return this[n](function(n){return t.apply(Uo(n)?n:[],e)})}}),gr(Vn.prototype,function(e,t){var n=jn[t];if(n){var r=n.name+"";De.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}}),On[ji(n,2).name]=[{name:"wrapper",func:n}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Uo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=mn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,d=c.length,f=0,h=vn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return di(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[f++]=v}return p},jn.prototype.at=po,jn.prototype.chain=function(){return fo(this)},jn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,r=this;r instanceof zn;){var i=Fa(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ho,args:[$a],thisArg:n}),new Bn(t,this.__chain__)}return this.thru($a)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,qe&&(jn.prototype[qe]=function(){return this}),jn}();ht?((ht.exports=hn)._=hn,ft._=hn):dt._=hn}).call(pF)}(hF,hF.exports)),hF.exports),vF={allowInput:Boolean,autoWidth:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,minCollapsedNum:{type:Number,default:0},multiple:Boolean,panel:{type:[String,Function]},placeholder:{type:String,default:""},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},readonly:Boolean,status:{type:String,default:"default",validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array,Date]},valueDisplay:{type:[String,Function]},onBlur:Function,onClear:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onPopupVisibleChange:Function,onTagChange:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function gF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bF=["status","clearable","disabled","label","placeholder","readonly","suffix","suffixIcon","onPaste","onMouseenter","onMouseleave"],wF={label:"label"};function xF(e,t){var n=t||wF;return nx(e)?e[n.label]:e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var SF={autoWidth:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,dragSort:Boolean,excessTagsDisplayType:{type:String,default:"break-line",validator:function(e){return!e||["scroll","break-line"].includes(e)}},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number],default:""},label:{type:[String,Function]},max:{type:Number},minCollapsedNum:{type:Number,default:0},placeholder:{type:String,default:void 0},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},status:{type:String,default:"default",validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onDragSort:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onRemove:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var _F=yr({name:"TTag",props:{closable:Boolean,content:{type:[String,Number,Function]},default:{type:[String,Number,Function]},disabled:Boolean,icon:{type:Function,default:void 0},maxWidth:{type:[String,Number]},shape:{type:String,default:"square",validator:function(e){return["square","round","mark"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},theme:{type:String,default:"default",validator:function(e){return["default","primary","warning","danger","success"].includes(e)}},variant:{type:String,default:"dark",validator:function(e){return["dark","light","outline","light-outline"].includes(e)}},onClick:Function,onClose:Function},setup:function(e){var t=bA("tag").globalConfig,n=wA("tag"),r=kE({CloseIcon:rP}).CloseIcon,i=LO(),a=jO(),o=xA().SIZE,s=vo(function(){var t;return["".concat(n.value),"".concat(n.value,"--").concat(e.theme),"".concat(n.value,"--").concat(e.variant),(t={},Pw(t,"".concat(n.value,"--ellipsis"),e.maxWidth),Pw(t,"".concat(n.value,"--close"),e.closable),Pw(t,"".concat(n.value,"--disabled"),e.disabled),t),o.value[e.size],"square"!==e.shape&&"".concat(n.value,"--").concat(e.shape)]}),l=vo(function(){return e.maxWidth?{maxWidth:"".concat(e.maxWidth,"px")}:{}}),u=function(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,{e:t})};return function(){var o=function(){if(!e.closable)return null;var i="".concat(n.value,"__icon-close");return t.value.closeIcon?go(t.value.closeIcon(go),{class:i}):Na(r,{onClick:function(t){var n,r=t.e;return null===(n=e.onClose)||void 0===n?void 0:n.call(e,{e:r})},class:i},null)}(),c=a("default","content"),d=i("icon");return Na("span",{class:s.value,style:l.value,onClick:u},[d,e.maxWidth?Na("span",{style:l.value,class:"".concat(n.value,"--text")},[c]):c,o])}}}),kF=yr({name:"TCheckTag",props:{checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,content:{type:[String,Number,Function]},default:{type:[String,Number,Function]},disabled:Boolean,size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},onChange:Function,onClick:Function},setup:function(e){var t=wA("tag"),n=xA().SIZE,r=jO(),i=Ft(e),a=Ew(pD(i.checked,i.modelValue,e.defaultChecked,e.onChange,"checked"),2),o=a[0],s=a[1],l=vo(function(){var r;return["".concat(t.value),"".concat(t.value,"--check"),"".concat(t.value,"--default"),n.value[e.size],(r={},Pw(r,"".concat(t.value,"--checked"),!e.disabled&&o.value),Pw(r,"".concat(t.value,"--disabled"),e.disabled),r)]}),u=function(t){var n;e.disabled||(null===(n=e.onClick)||void 0===n||n.call(e,{e:t}),s(!o.value))};return function(){var e=r("default","content");return Na("span",{class:l.value,onClick:u},[e])}}}),AF=AO(_F);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function OF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}AO(kF);var PF=yr({name:"TTagInput",props:IF({},SF),setup:function(e){var t={NAME_CLASS:wA("tag-input"),CLEAR_CLASS:wA("tag-input__suffix-clear"),BREAK_LINE_CLASS:wA("tag-input--break-line")},n=t.NAME_CLASS,r=t.CLEAR_CLASS,i=t.BREAK_LINE_CLASS,a=kE({CloseCircleFilledIcon:$I}).CloseCircleFilledIcon,o=Ew(zD(Ft(e).inputValue,e.defaultInputValue,e.onInputChange,"inputValue"),2),s=o[0],l=o[1],u=Ft(e),c=u.excessTagsDisplayType,d=u.readonly,f=u.disabled,h=u.clearable,p=u.placeholder,m=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e){var t=e.disabled,n=e.readonly,r=e.onMouseenter,i=e.onMouseleave,a=Et(!1);return{isHover:a,addHover:function(e){n||t||(a.value=!0,null==r||r(e))},cancelHover:function(e){n||t||(a.value=!1,null==i||i(e))}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */({readonly:e.readonly,disabled:e.disabled,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),v=m.isHover,g=m.addHover,y=m.cancelHover,b=bA().classPrefix,w=function(e){var t=e.sortOnDraggable,n=e.onDragSort,r=e.onDragOverCheck,i=Et(-1),a=Et(null),o=Et(null),s=bt({nodeX:0,nodeWidth:0,mouseX:0}),l=function(e,t,o){if(e.preventDefault(),i.value!==t&&-1!==i.value){var l=e.target;if(null==r||!r.targetClassNameRegExp||null!=r&&r.targetClassNameRegExp.test(l.className)){if(null!=r&&r.x&&l){if(!s.nodeWidth)return;var u=l.getBoundingClientRect(),c=u.x,d=u.width,f=c+d/2,h=e.clientX-(s.mouseX-s.nodeX),p=h+s.nodeWidth;if(!(h>c&&h<c+d?h<f:p>f))return}null==n||n({currentIndex:i.value,current:a,target:o,targetIndex:t}),i.value=t}}};if(!t)return{};function u(e,t,n){i.value=t,a.value=n;var o=e.target;if(r&&o){var l=o.getBoundingClientRect(),u=l.x,c=l.width;s.nodeX=u,s.nodeWidth=c,s.mouseX=e.clientX}}function c(){o.value=!0}function d(){o.value,o.value=!1,i.value=-1,a.value=null}return{onDragStart:u,onDragOver:l,onDrop:c,onDragEnd:d,getDragProps:function(e,n){return t?{draggable:!0,onDragstart:function(t){u(t,e,n)},onDragover:function(t){l(t,e,n)},onDrop:function(){c()},onDragend:function(){d()}}:{}},dragging:-1!==i.value}}(IF(IF({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(b,"-tag"))}})),x=w.getDragProps,S=function(e){var t=Et(),n=Ft(e),r=n.excessTagsDisplayType,i=n.readonly,a=n.disabled,o=Et(0),s=Et(),l=Et(),u=function(e){var t=e.children[0];s.value=t},c=function(){o.value=s.value.scrollWidth-s.value.clientWidth},d=function(e){var t;null===(t=s.value)||void 0===t||t.scroll({left:e,behavior:"smooth"})},f=function(){c(),d(o.value)};return Er(function(){var e,n=null===(e=t.value)||void 0===e?void 0:e.$el;n&&u(n)}),Lr(function(){clearTimeout(l.value)}),{tagInputRef:t,scrollElement:s,scrollDistance:o,scrollTo:d,scrollToRight:f,scrollToLeft:function(){d(0)},updateScrollElement:u,updateScrollDistance:c,onWheel:function(e){var t=e.e;if(!i.value&&!a.value&&s.value)if(t.deltaX>0){var n=Math.min(s.value.scrollLeft+120,o.value);d(n)}else{var r=Math.max(s.value.scrollLeft-120,0);d(r)}},scrollToRightOnEnter:function(){"scroll"===r.value&&(l.value=setTimeout(function(){f(),clearTimeout(l.value)},100))},scrollToLeftOnLeave:function(){"scroll"===r.value&&(d(0),clearTimeout(l.value))}}}(e),_=S.scrollToRight,k=S.onWheel,A=S.scrollToRightOnEnter,C=S.scrollToLeftOnLeave,T=S.tagInputRef,O=function(e){var t=LO(),n=wA(),r=Ft(e),i=r.value,a=r.modelValue,o=r.onRemove,s=r.max,l=r.minCollapsedNum,u=r.size,c=r.disabled,d=r.readonly,f=r.tagProps,h=r.getDragProps,p=Ew(pD(i,a,e.defaultValue||[],e.onChange),2),m=p[0],v=p[1],g=Et(),y=function(e){var t,n=Iw(m.value);n.splice(e.index,1),v(n,TF({trigger:"tag-remove"},e)),null===(t=o.value)||void 0===t||t.call(o,TF(TF({},e),{},{trigger:"tag-remove",value:n}))};return{tagValue:m,clearAll:function(e){v([],{trigger:"clear",e:e.e})},onClose:y,onInnerEnter:function(t,n){var r,i,a=t?String(t).trim():"";if(a){var o=s&&(null===(r=m.value)||void 0===r?void 0:r.length)>=s.value,l=m.value;o||(l=m.value instanceof Array?m.value.concat(String(a)):[a],v(l,{trigger:"enter",index:l.length-1,item:a,e:n.e})),null==e||null===(i=e.onEnter)||void 0===i||i.call(e,l,TF(TF({},n),{},{inputValue:t}))}},onInputBackspaceKeyUp:function(e,t){var n=t.e;if(m.value&&m.value.length){if(!g.value&&["Backspace","NumpadDelete"].includes(n.code)){var r,i=m.value.length-1,a=m.value[i],s="backspace";v(m.value.slice(0,-1),{e:n,index:i,item:a,trigger:s}),null===(r=o.value)||void 0===r||r.call(o,{e:n,index:i,item:a,trigger:s,value:m.value})}g.value=e}},renderLabel:function(e){var r=e.displayNode,i=e.label,a=l.value?m.value.slice(0,l.value):m.value,o=r?[r]:null==a?void 0:a.map(function(e,n){var r,i=t("tag",{params:{value:e}});return Na(AF,Xa({key:"".concat(e).concat(n),size:u.value,disabled:c.value,onClose:function(t){return y({e:t.e,item:e,index:n})},closable:!d.value&&!c.value},null===(r=h.value)||void 0===r?void 0:r.call(h,n,e),f.value),{default:function(){return[null!=i?i:e]}})});if([null,void 0,""].includes(i)||o.unshift(Na("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[i])),a.length!==m.value.length){var s=m.value.length-a.length,p=t("collapsedItems",{params:{value:m.value,count:m.value.length,collapsedTags:m.value.slice(l.value,m.value.length),collapsedSelectedItems:m.value.slice(l.value,m.value.length)}});o.push(null!=p?p:Na(AF,{key:"more"},{default:function(){return["+",s]}}))}return o}}}(bt(IF(IF({},Ft(e)),{},{getDragProps:x}))),I=O.tagValue,P=O.onInnerEnter,E=O.onInputBackspaceKeyUp,M=O.clearAll,D=O.renderLabel,R=O.onClose,L=vo(function(){return[n.value,Pw({},i.value,"break-line"===c.value)]}),N=vo(function(){var e;return null!==(e=I.value)&&void 0!==e&&e.length?"":p.value}),j=vo(function(){var e;return Boolean(!d.value&&!f.value&&h.value&&v.value&&((null===(e=I.value)||void 0===e?void 0:e.length)||s.value))});return{CLEAR_CLASS:r,CloseCircleFilledIcon:a,tagValue:I,tInputValue:s,isHover:v,tagInputPlaceholder:N,showClearIcon:j,tagInputRef:T,setTInputValue:l,addHover:g,cancelHover:y,onInputEnter:function(e,t){var n,r;null===(n=t.e)||void 0===n||null===(r=n.preventDefault)||void 0===r||r.call(n),l("",{e:t.e,trigger:"enter"}),P(e,t),fn(function(){_()})},onInnerEnter:P,onInputBackspaceKeyUp:E,renderLabel:D,onWheel:k,scrollToRightOnEnter:A,scrollToLeftOnLeave:C,onClick:function(){T.value.focus()},onClearClick:function(t){var n;M(t),l("",{e:t.e,trigger:"clear"}),null===(n=e.onClear)||void 0===n||n.call(e,t)},onClose:R,classes:L}},render:function(){var e,t,n=this,r=this.CloseCircleFilledIcon,i=this.showClearIcon?Na(r,{class:this.CLEAR_CLASS,onClick:this.onClearClick},null):fO(this,"suffixIcon"),a=fO(this,"valueDisplay",{params:{value:this.tagValue,onClose:function(e,t){return n.onClose({index:e,item:t})}}}),o=fO(this,"label",{silent:!0});return Na(eL,Xa({ref:"tagInputRef",readonly:this.readonly,value:this.tInputValue,autoWidth:!0,size:this.size,disabled:this.disabled,label:function(){return n.renderLabel({displayNode:a,label:o})},class:this.classes,tips:this.tips,status:this.status,placeholder:this.tagInputPlaceholder,suffix:this.suffix,suffixIcon:function(){return i},showInput:!(null!==(e=this.inputProps)&&void 0!==e&&e.readonly&&this.tagValue&&null!==(t=this.tagValue)&&void 0!==t&&t.length),keepWrapperWidth:!this.autoWidth,onWheel:this.onWheel,onChange:function(e,t){n.setTInputValue(e,IF(IF({},t),{},{trigger:"input"}))},onPaste:this.onPaste,onEnter:this.onInputEnter,onKeyup:this.onInputBackspaceKeyUp,onMouseenter:function(e){n.addHover(e),n.scrollToRightOnEnter()},onMouseleave:function(e){n.cancelHover(e),n.scrollToLeftOnLeave()},onFocus:function(e,t){var r;null===(r=n.onFocus)||void 0===r||r.call(n,n.tagValue,{e:t.e,inputValue:e})},onBlur:function(e,t){var r;null===(r=n.onBlur)||void 0===r||r.call(n,n.tagValue,{e:t.e,inputValue:e})},onClick:this.onClick},this.inputProps),null)}}),EF=AO(PF);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function MF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var RF={label:"label",key:"key",children:"children"};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function LF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NF(e){var t=Ft(e),n=t.popupProps,r=t.autoWidth,i=Et(!1),a=DO(),o=function(e,t){var r=t.scrollHeight>t.offsetHeight?8:0,i=t.offsetWidth+r>=e.offsetWidth?t.offsetWidth:e.offsetWidth,a={};return n.value&&"object"===zw(n.value.overlayInnerStyle)&&!n.value.overlayInnerStyle.width&&(a=n.value.overlayInnerStyle),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({width:"".concat(Math.min(i,1e3),"px")},a)};return{tOverlayInnerStyle:vo(function(){var e,t={},i=(null===(e=n.value)||void 0===e?void 0:e.overlayInnerStyle)||{};return ox(i)||nx(i)&&i.width?t=i:r.value||(t=o),t}),innerPopupVisible:i,onInnerPopupVisibleChange:function(t,n){var r;a.value||e.readonly||(i.value=t,null===(r=e.onPopupVisibleChange)||void 0===r||r.call(e,t,n))}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function jF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jF(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zF=AO(yr({name:"TSelectInput",props:FF({},vF),setup:function(e,t){var n={NAME_CLASS:wA("select-input"),BASE_CLASS_BORDERLESS:wA("select-input--borderless"),BASE_CLASS_MULTIPLE:wA("select-input--multiple"),BASE_CLASS_POPUP_VISIBLE:wA("select-input--popup-visible"),BASE_CLASS_EMPTY:wA("select-input--empty")},r=n.NAME_CLASS,i=n.BASE_CLASS_BORDERLESS,a=n.BASE_CLASS_MULTIPLE,o=n.BASE_CLASS_POPUP_VISIBLE,s=n.BASE_CLASS_EMPTY,l=wA(),u=Et(),c=Et(),d=Ft(e),f=d.multiple,h=d.value,p=d.popupVisible,m=d.borderless,v=function(e,t){var n,r=Ft(e),i=r.value,a=r.keys,o=r.inputValue,s=wA(),l=Et(),u=Ew(zD(o,null!==(n=e.defaultInputValue)&&void 0!==n?n:"",e.onInputChange,"inputValue"),2),c=u[0],d=u[1],f=LO(),h=DO(),p=vo(function(){return yF(yF({},xN(e,bF)),{},{disabled:h.value})}),m=function(t){var n,r;null==t||null===(n=t.e)||void 0===n||n.stopPropagation(),null===(r=e.onClear)||void 0===r||r.call(e,t),d("",{trigger:"clear"})},v=function(t,n){e.allowInput&&d(t,yF(yF({},n),{},{trigger:"input"}))};return{inputRef:l,commonInputProps:p,onInnerClear:m,renderSelectSingle:function(n){var r,o,l=f("valueDisplay"),u=n&&e.allowInput?c.value:xF(i.value,a.value),g=[l,f("label")],y=yF(yF({},p.value),{},{value:l?void 0:u,label:g.length?function(){return g}:void 0,autoWidth:e.autoWidth,readonly:!e.allowInput||e.readonly,placeholder:l?"":e.placeholder,suffixIcon:!h.value&&e.loading?function(){return Na(CO,{loading:!0,size:"small"},null)}:e.suffixIcon,showClearIconOnEmpty:Boolean(e.clearable&&(c.value||u)&&!h.value&&!e.readonly),allowTriggerBlur:e.allowInput&&!e.readonly},e.inputProps);return Na(eL,Xa({ref:"inputRef",style:null===(r=t.attrs)||void 0===r?void 0:r.style},yF({onChange:v,onClear:m,onBlur:function(t,n){var r;null===(r=e.onBlur)||void 0===r||r.call(e,i.value,yF(yF({},n),{},{inputValue:t}))},onEnter:function(t,n){var r;null===(r=e.onEnter)||void 0===r||r.call(e,i.value,yF(yF({},n),{},{inputValue:t}))},onFocus:function(t,r){var o;null===(o=e.onFocus)||void 0===o||o.call(e,i.value,yF(yF({},r),{},{inputValue:t})),!n&&d(xF(i.value,a.value),yF(yF({},r),{},{trigger:"input"}))}},y),{inputClass:(o={},Pw(o,"".concat(s.value,"-input--focused"),n),Pw(o,"".concat(s.value,"-is-focused"),n),o)}),t.slots)}}}(e,t),g=v.commonInputProps,y=v.onInnerClear,b=v.renderSelectSingle,w=function(e,t){var n=Ft(e).inputValue,r=wA(),i=Et(),a=Ew(zD(n,e.defaultInputValue,e.onInputChange,"inputValue"),2),o=a[0],s=a[1],l=DO(),u=vo(function(){return DF(DF({},RF),e.keys)}),c=vo(function(){return e.value instanceof Array?e.value.map(function(e){return nx(e)?e[u.value.label]:e}):nx(e.value)?[e.value[u.value.label]]:[e.value]}),d=vo(function(){return c.value&&c.value.length?"":e.placeholder}),f=function(t,n){var r,i;"tag-remove"===n.trigger&&(null===(i=n.e)||void 0===i||i.stopPropagation()),null===(r=e.onTagChange)||void 0===r||r.call(e,t,n)};return{tags:c,tPlaceholder:d,tagInputRef:i,renderSelectMultiple:function(n){var i=DF(DF({},n.commonInputProps),{},{tagProps:e.tagProps,label:e.label,autoWidth:e.autoWidth,readonly:e.readonly,placeholder:d.value,minCollapsedNum:e.minCollapsedNum,collapsedItems:e.collapsedItems,tag:e.tag,value:c.value,valueDisplay:e.valueDisplay,inputValue:o.value||"",inputProps:DF({readonly:!e.allowInput||e.readonly,inputClass:Pw({},"".concat(r.value,"-input--focused"),n.popupVisible)},e.inputProps),suffixIcon:!l.value&&e.loading?function(){return Na(CO,{loading:!0,size:"small"},null)}:e.suffixIcon},e.tagInputProps);return Na(EF,Xa({ref:"tagInputRef"},i,{onInputChange:function(e,t){"enter"!==(null==t?void 0:t.trigger)&&s(e,{trigger:t.trigger,e:t.e})},onChange:f,onClear:n.onInnerClear,onBlur:function(t,n){var r;null===(r=e.onBlur)||void 0===r||r.call(e,e.value,DF(DF({},n),{},{tagInputValue:t}))},onEnter:function(t,n){var r;null===(r=e.onEnter)||void 0===r||r.call(e,e.value,DF(DF({},n),{},{inputValue:o.value}))},onFocus:function(t,n){var r;null===(r=e.onFocus)||void 0===r||r.call(e,e.value,DF(DF({},n),{},{tagInputValue:t}))}}),t.slots)}}}(e,t),x=w.renderSelectMultiple,S=NF(e),_=S.tOverlayInnerStyle,k=S.innerPopupVisible,A=S.onInnerPopupVisibleChange,C=vo(function(){var e,t;return[r.value,(t={},Pw(t,i.value,m.value),Pw(t,a.value,f.value),Pw(t,o.value,null!==(e=p.value)&&void 0!==e?e:k.value),Pw(t,s.value,h.value instanceof Array?!h.value.length:!h.value),t)]});return{classPrefix:l,NAME_CLASS:r,selectInputWrapRef:c,innerPopupVisible:k,commonInputProps:g,tOverlayInnerStyle:_,selectInputRef:u,popupClasses:C,onInnerClear:y,renderSelectSingle:b,renderSelectMultiple:x,onInnerPopupVisibleChange:A}},render:function(){var e,t,n=this,r={visible:null!==(e=this.popupVisible)&&void 0!==e?e:this.innerPopupVisible},i=Na(wD,Xa({ref:"selectInputRef",class:this.popupClasses,trigger:(null===(t=this.popupProps)||void 0===t?void 0:t.trigger)||"click",placement:"bottom-left"},r,{content:this.panel,hideEmptyPopup:!0},FF(FF({onVisibleChange:this.onInnerPopupVisibleChange},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),FF({default:function(){return[n.multiple?n.renderSelectMultiple({commonInputProps:n.commonInputProps,onInnerClear:n.onInnerClear,popupVisible:r.visible}):n.renderSelectSingle(r.visible)]}},FF(FF({},this.$slots),{},{content:this.$slots.panel})));return this.tips?Na("div",{ref:"selectInputWrapRef",class:"".concat(this.NAME_CLASS,"__wrap")},[i,Na("div",{class:"".concat(this.classPrefix,"-input__tips ").concat(this.classPrefix,"-input__tips--").concat(this.status||"normal")},[this.tips])]):i}}));var BF=VL,VF=HC;var HF=NL,WF=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},UF=function(e,t){return t.length<2?e:BF(e,VF(t,0,-1))},XF=FL;var GF=Tk;var YF=PC,KF=sF,qF=function(e,t){return t=HF(t,e),null==(e=UF(e,t))||delete e[XF(WF(t))]},ZF=NL,JF=F_,QF=function(e){return GF(e)?void 0:e},$F=oj,ez=pN(function(e,t){var n={};if(null==e)return n;var r=!1;t=YF(t,function(t){return t=ZF(t,e),r||(r=t.length>1),t}),JF(e,$F(e),n),r&&(n=KF(n,7,QF));for(var i=t.length;i--;)qF(n,t[i]);return n}),tz={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:""},value:{type:[String,Number]}},nz={checkAll:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:{type:[String,Function]},name:{type:String,default:""},readonly:Boolean,value:{type:[String,Number]},onChange:Function},rz=Symbol("CheckboxGroupProvide");
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function iz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function az(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iz(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oz=yr({name:"TCheckbox",props:az(az({},nz),{},{needRipple:Boolean,stopLabelTrigger:Boolean}),setup:function(e){var t=Et();e.needRipple&&MO(t);var n=Ft(e),r=Ew(pD(n.checked,n.modelValue,e.defaultChecked,e.onChange,"checked"),2),i=r[0],a=r[1],o=yi(rz,void 0),s=DO(vo(function(){return e.disabled||!(null==o||!o.disabled)})),l=vo(function(){return e.name||(null==o?void 0:o.name)}),u=vo(function(){return e.checkAll?null==o?void 0:o.isCheckAll:o?!!o.checkedMap[e.value]:i.value}),c=vo(function(){return s?s.value:!(e.checkAll||u.value||null==o||!o.maxExceeded)||(void 0!==e.disabled?e.disabled:!(null==o||!o.disabled))}),d=vo(function(){return e.checkAll?null==o?void 0:o.indeterminate:e.indeterminate}),f=wA(),h=wA("checkbox"),p=vo(function(){var e;return["".concat(h.value),(e={},Pw(e,"".concat(f.value,"-is-checked"),u.value),Pw(e,"".concat(f.value,"-is-disabled"),c.value),Pw(e,"".concat(f.value,"-is-indeterminate"),d.value),e)]}),m=function(t){var n=!u.value;a(n,{e:t}),o&&o.handleCheckboxChange&&o.onCheckedChange({checked:n,checkAll:e.checkAll,e:t,option:e})},v=jO(),g=function(t){e.stopLabelTrigger&&t.preventDefault()};return function(){return Na("label",{class:p.value,ref:"labelRef"},[Na("input",{type:"checkbox",class:"".concat(h.value,"__former"),disabled:c.value,readonly:e.readonly,indeterminate:e.indeterminate,name:l.value,value:e.value,checked:u.value,onChange:m},null),Na("span",{class:"".concat(h.value,"__input")},null),Na("span",{class:"".concat(h.value,"__label"),onClick:g},[v("default","label")])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var sz=wS,lz=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},uz=function(e){return this.__data__.has(e)};function cz(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new sz;++t<n;)this.add(e[t])}cz.prototype.add=cz.prototype.push=lz,cz.prototype.has=uz;var dz=cz;var fz=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1},hz=function(e){return e!=e},pz=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var mz=function(e,t,n){return t==t?pz(e,t,n):fz(e,hz,n)};var vz=function(e,t){return!!(null==e?0:e.length)&&mz(e,t,0)>-1};var gz=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var yz=function(e,t){return e.has(t)},bz=dz,wz=vz,xz=gz,Sz=PC,_z=_S,kz=yz,Az=Math.min;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var Cz=pk;var Tz=PC,Oz=function(e,t,n){for(var r=n?xz:wz,i=e[0].length,a=e.length,o=a,s=Array(a),l=1/0,u=[];o--;){var c=e[o];o&&t&&(c=Sz(c,_z(t))),l=Az(c.length,l),s[o]=!n&&(t||i>=120&&c.length>=120)?new bz(o&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++d<i&&u.length<l;){var h=c[d],p=t?t(h):h;if(h=n||0!==h?h:0,!(f?kz(f,p):r(u,p,n))){for(o=a;--o;){var m=s[o];if(!(m?kz(m,p):r(e[o],p,n)))continue e}f&&f.push(p),u.push(h)}}return u},Iz=function(e){return Cz(e)?e:[]},Pz=yk(function(e){var t=Tz(e,Iz);return t.length&&t[0]===e[0]?Oz(t):[]});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Mz=yr({name:"TCheckboxGroup",props:{disabled:Boolean,max:{type:Number,default:void 0},name:{type:String,default:""},options:{type:Array,default:function(){return[]}},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function},setup:function(e){var t=wA("checkbox-group"),n=LO(),r=Array.isArray,i=Ft(e),a=Ew(pD(i.value,i.modelValue,e.defaultValue,e.onChange),2),o=a[0],s=a[1],l=vo(function(){var e={};return r(o.value)&&o.value.forEach(function(t){e[t]=!0}),e}),u=Et([]),c=vo(function(){if(!r(o.value))return 0;var e=u.value.map(function(e){return e.value});return Pz(o.value,e).length}),d=vo(function(){var e=u.value.filter(function(e){return e.disabled||e.checkAll}).length;return(!r(o.value)||o.value.length===u.value.length-e)&&c.value===u.value.length-e}),f=vo(function(){return!d.value&&c.value<u.value.length&&0!==c.value}),h=vo(function(){return void 0!==e.max&&o.value.length===e.max});ea(function(){if(!e.options)return[];u.value=e.options.map(function(t){var n={};return"object"!==zw(t)?n={label:String(t),value:t}:(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ez(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ez(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t),n.disabled=void 0===n.disabled?e.disabled:n.disabled),n})});var p=function(e,t){var n=e?function(){for(var e=new Set,t=0,n=u.value.length;t<n;t++){var r=u.value[t];if(!r.checkAll&&!r.disabled&&(e.add(r.value),h.value))break}return Iw(e)}():[];s(n,{e:t.e,type:e?"check":"uncheck",current:void 0,option:void 0})},m=function(e){var t=e.option.value;if(r(o.value)){var n=Iw(o.value);if(e.checked)n.push(t);else{var i=n.indexOf(t);n.splice(i,1)}s(n,{e:e.e,current:e.option.value,option:e.option,type:e.checked?"check":"uncheck"})}},v=sE(),g=Ft(e),y=g.name,b=g.disabled;return gi(rz,bt({name:y,isCheckAll:d,checkedMap:l,maxExceeded:h,disabled:b,indeterminate:f,handleCheckboxChange:m,onCheckedChange:function(e){var t=e.checked,n=e.checkAll,r=e.e;n?p(t,{e:r}):m(e)}})),function(){var r,i=null;if(null!==(r=e.options)&&void 0!==r&&r.length){var a;i=null===(a=u.value)||void 0===a?void 0:a.map(function(e,t){var n,r;return Na(oz,Xa({key:"".concat(e.value).concat(t)},e,{checked:l.value[e.value]}),(r=n=function(e){return"function"==typeof e.label?e.label(go):e.label}(e),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!Ea(r)?n:{default:function(){return[n]}}))})}else{var o=n("default");u.value=function(){var e=v("Checkbox"),t=[];return null==e||e.forEach(function(e){var n=e.props;""!==(null==n?void 0:n["check-all"])&&!0!==(null==n?void 0:n["check-all"])||(n.checkAll=!0),n&&t.push(n)}),t}(),i=o}return Na("div",{class:t.value},[i])}}}),Dz=AO(oz),Rz=AO(Mz);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Lz(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nz(e,t)}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Nz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jz=Symbol("selectProvide"),Fz=function(e,t){var n,r=Lz(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.value===e)return null==i?void 0:i.label}}catch(a){r.e(a)}finally{r.f()}return e},zz=function(e,t){var n=uF(e),r=n.indexOf(t);return r<0?n.push(t):n.splice(r,1),{value:n,isCheck:r<0}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Bz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bz(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hz=yr({name:"TOption",props:Vz(Vz({},tz),{},{createAble:Boolean,multiple:Boolean,index:Number,rowIndex:Number,trs:Map,scrollType:String,isVirtual:Boolean,bufferSize:Number,checkAll:Boolean}),emits:["row-mounted"],setup:function(e,t){var n=yi(jz),r=DO();Et(null);var i=vo(function(){return r.value||e.multiple&&n.value.max<=n.value.selectValue.length&&0!==n.value.max}),a=jO(),o=wA("select"),s=xA(),l=s.STATUS,u=s.SIZE,c=Et(),d=Et(!1),f=vo(function(){return!(!n.value.isCheckAll||e.disabled)||(e.multiple?n.value.selectValue.includes(e.value):n.value.selectValue===e.value)}),h=vo(function(){return!!e.checkAll&&n.value.indeterminate}),p=vo(function(){var t;return["".concat(o.value,"-option"),[u.value[n.value.size]],(t={},Pw(t,l.value.disabled,i.value),Pw(t,l.value.selected,f.value),Pw(t,"".concat(o.value,"-option__hover"),(d.value||n.value.hoverIndex===e.index)&&!i.value&&!f.value),t)]}),m=vo(function(){return e.label||e.value}),v=function(t){if(!e.multiple&&!e.disabled){var r,i;if(t.stopPropagation(),e.createAble)if(null===(r=(i=n.value).handleCreate)||void 0===r||r.call(i,e.value),n.value.multiple)return n.value.selectValue.push(e.value),void n.value.handleValueChange(n.value.selectValue,{selectedOptions:n.value.getSelectedOptions(),trigger:"check",e:t});n.value.handleValueChange(e.value,{selectedOptions:n.value.getSelectedOptions(e.value),trigger:"check",e:t}),n.value.handlePopupVisibleChange(!1,{e:t})}},g=function(t,r){if(e.checkAll)n.value.onCheckAllChange(t);else{var i=zz(n.value.selectValue,e.value);n.value.handleValueChange(i.value,{selectedOptions:n.value.getSelectedOptions(i.value),trigger:t?"check":"uncheck",e:r.e}),n.value.reserveKeyword||n.value.handlerInputChange("")}};return Er(function(){var n=e.trs,r=e.rowIndex;e.isVirtual&&(n.set(r,c.value),t.emit("row-mounted"))}),Rr(function(){if(e.isVirtual){var t=e.trs,n=e.rowIndex;t.delete(n)}}),MO(c),function(){var t,r=a("default","content")||m.value;return Na("li",{ref:c,class:p.value,title:"".concat(m.value),onMouseenter:function(){return d.value=!0},onMouseleave:function(){return d.value=!1},onClick:v},[n&&e.multiple?Na(Dz,{checked:f.value,disabled:i.value&&!f.value,onChange:g,indeterminate:h.value},(t=r,"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!Ea(t)?r:{default:function(){return[r]}})):Na("span",null,[r])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Wz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Uz=yr({name:"TOptionGroup",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wz(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{divider:{type:Boolean,default:!0},label:{type:String,default:""}}),setup:function(e){var t=yi(jz),n=wA("select-option-group"),r=xA().SIZE,i=LO(),a=vo(function(){return[n.value,r.value[t.value.size],Pw({},"".concat(n.value,"__divider"),e.divider)]});return function(){return Na("li",{class:a.value},[Na("div",{class:"".concat(n.value,"__header")},[e.label]),i("default")])}}}),Xz={autoWidth:Boolean,bordered:{type:Boolean,default:!0},borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},creatable:Boolean,disabled:Boolean,empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array,default:function(){return[]}},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:Boolean,reserveKeyword:Boolean,scroll:{type:Object},selectInputProps:{type:Object},showArrow:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:void 0},defaultValue:{type:[String,Number,Object,Array]},valueDisplay:{type:[String,Function]},valueType:{type:String,default:"value",validator:function(e){return!e||["value","object"].includes(e)}},onBlur:Function,onChange:Function,onClear:Function,onCreate:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function,onVisibleChange:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function Gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gz(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kz=yr({name:"TSelectPanel",props:{inputValue:Xz.inputValue,panelTopContent:Xz.panelTopContent,panelBottomContent:Xz.panelBottomContent,empty:Xz.empty,creatable:Xz.creatable,loading:Xz.loading,loadingText:Xz.loadingText,multiple:Xz.multiple,filterable:Xz.filterable,filter:Xz.filter,options:{type:Array,default:function(){return[]}},scroll:Xz.scroll},setup:function(e,t){var n=t.expose,r=wA("select"),i=LO(),a=NO(),o=bA("select"),s=o.t,l=o.globalConfig,u=yi(jz),c=Et(null),d=vo(function(){return u.value.popupContentRef.value}),f=vo(function(){return e.creatable&&e.filterable&&e.inputValue}),h=vo(function(){if(!e.inputValue||!e.filterable&&!ox(e.filter))return e.options;var t=function(t){var n;return ox(e.filter)?e.filter("".concat(e.inputValue),t):(null===(n=t.label)||void 0===n?void 0:n.indexOf("".concat(e.inputValue)))>-1},n=[];return e.options.forEach(function(e){e.group&&e.children&&n.push(Yz(Yz({},e),{},{children:e.children.filter(t)})),t(e)&&n.push(e)}),n}),p=function(e){var t,n,r,i,a,o=vo(function(){var t,n,r;return"virtual"===(null===(t=e.scroll)||void 0===t?void 0:t.type)&&(null===(n=e.options.value)||void 0===n?void 0:n.length)>((null===(r=e.scroll)||void 0===r?void 0:r.threshold)||100)}),s="virtual"===(null===(t=e.scroll)||void 0===t?void 0:t.type)?VR({container:e.popupContentRef,data:e.options,fixedHeight:(null===(n=e.scroll)||void 0===n?void 0:n.isFixedRowHeight)||!1,lineHeight:(null===(r=e.scroll)||void 0===r?void 0:r.rowHeight)||28,bufferSize:(null===(i=e.scroll)||void 0===i?void 0:i.bufferSize)||20,threshold:(null===(a=e.scroll)||void 0===a?void 0:a.threshold)||100}):{},l=s.trs,u=void 0===l?null:l,c=s.visibleData,d=void 0===c?null:c,f=s.handleScroll,h=void 0===f?null:f,p=s.scrollHeight,m=void 0===p?null:p,v=s.translateY,g=void 0===v?null:v,y=s.handleRowMounted,b=void 0===y?null:y,w=-1,x=function(e){if(o.value){var t=e.target.scrollTop;Math.abs(w-t)>5?(h(),w=t):w=-1}};Er(function(){var t;o.value&&(null===(t=e.popupContentRef.value)||void 0===t||t.addEventListener("scroll",x))}),Rr(function(){var t;o.value&&(null===(t=e.popupContentRef.value)||void 0===t||t.removeEventListener("scroll",x))});var S=vo(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(m.value,"px)"),"-ms-transform":"translate(0, ".concat(m.value,"px)"),"-moz-transform":"translate(0, ".concat(m.value,"px)"),"-webkit-transform":"translate(0, ".concat(m.value,"px)")}}),_=vo(function(){return{transform:"translate(0, ".concat(g.value,"px)"),"-ms-transform":"translate(0, ".concat(g.value,"px)"),"-moz-transform":"translate(0, ".concat(g.value,"px)"),"-webkit-transform":"translate(0, ".concat(g.value,"px)")}});return{trs:u,scrollHeight:m,translateY:g,visibleData:d,handleRowMounted:b,isVirtual:o,cursorStyle:S,panelStyle:_}}({scroll:e.scroll,popupContentRef:d,options:h}),m=p.trs,v=p.visibleData,g=p.handleRowMounted,y=p.isVirtual,b=p.panelStyle,w=p.cursorStyle,x=vo(function(){return!h.value.length}),S=function t(n){return Na("ul",{class:"".concat(r.value,"__list")},[n.map(function(n,r){var i,a,o,s;return n.group?Na(Uz,{label:n.group,divider:n.divider},"function"==typeof(s=o=t(n.children))||"[object Object]"===Object.prototype.toString.call(s)&&!Ea(s)?o:{default:function(){return[o]}}):Na(Hz,Xa(ez(n,"$index"),y.value?{rowIndex:n.$index,trs:m,scrollType:null===(i=e.scroll)||void 0===i?void 0:i.type,isVirtual:y.value,bufferSize:null===(a=e.scroll)||void 0===a?void 0:a.bufferSize,key:"".concat(n.$index||"","_").concat(r)}:{key:r},{multiple:e.multiple,onRowMounted:g}),n.slots)})])},_=vo(function(){return{small:"s",medium:"m",large:"l"}[u.value.size]});n({innerRef:c});var k=function(t,n){return Na("div",{ref:c,class:["".concat(r.value,"__dropdown-inner"),"".concat(r.value,"__dropdown-inner--size-").concat(_.value)],onClick:function(e){return e.stopPropagation()},style:null==n?void 0:n.value},[i("panelTopContent"),f.value&&Na("ul",{class:["".concat(r.value,"__create-option"),"".concat(r.value,"__list")]},[Na(Hz,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(r.value,"__create-option--special")},null)]),e.loading&&a("loadingText",{defaultNode:Na("div",{class:"".concat(r.value,"__loading-tips")},[s(l.value.loadingText)])}),!e.loading&&x.value&&!f.value&&a("empty",{defaultNode:Na("div",{class:"".concat(r.value,"__empty")},[s(l.value.empty)])}),!x.value&&!e.loading&&S(t.value),i("panelBottomContent")])};return y.value?function(){return Na("div",null,[Na("div",{style:w.value},null),k(v,b)])}:function(){return k(h)}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function qz(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zz(e,t)}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Zz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jz(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $z=["slots","expose"],eB=["overlayClassName"];
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function tB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tB(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rB=yr({name:"TSelect",props:nB({},Xz),setup:function(e,t){var n=t.slots;t.expose,Dw(t,$z);var r=wA(),i=DO(),a=LO(),o=wA("select"),s=bA("select"),l=s.globalConfig,u=s.t,c=Ft(e),d=c.popupVisible,f=c.inputValue,h=c.modelValue,p=Ew(pD(c.value,h,e.defaultValue,e.onChange),2),m=p[0],v=p[1],g=Et(null),y=Et(null),b=vo(function(){var t,n;return{label:(null===(t=e.keys)||void 0===t?void 0:t.label)||"label",value:(null===(n=e.keys)||void 0===n?void 0:n.value)||"value"}}),w=function(e,t){var n=sE(),r=vo(function(){var r=0,i=e.options.map(function(e){var n=function(e){var n=t.value,i=n.value,a=n.label,o=Qz(Qz({},e),{},{index:r,label:fF(e,a),value:fF(e,i)});return r++,o};return e.group&&e.children?Qz(Qz({},e),{},{children:e.children.map(function(e){return n(e)})}):n(e)}),a=n("Option"),o=n("OptionGroup");if(r_(o)){var s,l=qz(o);try{for(l.s();!(s=l.n()).done;){var u,c,d,f=s.value,h=Qz(Qz({group:null===(u=f.props)||void 0===u?void 0:u.label},f.props),{},{children:[]}),p=f.children.default();if(r_(p)&&null!==(c=p[0])&&void 0!==c&&c.children){var m,v=qz(null==p||null===(d=p[0])||void 0===d?void 0:d.children);try{for(v.s();!(m=v.n()).done;){var g=m.value;h.children.push(Qz(Qz({},g.props),{},{slots:g.children,index:r})),r++}}catch(x){v.e(x)}finally{v.f()}i.push(h)}}}catch(x){l.e(x)}finally{l.f()}}if(r_(a)){var y,b=qz(a);try{for(b.s();!(y=b.n()).done;){var w=y.value;i.push(Qz(Qz({},w.props),{},{slots:w.children,index:r})),r++}}catch(x){b.e(x)}finally{b.f()}}return i}),i=vo(function(){var e=[];return function t(n){var r,i=qz(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.group?t(a.children):e.push(a)}}catch(o){i.e(o)}finally{i.f()}}(r.value),e}),a=vo(function(){var e=new Map;return i.value.forEach(function(t){e.set(t.value,t)}),e});return{options:r,optionsMap:a,optionsList:i}}(e,b),x=w.options,S=w.optionsMap,_=w.optionsList,k=vo(function(){return"object"===e.valueType?e.multiple?m.value.map(function(e){return e[b.value.value]}):m.value[b.value.value]:m.value}),A=function(t,n){if("object"===e.valueType){var r=b.value,i=r.value,a=r.label,o=function(e){var t,n=S.value.get(e);return Pw(t={},i,fF(n,i)),Pw(t,a,fF(n,a)),t};t=e.multiple?t.map(function(e){return o(e)}):o(t)}t!==m.value&&v(t,{selectedOptions:H(t),trigger:n.trigger,e:n.e})},C=Ew(zD(f,e.defaultInputValue,e.onInputChange,"inputValue"),2),T=C[0],O=C[1],I=Ew(zD(d,!1,function(t,n){var r,i;null===(r=e.onPopupVisibleChange)||void 0===r||r.call(e,t,n),null===(i=e.onVisibleChange)||void 0===i||i.call(e,t)},"popupVisible"),2),P=I[0],E=I[1],M=vo(function(){var t;return null!==(t=!e.multiple&&P.value&&Fz(k.value,_.value)||e.placeholder)&&void 0!==t?t:u(l.value.placeholder)}),D=vo(function(){return e.multiple?function(e,t){var n,r=[],i=Lz(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=Fz(a,t);o&&r.push(o)}}catch(s){i.e(s)}finally{i.f()}return r}(k.value,_.value):Fz(k.value,_.value)}),R=vo(function(){return e.multiple?k.value.map(function(e){var t;return{value:e,label:null===(t=S.value.get(e))||void 0===t?void 0:t.label}}):k.value}),L=vo(function(){return Boolean(e.filterable||l.value.filterable||ox(e.filter))}),N=function(t,n){var r,i=uF(k.value),a=i[t];i.splice(t,1),A(i,{selectedOptions:H(i),trigger:"tag-remove",e:n}),null===(r=e.onRemove)||void 0===r||r.call(e,{value:a,data:S.value.get(a),e:n})},j=function(){var t;T.value&&(null===(t=e.onCreate)||void 0===t||t.call(e,T.value),O(""))},F=Et(-1),z=function(t){var n,r,i=_.value.length,a=F.value;switch(t.code){case"ArrowUp":t.preventDefault(),-1===F.value?a=0:0===F.value?a=i-1:a--,null!==(n=_.value[a])&&void 0!==n&&n.disabled&&a--,F.value=a;break;case"ArrowDown":t.preventDefault(),-1===F.value||F.value===i-1?a=0:a++,null!==(r=_.value[a])&&void 0!==r&&r.disabled&&a++,F.value=a;break;case"Enter":if(-1===F.value)break;if(!P.value){E(!0,{e:t});break}if(e.multiple){var o;if(-1===F.value)return;var s=null===(o=_.value[F.value])||void 0===o?void 0:o.value;if(!s)return;var l=zz(k.value,s);A(l.value,{selectedOptions:H(l.value),trigger:l.isCheck?"check":"uncheck",e:t})}else A(_.value[F.value].value,{selectedOptions:H(_.value[F.value].value),trigger:"check",e:t}),E(!1,{e:t});break;case"Escape":E(!1,{e:t})}},B=vo(function(){var e;return null===(e=y.value)||void 0===e?void 0:e.selectInputRef.getOverlay()}),V=vo(function(){return _.value.filter(function(e){return!e.disabled&&!e["check-all"]&&!e.checkAll})}),H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k.value;return _.value.filter(function(t){if(!t.checkAll)return Array.isArray(e)?e.includes(t.value):e===t.value})},W=function(t){if(e.multiple){var n=t?V.value.map(function(e){return e.value}):[];A(n,{selectedOptions:H(n),trigger:t?"check":"clear"})}},U=vo(function(){var e=V.value.map(function(e){return e.value});return mF.intersection(k.value,e).length}),X=vo(function(){return U.value===V.value.length}),G=vo(function(){return!X.value&&0!==U.value}),Y=vo(function(){return{max:e.max,multiple:e.multiple,hoverIndex:F.value,selectValue:k.value,reserveKeyword:e.reserveKeyword,handleValueChange:A,handlerInputChange:O,handlePopupVisibleChange:E,handleCreate:j,size:e.size,popupContentRef:B,indeterminate:G.value,isCheckAll:X.value,onCheckAllChange:W,getSelectedOptions:H}});gi(jz,Y);var K=function(){!e.multiple&&r_(m.value)&&(m.value=""),e.multiple&&!r_(m.value)&&(m.value=[])},q=sR(function(t){var n;null===(n=e.onSearch)||void 0===n||n.call(e,"".concat(t))},300);ta(m,function(){K()},{immediate:!0}),ta(function(){return e.multiple},function(){K()}),ta(P,function(e){e&&(F.value=-1)});return gi("updateScrollTop",function(e){var t,n;if(g.value){var i=null===(t=g.value)||void 0===t||null===(n=t.innerRef)||void 0===n?void 0:n.querySelector(".".concat(r.value,"-is-selected"));fn(function(){if(i&&e){var t=getComputedStyle(i).paddingBottom,n=getComputedStyle(e).marginBottom,r=parseInt(t,10)+parseInt(n,10),a=i.offsetTop-e.offsetTop-(e.clientHeight-i.clientHeight)+r;e.scrollTop=a}})}}),function(){var t=e.popupProps||{},r=t.overlayClassName,s=Dw(t,eB);return Na("div",{class:"".concat(o.value,"__wrap")},[Na(zF,Xa({autoWidth:e.autoWidth,readonly:e.readonly,borderless:e.borderless||!e.bordered,multiple:e.multiple,clearable:e.clearable,loading:e.loading,status:e.status,tips:e.tips,minCollapsedNum:e.minCollapsedNum},{ref:y,class:o.value,value:D.value,disabled:i.value,popupVisible:P.value,inputValue:P.value?T.value:"",placeholder:"".concat(M.value),allowInput:L.value,"collapsed-items":e.collapsedItems,inputProps:nB(nB({size:e.size},e.inputProps),{},{onkeydown:z}),tagInputProps:nB({size:e.size},e.tagInputProps),onTagChange:function(e,t){N(t.index)},tagProps:nB({},e.tagProps),popupProps:nB({overlayClassName:["".concat(o.value,"__dropdown"),r]},s),label:function(){return a("prefixIcon")},suffixIcon:function(){return e.showArrow&&Na(DR,{overlayClassName:"".concat(o.value,"__right-icon"),isActive:P.value},null)},valueDisplay:function(){return a("valueDisplay",{params:{value:R.value,onClose:function(e){return N(e)}}})},onPopupVisibleChange:function(e,t){E(e,t)},onInputChange:function(e){P.value&&(O(e),q("".concat(e)))},onClear:function(t){var n,r=t.e;A(e.multiple?[]:"",{selectedOptions:H(e.multiple?[]:""),trigger:"clear",e:r}),null===(n=e.onClear)||void 0===n||n.call(e,{e:r})},onEnter:function(t,n){var r,i=n.e;null===(r=e.onEnter)||void 0===r||r.call(e,{inputValue:"".concat(T.value),e:i,value:k.value}),j()},onBlur:function(t,n){var r,i=n.e;null===(r=e.onBlur)||void 0===r||r.call(e,{e:i,value:k.value})},onFocus:function(t,n){var r,i=n.e;null===(r=e.onFocus)||void 0===r||r.call(e,{e:i,value:k.value})}},e.selectInputProps),{panel:function(){return Na(Kz,Xa({ref:g},xN(e,["size","multiple","empty","loading","loadingText","filterable","creatable","panelTopContent","panelBottomContent","filter","scroll"]),{options:x.value,inputValue:T.value}),n)},collapsedItems:n.collapsedItems})])}}}),iB=AO(rB),aB=AO(Hz);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */AO(Uz);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var oB=AO(yr({name:"TInputAdornment",inheritAttrs:!1,props:{append:{type:[String,Function]},prepend:{type:[String,Function]}},setup:function(e,t){var n=t.slots,r=wA("input-adornment"),i=LO(),a=function(e,t,i){var a;return(a=n[t]?n[t](null):"string"==typeof i?i:"function"==typeof i?i(e):null)?Na("span",{class:"".concat(r.value,"__").concat(t)},[a]):a};return function(){var t,n=a(go,"prepend",e.prepend),o=a(go,"append",e.append),s=i("default")||[null],l=[r.value,(t={},Pw(t,"".concat(r.value,"--prepend"),n),Pw(t,"".concat(r.value,"--append"),o),t)];return n||o?Na("div",{class:l},[n,s[0],o]):s[0]}}})),sB={current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},disabled:Boolean,foldedMaxPageBtn:{type:Number,default:5},maxPageBtn:{type:Number,default:10},pageEllipsisMode:{type:String,default:"mid",validator:function(e){return!e||["mid","both-ends"].includes(e)}},pageSize:{type:Number,default:void 0},defaultPageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:function(){return[5,10,20,50]}},showFirstAndLastPageBtn:Boolean,showJumper:Boolean,showPageNumber:{type:Boolean,default:!0},showPageSize:{type:Boolean,default:!0},showPreviousAndNextBtn:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return!e||["small","medium"].includes(e)}},theme:{type:String,default:"default",validator:function(e){return!e||["default","simple"].includes(e)}},total:{type:Number,default:0},totalContent:{type:[Boolean,Function],default:!0},onChange:Function,onCurrentChange:Function,onPageSizeChange:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var lB=NR;var uB=function(e){return lB(e)&&e!=+e},cB=["pageCount"];var dB=AO(yr({name:"TPagination",props:sB,setup:function(e){var t=Ft(e),n=t.modelValue,r=t.pageSize,i=t.current,a=LO(),o=Ew(pD(i,n,e.defaultCurrent,e.onCurrentChange,"current"),2),s=o[0],l=o[1],u=Ew(zD(r,e.defaultPageSize,e.onPageSizeChange,"pageSize"),2),c=u[0],d=u[1],f=bA("pagination"),h=f.t,p=f.globalConfig,m=wA("pagination"),v=kE({PageFirstIcon:zP,PageLastIcon:WP,ChevronLeftIcon:DI,ChevronRightIcon:XI,ChevronLeftDoubleIcon:II,ChevronRightDoubleIcon:VI,EllipsisIcon:dP}),g=v.PageFirstIcon,y=v.PageLastIcon,b=v.ChevronLeftIcon,w=v.ChevronRightIcon,x=v.ChevronLeftDoubleIcon,S=v.ChevronRightDoubleIcon,_=v.EllipsisIcon,k=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e,t,n,r){var i=xA(),a=i.SIZE,o=i.STATUS,s=vo(function(){var t=Math.ceil(e.total/n.value);return t>0?t:1}),l=vo(function(){return["".concat(r.value),a.value[e.size],Pw({},o.value.disabled,e.disabled)]}),u=vo(function(){return["".concat(r.value,"__total")]}),c=vo(function(){return["".concat(r.value,"__select")]}),d=vo(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-prev"),Pw({},o.value.disabled,e.disabled||1===t.value)]}),f=vo(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-next"),Pw({},o.value.disabled,e.disabled||t.value===s.value)]}),h=vo(function(){return["".concat(r.value,"__pager")]}),p=vo(function(){return["".concat(r.value,"__number"),"".concat(r.value,"__number--more"),Pw({},o.value.disabled,e.disabled)]}),m=vo(function(){return["".concat(r.value,"__jump")]}),v=vo(function(){return["".concat(r.value,"__input")]}),g=vo(function(){return["".concat(r.value,"__select")]});return{pageCount:s,paginationClass:l,totalClass:u,sizerClass:c,preBtnClass:d,nextBtnClass:f,btnWrapClass:h,btnMoreClass:p,jumperClass:m,jumperInputClass:v,simpleClass:g,getButtonClass:function(n){var i;return["".concat(r.value,"__number"),(i={},Pw(i,o.value.disabled,e.disabled),Pw(i,o.value.current,t.value===n),i)]}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */(e,s,c,m),A=k.pageCount,C=Dw(k,cB),T=function(e,t,n){var r=Et(!1),i=Et(!1),a=vo(function(){return Math.ceil((e.foldedMaxPageBtn-1)/2)}),o=vo(function(){return Math.ceil((e.foldedMaxPageBtn-1)/2)}),s=vo(function(){return 2+a.value<n.value}),l=vo(function(){return t.value-1-o.value>n.value});return{prevMore:r,nextMore:i,curPageLeftCount:a,curPageRightCount:o,isPrevMoreShow:s,isNextMoreShow:l}}(e,A,s),O=T.prevMore,I=T.isPrevMoreShow,P=T.curPageLeftCount,E=T.nextMore,M=T.isNextMoreShow,D=T.curPageRightCount,R=Et(s.value),L=vo(function(){return A.value>e.maxPageBtn});vo(function(){for(var e=[],t=1;t<=A.value;t++)e.push({value:t,label:"".concat(t,"/").concat(A.value)});return e});var N=vo(function(){return e.pageSizeOptions.map(function(e){return"object"===zw(e)?e:{label:h(p.value.itemsPerPage,{size:e}),value:Number(e)}}).sort(function(e,t){return e.value-t.value})}),j=vo(function(){return"mid"===e.pageEllipsisMode}),F=vo(function(){var t,n,r=[];if(L.value)if(I.value&&M.value)t=s.value-P.value,n=s.value+D.value;else{var i=j.value?2:1,a=j.value?A.value-1:A.value;t=I.value?A.value-e.foldedMaxPageBtn+1:i,n=I.value?a:e.foldedMaxPageBtn}else t=1,n=A.value;for(var o=t;o<=n;o++)r.push(o);return r});ta(function(){return A.value},function(){s.value>A.value&&(s.value=1)}),ta(function(){return s.value},function(e){return R.value=e});var z=function(t,n){if(!e.disabled){var r=t;if(t<1?r=1:t>A.value&&(r=A.value),s.value!==r){var i,a={current:r,previous:s.value,pageSize:c.value};if(!1!==n)null===(i=e.onChange)||void 0===i||i.call(e,a);l(r,a)}}},B=function(t){({prevPage:function(){return z(s.value-1)},nextPage:function(){return z(s.value+1)},prevMorePage:function(){return z(s.value-e.foldedMaxPageBtn)},nextMorePage:function(){return z(s.value+e.foldedMaxPageBtn)}})[t]()},V=function(t){var n;if(!e.disabled){var r=parseInt(t,10),i=1;r>0&&(i=Math.ceil(e.total/r));var a=!1;s.value>i&&(a=!0);var o={current:a?i:s.value,previous:s.value,pageSize:r};null===(n=e.onChange)||void 0===n||n.call(e,o),d(r,o),a&&z(i,!1)}},H=function(e){var t=Math.trunc(+e);uB(t)||(R.value=t,z(t))};return function(){var t,n=e.total,r=e.pageSizeOptions,i=e.size,o=e.disabled,l=e.showPageSize;if(A.value<1)return null;var u,d=Na("div",{class:C.jumperClass.value},[h(p.value.jumpTo),Na(oB,{append:"/ ".concat(A.value," ").concat(h(p.value.page))},{default:function(){return[Na(wL,{class:C.jumperInputClass.value,modelValue:R.value,"onUpdate:modelValue":function(e){return R.value=e},onBlur:H,onEnter:H,max:A.value,min:1,size:i,disabled:o,theme:"normal",placeholder:""},null)]}})]);return Na("div",{class:C.paginationClass.value},[a("totalContent",Na("div",{class:C.totalClass.value},[h(p.value.total,{total:n})])),l&&r.length>0&&Na(iB,{size:i,value:c,disabled:o,class:C.sizerClass.value,autoWidth:!0,onChange:V},(u=t=N.value.map(function(e,t){return Na(aB,{value:e.value,label:e.label,key:t},null)}),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!Ea(u)?t:{default:function(){return[t]}})),e.showFirstAndLastPageBtn?Na("div",{class:C.preBtnClass.value,onClick:function(){return z(1)},disabled:e.disabled||1===e.current},[Na(g,null,null)]):null,e.showPreviousAndNextBtn?Na("div",{class:C.preBtnClass.value,onClick:function(){return B("prevPage")},disabled:o||1===s.value},[Na(b,null,null)]):null,e.showPageNumber&&"default"===e.theme?Na("ul",{class:C.btnWrapClass.value},[L.value&&j.value&&Na("li",{class:C.getButtonClass(1),onClick:function(){return z(1)}},[1]),L.value&&I.value&&j.value?Na("li",{class:C.btnMoreClass.value,onClick:function(){return B("prevMorePage")},onMouseOver:function(){return O.value=!0},onMouseOut:function(){return O.value=!1}},[O.value?Na(x,null,null):Na(_,null,null)]):null,F.value.map(function(e){return Na("li",{class:C.getButtonClass(e),key:e,onClick:function(){return z(e)}},[e])}),L.value&&M.value&&j.value?Na("li",{class:C.btnMoreClass.value,onClick:function(){return B("nextMorePage")},onMouseOver:function(){return E.value=!0},onMouseOut:function(){return E.value=!1}},[E.value?Na(S,null,null):Na(_,null,null)]):null,L.value&&j.value?Na("li",{class:C.getButtonClass(A.value),onClick:function(){return z(A.value)}},[A.value]):null]):null,"simple"===e.theme&&d,e.showPreviousAndNextBtn?Na("div",{class:C.nextBtnClass.value,onClick:function(){return B("nextPage")},disabled:o||s.value===A.value},[Na(w,null,null)]):null,e.showFirstAndLastPageBtn?Na("div",{class:C.nextBtnClass.value,onClick:function(){return z(A.value)},disabled:o||s.value===A.value},[Na(y,null,null)]):null,"default"===e.theme&&e.showJumper&&d])}}})),fB={current:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultCurrent:{type:[String,Number]},layout:{type:String,default:"horizontal",validator:function(e){return!e||["horizontal","vertical"].includes(e)}},options:{type:Array},readonly:Boolean,separator:{type:String,default:"line",validator:function(e){return!e||["line","dashed","arrow"].includes(e)}},sequence:{type:String,default:"positive",validator:function(e){return!e||["positive","reverse"].includes(e)}},theme:{type:String,default:"default",validator:function(e){return!e||["default","dot"].includes(e)}},onChange:Function},hB={content:{type:[String,Function],default:""},default:{type:[String,Function]},extra:{type:[String,Function]},icon:{type:[Boolean,Function],default:!0},status:{type:String,default:"default",validator:function(e){return!e||["default","process","finish","error"].includes(e)}},title:{type:[String,Function],default:""},value:{type:[String,Number]}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function pB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pB(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vB=yr({name:"TSteps",props:mB({},fB),setup:function(e){var t=wA("steps"),n=Ft(e),r=Ew(pD(n.current,n.modelValue,e.defaultCurrent,e.onChange,"current"),2),i=r[0],a=r[1];gi("StepsState",bt({current:i,setCurrent:a})),gi("StepsProps",e);var o=Et({});ea(function(){var t;e.options&&(null===(t=e.options)||void 0===t||t.forEach(function(e,t){void 0!==e.value&&(o.value[e.value]=t)}))});var s=function(t,n){if(t.status&&"default"!==t.status)return t.status;if("FINISH"===i.value)return"finish";if(void 0===t.value){if("positive"===e.sequence&&n<i.value)return"finish";if("reverse"===e.sequence&&n>i.value)return"finish"}if(void 0!==t.value){var r=o.value[i.value];if(void 0===r)return"default";if("positive"===e.sequence&&n<r)return"finish";if("reverse"===e.sequence&&n>r)return"finish"}return(void 0===t.value?n:t.value)===i.value?"process":"default"},l=sE(),u=function(){var t,n;null!==(t=e.options)&&void 0!==t&&t.length?n="reverse"===e.sequence?e.options.slice().reverse():e.options:n=function(t){var n=[];return null==t||t.forEach(function(t){var r=null==t?void 0:t.props,i=null==t?void 0:t.children;if(r||i){if(i&&nx(i))for(var a in i)a in hB&&!r[a]&&(r[a]=i[a]);"reverse"===e.sequence?n.unshift(r):n.push(r)}}),n}(l("StepItem"));return n},c=vo(function(){return[t.value,"".concat(t.value,"--").concat(e.layout),"".concat(t.value,"--").concat((n=e.theme,u().forEach(function(e){void 0!==(null==e?void 0:e.icon)&&(n="default")}),n),"-anchor"),"".concat(t.value,"--").concat(e.sequence),"".concat(t.value,"--").concat(e.separator,"-separator")];var n});return function(){return Na("div",{class:c.value},[(t=u(),n=l("StepItem"),t.map(function(r,i){var a="reverse"===e.sequence?t.length-i-1:i,o=Na(Vr("t-step-item"),Xa(r,{index:a,status:s(r,i),key:r.value||i}),null);if(n&&n[i]){var l=n[i];return l.props=mB(mB({},r),{},{index:a,status:s(r,i)}),l}return o}))]);var t,n}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function gB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gB(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bB=yr({name:"TStepItem",props:yB(yB({},hB),{},{index:Number}),setup:function(e){var t=yi("StepsState",void 0),n=yi("StepsProps",void 0),r=bA("steps").globalConfig,i=kE({CheckIcon:xI,CloseIcon:rP}),a=i.CheckIcon,o=i.CloseIcon,s=vo(function(){return"process"!==e.status&&!(null!=n&&n.readonly)}),l=function(n){if(s.value){var r=void 0===e.value?e.index:e.value;t.setCurrent(r,t.current,{e:n})}},u=wA("steps-item"),c=vo(function(){return Pw({},"".concat(u.value,"--").concat(e.status),e.status)}),d=vo(function(){return[u.value,c.value]}),f=vo(function(){return["".concat(u.value,"__icon"),c.value]}),h=LO(),p=jO(),m=function(){var t;if("default"===n.theme){var i="";switch(e.status){case"finish":i=Na(a,null,null);break;case"error":i=ox(r.value.errorIcon)?r.value.errorIcon(go):Na(o,null,null);break;default:i=String(e.index+1)}t=Na("span",{class:"".concat(u.value,"__icon--number")},[i])}return h("icon",t)};return function(){return Na("div",{class:d.value},[Na("div",{class:"".concat(u.value,"__inner ").concat(s.value?"".concat(u.value,"--clickable"):""),onClick:l},[Na("div",{class:f.value},[m()]),Na("div",{class:"".concat(u.value,"__content")},[Na("div",{class:"".concat(u.value,"__title")},[h("title")]),Na("div",{class:"".concat(u.value,"__description")},[p("default","content")]),Na("div",{class:"".concat(u.value,"__extra")},[h("extra")])])])])}}}),wB=AO(vB),xB=AO(bB);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function SB(e){var t=e.value,n=e.multiple,r=e.treeStore,i=e.showAllLevels;if(n||!t)return"";if(Array.isArray(t))return"";var a=r&&r.getNodes(t);if(!a||!a.length)return t;var o=a&&a[0].getPath();return o&&o.length?i?o.map(function(e){return e.label}).join(" / "):o[o.length-1].label:t}function _B(e){var t=[];return e.forEach(function(e){t[e.level]?t[e.level].push(e):t[e.level]=[e]}),t}function kB(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";return null==e?void 0:e.getPath().map(function(e){return e.label}).join(t)}var AB=function(e){var t=[];return Array.isArray(e)?e.length>0&&"object"===zw(e[0])?t=e.map(function(e){return e.value}):e.length&&(t=e):e&&(t="object"===zw(e)?[e.value]:[e]),t};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function CB(e,t,n){var r=n.disabled;return["".concat(e,"-cascader__icon"),Pw({},t.disabled,r)]}function TB(e,t,n){var r,i=n.checkStrictly,a=n.multiple,o=n.value,s=n.max,l=!i&&e.expanded&&(!a||!e.isLeaf())||i&&e.expanded,u=e.isLeaf(),c=e.disabled||a&&o.length>=s&&0!==s,d=e.checked||a&&!i&&e.expanded&&!u;return[(r={},Pw(r,t.selected,!c&&d),Pw(r,t.expanded,!c&&l),Pw(r,t.disabled,c),r)]}var OB=yr({name:"TCascaderItem",props:{node:{type:Object,default:function(){return{}}},cascaderContext:{type:Object},onChange:Function,onClick:Function,onMouseenter:Function},setup:function(e){var t=Et();MO(t);var n=wA("cascader__item"),r=wA(),i=kE({ChevronRightIcon:XI}).ChevronRightIcon,a=xA(),o=a.STATUS,s=a.SIZE,l=vo(function(){return function(e,t,n,r,i){var a,o=i.size;return["".concat(e,"-cascader__item")].concat(Iw(TB(t,r,i)),[n[o],(a={},Pw(a,"".concat(e,"-cascader__item--with-icon"),!!t.children),Pw(a,"".concat(e,"-cascader__item--leaf"),t.isLeaf()),a)])}(r.value,e.node,s.value,o.value,e.cascaderContext)}),u=vo(function(){return function(e,t,n,r){return["".concat(e,"-cascader__item-icon"),"".concat(e,"-icon")].concat(Iw(TB(t,n,r)))}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */(r.value,e.node,o.value,e.cascaderContext)});function c(e,t){var r=t.inputVal,i=r?kB(e):e.label;if(r){for(var a=i.split(r),o=[],s=0;s<a.length&&(o.push(Na("span",{key:s},[a[s]])),s!==a.length-1);s++)o.push(Na("span",{key:"".concat(s,"filter"),class:"".concat(n.value,"-label--filter")},[r]));return o}return i}function d(e,t){var r=c(e,t);return Na("span",{title:t.inputVal?kB(e):e.label,class:["".concat(n.value,"-label"),"".concat(n.value,"-label--ellipsis")],role:"label"},[r])}function f(t,n){var r,i=n.checkProps,a=n.value,o=n.max,s=n.inputVal,l=c(t,n);return Na(Dz,Xa({checked:t.checked,indeterminate:t.indeterminate,disabled:t.isDisabled()||a.length>=o&&0!==o,name:String(t.value),stopLabelTrigger:!0,title:s?kB(t):t.label,onChange:function(){e.onChange()}},i),"function"==typeof(r=l)||"[object Object]"===Object.prototype.toString.call(r)&&!Ea(r)?l:{default:function(){return[l]}})}return function(){var n=e.cascaderContext,r=e.node;return Na("li",{ref:t,class:l.value,onClick:function(t){t.stopPropagation(),e.onClick()},onMouseenter:function(t){t.stopPropagation(),e.onMouseenter()}},[n.multiple?f(r,n):d(r,n),r.children&&(r.loading?Na(CO,{class:u.value,size:"small"},null):Na(i,{class:u.value},null))])}}}),IB={checkProps:{type:Object},checkStrictly:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},keys:{type:Object},lazy:{type:Boolean,default:!0},load:{type:Function},loading:Boolean,loadingText:{type:[String,Function],default:""},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array,default:function(){return[]}},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},readonly:Boolean,selectInputProps:{type:Object},showAllLevels:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return!e||["large","medium","small"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},trigger:{type:String,default:"click",validator:function(e){return!e||["click","hover"].includes(e)}},value:{type:[String,Number,Array],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},defaultValue:{type:[String,Number,Array],default:function(){return[]}},valueMode:{type:String,default:"onlyLeaf",validator:function(e){return!e||["onlyLeaf","parentFirst","all"].includes(e)}},valueType:{type:String,default:"single",validator:function(e){return!e||["single","full"].includes(e)}},onBlur:Function,onChange:Function,onFocus:Function,onPopupVisibleChange:Function,onRemove:Function};var PB=yr({name:"TCascaderSubPanel",props:{empty:IB.empty,trigger:IB.trigger,onChange:IB.onChange,loading:IB.loading,loadingText:IB.loadingText,cascaderContext:{type:Object}},setup:function(e){var t=NO(),n=wA("cascader"),r=bA("cascader").globalConfig,i=vo(function(){return _B(e.cascaderContext.treeNodes)}),a=function(t,n){!
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e,t,n,r){var i=r.checkStrictly,a=r.multiple,o=r.treeStore,s=r.setVisible,l=r.setValue,u=r.setTreeNodes,c=r.setExpend,d=r.value,f=r.max,h=r.valueType;if(!(n.disabled||a&&d.length>=f&&0!==f)){if(e===t&&!n.isLeaf()){var p=n.setExpanded(!0);o.refreshNodes(),o.replaceExpanded(p),u(o.getNodes().filter(function(e){return e.visible})),a&&c(p)}if(!a&&(n.isLeaf()||i)&&"click"===t){o.resetChecked();var m=Ew(n.setChecked(!n.checked),1)[0];l("single"===h?m:n.getPath().map(function(e){return e.value}),"check",n.getModel()),i||s(!1,{})}}}(e.trigger,n,t,e.cascaderContext)},o=function(t){return Na(OB,{key:t.value,node:t,cascaderContext:e.cascaderContext,onClick:function(){a(t,"click")},onMouseenter:function(){a(t,"hover")},onChange:function(){!function(e,t){var n=t.disabled,r=t.max,i=t.inputVal,a=t.multiple,o=t.setVisible,s=t.setValue,l=t.treeNodes,u=t.treeStore,c=t.valueType;if(e&&!n&&!e.disabled){var d=e.setChecked(!e.isChecked());if(NR(r),!(d.length>r&&NR(r)&&r>0)){if(0===d.length){var f=u.getExpanded();setTimeout(function(){u.replaceExpanded(f),u.refreshNodes()},0)}a||o(!1,{});var h=l.every(function(e){return d.indexOf(e.value)>-1});i&&h&&o(!1,{}),s("single"===c?d:d.map(function(e){return u.getNode(e).getPath().map(function(e){return e.value})}),"check",e.getModel())}}}(t,e.cascaderContext)}},null)},s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1";return Na("ul",{class:["".concat(n.value,"__menu"),"narrow-scrollbar",(t={},Pw(t,"".concat(n.value,"__menu--segment"),i),Pw(t,"".concat(n.value,"__menu--filter"),r),t)],key:a},[e.map(function(e){return o(e)})])};return function(){var a,o,l,u;return a=e.loading?t("loadingText",Na("div",{class:"".concat(n.value,"__panel--empty")},[r.value.loadingText])):i.value.length?(o=e.cascaderContext,l=o.inputVal,u=o.treeNodes,l?s(u,!0):i.value.map(function(e,t){return s(e,!1,t!==i.value.length-1,"".concat(n.value,"__menu").concat(t))})):t("empty",Na("div",{class:"".concat(n.value,"__panel--empty")},[r.value.empty])),Na("div",{class:["".concat(n.value,"__panel"),Pw({},"".concat(n.value,"--normal"),i.value.length&&!e.loading)]},[a])}}});var EB=dz,MB=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},DB=yz;var RB=function(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new EB:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=o?r(m,p,d,t,e,a):r(p,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!MB(t,function(e,t){if(!DB(h,t)&&(p===e||i(p,e,n,r,a)))return h.push(t)})){f=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var LB=S_,NB=Tx,jB=RB,FB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},zB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},BB=Uw?Uw.prototype:void 0,VB=BB?BB.valueOf:void 0;var HB=function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new LB(e),new LB(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return NB(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=FB;case"[object Set]":var l=1&r;if(s||(s=zB),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=jB(s(e),s(t),r,i,a,o);return o.delete(e),c;case"[object Symbol]":if(VB)return VB.call(e)==VB.call(t)}return!1},WB=FN,UB=Object.prototype.hasOwnProperty;var XB=w_,GB=RB,YB=HB,KB=function(e,t,n,r,i,a){var o=1&n,s=WB(e),l=s.length;if(l!=WB(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:UB.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=o?r(v,m,c,t,e,a):r(m,v,c,e,t,a);if(!(void 0===g?m===v||i(m,v,n,r,a):g)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h},qB=bC,ZB=r_,JB=TS.exports,QB=zS,$B="[object Arguments]",eV="[object Array]",tV="[object Object]",nV=Object.prototype.hasOwnProperty;var rV=function(e,t,n,r,i,a){var o=ZB(e),s=ZB(t),l=o?eV:qB(e),u=s?eV:qB(t),c=(l=l==$B?tV:l)==tV,d=(u=u==$B?tV:u)==tV,f=l==u;if(f&&JB(e)){if(!JB(t))return!1;o=!0,c=!1}if(f&&!c)return a||(a=new XB),o||QB(e)?GB(e,t,n,r,i,a):YB(e,t,l,n,r,i,a);if(!(1&n)){var h=c&&nV.call(e,"__wrapped__"),p=d&&nV.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return a||(a=new XB),i(m,v,n,r,a)}}return!!f&&(a||(a=new XB),KB(e,t,n,r,i,a))},iV=SS;var aV=function e(t,n,r,i,a){return t===n||(null==t||null==n||!iV(t)&&!iV(n)?t!=t&&n!=n:rV(t,n,r,i,e,a))},oV=dz,sV=vz,lV=gz,uV=PC,cV=_S,dV=yz;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var fV=function(e,t,n,r){var i=-1,a=sV,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=uV(t,cV(n))),r?(a=lV,o=!1):t.length>=200&&(a=dV,o=!1,t=new oV(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,o&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,r)||l.push(c)}return l};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var hV=function(e){return null==e};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vV(e){return xN(e,["value","label","data","actived","expanded","checked","indeterminate","loading"])}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var gV=VC,yV=0;var bV=function(e){var t=++yV;return gV(e)+t};function wV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SV=Object.prototype.hasOwnProperty,_V={expandMutex:!1,activable:!1,checkable:!1,disabled:!1,draggable:!1,loading:!1},kV=function(){function e(t,n,r){DD(this,e),Pw(this,"tree",void 0),Pw(this,"value",void 0),Pw(this,"label",void 0),Pw(this,"data",void 0),Pw(this,"parent",void 0),Pw(this,"children",void 0),Pw(this,"model",void 0),Pw(this,"vmIsLeaf",void 0),Pw(this,"vmIsFirst",void 0),Pw(this,"vmIsLast",void 0),Pw(this,"vmIsRest",void 0),Pw(this,"vmIsLocked",void 0),Pw(this,"expanded",void 0),Pw(this,"expandMutex",void 0),Pw(this,"actived",void 0),Pw(this,"activable",void 0),Pw(this,"checkable",void 0),Pw(this,"vmCheckable",void 0),Pw(this,"checked",void 0),Pw(this,"indeterminate",void 0),Pw(this,"disabled",void 0),Pw(this,"draggable",void 0),Pw(this,"visible",void 0),Pw(this,"level",void 0),Pw(this,"loading",void 0),this.data=n,this.tree=t;var i=t.config||{},a=i.prefix||"t",o=fF(t,"config.keys")||{},s=o.children||"children",l=o.label||"label",u=o.value||"value";this.model=null,this.children=null,this.vmCheckable=!1,this.vmIsLeaf=!1,this.vmIsFirst=!1,this.vmIsLast=!1,this.vmIsRest=!0,this.vmIsLocked=!1;var c=xV(xV({},_V),{},{actived:!1,expanded:!1,checked:!1},n),d=c[s];this.set(c),this.label=c[l]||"",this.value=hV(c[u])?bV(a):c[u],this.tree.nodeMap.set(this.value,this),this.parent=r&&r instanceof e?r:null,!0===d&&(this.children=d),this.level=0,this.visible=!0,this.actived=c.actived,this.initActived(),this.expanded=c.expanded,this.initExpanded(),this.checked=c.checked,this.initChecked(),this.update(),t.reflow(this),Array.isArray(d)?this.append(d):!0!==d||i.lazy||this.loadChildren(),this.checked=!1,this.indeterminate=!1,this.updateChecked()}var t;return RD(e,[{key:"initChecked",value:function(){var e=this.tree,t=this.value,n=this.parent,r=e.config.checkStrictly,i=this.checked;(i=null==n?void 0:n.isChecked())&&!r&&e.checkedMap.set(t,!0),this.checked=i}},{key:"initExpanded",value:function(){var e=this.tree,t=this.expanded,n=e.config;"number"==typeof n.expandLevel&&this.getLevel()<n.expandLevel&&(e.expandedMap.set(this.value,!0),t=!0),n.expandAll&&(t=!0),!0===this.children&&n.lazy&&(t=!1),t?e.expandedMap.set(this.value,!0):e.expandedMap.delete(this.value),this.expanded=t}},{key:"initActived",value:function(){var e=this.tree;this.actived&&e.activedMap.set(this.value,!0)}},{key:"append",value:function(t){var n=this,r=[];if(Array.isArray(t)?r.push.apply(r,Iw(t)):r.push(t),!(r.length<=0)){Array.isArray(this.children)||(this.children=[]);var i=this.children,a=this.tree;r.forEach(function(t){var r=null;t instanceof e?(r=t).appendTo(n.tree,n):(r=new e(n.tree,t,n),i.push(r))}),a.reflow(this),this.updateRelated()}}},{key:"appendTo",value:function(t,n,r){var i=this,a=n;if(!((null==a?void 0:a.getParents())||[]).some(function(e){return e.value===i.value})){if(Array.isArray(null==a?void 0:a.children)){var o=0;"number"==typeof r&&(o=r);var s=null==a?void 0:a.children[o];if((null==s?void 0:s.value)===this.value)return}this.remove(),this.parent=a;var l=null;a instanceof e?(Array.isArray(null==a?void 0:a.children)||(a.children=[]),l=n.children):l=t.children,Array.isArray(l)&&("number"==typeof r?l.splice(r,0,this):l.push(this)),this.walk().forEach(function(e){var n=e;n.tree=t,t.nodeMap.set(n.value,n),n.expanded&&t.expandedMap.set(n.value,!0)}),((null==a?void 0:a.walk())||t.children.map(function(e){return e.walk()}).flat()).forEach(function(e){e.update(),e.updateChecked()}),t.reflow()}}},{key:"insert",value:function(t,n){var r=this.tree,i=this.parent,a=this.getSiblings(),o=null;t instanceof e?(o=t).appendTo(r,i,n):t&&(o=new e(r,t,i),"number"==typeof n&&a.splice(n,0,o),a.forEach(function(e){e.update()})),r.reflow()}},{key:"insertBefore",value:function(e){var t=this.getIndex();this.insert(e,t)}},{key:"insertAfter",value:function(e){var t=this.getIndex();this.insert(e,t+1)}},{key:"remove",value:function(){var e=this.tree,t=this.walk(),n=this.getSiblings(),r=this.getIndex();Array.isArray(n)&&n.splice(r,1),t.forEach(function(e){e.clean()}),n.forEach(function(e){e.update()}),this.updateParents(),e.reflow()}},{key:"clean",value:function(){var e=this.tree,t=this.value;e.activedMap.delete(t),e.checkedMap.delete(t),e.expandedMap.delete(t),e.nodeMap.delete(t)}},{key:"loadChildren",value:(t=fE(vE.mark(function e(){var t,n;return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=fF(this,"tree.config")||{},!0!==this.children||this.loading){e.next=13;break}if("function"!=typeof t.load){e.next=13;break}return this.loading=!0,this.update(),n=[],e.next=8,t.load(this);case 8:n=e.sent,this.tree.emit("load",{node:this,data:n}),this.loading=!1,Array.isArray(n)&&n.length>0?this.append(n):this.children=!1,this.update();case 13:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"set",value:function(e){var t=this,n=this.tree;Object.keys(e).forEach(function(n){(SV.call(_V,n)||"label"===n)&&(t[n]=e[n])}),n.updated(this)}},{key:"getParent",value:function(){return this.parent}},{key:"getParents",value:function(){for(var e=[],t=this.parent;t;)e.push(t),t=t.parent;return e}},{key:"getSiblings",value:function(){var e=this.parent,t=this.tree,n=[];return e?Array.isArray(e.children)&&(n=e.children):t&&(n=t.children),n}},{key:"getRoot",value:function(){var e=this.getParents();return e[e.length-1]||null}},{key:"getIndex",value:function(){return this.getSiblings().indexOf(this)}},{key:"getPath",value:function(){var e=this.getParents();return e.unshift(this),e.reverse()}},{key:"getLevel",value:function(){return this.getParents().length}},{key:"isRest",value:function(){var e=this.tree,t=e.config,n=e.filterMap,r=!0;if("function"==typeof t.filter){var i=this.getModel();r=t.filter(i)}return r?n.set(this.value,!0):n.get(this.value)&&n.delete(this.value),r}},{key:"isVisible",value:function(){var e=this.tree.nodeMap,t=!0;if(this.vmIsLocked)return!0;if(e.get(this.value)){var n=this.isRest(),r=!0,i=this.getParents();i.length>0&&(r=i.every(function(e){return e.isExpanded()})),t=r&&n}else t=!1;return t}},{key:"isDisabled",value:function(){return!!this.vmIsLocked||!(!fF(this,"tree.config.disabled")&&!this.disabled)}},{key:"isDraggable",value:function(){return!(!fF(this,"tree.config.draggable")&&!this.draggable)}},{key:"isExpandMutex",value:function(){return!(!fF(this,"tree.config.expandMutex")&&!this.expandMutex)}},{key:"isActivable",value:function(){return!(!fF(this,"tree.config.activable")&&!this.activable)}},{key:"isCheckable",value:function(){return!(!fF(this,"tree.config.checkable")&&!this.checkable)}},{key:"isActived",value:function(e){var t=this.tree,n=this.value,r=e||t.activedMap;return!(!t.nodeMap.get(n)||!r.get(n))}},{key:"isExpanded",value:function(e){var t=this.tree,n=this.value;if(this.vmIsLocked)return!0;var r=e||t.expandedMap;return!(!t.nodeMap.get(n)||!r.get(n))}},{key:"isChecked",value:function(e){var t=this.children,n=this.tree,r=n.config.checkStrictly,i=!1,a=e||n.checkedMap;if(n.nodeMap.get(this.value))if(a.get(this.value))i=!0;else if(Array.isArray(t)&&t.length>0&&!r)i=t.every(function(e){return e.isChecked(a)});else if(!r){i=this.getParents().some(function(e){return a.get(e.value)})}return!!i}},{key:"isIndeterminate",value:function(){var e=this.children;if(this.tree.config.checkStrictly)return!1;var t=!1;if(Array.isArray(e)){var n=null;t=e.some(function(e){return!!e.isIndeterminate()||(null===n&&(n=e.isChecked()),n!==e.isChecked())})}return t}},{key:"isFirst",value:function(){return this.getSiblings()[0]===this}},{key:"isLast",value:function(){var e=this.getSiblings();return e[e.length-1]===this}},{key:"isLeaf",value:function(){return Array.isArray(this.children)?this.children.length<=0:!this.children}},{key:"lock",value:function(e){this.vmIsLocked=e,this.expanded=this.isExpanded(),this.visible=this.isVisible()}},{key:"afterExpanded",value:function(){this.update(),this.expanded&&!0===this.children&&this.loadChildren()}},{key:"toggleExpanded",value:function(){return this.setExpanded(!this.isExpanded())}},{key:"setExpanded",value:function(e,t){var n=this.tree,r=xV({directly:!1},t),i=n.expandedMap;if(r.directly||(i=new Map(n.expandedMap)),e){var a=[];a.push(this),fF(n,"config.expandParent")&&this.getParents().forEach(function(e){a.push(e)}),a.forEach(function(e){var t,r=!1;e.parent?r=e.parent.isExpandMutex():r=null==n||null===(t=n.config)||void 0===t?void 0:t.expandMutex;r&&e.getSiblings().forEach(function(e){i.delete(e.value)});i.set(e.value,!0)})}else i.delete(this.value);return r.directly&&(this.afterExpanded(),this.update(),this.updateChildren()),n.getExpanded(i)}},{key:"toggleActived",value:function(){return this.setActived(!this.isActived())}},{key:"setActived",value:function(e,t){var n=this.tree,r=xV({directly:!1},t),i=n.config||{},a=n.activedMap;return r.directly||(a=new Map(n.activedMap)),this.isActivable()&&(e?(i.activeMultiple||a.clear(),a.set(this.value,!0)):a.delete(this.value)),r.directly&&this.update(),n.getActived(a)}},{key:"toggleChecked",value:function(){return this.setChecked(!this.isChecked())}},{key:"setChecked",value:function(e,t){var n=this.tree,r=n.config||{},i=xV({directly:!1},t),a=n.checkedMap;(i.directly||(a=new Map(n.checkedMap)),this.isCheckable()&&e!==this.isChecked())&&(r.checkStrictly?e?a.set(this.value,!0):a.delete(this.value):(this.walk().forEach(function(t){e?a.set(t.value,!0):a.delete(t.value)}),this.getParents().forEach(function(e){a.delete(e.value)})));i.directly&&(r.checkStrictly?this.updateChecked():n.getRelatedNodes([this.value]).forEach(function(e){e.updateChecked()}));return n.getChecked(a)}},{key:"update",value:function(){this.level=this.getLevel(),this.actived=this.isActived(),this.expanded=this.isExpanded(),this.vmCheckable=this.isCheckable(),this.visible=this.isVisible(),this.vmIsRest=this.isRest(),this.vmIsFirst=this.isFirst(),this.vmIsLast=this.isLast(),this.vmIsLeaf=this.isLeaf(),this.tree.updated(this)}},{key:"updateChecked",value:function(e){var t=this.tree;this.vmCheckable=this.isCheckable(),!this.vmCheckable||this.disabled&&!e||(this.checked=this.isChecked(),this.checked&&t.checkedMap.set(this.value,!0),this.indeterminate=this.isIndeterminate(),t.updated(this))}},{key:"updateChildren",value:function(){var e=this.children;Array.isArray(e)&&e.forEach(function(e){e.update(),e.updateChecked(),e.updateChildren()})}},{key:"updateParents",value:function(){var e=this.parent;e&&(e.update(),e.updateChecked(),e.updateParents())}},{key:"updateRelated",value:function(){var e=this.tree;e.getRelatedNodes([this.value]).forEach(function(e){e.update(),e.updateChecked()}),e.reflow()}},{key:"walk",value:function(){var e=this.children,t=[];return t.push(this),Array.isArray(e)&&e.length>0&&e.forEach(function(e){t=t.concat(e.walk())}),t}},{key:"getModel",value:function(){var e,t=this.model;return t||(t=mV(mV({},vV(e=this)),{},{getLevel:function(){return e.getLevel()},getIndex:function(){return e.getIndex()},isFirst:function(){return e.isFirst()},isLast:function(){return e.isLast()},isLeaf:function(){return e.isLeaf()},insertBefore:function(t){return e.insertBefore(t)},insertAfter:function(t){return e.insertAfter(t)},appendData:function(t){return e.append(t)},getPath:function(){return e.getPath().map(function(e){return e.getModel()})},getParent:function(){var t;return null===(t=e.parent)||void 0===t?void 0:t.getModel()},getParents:function(){return e.getParents().map(function(e){return e.getModel()})},getRoot:function(){var t=e.getRoot();return null==t?void 0:t.getModel()},getSiblings:function(){return e.getSiblings().map(function(e){return e.getModel()})},getChildren:function(t){var n=!1,r=e.children;if(Array.isArray(r))if(r.length>0)if(t){var i=e.walk();i.shift(),n=i.map(function(e){return e.getModel()})}else n=r.map(function(e){return e.getModel()});else n=!1;else"boolean"==typeof r&&(n=r);return n},remove:function(t){if(t){var n=e.tree.getNode(t);n?n.getParents().map(function(e){return e.value}).indexOf(e.value)<0?jD("Tree","`".concat(t,"` is not a childNode of current node")):n.remove():jD("Tree","`".concat(t,"` is not exist"))}else e.remove()},setData:function(t){var n=ez(t,["children","value","label"]),r=e.tree.config.keys,i=t[(null==r?void 0:r.value)||"value"],a=t[(null==r?void 0:r.label)||"label"];void 0!==i&&(n.value=i),void 0!==a&&(n.label=a),Object.assign(e.data,n),Object.assign(e,n)}}),this.model=t),function(e,t){var n=vV(t);Object.assign(e,n)}(t,this),t}}]),e}(),AV=fV,CV=uN,TV=pk,OV=yk(function(e,t){return TV(e)?AV(e,CV(t,1,TV,!0)):[]});function IV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var EV=function(){function e(t){DD(this,e),Pw(this,"children",void 0),Pw(this,"nodes",void 0),Pw(this,"nodeMap",void 0),Pw(this,"config",void 0),Pw(this,"activedMap",void 0),Pw(this,"updatedMap",void 0),Pw(this,"checkedMap",void 0),Pw(this,"expandedMap",void 0),Pw(this,"filterMap",void 0),Pw(this,"updateTimer",void 0),Pw(this,"shouldReflow",void 0),Pw(this,"prevFilter",void 0),Pw(this,"nullNodeModel",void 0);var n=PV({prefix:"t",keys:{},expandAll:!1,expandLevel:0,expandMutex:!1,expandParent:!1,activable:!1,activeMultiple:!1,checkable:!1,checkStrictly:!1,disabled:!1,draggable:!1,load:null,lazy:!1,valueMode:"onlyLeaf",filter:null,onLoad:null,onReflow:null,onUpdate:null,allowFoldNodeOnFilter:!1},t);this.config=n,this.nodes=[],this.children=[],this.nodeMap=new Map,this.activedMap=new Map,this.expandedMap=new Map,this.checkedMap=new Map,this.updatedMap=new Map,this.filterMap=new Map,this.prevFilter=null,this.updateTimer=null,this.shouldReflow=!1,this.initNullNodeModel()}return RD(e,[{key:"initNullNodeModel",value:function(){var e=new kV(this,{value:"",label:"",children:[]});this.nullNodeModel=e.getModel(),e.remove()}},{key:"setConfig",value:function(e){var t=this,n=!1;Object.keys(e).forEach(function(r){var i=e[r];i!==t.config[r]&&(n=!0,t.config[r]=i)}),n&&this.refreshState()}},{key:"getChildren",value:function(){return this.children}},{key:"getNode",value:function(e){var t=null;return"string"==typeof e||"number"==typeof e?t=this.nodeMap.get(e):e instanceof kV&&(t=this.nodeMap.get(e.value)),t}},{key:"getIndex",value:function(e){return this.nodes.indexOf(e)}},{key:"getParent",value:function(e){var t=null,n=this.getNode(e);return n&&(t=n.getParent()),t}},{key:"getParents",value:function(e){var t=this.getNode(e),n=[];return t&&(n=t.getParents()),n}},{key:"getNodeIndex",value:function(e){var t=this.getNode(e),n=-1;return t&&(n=t.getIndex()),n}},{key:"getNodes",value:function(e,t){var n=[],r="";if("string"==typeof e||"number"==typeof e?r=e:e instanceof kV&&(r=e.value),r){var i=this.getNode(r);i&&(n=i.walk())}else n=this.nodes.slice(0);if(t){var a=PV({filter:null,level:1/0},t);"number"==typeof a.level&&a.level!==1/0&&(n=n.filter(function(e){return e.level<=a.level})),"function"==typeof a.filter&&(n=n.filter(function(e){var t=e.getModel();return a.filter(t)})),Tk(a.props)&&(n=n.filter(function(e){return Object.keys(a.props).every(function(t){return e[t]===a.props[t]})}))}return n}},{key:"append",value:function(e){var t=this;e.forEach(function(e){var n=new kV(t,e);t.children.push(n)}),this.reflow()}},{key:"reload",value:function(e){this.expandedMap.clear(),this.checkedMap.clear(),this.activedMap.clear(),this.filterMap.clear(),this.removeAll(),this.append(e)}},{key:"parseNodeData",value:function(e,t){var n="",r=null,i=null;return"string"==typeof e||"number"==typeof e?(n=e,i=t,r=this.getNode(n)):e instanceof kV?(r=e,i=t):i=e,{node:r,data:i}}},{key:"appendNodes",value:function(e,t){var n=this.parseNodeData(e,t);n.data&&(n.node?(n.data instanceof kV?n.data.appendTo(this,n.node):Array.isArray(n.data)?n.node.append(n.data):n.node.append([n.data]),n.node.updateRelated()):n.data instanceof kV?n.data.appendTo(this):Array.isArray(n.data)?this.append(n.data):this.append([n.data]))}},{key:"insertBefore",value:function(e,t){var n=this.getNode(e);n&&n.insertBefore(t)}},{key:"insertAfter",value:function(e,t){var n=this.getNode(e);n&&n.insertAfter(t)}},{key:"refreshNodes",value:function(){var e=this.children,t=this.nodes;t.length=0,e.forEach(function(e){var n=e.walk();Array.prototype.push.apply(t,n)})}},{key:"refreshState",value:function(){this.nodes.forEach(function(e){e.update(),e.updateChecked()})}},{key:"reflow",value:function(e){this.shouldReflow=!0,this.updated(e)}},{key:"updated",value:function(e){var t=this;null!=e&&e.value&&this.updatedMap.set(e.value,!0),this.updateTimer||(this.updateTimer=+setTimeout(function(){var e;clearTimeout(t.updateTimer),t.updateTimer=null,t.shouldReflow&&(t.refreshNodes(),t.emit("reflow")),null!==(e=t.config)&&void 0!==e&&e.allowFoldNodeOnFilter||t.lockFilterPathNodes();var n=Array.from(t.updatedMap.keys());if(n.length>0){var r=n.map(function(e){return t.getNode(e)});t.emit("update",{nodes:r,map:t.updatedMap})}else t.shouldReflow&&t.emit("update",{nodes:[],map:t.updatedMap});t.shouldReflow=!1,t.updatedMap.clear()}))}},{key:"getActived",value:function(e){var t=e||this.activedMap;return Array.from(t.keys())}},{key:"getActivedNodes",value:function(e){var t=this.getNodes(e);return t=t.filter(function(e){return e.isActived()})}},{key:"replaceActived",value:function(e){this.resetActived(),this.setActived(e)}},{key:"setActived",value:function(e){var t=this,n=this.config.activeMultiple,r=e.slice(0);n||(r.length=1),r.forEach(function(e){t.activedMap.set(e,!0);var n=t.getNode(e);n&&n.update()})}},{key:"resetActived",value:function(){var e=this.getActived();this.activedMap.clear(),this.getRelatedNodes(e).forEach(function(e){e.update()})}},{key:"getExpanded",value:function(e){var t=e||this.expandedMap;return Array.from(t.keys())}},{key:"replaceExpanded",value:function(e){var t=this.getExpanded(),n=OV(e,t),r=OV(t,e);this.setExpandedDirectly(r,!1),this.updateExpanded(r),this.setExpanded(n)}},{key:"setExpanded",value:function(e){this.setExpandedDirectly(e),this.updateExpanded(e)}},{key:"setExpandedDirectly",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.forEach(function(e){if(n){t.expandedMap.set(e,!0);var r=t.getNode(e);r&&r.afterExpanded()}else t.expandedMap.delete(e)})}},{key:"resetExpanded",value:function(){var e=this.getExpanded();this.expandedMap.clear(),this.updateExpanded(e)}},{key:"updateExpanded",value:function(e){this.getRelatedNodes(e,{withParents:!1}).forEach(function(e){e.update()})}},{key:"getChecked",value:function(e){var t=this.nodes,n=this.config,r=n.valueMode,i=n.checkStrictly,a=[],o=e||this.checkedMap;return t.forEach(function(e){e.isChecked(o)&&("parentFirst"!==r||i?("onlyLeaf"!==r||i||e.isLeaf())&&a.push(e.value):e.parent&&e.parent.isChecked(o)||a.push(e.value))}),a}},{key:"getCheckedNodes",value:function(e){var t=this.getNodes(e);return t=t.filter(function(e){return e.isChecked()})}},{key:"replaceChecked",value:function(e){this.resetChecked(),this.setChecked(e,!0)}},{key:"setChecked",value:function(e,t){var n=this,r=this.config,i=r.valueMode,a=r.checkStrictly;if(r.checkable&&(e.forEach(function(e){var r=n.getNode(e);r&&("parentFirst"!==i||a?(n.checkedMap.set(e,!0),r.updateChecked(t)):r.walk().forEach(function(e){n.checkedMap.set(e.value,!0)}))}),!a)){var o=this.getChecked();this.getRelatedNodes(o).forEach(function(e){e.updateChecked()})}}},{key:"resetChecked",value:function(){var e=this.getChecked(),t=this.getRelatedNodes(e);this.checkedMap.clear(),t.forEach(function(e){e.updateChecked()})}},{key:"updateAll",value:function(){this.getNodes().forEach(function(e){e.update()})}},{key:"remove",value:function(e){var t=this.getNode(e);t&&t.remove()}},{key:"removeAll",value:function(){this.getNodes().forEach(function(e){e.remove()})}},{key:"getRelatedNodes",value:function(e,t){var n=this,r=PV({withParents:!0},t),i=new Map;return e.forEach(function(e){if(!i.get(e)){var t=n.getNode(e);if(t){var a=t.getParents(),o=t.walk();(r.withParents?a.concat(o):o).forEach(function(e){i.set(e.value,e)})}}}),Array.from(i.values())}},{key:"emit",value:function(e,t){var n=(this.config||{})[sO("on-".concat(e))];"function"==typeof n&&n(t)}},{key:"lockFilterPathNodes",value:function(){var e=this,t=this.config,n=this.getNodes();this.prevFilter&&n.forEach(function(e){e.lock(!1)});var r=t.filter;if(r&&"function"==typeof r&&!r(this.nullNodeModel)){this.prevFilter=t.filter;var i=new Map;n.reverse().forEach(function(e){var t=e,n=t.getParent();t.vmIsRest&&(n&&(n.expanded=!0),t.visible=!0),(t.vmIsRest||i.get(t.value))&&n&&!n.vmIsRest&&i.set(n.value,!0)}),Array.from(i.keys()).forEach(function(t){var n=e.getNode(t);n&&n.lock(!0)})}}}]),e}(),MV=aV;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var DV=function(e,t){return MV(e,t)};function RV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NV=function(e){var t=DO(),n=Ft(e),r=n.value,i=n.modelValue,a=n.popupVisible,o=Ew(pD(r,i,e.defaultValue,e.onChange),2),s=o[0],l=o[1],u=Ew(zD(a,!1,e.onPopupVisibleChange,"popupVisible"),2),c=u[0],d=u[1],f=function(e,t,n,r){var i=bt({treeStore:null,inputVal:null,scopeVal:void 0,treeNodes:[],expend:[]});return{statusContext:i,cascaderContext:vo(function(){var a=e.size,o=e.checkStrictly,s=e.lazy,l=e.multiple,u=e.filterable,c=e.clearable,d=e.checkProps,f=e.max,h=e.disabled,p=e.showAllLevels,m=e.minCollapsedNum,v=e.valueType;return LV(LV({value:i.scopeVal,size:a,checkStrictly:o,lazy:s,multiple:l,filterable:u,clearable:c,checkProps:d,max:f,disabled:h,showAllLevels:p,minCollapsedNum:m,valueType:v,visible:n.value},i),{},{setTreeNodes:function(e){i.treeNodes=e},setValue:function(e,n,r){DV(e,i.scopeVal)||t(e,{source:n,node:r})},setVisible:r,setInputVal:function(e){i.inputVal=e},setExpend:function(e){i.expend=e}})})}}(e,l,c,d),h=f.cascaderContext,p=f.statusContext,m=vo(function(){return Boolean(e.filterable||ox(e.filter))}),v=function(){var t=h.value;!function(e,t,n,r){if(t){n(e?t.nodes.filter(function(t){if(t.isLeaf())return ox(r)?r("".concat(e),t):kB(t,"").indexOf("".concat(e))>-1}):t.getNodes().filter(function(e){return e.visible}))}}(t.inputVal,t.treeStore,t.setTreeNodes,e.filter)},g=function(){var e=h.value,t=e.value,n=e.treeStore;!function(e,t,n){var r=AB(t);if(e){if(Array.isArray(r)&&0===n.length){var i=new Map,a=Ew(r,1)[0];if(a){i.set(a,!0);var o=e.getNode(a);if(!o)return void e.refreshNodes();o.getParents().forEach(function(e){i.set(e.value,!0)});var s=Array.from(i.keys());e.replaceExpanded(s)}else e.resetExpanded()}e.getExpanded()&&n.length&&e.replaceExpanded(n),e.refreshNodes()}}(n,t,p.expend),n.replaceChecked(AB(t))};return ta(function(){return e.options},function(){var t=e.options,n=e.keys,r=void 0===n?{}:n,i=e.checkStrictly,a=e.lazy,o=e.load,s=e.valueMode,l=p.treeStore;if(t.length||l){if(l){if(DV(l.config.options,t))return;l.reload(t),l.refreshNodes()}else{var u=new EV({keys:LV(LV({},r),{},{children:"string"==typeof r.children?r.children:"children"}),checkable:!0,expandMutex:!0,expandParent:!0,lazy:a,load:o,valueMode:s,checkStrictly:i,onLoad:function(){fn(function(){u.refreshNodes(),v()})}});u.append(t),p.treeStore=u}g(),v()}},{immediate:!0}),ta(function(){var t=e.checkStrictly,n=e.lazy,r=e.load,i=e.valueMode;return JSON.stringify({valueMode:i,checkStrictly:t,lazy:n,load:r})},function(){var n=p.treeStore;if(n){var r=e.checkStrictly,i=e.lazy,a=e.load,o=e.valueMode,s={checkStrictly:r,disabled:t,load:a,lazy:i,valueMode:o};n.setConfig(s)}},{immediate:!0}),ta(s,function(){var e=h.value,t=e.setValue,n=e.multiple,r=e.valueType;!function(e,t){var n=t.multiple,r=t.showAllLevels;return n&&!Array.isArray(e)||!n&&Array.isArray(e)&&!r}(s.value,h.value)?p.scopeVal=n?[]:"":t(n?[]:"","invalid-value"),function(e){return!("number"==typeof e&&!isNaN(e))&&IC(e)}(s)||(p.scopeVal=function(e,t,n){return"single"===t?e:n?e.map(function(e){return e[e.length-1]}):e[e.length-1]}(s.value,r,n)),p.treeStore&&(g(),v())},{immediate:!0}),ta(function(){return c.value&&m.value},function(e){var t=h.value.setInputVal;e&&t("")}),ta(function(){return p.inputVal},function(){v()}),{cascaderContext:h,isFilterable:m}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function jV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zV=yr({name:"TCascader",props:FV({},IB),setup:function(e,t){var n=t.slots,r=DO(),i=wA("cascader"),a=wA(),o=xA().STATUS,s=wA("cascader__popup"),l=bA("cascader").globalConfig,u=NV(e),c=u.cascaderContext,d=u.isFilterable,f=vo(function(){return e.multiple?function(e){var t=e.value,n=e.multiple,r=e.treeStore,i=e.showAllLevels;return n?n&&!Array.isArray(t)?[]:r&&r.getNodes(t)?t.map(function(e){var t=r.getNodes(e);return i?kB(t[0]):t[0].label}).filter(function(e){return!!e}):[]:[]}(c.value):SB(c.value)}),h=vo(function(){return _B(c.value.treeNodes)}),p=vo(function(){var t;return c.value.visible&&!e.multiple&&SB(c.value)||(null!==(t=e.placeholder)&&void 0!==t?t:l.value.placeholder)});return function(){var t,l=c.value,u=l.setVisible,m=l.visible,v=l.inputVal,g=l.setInputVal;return Na(zF,Xa({class:i.value,value:f.value,inputValue:m?v:"",popupVisible:m,keys:e.keys,allowInput:d.value,"min-collapsed-num":e.minCollapsedNum,"collapsed-items":e.collapsedItems,readonly:e.readonly,disabled:e.disabled,clearable:e.clearable,placeholder:p.value,multiple:e.multiple,loading:e.loading,status:e.status,tips:e.tips,suffixIcon:function(){return function(){var e=c.value,t=e.visible,n=e.disabled;return Na(DR,{overlayClassName:CB(a.value,o.value,c.value),isActive:t,disabled:n},null)}()},popupProps:FV(FV({},e.popupProps),{},{overlayInnerStyle:h.value.length&&!e.loading?{width:"auto"}:"",overlayInnerClassName:[s.value,null===(t=e.popupProps)||void 0===t?void 0:t.overlayClassName]}),inputProps:FV({size:e.size},e.inputProps),tagInputProps:FV({size:e.size},e.tagInputProps),tagProps:FV({},e.tagProps),onInputChange:function(t,n){var r,i;d.value&&(g("".concat(t)),null==e||null===(r=e.selectInputProps)||void 0===r||null===(i=r.onInputChange)||void 0===i||i.call(r,t,n))},onTagChange:function(t,n){var r,i;"enter"!==n.trigger&&(!function(e,t,n){var r=e.disabled,i=e.setValue,a=e.value,o=e.valueType,s=e.treeStore;if(!r){var l=uF(a),u=l.splice(t,1),c=s.getNodes(u[0])[0];i(l,"uncheck",c.getModel());var d=c.setChecked(!c.isChecked());i("single"===o?d:d.map(function(e){return s.getNode(e).getPath().map(function(e){return e.value})}),"uncheck",c.getModel()),ox(n)&&n({value:d,node:c})}}(c.value,n.index,e.onRemove),null==e||null===(r=e.selectInputProps)||void 0===r||null===(i=r.onTagChange)||void 0===i||i.call(r,t,n))},onPopupVisibleChange:function(t,n){var i,a;r.value||(u(t,n),null==e||null===(i=e.selectInputProps)||void 0===i||null===(a=i.onPopupVisibleChange)||void 0===a||a.call(i,t,n))},onBlur:function(t,n){var r,i,a;null===(r=e.onBlur)||void 0===r||r.call(e,{value:c.value.value,e:n.e}),null==e||null===(i=e.selectInputProps)||void 0===i||null===(a=i.onBlur)||void 0===a||a.call(i,t,n)},onFocus:function(t,n){var r,i,a;null===(r=e.onFocus)||void 0===r||r.call(e,{value:c.value.value,e:n.e}),null==e||null===(i=e.selectInputProps)||void 0===i||null===(a=i.onFocus)||void 0===a||a.call(i,t,n)},onClear:function(t){var n,r;!function(e){var t=e.setVisible,n=e.multiple,r=e.setExpend,i=e.setValue;t(!1,{}),n&&r([]),i(n?[]:"","clear")}(c.value),null==e||null===(n=e.selectInputProps)||void 0===n||null===(r=n.onClear)||void 0===r||r.call(n,t)}},ez(e.selectInputProps,["onTagChange","onInputChange","onPopupVisibleChange","onBlur","onFocus","onClear"])),{panel:function(){return Na(PB,{empty:e.empty,visible:m,trigger:e.trigger,loading:e.loading,loadingText:e.loadingText,cascaderContext:c.value},{empty:n.empty,loadingText:n.loadingText})},collapsedItems:n.collapsedItems})}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function BV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var VV=yr({name:"TCascaderPanel",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BV(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},IB),setup:function(e,t){var n=t.slots,r=NV(e).cascaderContext;return function(){return Na(PB,{trigger:e.trigger,cascaderContext:r.value,empty:e.empty},{empty:n.empty})}}}),HV=AO(zV);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */AO(VV);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var WV={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,o=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:f,h:o,m:a,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x=function(e){return e instanceof A},S=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();w[a]&&(i=a),n&&(w[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},_=function(e,t){if(x(e))return e.clone();var n="object"==zw(t)?t:{};return n.date=e,n.args=arguments,new A(n)},k=y;k.l=S,k.i=x,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return _(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<_(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!k.u(t)||t,c=k.p(e),h=function(e,t){var i=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?h(1,0):h(31,11);case u:return r?h(1,v):h(0,v+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return h(r?g-w:g+(6-w),v);case s:case f:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=k.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[o]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[h](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,c){var f,h=this;r=Number(r);var p=k.p(c),m=function(e){var t=_(h);return k.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===s)return m(1);if(p===l)return m(7);var v=(f={},f[a]=t,f[o]=n,f[i]=e,f)[p]||1,g=this.$d.getTime()+r*v;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},d=function(e){return k.s(a%12||12,e,"0")},f=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:k.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(a),HH:k.s(a,2,"0"),h:d(1),hh:d(2),a:f(a,o,!0),A:f(a,o,!1),m:String(o),mm:k.s(o,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:i};return r.replace(m,function(e,t){return t||p[e]||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,h){var p,m=k.p(f),v=_(r),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=k.m(this,v);return b=(p={},p[d]=b/12,p[u]=b,p[c]=b/3,p[l]=(y-g)/6048e5,p[s]=(y-g)/864e5,p[o]=y/n,p[a]=y/t,p[i]=y/e,p)[m]||y,h?b:k.a(b)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=A.prototype;return _.prototype=C,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",u],["$y",d],["$D",f]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,A,_),e.$i=!0),_},_.locale=S,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=w[b],_.Ls=w,_.p={},_}()}(WV);var UV=WV.exports,XV={exports:{}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */!function(e){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var u=o[l],c=d[u],f=c&&c[0],h=c&&c[1];o[l]=h?{regex:f,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,u=e.slice(r),c=a.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],u=!0===o[3],c=l||u,d=o[2];u&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,h=new Date,p=o||(i||a?1:h.getDate()),m=i||h.getFullYear(),v=0;i&&!a||(v=a>0?a-1:h.getMonth());var g=s||0,y=l||0,b=u||0,w=c||0;return d?new Date(Date.UTC(m,v,p,g,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,v,p,g,y,b,w)):new Date(m,v,p,g,y,b,w)}catch(x){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,e)}}}()}(XV);var GV=XV.exports,YV=eR,KV=1/0;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var qV=function(e){return e?(e=YV(e))===KV||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},ZV=qV;var JV=function(e){var t=ZV(e),n=t%1;return t==t?n?t-n:t:0};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function QV(){return QV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QV.apply(this,arguments)}var $V={exports:{}};!function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(l?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(l?this.isAfter(o,r):!this.isBefore(o,r))}}}($V);var eH=$V.exports,tH={exports:{}};!function(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}(tH);var nH=tH.exports,rH={exports:{}};!function(e){e.exports=function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),l=i(o[n]),u=s||l.map(function(e){return e.slice(0,r)});if(!a)return u;var c=o.weekStart;return u.map(function(e,t){return u[(t+(c||0))%7]})},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),"months")},n.monthsShort=function(){return a(o(),"monthsShort","months",3)},n.weekdays=function(e){return a(o(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(o(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(o(),"weekdaysMin","weekdays",2,e)}}}(rH);var iH=rH.exports,aH={exports:{}};!function(e){var t,n;e.exports=(t="week",n="year",function(e,r,i){var a=r.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=i(this).startOf(n).add(1,n).date(r),o=i(this).endOf(t);if(a.isBefore(o))return 1}var s=i(this).startOf(n).date(r).startOf(t).subtract(1,"millisecond"),l=this.diff(s,t,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(aH);var oH=aH.exports,sH={exports:{}};!function(e){var t,n;e.exports=(t="month",n="quarter",function(e,r){var i=r.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=i.add;i.add=function(e,r){return e=Number(e),this.$utils().p(r)===n?this.add(3*e,t):a.bind(this)(e,r)};var o=i.startOf;i.startOf=function(e,r){var i=this.$utils(),a=!!i.u(r)||r;if(i.p(e)===n){var s=this.quarter()-1;return a?this.month(3*s).startOf(t).startOf("day"):this.month(3*s+2).endOf(t).endOf("day")}return o.bind(this)(e,r)}})}(sH);var lH=sH.exports,uH={exports:{}};!function(e){var t;e.exports=(t="day",function(e,n,r){var i=function(e){return e.add(4-e.isoWeekday(),t)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,a,o,s=i(this),l=(n=this.isoWeekYear(),o=4-(a=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,t));return s.diff(l,"week")+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}})}(uH);var cH=uH.exports,dH={exports:{}};!function(e){e.exports=function(e,t,n){var r=t.prototype,i=r.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},r.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return i.bind(this)(e);var r=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return i.bind(this)(a)}}}(dH);var fH=dH.exports,hH=HC,pH=Mk,mH=JV,vH=Math.ceil,gH=Math.max;var yH=function(e,t,n){t=(n?pH(e,t,n):void 0===t)?1:gH(mH(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,o=Array(vH(r/t));i<r;)o[a++]=hH(e,i,i+=t);return o};function bH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bH(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xH(e){var t=e.year,n=e.month;return new Date(t,n+1,0).getDate()}function SH(e,t){return e.getFullYear()===t.getFullYear()}function _H(e,t){return SH(e,t)&&UV(e).quarter()===UV(t).quarter()}function kH(e,t){return SH(e,t)&&e.getMonth()===t.getMonth()}function AH(e,t){return kH(e,t)&&UV(e).week()===UV(t).week()}function CH(e,t){return kH(e,t)&&e.getDate()===t.getDate()}function TH(e,t){var n=e.getTime(),r=t.getTime();return n<r?-1:n>r?1:0}function OH(e,t){var n;return{isSameYear:SH,isSameQuarter:_H,isSameMonth:kH,isSameWeek:AH,isSameDate:CH}["isSame".concat((n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date",n?n[0].toUpperCase().concat(n.substring(1,n.length)):n))](e,t)}function IH(e,t,n){return t&&-1===TH(e,t)||n&&1===TH(e,n)}function PH(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)}function EH(e,t){return UV(e).subtract(t,"month").toDate()}function MH(e,t){return UV(e).add(t,"month").toDate()}function DH(e,t){for(var n=e.year,r=e.month,i=t.firstDayOfWeek,a=t.showWeekOfYear,o=void 0!==a&&a,s=t.disableDate,l=void 0===s?function(){return!1}:s,u=t.minDate,c=t.maxDate,d=function(e){var t=e.year,n=e.month;return new Date(t,n,1)}({year:n,month:r}),f=function(e){var t=e.year,n=e.month;return new Date(t,n,xH({year:t,month:n}))}({year:n,month:r}),h=xH({year:n,month:r}),p=[],m=1,v=PH();m<=h;m++){var g=new Date(n,r,m);p.push({text:m,active:!1,value:g,disabled:"function"==typeof l&&l(g)||IH(g,u,c),now:OH(v,g),firstDayOfMonth:1===m,lastDayOfMonth:m===h,type:"current-month"})}if(d.getDay()!==i)for(d.setDate(0);p.unshift({text:d.getDate().toString(),active:!1,value:new Date(d),disabled:"function"==typeof l&&l(d)||IH(d,u,c),additional:!0,type:"prev-month"}),d.setDate(d.getDate()-1),d.getDay()!==Math.abs(i+6)%7;);for(;p.length<42;)f.setDate(f.getDate()+1),p.push({text:f.getDate(),active:!1,value:new Date(f),disabled:"function"==typeof l&&l(f)||IH(f,u,c),additional:!0,type:"next-month"});var y=yH(p,7);return o&&y.forEach(function(e){e.unshift(wH(wH({},e[0]),{},{active:!1,value:e[0].value,text:UV(e[0].value).week()}))}),y}function RH(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/(a\s)?h{1,2}:m{1,2}(:s{1,2})?(\sa)?/i);return e?e[0]:null}function LH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.match(/[ap]m/i)||[""],n=Ew((e.match(/\d{1,2}:\d{1,2}(:\d{1,2})?(:\d{1,3})?/)||["0:0:0:0"])[0].split(":"),4),r=n[0],i=void 0===r?0:r,a=n[1],o=void 0===a?0:a,s=n[2],l=void 0===s?0:s,u=n[3];return{hours:+i,minutes:+o,seconds:+l,milliseconds:+(void 0===u?0:u),meridiem:t[0]}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */UV.extend(cH),UV.extend(nH),UV.extend(iH),UV.extend(oH),UV.extend(lH),UV.extend(fH),UV.extend(GV),UV.extend(eH);var NH="HH:mm:ss";function jH(e,t,n){if(""===e)return UV();var r=e;if(/[w|W]/g.test(t)){"string"!=typeof r&&(r=UV(r).format(t));for(var i=r.split(/[-/.]/)[0],a=r.split(/[-/.]/)[1],o=t.split(/[-/.]/)[1],s=UV(i,"YYYY").startOf("year"),l=0;l<=52;l+=1){var u=s.add(l,"week");if("start"===n&&(u=u.subtract(5,"day")),u.format(o)===a)return u}}if(/Q/g.test(t)){"string"!=typeof r&&(r=UV(r).format(t));for(var c=r.split(/[-/.]/)[0],d=r.split(/[-/.]/)[1],f=t.split(/[-/.]/)[1],h=UV(c,"YYYY").startOf("year"),p=0;p<=52;p+=1){var m=h.add(p,"quarter");if(m.format(f)===d)return m}}return UV(r,t).isValid()?UV(r,t):UV(r)}function FH(e,t){return Array.isArray(e)?"time-stamp"===t?e.every(function(e){return UV(e).isValid()}):e.every(function(e){return UV(e,t).isValid()||UV(e).isValid()}):"time-stamp"===t?UV(e).isValid():UV(e,t).isValid()||UV(e).isValid()}function zH(e,t){var n,r=t.format,i=t.targetFormat;return n=Array.isArray(e)?function(e){var t=e.newDate,n=e.format,r=e.targetFormat;if(!t||!Array.isArray(t))return[];var i=t.map(function(e){return e&&jH(e,n)});return i[0]&&i[1]&&i[0].toDate().getTime()>i[1].toDate().getTime()&&(i=[i[1],i[0]]),i.some(function(e){return e&&!e.isValid()})?(FD("DatePicker","\u8bf7\u68c0\u67e5 format\u3001valueType\u3001value \u683c\u5f0f\u662f\u5426\u6709\u6548.\nformat: '".concat(n,"' valueType: '").concat(r,"' value: '").concat(t,"'")),[]):"time-stamp"===r?i.map(function(e){return e&&e.toDate().getTime()}):i.map(function(e){return e&&e.format(r)})}({newDate:e,format:r,targetFormat:i}):function(e){var t=e.newDate,n=e.format,r=e.targetFormat;if(!t)return"";var i=jH(t,n);return i.isValid()?"time-stamp"===r?i.toDate().getTime():i.format(r):(FD("DatePicker","\u8bf7\u68c0\u67e5 format\u3001valueType\u3001value \u683c\u5f0f\u662f\u5426\u6709\u6548.\nformat: '".concat(n,"' valueType: '").concat(r,"' value: '").concat(t,"'")),"")}({newDate:e,format:r,targetFormat:i}),n}function BH(e,t){return Array.isArray(e)?e.map(function(e){return UV(e).format(t)}):UV(e||new Date).format(t)}function VH(e){var t=e.mode,n=void 0===t?"date":t,r=e.format,i=e.valueType,a=e.enableTimePicker;return"year"===n?{format:r||"YYYY",valueType:i||r||"YYYY",timeFormat:NH}:"month"===n?{format:r||"YYYY-MM",valueType:i||r||"YYYY-MM",timeFormat:NH}:"quarter"===n?{format:r||"YYYY-[Q]Q",valueType:i||r||"YYYY-[Q]Q",timeFormat:NH}:"week"===n?{format:r||"YYYY-wo",valueType:i||r||"YYYY-wo",timeFormat:NH}:"date"===n?{format:r||"YYYY-MM-DD".concat(a?" HH:mm:ss":""),valueType:i||r||"YYYY-MM-DD".concat(a?" HH:mm:ss":""),timeFormat:RH(r||"YYYY-MM-DD".concat(a?" HH:mm:ss":""))||NH}:(FD("DatePicker","Invalid mode: ".concat(n)),{})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function HH(e){var t=Ft(e),n=Ew(pD(t.value,t.modelValue,e.defaultValue,e.onChange),2),r=n[0],i=n[1],a=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});e.enableTimePicker&&(RH(a.value.format),!RH(a.value.valueType)&&a.value.valueType);var o=Et(BH(r.value,a.value.timeFormat)),s=Et(UV(r.value).month()||(new Date).getMonth()),l=Et(UV(r.value).year()||(new Date).getFullYear()),u=Et(zH(r.value,{format:a.value.format,targetFormat:a.value.format}));return ea(function(){r.value?FH(r.value,a.value.valueType)&&(u.value=zH(r.value,{format:a.value.format,targetFormat:a.value.format}),o.value=BH(r.value,a.value.timeFormat)):u.value=""}),{year:l,month:s,value:r,time:o,cacheValue:u,onChange:i}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function WH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WH(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var XH={allowInput:Boolean,clearable:Boolean,disableDate:{type:[Object,Array,Function]},disabled:Boolean,enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return!e||[1,2,3,4,5,6,7].includes(e)}},format:{type:String,default:void 0},inputProps:{type:Object},mode:{type:String,default:"date",validator:function(e){return!e||["year","quarter","month","week","date"].includes(e)}},placeholder:{type:[String,Array],default:void 0},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},presetsPlacement:{type:String,default:"bottom",validator:function(e){return!e||["left","top","right","bottom"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Array,Date],default:void 0},modelValue:{type:[String,Number,Array,Date],default:void 0},defaultValue:{type:[String,Number,Array,Date],default:""},valueType:{type:String,default:""},onBlur:Function,onChange:Function,onFocus:Function,onPick:Function},GH=yr({name:"TDatePickerHeader",props:{mode:{type:String,default:"date"},year:Number,month:Number,onMonthChange:Function,onYearChange:Function,onJumperClick:Function},setup:function(e){var t=bA("classPrefix").classPrefix,n=wA("date-picker__header"),r=bA("datePicker").globalConfig,i=Et(function(t){var n=[];if("year"===e.mode)for(var r=t%10,i=t-r+100,a=t-r-100;a<=i;a+=10)n.push({label:"".concat(a," - ").concat(a+9),value:a+r});else{n.push({label:"".concat(t),value:t});for(var o=1;o<=10;o++)n.push({label:"".concat(t+o),value:t+o}),n.unshift({label:"".concat(t-o),value:t-o})}return n}(e.year)),a="date"===e.mode||"week"===e.mode,o=vo(function(){var t;return(null===(t=i.value.find(function(t){return t.value-e.year<=9&&t.value-e.year>=0}))||void 0===t?void 0:t.value)||e.year}),s=vo(function(){return r.value.months.map(function(e,t){return{label:e,value:t}})});function l(t,n){var r=[];if("year"===e.mode){var i=t%10;if("add"===n)for(var a=t-i+10;a<=t-i+50;a+=10)r.push({label:"".concat(a," - ").concat(a+9),value:a});else for(var o=t-i-1;o>t-i-50;o-=10)r.unshift({label:"".concat(o-9," - ").concat(o),value:o})}else if("add"===n)for(var s=t+1;s<=t+10;s++)r.push({label:"".concat(s),value:s});else for(var l=t-1;l>t-10;l--)r.unshift({label:"".concat(l),value:l});return r}var u={year:{prev:r.value.preDecade,current:r.value.now,next:r.value.nextDecade},month:{prev:r.value.preYear,current:r.value.now,next:r.value.nextYear},date:{prev:r.value.preMonth,current:r.value.now,next:r.value.nextMonth}};function c(e){var t=e.e;0===t.target.scrollTop?d(t):t.target.scrollTop===t.target.scrollHeight-t.target.clientHeight&&f(t)}function d(e){var t;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e);var n=l(i.value[0].value,"reduce");i.value=[].concat(Iw(n),Iw(i.value))}function f(e){var t;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e);var n=l(i.value.slice(-1)[0].value,"add");i.value=[].concat(Iw(i.value),Iw(n))}return function(){return Na("div",{class:n.value},[Na("div",{class:"".concat(n.value,"-controller")},[a&&Na(rB,{class:"".concat(n.value,"-controller-month"),value:e.month,options:s.value,onChange:function(t){var n;return null===(n=e.onMonthChange)||void 0===n?void 0:n.call(e,t)},popupProps:{attach:function(e){return e.parentNode},overlayClassName:"".concat(n.value,"-controller-month-popup")}},null),Na(rB,{class:"".concat(n.value,"-controller-year"),value:"year"===e.mode?o.value:e.year,options:i.value,onChange:function(t){var n;return null===(n=e.onYearChange)||void 0===n?void 0:n.call(e,t)},popupProps:{onScroll:c,attach:function(e){return e.parentNode},overlayClassName:"".concat(n.value,"-controller-year-popup")},panelTopContent:function(){return Na("div",{class:"".concat(t.value,"-select-option"),onClick:d},[za("...")])},panelBottomContent:function(){return Na("div",{class:"".concat(t.value,"-select-option"),onClick:f},[za("...")])}},null)]),Na(MD,{tips:u[e.mode],size:"small",onChange:e.onJumperClick},null)])}}}),YH=yr({name:"TDatePickerCell",props:{time:String,text:[String,Number],value:Date,active:Boolean,highlight:Boolean,disabled:Boolean,startOfRange:Boolean,endOfRange:Boolean,hoverHighlight:Boolean,hoverStartOfRange:Boolean,hoverEndOfRange:Boolean,additional:Boolean,now:Boolean,firstDayOfMonth:Boolean,lastDayOfMonth:Boolean,onClick:Function,onMouseEnter:Function},setup:function(e){var t=wA("date-picker__cell"),n=vo(function(){var n;return[t.value,(n={},Pw(n,"".concat(t.value,"--now"),e.now),Pw(n,"".concat(t.value,"--active"),e.active),Pw(n,"".concat(t.value,"--disabled"),e.disabled),Pw(n,"".concat(t.value,"--highlight"),e.highlight),Pw(n,"".concat(t.value,"--hover-highlight"),e.hoverHighlight),Pw(n,"".concat(t.value,"--active-start"),e.startOfRange),Pw(n,"".concat(t.value,"--active-end"),e.endOfRange),Pw(n,"".concat(t.value,"--hover-start"),e.hoverStartOfRange),Pw(n,"".concat(t.value,"--hover-end"),e.hoverEndOfRange),Pw(n,"".concat(t.value,"--additional"),e.additional),Pw(n,"".concat(t.value,"--first-day-of-month"),e.firstDayOfMonth),Pw(n,"".concat(t.value,"--last-day-of-month"),e.lastDayOfMonth),n)]});function r(t){var n;if(!e.disabled){if(e.time){var r=LH(e.time),i=r.hours,a=r.minutes,o=r.seconds,s=r.milliseconds,l=r.meridiem,u=i;/am/i.test(l)&&12===u&&(u-=12),/pm/i.test(l)&&u<12&&(u+=12),e.value.setHours(u),e.value.setMinutes(a),e.value.setSeconds(o),e.value.setMilliseconds(s)}null===(n=e.onClick)||void 0===n||n.call(e,e.value,{e:t})}}function i(){var t;if(!e.disabled){if(e.time){var n=LH(e.time),r=n.hours,i=n.minutes,a=n.seconds,o=n.milliseconds,s=n.meridiem,l=r;/am/i.test(s)&&12===l&&(l-=12),/pm/i.test(s)&&l<12&&(l+=12),e.value.setHours(l),e.value.setMinutes(i),e.value.setSeconds(a),e.value.setMilliseconds(o)}null===(t=e.onMouseEnter)||void 0===t||t.call(e,e.value)}}return function(){return Na("td",{class:n.value,onClick:r,onMouseenter:i},[Na("div",{class:"".concat(t.value,"-inner")},[e.text])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function KH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KH(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZH=yr({name:"TDatePickerTable",props:{mode:{type:String,default:"date"},value:[String,Number,Array,Date],format:String,firstDayOfWeek:Number,data:Array,time:String,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function},setup:function(e){var t=wA("date-picker__table"),n=bA("datePicker").globalConfig.value,r=n.weekdays,i=n.weekAbbreviation,a=vo(function(){for(var t=[],n=e.firstDayOfWeek-1,a=r.length;t.length<a;)t.push(r[n]),n=(n+a+1)%a;return"week"===e.mode&&t.unshift(i),t}),o=vo(function(){return"date"===e.mode||"week"===e.mode}),s=function(n,r,i){if("week"!==e.mode)return{};if(Array.isArray(n)){var a;if(!n.length)return{};var o=Ew(n.map(function(e){return jH(e,r)}),2),s=o[0],l=o[1],u=s.year(),c=s.week(),d=l&&l.year(),f=l&&l.week(),h=jH(i,r),p=h.year(),m=h.week(),v=p===u&&m===c||p===d&&m===f,g=p>=u&&p<=d&&m>c&&m<f;return Pw(a={},"".concat(t.value,"-").concat(e.mode,"-row--active"),v),Pw(a,"".concat(t.value,"-").concat(e.mode,"-row--range"),g),a}return Pw({},"".concat(t.value,"-").concat(e.mode,"-row--active"),jH(n,r).week()===jH(i,r).week())};return function(){return Na("div",{class:t.value,onMouseleave:function(t){var n;return null===(n=e.onCellMouseLeave)||void 0===n?void 0:n.call(e,{e:t})}},[Na("table",null,[o.value&&Na("thead",null,[Na("tr",null,[a.value.map(function(e,t){return Na("th",{key:t},[e])})])]),Na("tbody",null,[e.data.map(function(n,r){return Na("tr",{key:r,class:qH(Pw({},"".concat(t.value,"-").concat(e.mode,"-row"),!0),s(e.value,e.format,n[0].value))},[n.map(function(t,n){return Na(YH,Xa(t,{key:n,time:e.time,onClick:e.onCellClick,onMouseEnter:e.onCellMouseEnter}),null)})])})])])])}}}),JH="am",QH="pm",$H=[JH,QH],eW=[1,1,1],tW=function(e){return e.hour="hour",e.minute="minute",e.second="second",e.milliSecond="millisecond",e.meridiem="meridiem",e}(tW||{}),nW=/(a\s+|A\s+)?(h+|H+)?:?(m+)?:?(s+)?:?(S+)?(\s+a|\s+A)?/,rW=/[h]{1}/,iW={hideDisabledTime:{type:Boolean,default:!0}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function aW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aW(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sW={type:Boolean,default:!0,validator:function(e){return"boolean"==typeof e}};var lW=
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function(e){return function(t){return null==t?void 0:t[e]}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var uW=Math.ceil,cW=Math.max;var dW=function(e,t,n,r){for(var i=-1,a=cW(uW((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o},fW=Mk,hW=qV;var pW=function(e){return function(t,n,r){return r&&"number"!=typeof r&&fW(t,n,r)&&(n=r=void 0),t=hW(t),void 0===n?(n=t,t=0):n=hW(n),r=void 0===r?t<n?1:-1:hW(r),dW(t,n,r,e)}}(),mW=Math.floor;var vW=function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=mW(t/2))&&(e+=e)}while(t);return n},gW=lW("length"),yW="\\ud800-\\udfff",bW="["+yW+"]",wW="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",xW="\\ud83c[\\udffb-\\udfff]",SW="[^"+yW+"]",_W="(?:\\ud83c[\\udde6-\\uddff]){2}",kW="[\\ud800-\\udbff][\\udc00-\\udfff]",AW="(?:"+wW+"|"+xW+")"+"?",CW="[\\ufe0e\\ufe0f]?",TW=CW+AW+("(?:\\u200d(?:"+[SW,_W,kW].join("|")+")"+CW+AW+")*"),OW="(?:"+[SW+wW+"?",wW,_W,kW,bW].join("|")+")",IW=RegExp(xW+"(?="+xW+")|"+OW+TW,"g");var PW=gW,EW=GC,MW=function(e){for(var t=IW.lastIndex=0;IW.test(e);)++t;return t};var DW=function(e){return EW(e)?MW(e):PW(e)},RW=vW,LW=zC,NW=UC,jW=GC,FW=DW,zW=uT,BW=Math.ceil;var VW=function(e,t){var n=(t=void 0===t?" ":LW(t)).length;if(n<2)return n?RW(t,e):t;var r=RW(t,BW(e/FW(t)));return jW(t)?NW(zW(r),0,e).join(""):r.slice(0,e)},HW=DW,WW=JV,UW=VC;var XW=function(e,t,n){e=UW(e);var r=(t=WW(t))?HW(e):0;return t&&r<t?VW(t-r,n)+e:e};function GW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GW(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}UV.extend(GV);var KW=[tW.hour,tW.minute,tW.second,tW.milliSecond],qW=15,ZW=21,JW=yr({name:"TTimePickerPanelCol",props:YW(YW({},{format:{type:String,default:"HH:mm:ss"},cols:{type:Array,default:function(){return[tW.hour,tW.minute,tW.second]}},value:{type:String,default:""},range:{type:Array,default:function(){return[]}},steps:oW({type:Array},{default:[1,1,1]}),hideDisabledTime:oW({},iW.hideDisabledTime),disableTime:{type:Function},localeMeridiems:{type:Array}}),{},{position:String,triggerScroll:Boolean,onChange:Function,resetTriggerScroll:Function}),setup:function(e){var t=Ft(e),n=t.steps,r=t.value,i=t.format,a=t.position,o=t.triggerScroll,s=bA("timePicker").globalConfig,l=bA().classPrefix,u=Et([]),c=Et(),d=Et(null),f=bt({0:null,1:null,2:null,3:null,4:null,5:null}),h=vo(function(){var e=!!n.value.filter(function(e){return e>1}).length;return r.value?UV(r.value,i.value):e?UV().hour(0).minute(0).second(0):UV()}),p=vo(function(){return"".concat(l.value,"-time-picker__panel")});ta(function(){return h.value},function(){h.value&&x(!0)}),ta(function(){return o.value},function(){o.value&&x(!0)}),Er(function(){var e=Ew(i.value.match(nW),7),t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=tW.meridiem,c=tW.hour,d=tW.minute,f=tW.second,h=tW.milliSecond,p=[t&&l,n&&c,r&&d,a&&f,o&&h,s&&l].filter(function(e){return!!e});u.value=p});var m=function(){var e,t=null===(e=d.value)||void 0===e?void 0:e.querySelector("div");return t?{offsetHeight:t.offsetHeight,margin:parseInt(getComputedStyle(t).marginTop,10)}:{offsetHeight:0,margin:0}},v=function(t,n){var r=KW.indexOf(t);if(-1!==r){var i,o,s,l=[h.value.hour(),h.value.minute(),h.value.second()];return l[r]=Number(n),!(null!==(i=e.disableTime)&&void 0!==i&&null!==(o=i.call.apply(i,[e].concat(l,[{partial:a.value||"start"}])))&&void 0!==o&&null!==(s=o[t])&&void 0!==s&&s.includes(Number(n)))}return!0},g=function(t){var r=0;if(KW.includes(t)){var o=KW.indexOf(t),s=n.value[o]||1;r=t===tW.hour?rW.test(i.value)?11:23:t===tW.milliSecond?999:59;var l=pW(0,r+1,Number(s)).map(function(e){return XW(String(e),2,"0")})||[];return e.hideDisabledTime&&e.disableTime?l.filter(function(n){var r,i,s,l=[h.value.hour(),h.value.minute(),h.value.second()];return l[o]=Number(n),!(null!==(r=e.disableTime)&&void 0!==r&&null!==(i=r.call.apply(r,[e].concat(l,[{partial:a.value||"start"}])))&&void 0!==i&&null!==(s=i[t])&&void 0!==s&&s.includes(Number(n)))}):l}return $H},y=function(e,t){e===tW.hour&&/[h]{1}/.test(i.value)&&(t%=12);var n=g(e).indexOf(XW(String(t),2,"0")),r=m(),a=r.offsetHeight+r.margin;return Math.abs(Math.max(0,n)*a)},b=function(t,a){var o,s,l,c,d=null===(o=f[a])||void 0===o?void 0:o.scrollTop,p=m(),b=p.offsetHeight+p.margin,w=Math.abs(Math.round(d/b+.5)),x=$H[Math.min(w-1,1)].toLowerCase();if(Number.isNaN(w)&&(w=1),KW.includes(t)){var S=59;t===tW.hour?S=/[h]{1}/.test(i.value)?11:23:t===tW.milliSecond&&(S=999);var _=KW.indexOf(t),k=pW(0,S+1,Number(n.value[_])||1);l=function(e,t,n){return n<=1?t:e.sort(function(e,n){return Math.abs(t+1-e)-Math.abs(t+1-n)})[0]}(k,Number(g(t)[Math.min(w-1,S+1,k.length-1)]),Number(n.value[_])||1),Number.isNaN(l)&&(l=k[k.length-1]),t===tW.hour&&u.value.includes(tW.meridiem)&&h.value.hour()>=12&&(l=Number(l)+12)}else l=x;var A=y(t,l);if(UV(h.value).isValid()&&(!r.value||UV(r.value,i.value,!0).isValid())){if(KW.includes(t)){var C,T;v(t,l)&&(c=null===(C=(T=h.value)[t])||void 0===C?void 0:C.call(T,l).format(i.value))}else{var O=h.value.hour();c=x===JH&&O>=12?h.value.hour(O-12).format(i.value):x===QH&&O<12?h.value.hour(O+12).format(i.value):h.value.format(i.value)}if(c!==r.value&&(null===(s=e.onChange)||void 0===s||s.call(e,c)),A!==d){var I,P=f[u.value.indexOf(t)];if(!P||P.scrollTop===A)return;null===(I=P.scrollTo)||void 0===I||I.call(P,{top:A,behavior:"smooth"})}}},w=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",a=y(e,t),o=f[n];o&&o.scrollTop!==a&&v(e,t)&&(null===(r=o.scrollTo)||void 0===r||r.call(o,{top:a,behavior:i}))},x=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=r.value&&!t?"smooth":"auto",a=!!n.value.filter(function(e){return e>1}).length;fn(function(){u.value.forEach(function(e,t){var n,o,s;!a||a&&r.value?w(e,KW.includes(e)?null===(n=(o=h.value)[e])||void 0===n?void 0:n.call(o):h.value.format("a"),t,i):w(e,null===(s=g(e))||void 0===s?void 0:s[0],t,i)})}),e.resetTriggerScroll()},S=function(e,t){var n,r,a;return e===tW.meridiem?h.value.format("a")===t:(a=null===(n=(r=h.value)[e])||void 0===n?void 0:n.call(r),e===tW.hour&&/[h]{1}/.test(i.value)&&(a%=12),a===Number(t))};return function(){var t,n,r,a;return Na("div",{class:"".concat(p.value,"-body"),ref:c},[Na("div",{class:"".concat(p.value,"-body-active-mask"),ref:d},[null===(t=(n=u.value).map)||void 0===t?void 0:t.call(n,function(e,t){return Na("div",{key:"".concat(e,"_").concat(t)},null)})]),null===(r=(a=u.value).map)||void 0===r?void 0:r.call(a,function(t,n){return Na("ul",{key:"".concat(t,"_").concat(n),ref:function(e){return f[n]=e},class:"".concat(p.value,"-body-scroll"),onScroll:sR(function(){return b(t,n)},50),style:{"--timePickerPanelOffsetTop":qW,"--timePickerPanelOffsetBottom":ZW}},[g(t).map(function(r){var a;return Na("li",{key:r,class:["".concat(p.value,"-body-scroll-item"),(a={},Pw(a,"".concat(l.value,"-is-disabled"),!v(t,r)),Pw(a,"".concat(l.value,"-is-current"),S(t,r)),a)],onClick:function(){return function(t,n,r){if(v(t,n))if(KW.includes(t))t===tW.hour&&h.value.format("a")===QH&&u.value.includes(tW.meridiem)&&(n=Number(n)+12),w(t,n,r,"smooth"),setTimeout(function(){var r,a;e.onChange(null===(r=(a=h.value)[t])||void 0===r?void 0:r.call(a,n).format(i.value))},100);else{var a=h.value.hour();n===JH&&a>=12?e.onChange(h.value.hour(a-12).format(i.value)):n===QH&&a<12&&e.onChange(h.value.hour(a+12).format(i.value))}}(t,r,n)}},[KW.includes(t)?rW.test(i.value)&&"00"===r?"12":r:s.value[r===JH?"anteMeridiem":"postMeridiem"]])})])})])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function QW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QW(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}UV.extend(GV);var eU=yr({name:"TimePickerPanel",props:$W($W({},{disabled:oW(oW({},sW),{default:!1}),isFocus:oW(oW({},sW),{default:!1}),value:{type:String,default:""},format:{type:String,default:"HH:mm:ss"},steps:oW({type:Array},{default:[1,1,1]}),isShowPanel:oW(oW({},sW),{default:!1}),hideDisabledTime:oW({},iW.hideDisabledTime),disableTime:{type:Function},isFooterDisplay:oW({},sW)}),{},{isFooterDisplay:Boolean,handleConfirmClick:Function,onChange:Function}),setup:function(e){var t=wA("time-picker__panel"),n=Ft(e),r=n.steps,i=n.isFooterDisplay,a=n.isShowPanel,o=Et(!1),s=Et(),l=bA("timePicker").globalConfig,u=vo(function(){return!!r.value.filter(function(e){return e>1}).length}),c=vo(function(){var t=u.value;return e.value?UV(e.value,e.format):t?UV().hour(0).minute(0).second(0):UV()}),d=function(){fn(function(){o.value=!0})},f=function(){o.value=!1};return Er(function(){d()}),ta(function(){return a.value},function(){d()}),function(){return Na("div",{class:t.value},[Na("div",{class:"".concat(t.value,"-section-body")},[Na(JW,Xa(e,{ref:s,format:e.format||"HH:mm:ss",steps:e.steps||eW,value:e.value,triggerScroll:o.value,onChange:e.onChange,resetTriggerScroll:f}),null)]),i.value?Na("div",{class:"".concat(t.value,"-section-footer")},[Na(BO,{theme:"primary",variant:"base",onClick:function(){return e.handleConfirmClick(c.value)},size:"small"},{default:function(){return[l.value.confirm]}}),u.value?null:Na(BO,{theme:"primary",variant:"text",size:"small",onClick:function(){return e.onChange(UV().format(e.format))}},{default:function(){return[l.value.now]}})]):null])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function tU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rU=yr({name:"TPanelContent",props:{mode:String,format:String,enableTimePicker:Boolean,timePickerProps:{type:Object,default:function(){return{}}},year:Number,month:Number,tableData:Array,time:String,firstDayOfWeek:Number,partial:String,popupVisible:Boolean,onYearChange:Function,onMonthChange:Function,onJumperClick:Function,onCellMouseEnter:Function,onCellClick:Function,onCellMouseLeave:Function,onTimePickerChange:Function,value:[String,Number,Array,Date]},setup:function(e){var t=wA("date-picker__panel"),n=VH({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}).timeFormat,r="00:00:00";return function(){return Na("div",{class:"".concat(t.value,"-content")},[Na("div",{class:"".concat(t.value,"-").concat(e.mode)},[Na(GH,{mode:e.mode,year:e.year,month:e.month,onMonthChange:function(t){var n;return null===(n=e.onMonthChange)||void 0===n?void 0:n.call(e,t,{partial:e.partial})},onYearChange:function(t){var n;return null===(n=e.onYearChange)||void 0===n?void 0:n.call(e,t,{partial:e.partial})},onJumperClick:function(t){var n,r=t.trigger;return null===(n=e.onJumperClick)||void 0===n?void 0:n.call(e,{trigger:r,partial:e.partial})}},null),Na(ZH,{mode:e.mode,data:e.tableData,time:e.time,value:e.value,format:e.format,firstDayOfWeek:e.firstDayOfWeek,onCellClick:function(t,n){var r,i=n.e;return null===(r=e.onCellClick)||void 0===r?void 0:r.call(e,t,{e:i,partial:e.partial})},onCellMouseEnter:function(t){var n;return null===(n=e.onCellMouseEnter)||void 0===n?void 0:n.call(e,t,{partial:e.partial})},onCellMouseLeave:e.onCellMouseLeave},null)]),e.enableTimePicker&&Na("div",{class:"".concat(t.value,"-time")},[Na("div",{class:"".concat(t.value,"-time-viewer")},[e.time||r]),Na(eU,nU({key:e.partial,isShowPanel:e.popupVisible,format:n,value:e.time||r,onChange:e.onTimePickerChange},e.timePickerProps),null)])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function iU(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ea(e)}var aU=yr({name:"TDatePickerTable",props:{enableTimePicker:Boolean,presetsPlacement:String,presets:Object,selectedValue:[Date,String,Number],onPresetClick:Function,onConfirmClick:Function},setup:function(e){var t=wA("date-picker__footer"),n=wA("date-picker__presets"),r=bA("datePicker"),i=r.t,a=r.globalConfig,o=vo(function(){return[t.value,"".concat(t.value,"--").concat(e.presetsPlacement)]});return function(){var t;return Na("div",{class:o.value},[Na("div",{class:n.value},[e.presets&&Object.keys(e.presets).map(function(t){return Na(VO,{key:t,size:"small",variant:"text",onClick:function(n){var r;return null===(r=e.onPresetClick)||void 0===r?void 0:r.call(e,e.presets[t],{e:n})}},iU(t)?t:{default:function(){return[t]}})})]),e.enableTimePicker&&Na(VO,{disabled:!e.selectedValue,size:"small",theme:"primary",onClick:function(t){var n;return null===(n=e.onConfirmClick)||void 0===n?void 0:n.call(e,{e:t})}},iU(t=i(a.value.confirm))?t:{default:function(){return[t]}})])}}}),oU=yr({name:"TExtraContent",props:{presets:Object,enableTimePicker:Boolean,presetsPlacement:String,onPresetClick:Function,onConfirmClick:Function,selectedValue:[String,Number,Array,Date]},setup:function(e){var t=vo(function(){return e.enableTimePicker||e.presets});return function(){return t.value?Na(aU,{presets:e.presets,onPresetClick:e.onPresetClick,enableTimePicker:e.enableTimePicker,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement,selectedValue:e.selectedValue},null):null}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function sU(e){var t,n=bA("datePicker").globalConfig,r={minDate:e.minDate,maxDate:e.maxDate,disableDate:e.disableDate,firstDayOfWeek:null!==(t=e.firstDayOfWeek)&&void 0!==t?t:n.value.firstDayOfWeek,monthLocal:n.value.months,quarterLocal:n.value.quarters,showWeekOfYear:"week"===e.mode},i=[];return"date"===e.mode||"week"===e.mode?i=DH({year:e.year,month:e.month},r):"quarter"===e.mode?i=function(e,t){for(var n=t.disableDate,r=void 0===n?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=t.quarterLocal,s=[],l=PH(),u=1;u<=4;u++){var c=UV(new Date(e,0)).quarter(u).toDate();s.push({value:c,now:OH(c,l,"quarter"),disabled:"function"==typeof r&&r(c)||IH(c,i,a),active:!1,text:o[u-1]})}return yH(s,4)}(e.year,r):"month"===e.mode?i=function(e,t){for(var n=t.disableDate,r=void 0===n?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=t.monthLocal,s=[],l=PH(),u=0;u<=11;u++){for(var c=new Date(e,u),d=0,f=0,h=xH({year:e,month:u}),p=1;p<=h;p++){var m=new Date(e,u,p);"function"==typeof r&&r(m)&&(d+=1),IH(m,i,a)&&(f+=1)}s.push({value:c,now:OH(c,l,"month"),disabled:d===h||f===h,active:!1,text:o[c.getMonth()]})}return yH(s,3)}(e.year,r):"year"===e.mode&&(i=function(e,t){for(var n=t.disableDate,r=void 0===n?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=10*parseInt((e/10).toString(),10),s=o+9,l=[],u=PH(),c=o;c<=s;c++){for(var d=new Date(c,1),f=0,h=0,p=0;p<12;p++){var m=new Date(c,p);"function"==typeof r&&r(m)&&(f+=1),IH(m,i,a)&&(h+=1)}l.push({value:d,now:OH(d,u,"year"),disabled:12===f||12===h,active:!1,text:"".concat(d.getFullYear())})}return yH(l,3)}(e.year,r)),function(e,t){var n=QV({},t),r=n.start,i=n.end,a=n.hoverStart,o=n.hoverEnd,s=n.type,l=void 0===s?"date":s,u=n.isRange;return"week"===l?e:void 0!==u&&u?e.map(function(e){return e.map(function(e){var t=e,n=e.value,s=r&&OH(r,n,l),u=a&&OH(a,n,l),c=i&&OH(i,n,l),d=o&&OH(o,n,l);return t.active=(s||c)&&!t.additional,r&&i&&(t.highlight=UV(n).isBetween(r,i,l,"[]")&&!t.additional,t.startOfRange=s,t.endOfRange=c),a&&o&&(t.hoverHighlight=UV(n).isBetween(a,o,l,"[]")&&!t.additional,t.hoverStartOfRange=u,t.hoverEndOfRange=d),t})}):e.map(function(e){return e.map(function(e){var t=e;return t.active=r&&OH(e.value,r,l)&&!t.additional,t})})}(i,{start:e.start,end:e.end,hoverStart:e.hoverStart,hoverEnd:e.hoverEnd,type:e.mode,isRange:e.isRange})}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function lU(e){return{disableDate:function(t){return!function(e){if(!e.disableDate)return!0;var t=!0;if("function"==typeof e.disableDate)return!e.disableDate(e.value);if(Array.isArray(e.disableDate)){var n=!1;return e.disableDate.map(function(t){return UV(t,e.format)}).forEach(function(t){t.isSame(UV(e.value))&&(n=!0)}),!n}if(e.disableDate.from&&e.disableDate.to){var r=UV(new Date(e.disableDate.from)),i=UV(new Date(e.disableDate.to));return!UV(e.value).isBetween(r,i,e.mode,"[]")}var a=e.disableDate.before?new Date(e.disableDate.before):null,o=e.disableDate.after?new Date(e.disableDate.after):null;if(o&&a){var s=UV(new Date(a)),l=UV(new Date(o));t=UV(e.value).isBetween(s,l,e.mode,"[]")}else if(a){var u=UV(new Date(a));t=!UV(e.value).isBefore(u,e.mode)}else if(o){var c=UV(new Date(o));t=!UV(e.value).isAfter(c,e.mode)}return t}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */({disableDate:e.disableDate,format:e.format,mode:e.mode,value:t})},minDate:nx(e.disableDate)&&"before"in e.disableDate?new Date(e.disableDate.before):e.start,maxDate:nx(e.disableDate)&&"after"in e.disableDate?new Date(e.disableDate.after):e.end}}function uU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var cU=yr({name:"TSinglePanel",props:{disableDate:[Object,Array,Function],mode:{type:String,default:"date"},format:String,presetsPlacement:{type:String,default:"bottom"},value:[String,Number,Array,Date],timePickerProps:Object,presets:Object,enableTimePicker:Boolean,firstDayOfWeek:Number,year:Number,month:Number,time:String,popupVisible:Boolean,onPanelClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function},setup:function(e){var t=wA("date-picker__panel"),n=bA("datePicker").globalConfig,r=VH({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}).format,i=vo(function(){return lU({format:r,mode:e.mode,disableDate:e.disableDate})}),a=vo(function(){return sU(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({year:e.year,month:e.month,mode:e.mode,start:e.value?jH(e.value,r).toDate():void 0,firstDayOfWeek:e.firstDayOfWeek||n.value.firstDayOfWeek},i.value))}),o=vo(function(){return{format:r,value:e.value,mode:e.mode,year:e.year,month:e.month,firstDayOfWeek:e.firstDayOfWeek||n.value.firstDayOfWeek,tableData:a.value,popupVisible:e.popupVisible,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,time:e.time,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange}}),s=vo(function(){return{presets:e.presets,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,selectedValue:e.value}});return function(){return Na("div",{class:[t.value,Pw({},"".concat(t.value,"--direction-row"),["left","right"].includes(e.presetsPlacement))],onClick:function(t){var n;return null===(n=e.onPanelClick)||void 0===n?void 0:n.call(e,{e:t})}},[["top","left"].includes(e.presetsPlacement)?Na(oU,s.value,null):null,Na(rU,o.value,null),["bottom","right"].includes(e.presetsPlacement)?Na(oU,s.value,null):null])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function dU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var fU=yr({name:"TDatePicker",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},XH),setup:function(e){var t=wA("date-picker"),n=function(e){var t=wA("date-picker"),n=bA("datePicker").globalConfig,r=kE({CalendarIcon:hI}).CalendarIcon,i=DO(),a=Et(),o=HH(e),s=o.value,l=o.onChange,u=o.time,c=o.month,d=o.year,f=o.cacheValue,h=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})}),p=Et(!1),m=Et(!1),v=Et(zH(s.value,{format:h.value.format,targetFormat:h.value.format})),g=vo(function(){return UH(UH({},e.inputProps),{},{ref:a,prefixIcon:e.prefixIcon,readonly:!e.allowInput,placeholder:e.placeholder||n.value.placeholder[e.mode],suffixIcon:e.suffixIcon||function(){return Na(r,null,null)},class:[Pw({},"".concat(t.value,"__input--placeholder"),m.value)],onClear:function(e){var t;null==e||null===(t=e.e)||void 0===t||t.stopPropagation(),p.value=!1,null==l||l("",{dayjsValue:UV(""),trigger:"clear"})},onBlur:function(t,n){var r;null===(r=e.onBlur)||void 0===r||r.call(e,{value:t,e:n.e})},onFocus:function(t,n){var r,i=n.e;null===(r=e.onFocus)||void 0===r||r.call(e,{value:s.value,e:i})},onChange:function(e){if(v.value=e,FH(e,h.value.format)){var t=UV(e).month(),n=UV(e).year(),r=BH(e,h.value.timeFormat);!Number.isNaN(n)&&(d.value=n),!Number.isNaN(t)&&(c.value=t),!Number.isNaN(r)&&(u.value=r)}},onEnter:function(e){(FH(e,h.value.format)||FH(s.value,h.value.format))&&(p.value=!1,FH(e,h.value.format)?null==l||l(zH(e,{format:h.value.format,targetFormat:h.value.valueType}),{dayjsValue:UV(e),trigger:"enter"}):FH(s.value,h.value.format)?v.value=zH(s.value,{format:h.value.format,targetFormat:h.value.format}):v.value="")}})}),y=vo(function(){var n,r,a;return UH(UH({expandAnimation:!0},e.popupProps),{},{disabled:i.value,overlayInnerStyle:null!==(n=null===(r=e.popupProps)||void 0===r?void 0:r.overlayInnerStyle)&&void 0!==n?n:{width:"auto"},overlayClassName:[null===(a=e.popupProps)||void 0===a?void 0:a.overlayClassName,"".concat(t.value,"__panel-container")],onVisibleChange:function(e,t){i.value||("trigger-element-click"!==t.trigger?(e||(m.value=!1,v.value=zH(s.value,{format:h.value.format,targetFormat:h.value.format})),p.value=e):p.value=!0)}})});return ea(function(){s.value?FH(s.value,h.value.valueType)&&(v.value=zH(s.value,{format:h.value.format,targetFormat:h.value.format})):v.value=""}),{year:d,month:c,value:s,time:u,inputValue:v,popupVisible:p,inputProps:g,popupProps:y,inputRef:a,cacheValue:f,isHoverCell:m,onChange:l}}(e),r=n.inputValue,i=n.popupVisible,a=n.inputProps,o=n.popupProps,s=n.isHoverCell,l=n.cacheValue,u=n.value,c=n.year,d=n.month,f=n.time,h=n.inputRef,p=n.onChange,m=DO(),v=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});function g(e){s.value=!0,r.value=zH(e,{format:v.value.format,targetFormat:v.value.format})}function y(){s.value=!1,r.value=zH(l.value,{format:v.value.format,targetFormat:v.value.format})}function b(t){var n;s.value=!1,"date"===e.mode&&(c.value=t.getFullYear(),d.value=t.getMonth()),e.enableTimePicker?l.value=zH(t,{format:v.value.format,targetFormat:v.value.format}):(null==p||p(zH(t,{format:v.value.format,targetFormat:v.value.valueType}),{dayjsValue:UV(t),trigger:"pick"}),i.value=!1),null===(n=e.onPick)||void 0===n||n.call(e,t)}function w(t){var n=t.trigger,r={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,i=new Date(c.value,d.value),a=null;"prev"===n?a=EH(i,r):"current"===n?a=new Date:"next"===n&&(a=MH(i,r));var o=a.getFullYear(),s=a.getMonth();c.value=o,d.value=s}function x(t){var n;f.value=t;var i=LH(t),a=i.hours,o=i.minutes,s=i.seconds,l=i.milliseconds,u=i.meridiem,c=a;/am/i.test(u)&&12===c&&(c-=12),/pm/i.test(u)&&c<12&&(c+=12);var d=(UV(r.value,v.value.format).isValid()?UV(r.value,v.value.format):UV()).hour(c).minute(o).second(s).millisecond(l).toDate();r.value=zH(d,{format:v.value.format,targetFormat:v.value.format}),null===(n=e.onPick)||void 0===n||n.call(e,d)}function S(){zH(r.value,{format:v.value.format,targetFormat:v.value.format})?null==p||p(zH(r.value,{format:v.value.format,targetFormat:v.value.valueType}),{dayjsValue:UV(r.value),trigger:"confirm"}):r.value=zH(u.value,{format:v.value.format,targetFormat:v.value.format}),i.value=!1}function _(e){var t="function"==typeof e?e():e;null==p||p(zH(t,{format:v.value.format,targetFormat:v.value.valueType}),{dayjsValue:UV(t),trigger:"preset"}),i.value=!1}function k(e){c.value=e}function A(e){d.value=e}ta(i,function(e){e&&(c.value=jH(u.value||new Date,v.value.format).year(),d.value=jH(u.value||new Date,v.value.format).month(),f.value=BH(u.value||new Date,v.value.timeFormat),u.value&&(l.value=zH(u.value,{format:v.value.format,targetFormat:v.value.format})))});var C=vo(function(){return{value:l.value,year:c.value,month:d.value,format:v.value.format,mode:e.mode,presets:e.presets,time:f.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:i.value,onCellClick:b,onCellMouseEnter:g,onCellMouseLeave:y,onJumperClick:w,onConfirmClick:S,onPresetClick:_,onYearChange:k,onMonthChange:A,onTimePickerChange:x,onPanelClick:function(){var e,t;return null===(e=h.value)||void 0===e||null===(t=e.focus)||void 0===t?void 0:t.call(e)}}});return function(){return Na("div",{class:t.value},[Na(zF,{disabled:m.value,value:r.value,status:e.status,tips:e.tips,clearable:e.clearable,popupProps:o.value,inputProps:a.value,popupVisible:i.value,panel:function(){return Na(cU,C.value,null)}},null)])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function hU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var pU=yr({name:"TDatePickerPanel",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({value:XH.value,defaultValue:XH.defaultValue,modelValue:XH.modelValue,valueType:XH.valueType,disabled:XH.disabled,disableDate:XH.disableDate,enableTimePicker:XH.enableTimePicker,firstDayOfWeek:XH.firstDayOfWeek,format:XH.format,mode:XH.mode,presets:XH.presets,presetsPlacement:XH.presetsPlacement,timePickerProps:XH.timePickerProps},{onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function}),setup:function(e){var t=HH(e),n=t.cacheValue,r=t.value,i=t.year,a=t.month,o=t.time,s=t.onChange,l=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});function u(t,r){var o,u=r.e;null===(o=e.onCellClick)||void 0===o||o.call(e,{date:t,e:u}),"date"===e.mode&&(i.value=t.getFullYear(),a.value=t.getMonth()),e.enableTimePicker?n.value=zH(t,{format:l.value.format,targetFormat:l.value.format}):null==s||s(zH(t,{format:l.value.format,targetFormat:l.value.valueType}),{dayjsValue:UV(t),trigger:"pick"})}function c(t){var n=t.trigger,o={prev:"arrow-previous",next:"arrow-next"},s={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,l=new Date(i.value,a.value),u=null;"prev"===n?u=EH(l,s):"current"===n?u=new Date:"next"===n&&(u=MH(l,s));var c,d,f=u.getFullYear(),h=u.getMonth();i.value!==f&&(null===(c=e.onYearChange)||void 0===c||c.call(e,{year:f,date:UV(r.value).toDate(),trigger:"current"===n?"today":"year-".concat(o[n])}));a.value!==h&&(null===(d=e.onMonthChange)||void 0===d||d.call(e,{month:h,date:UV(r.value).toDate(),trigger:"current"===n?"today":"month-".concat(o[n])}));i.value=f,a.value=h}function d(t){var i;o.value=t;var a=LH(t),s=a.hours,u=a.minutes,c=a.seconds,d=a.milliseconds,f=a.meridiem,h=s;/am/i.test(f)&&12===h&&(h-=12),/pm/i.test(f)&&h<12&&(h+=12);var p=(UV(n.value,l.value.format).isValid()?UV(n.value,l.value.format):UV()).hour(h).minute(u).second(c).millisecond(d).toDate();n.value=zH(p,{format:l.value.format,targetFormat:l.value.format}),null===(i=e.onTimeChange)||void 0===i||i.call(e,{time:t,date:UV(r.value).toDate(),trigger:"time-hour"})}function f(t){var r,i=t.e;null==s||s(zH(n.value,{format:l.value.format,targetFormat:l.value.valueType}),{dayjsValue:UV(n.value),trigger:"confirm"}),null===(r=e.onConfirm)||void 0===r||r.call(e,{date:UV(n.value).toDate(),e:i})}function h(t,n){var r,i=n.e,a=n.preset,o="function"==typeof t?t():t;null==s||s(zH(o,{format:l.value.format,targetFormat:l.value.valueType}),{dayjsValue:UV(o),trigger:"preset"}),null===(r=e.onPresetClick)||void 0===r||r.call(e,{e:i,preset:a})}function p(t){var n;i.value=t,null===(n=e.onYearChange)||void 0===n||n.call(e,{year:i.value,date:UV(r.value).toDate(),trigger:"year-select"})}function m(t){var n;a.value=t,null===(n=e.onMonthChange)||void 0===n||n.call(e,{month:a.value,date:UV(r.value).toDate(),trigger:"month-select"})}var v=vo(function(){return{value:n.value,year:i.value,month:a.value,mode:e.mode,format:l.value.format,presets:e.presets,time:o.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,panelClick:e.onPanelClick,onCellClick:u,onJumperClick:c,onConfirmClick:f,onPresetClick:h,onYearChange:p,onMonthChange:m,onTimePickerChange:d}});return function(){return Na(cU,v.value,null)}}}),mU={allowInput:Boolean,clearable:Boolean,disableDate:{type:[Object,Array,Function]},disabled:Boolean,enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return!e||[1,2,3,4,5,6,7].includes(e)}},format:{type:String,default:""},mode:{type:String,default:"date",validator:function(e){return!e||["year","quarter","month","week","date"].includes(e)}},panelPreselection:{type:Boolean,default:!0},placeholder:{type:[String,Array]},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},presetsPlacement:{type:String,default:"bottom",validator:function(e){return!e||["left","top","right","bottom"].includes(e)}},rangeInputProps:{type:Object},separator:{type:String,default:"-"},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueType:{type:String,default:""},onBlur:Function,onChange:Function,onFocus:Function,onInput:Function,onPick:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function vU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yU(e){return Array.isArray(e)?e:[e,e]}var bU=yr({name:"TRangeInput",props:{activeIndex:{type:Number},clearable:Boolean,disabled:Boolean,format:{type:[Array,Function]},inputProps:{type:[Object,Array]},label:{type:[String,Function]},placeholder:{type:[String,Array]},prefixIcon:{type:Function},readonly:Boolean,separator:{type:[String,Function],default:"-"},showClearIconOnEmpty:Boolean,size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onEnter:Function,onFocus:Function,onMouseenter:Function,onMouseleave:Function},setup:function(e,t){t.slots;var n=t.expose,r=Ft(e),i=r.value,a=r.modelValue,o=xA(),s=o.STATUS,l=o.SIZE,u=wA(),c=DO(),d=wA("range-input"),f=kE({CloseCircleFilledIcon:$I}).CloseCircleFilledIcon,h=LO(),p=Et(!1),m=Et(!1),v=vo(function(){return yU(e.format)}),g=vo(function(){return yU(e.inputProps)}),y=vo(function(){return yU(e.placeholder)}),b=Ew(pD(i,a,e.defaultValue,e.onChange),2),w=b[0],x=b[1],S=vo(function(){var t;return(e.clearable&&(null===(t=e.value)||void 0===t?void 0:t.length)&&!c.value||e.showClearIconOnEmpty)&&m.value}),_=h("label"),k=h("prefixIcon"),A=h("suffix"),C=h("suffixIcon"),T={firstInputRef:Et(),secondInputRef:Et()};function O(t){var n;null===(n=e.onClear)||void 0===n||n.call(e,t),x(["",""],gU(gU({},t),{},{trigger:"clear",position:"all"}))}function I(t,n){var r;null===(r=e.onEnter)||void 0===r||r.call(e,t,n)}function P(t,n){var r;p.value=!0,null===(r=e.onFocus)||void 0===r||r.call(e,t,n)}function E(t,n){var r;p.value=!1,null===(r=e.onBlur)||void 0===r||r.call(e,t,n)}function M(t){var n;m.value=!0,null==e||null===(n=e.onMouseenter)||void 0===n||n.call(e,{e:t})}function D(t){var n;m.value=!1,null==e||null===(n=e.onMouseleave)||void 0===n||n.call(e,{e:t})}return n({firstInputElement:T.firstInputRef.value,secondInputElement:T.secondInputRef.value,focus:function(e){var t,n=(e||{}).position;null===(t=T["".concat(void 0===n?"first":n,"InputRef")].value)||void 0===t||t.focus()},blur:function(e){var t,n=(e||{}).position;null===(t=T["".concat(void 0===n?"first":n,"InputRef")].value)||void 0===t||t.blur()},select:function(e){var t,n=(e||{}).position;null===(t=T["".concat(void 0===n?"first":n,"InputRef")].value)||void 0===t||t.select()}}),function(){var t,n,r;return Na("div",{class:[d.value,(t={},Pw(t,l.value[e.size],"medium"!==e.size),Pw(t,s.value.disabled,c.value),Pw(t,s.value.focused,p.value),Pw(t,"".concat(d.value,"--prefix"),k||_),Pw(t,"".concat(d.value,"--suffix"),A||C),t)],onMouseenter:M,onMouseleave:D},[Na("div",{class:"".concat(d.value,"__inner")},[k,_?Na("div",{class:"".concat(u.value,"-input__prefix")},[_]):null,Na(eL,Xa({ref:T.firstInputRef,class:"".concat(d.value,"__inner-left"),inputClass:Pw({},"".concat(u.value,"-is-focused"),0===e.activeIndex),placeholder:y.value[0],disabled:c.value,readonly:e.readonly,format:v.value[0],value:null===(n=w.value)||void 0===n?void 0:n[0],onClick:function(t){var n,r=t.e;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:r,position:"first"})},onClear:function(){return x([],{position:"first",trigger:"input"})},onEnter:function(e,t){var n,r=t.e;return I([e,null===(n=w.value)||void 0===n?void 0:n[1]],{e:r,position:"first"})},onFocus:function(e,t){var n,r=t.e;return P([e,null===(n=w.value)||void 0===n?void 0:n[1]],{e:r,position:"first"})},onBlur:function(e,t){var n,r=t.e;return E([e,null===(n=w.value)||void 0===n?void 0:n[1]],{e:r,position:"first"})},onChange:function(e,t){var n,r=t.e;return x([e,null===(n=w.value)||void 0===n?void 0:n[1]],{e:r,position:"first",trigger:"input"})}},g.value[0]),null),Na("div",{class:"".concat(d.value,"__inner-separator")},[e.separator]),Na(eL,Xa({ref:T.secondInputRef,class:"".concat(d.value,"__inner-right"),inputClass:Pw({},"".concat(u.value,"-is-focused"),1===e.activeIndex),placeholder:y.value[1],disabled:c.value,readonly:e.readonly,format:v.value[1],value:null===(r=w.value)||void 0===r?void 0:r[1],onClick:function(t){var n,r=t.e;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:r,position:"second"})},onClear:function(){return x([],{position:"second",trigger:"input"})},onEnter:function(e,t){var n,r=t.e;return I([null===(n=w.value)||void 0===n?void 0:n[0],e],{e:r,position:"second"})},onFocus:function(e,t){var n,r=t.e;return P([null===(n=w.value)||void 0===n?void 0:n[0],e],{e:r,position:"second"})},onBlur:function(e,t){var n,r=t.e;return E([null===(n=w.value)||void 0===n?void 0:n[0],e],{e:r,position:"second"})},onChange:function(e,t){var n,r=t.e;return x([null===(n=w.value)||void 0===n?void 0:n[0],e],{e:r,position:"second",trigger:"input"})}},g.value[1]),null),A?Na("div",{class:"".concat(d.value,"__suffix")},[A]):null,C&&Na("span",{class:"".concat(d.value,"__suffix ").concat(d.value,"__suffix-icon")},[S.value?Na(f,{class:"".concat(d.value,"__suffix-clear"),onClick:O},null):C])]),e.tips&&Na("div",{class:"".concat(d.value,"__tips")},[e.tips])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function wU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SU=yr({name:"TRangeInputPopup",props:{autoWidth:Boolean,disabled:Boolean,inputValue:{type:Array,default:void 0},defaultInputValue:{type:Array},panel:{type:Function},popupProps:{type:Object},popupVisible:Boolean,rangeInputProps:{type:Object},readonly:Boolean,status:{type:String,validator:function(e){return!e||["default","success","warning","error"].includes(e)}},tips:{type:[String,Function]},onInputChange:Function,onPopupVisibleChange:Function},setup:function(e){var t=wA("range-input-popup"),n=NF(e),r=n.tOverlayInnerStyle,i=n.innerPopupVisible,a=n.onInnerPopupVisibleChange,o=vo(function(){return[t.value,Pw({},"".concat(t.value,"--visible"),e.popupVisible||i.value)]});return function(){return Na("div",{class:o.value},[Na(wD,Xa({hideEmptyPopup:!0,content:e.panel,trigger:"click",placement:"bottom-left",disabled:e.disabled,visible:e.popupVisible||i.value},xU({overlayInnerStyle:r.value,onVisibleChange:a},e.popupProps)),{default:function(){return[Na(bU,xU({value:e.inputValue,onChange:e.onInputChange,disabled:e.disabled,status:e.status,tips:e.tips},e.rangeInputProps),null)]}})])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */AO(bU);var _U=AO(SU);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function kU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var CU=yr({name:"TRangePanel",props:{hoverValue:Array,activeIndex:Number,isFirstValueSelected:Boolean,disableDate:[Object,Array,Function],mode:{type:String,default:"date"},format:String,presetsPlacement:{type:String,default:"bottom"},value:Array,timePickerProps:Object,presets:Object,popupVisible:Boolean,enableTimePicker:Boolean,panelPreselection:Boolean,firstDayOfWeek:Number,year:Array,month:Array,time:Array,onClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function},setup:function(e){var t=wA("date-range-picker__panel"),n=bA("datePicker").globalConfig,r=VH({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}).format,i=!e.panelPreselection&&2===e.value.length,a=vo(function(){return lU({format:r,mode:e.mode,disableDate:e.disableDate,start:e.isFirstValueSelected&&1===e.activeIndex?new Date(jH(e.value[0],r,"start").toDate().setHours(0,0,0)):void 0,end:e.isFirstValueSelected&&0===e.activeIndex?new Date(jH(e.value[1],r).toDate().setHours(23,59,59)):void 0})}),o=vo(function(){return sU(AU({isRange:!0,start:e.value[0]?jH(e.value[0],r).toDate():void 0,end:e.value[1]?jH(e.value[1],r).toDate():void 0,hoverStart:!i&&e.hoverValue[0]?jH(e.hoverValue[0],r).toDate():void 0,hoverEnd:!i&&e.hoverValue[1]?jH(e.hoverValue[1],r).toDate():void 0,year:e.year[0],month:e.month[0],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||n.value.firstDayOfWeek},a.value))}),s=vo(function(){return sU(AU({isRange:!0,start:e.value[0]?jH(e.value[0],r).toDate():void 0,end:e.value[1]?jH(e.value[1],r).toDate():void 0,hoverStart:!i&&e.hoverValue[0]?jH(e.hoverValue[0],r).toDate():void 0,hoverEnd:!i&&e.hoverValue[1]?jH(e.hoverValue[1],r).toDate():void 0,year:e.year[1],month:e.month[1],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||n.value.firstDayOfWeek},a.value))}),l=vo(function(){return{format:r,mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||n.value.firstDayOfWeek,popupVisible:e.popupVisible,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange}});return function(){return Na("div",{class:[t.value,Pw({},"".concat(t.value,"--direction-row"),["left","right"].includes(e.presetsPlacement))],onClick:function(t){var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}},[["top","left"].includes(e.presetsPlacement)?Na(oU,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement},null):null,Na("div",{class:"".concat(t.value,"-content-wrapper")},[e.enableTimePicker?Na(rU,Xa({key:"start",partial:e.activeIndex?"end":"start",year:e.activeIndex?e.year[1]:e.year[0],month:e.activeIndex?e.month[1]:e.month[0],time:e.activeIndex?e.time[1]:e.time[0],value:e.value,tableData:e.activeIndex?s.value:o.value},l.value),null):[Na(rU,Xa({key:"startPanel",partial:"start",year:e.year[0],month:e.month[0],time:e.time[0],value:e.value,tableData:o.value},l.value),null),Na(rU,Xa({key:"endPanel",partial:"end",year:e.year[1],month:e.month[1],time:e.time[1],value:e.value,tableData:s.value},l.value),null)]]),["bottom","right"].includes(e.presetsPlacement)?Na(oU,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement},null):null])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function TU(e){var t=e.value,n=e.mode,r=void 0===n?"date":n,i=e.format,a=e.timeFormat,o=void 0===a?"HH:mm:ss":a,s=e.enableTimePicker,l={year:[UV().year(),UV().year()],month:[UV().month(),UV().month()],time:[UV().format(o),UV().format(o)]};return"year"===r?l.year[1]+=10:"month"===r||"quarter"===r?l.year[1]+=1:"date"!==r&&"week"!==r||s||(l.month[1]+=1),t&&Array.isArray(t)&&t.length?{year:t.map(function(e){return jH(e,i).year()}),month:t.map(function(e){return jH(e,i).month()}),time:t.map(function(e){return jH(e,i).format(o)})}:l}function OU(e){var t=Ft(e),n=Ew(pD(t.value,t.modelValue,e.defaultValue,e.onChange),2),r=n[0],i=n[1],a=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});e.enableTimePicker&&(RH(a.value.format),!RH(a.value.valueType)&&a.value.valueType),Array.isArray(r.value)&&FH(r.value,a.value.valueType);var o=Et(!1),s=Et(TU({value:r.value,mode:e.mode,format:a.value.format,timeFormat:a.value.timeFormat}).time),l=Et(TU({value:r.value,mode:e.mode,format:a.value.format,enableTimePicker:e.enableTimePicker}).month),u=Et(TU({value:r.value,mode:e.mode,format:a.value.format}).year),c=Et(zH(r.value,{format:a.value.format,targetFormat:a.value.format}));return ea(function(){r.value?FH(r.value,a.value.valueType)&&(c.value=zH(r.value,{format:a.value.format,targetFormat:a.value.format}),s.value=BH(r.value,a.value.timeFormat)):c.value=[]}),{year:u,month:l,value:r,time:s,isFirstValueSelected:o,cacheValue:c,onChange:i}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function IU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var EU={first:"start",second:"end"};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function MU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var DU=yr({name:"TDateRangePicker",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},mU),setup:function(e){var t=wA("date-range-picker"),n=function(e){var t=wA("date-range-picker"),n=bA("datePicker").globalConfig,r=kE({CalendarIcon:hI}).CalendarIcon,i=Et(!1),a=Et(),o=OU(e),s=o.value,l=o.onChange,u=o.time,c=o.month,d=o.year,f=o.cacheValue,h=o.isFirstValueSelected,p=vo(function(){return VH({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})}),m=Et(!1),v=Et(!1),g=Et(0),y=Et(zH(e.value,{format:p.value.format,targetFormat:p.value.format})),b=vo(function(){return PU(PU({},e.rangeInputProps),{},{ref:a,clearable:e.clearable,prefixIcon:e.prefixIcon,readonly:!e.allowInput,separator:e.separator,placeholder:e.placeholder||n.value.placeholder[e.mode],activeIndex:m.value?g.value:void 0,suffixIcon:e.suffixIcon||function(){return Na(r,null,null)},class:Pw({},"".concat(t.value,"__input--placeholder"),v.value),onClick:function(e){var t=e.position;g.value="first"===t?0:1},onClear:function(e){e.e.stopPropagation(),m.value=!1,null==l||l([],{dayjsValue:[],trigger:"clear"})},onBlur:function(t,n){var r,i=n.e,a=n.position;null===(r=e.onBlur)||void 0===r||r.call(e,{value:t,partial:EU[a],e:i})},onFocus:function(t,n){var r,i=n.e,a=n.position;null===(r=e.onFocus)||void 0===r||r.call(e,{value:t,partial:EU[a],e:i}),g.value="first"===a?0:1},onChange:function(e,t){if(t.e,t.position,y.value=e,FH(e,p.value.format)){var n=[],r=[],i=[];e.forEach(function(e,t){n.push(UV(e).year()||d.value[t]),r.push(UV(e).month()||c.value[t]),i.push(UV(e).format(p.value.timeFormat)||u.value[t])}),d.value=n,c.value=r,u.value=i}},onEnter:function(e){(FH(e,p.value.format)||FH(s.value,p.value.format))&&(m.value=!1,FH(e,p.value.format)?null==l||l(zH(e,{format:p.value.format,targetFormat:p.value.valueType}),{dayjsValue:e.map(function(e){return UV(e)}),trigger:"enter"}):FH(s.value,p.value.format)?y.value=zH(s.value,{format:p.value.format,targetFormat:p.value.format}):y.value=[])}})}),w=vo(function(){var n,r,i;return PU(PU({expandAnimation:!0},e.popupProps),{},{overlayInnerStyle:null!==(n=null===(r=e.popupProps)||void 0===r?void 0:r.overlayInnerStyle)&&void 0!==n?n:{width:"auto"},overlayClassName:[null===(i=e.popupProps)||void 0===i?void 0:i.overlayClassName,"".concat(t.value,"__panel-container")],onVisibleChange:function(e,t){if("trigger-element-click"===t.trigger)return a.value.focus({position:{0:"first",1:"second"}[g.value]}),void(m.value=!0);e||(v.value=!1,y.value=zH(s.value,{format:p.value.format,targetFormat:p.value.format})),m.value=e}})});return ea(function(){s.value?FH(s.value,"valueType")&&(y.value=zH(s.value,{format:p.value.format,targetFormat:p.value.format})):y.value=[]}),ea(function(){i.value?a.value.focus({position:{0:"first",1:"second"}[g.value]}):i.value=!0}),{year:d,month:c,value:s,time:u,inputValue:y,popupVisible:m,rangeInputProps:b,popupProps:w,isHoverCell:v,activeIndex:g,isFirstValueSelected:h,cacheValue:f,onChange:l}}(e),r=n.inputValue,i=n.popupVisible,a=n.rangeInputProps,o=n.popupProps,s=n.value,l=n.year,u=n.month,c=n.time,d=n.cacheValue,f=n.activeIndex,h=n.isHoverCell,p=n.isFirstValueSelected,m=n.onChange,v=DO(),g=vo(function(){return VH({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format,valueType:e.valueType})}),y=Et(!1);function b(e){h.value=!0;var t=Iw(r.value);t[f.value]=zH(e,{format:g.value.format,targetFormat:g.value.format}),r.value=t}function w(){h.value=!1,r.value=d.value}function x(t,n){var a,o=n.e,s=n.partial;null===(a=e.onPick)||void 0===a||a.call(e,t,{e:o,partial:f.value?"end":"start"}),h.value=!1,y.value=!0;var l=Iw(r.value);if(l[f.value]=zH(t,{format:g.value.format,targetFormat:g.value.format}),d.value=l,r.value=l,"date"===e.mode){var c="start"===s?0:1;UV(t).month()!==u.value[c]&&(0===f.value&&(u.value=[UV(t).month(),Math.min(UV(t).month()+1,11)]),1===f.value&&(u.value=[Math.max(UV(t).month()-1,0),UV(t).month()]))}if(!e.enableTimePicker){var v=l.findIndex(function(e){return!e||!FH(e,g.value.format)});-1===v&&2===l.length&&!e.enableTimePicker&&p.value?(null==m||m(zH(l,{format:g.value.format,targetFormat:g.value.valueType}),{dayjsValue:l.map(function(e){return UV(e)}),trigger:"pick"}),p.value=!1,i.value=!1):-1!==v?(f.value=v,p.value=!0):(f.value=f.value?0:1,p.value=!0)}}function S(t){var n=t.trigger,r="start"===t.partial?0:1,i={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,a=new Date(l.value[r],u.value[r]),o=null;"prev"===n?o=EH(a,i):"current"===n?o=new Date:"next"===n&&(o=MH(a,i));var s=Iw(l.value);s[r]=o.getFullYear();var c=Iw(u.value);c[r]=o.getMonth(),0===r&&(s[1]=Math.max(s[0],s[1]),s[0]===s[1]&&(c[1]=Math.max(c[0],c[1]))),1===r&&(s[0]=Math.min(s[0],s[1]),s[0]===s[1]&&(c[0]=Math.min(c[0],c[1]))),l.value=s,u.value=c}function _(e){var t=LH(e),n=t.hours,i=t.minutes,a=t.seconds,o=t.milliseconds,s=t.meridiem,h=Iw(r.value),p=r.value[f.value],m=UV(p,g.value.format).isValid()?UV(p,g.value.format):UV().year(l.value[f.value]).month(u.value[f.value]),v=n;/am/i.test(s)&&12===v&&(v-=12),/pm/i.test(s)&&v<12&&(v+=12);var b=m.hour(v).minute(i).second(a).millisecond(o).toDate();h[f.value]=b;var w=Iw(c.value);w[f.value]=e,c.value=w,y.value=!0,r.value=zH(h,{format:g.value.format,targetFormat:g.value.format}),d.value=zH(h,{format:g.value.format,targetFormat:g.value.format})}function k(){var e=Iw(r.value),t=e.findIndex(function(e){return!e||!FH(e,g.value.format)});-1===t&&2===e.length&&p.value?(null==m||m(zH(e,{format:g.value.format,targetFormat:g.value.valueType}),{dayjsValue:e.map(function(e){return UV(e)}),trigger:"confirm"}),l.value=e.map(function(e){return UV(e,g.value.format).year()}),u.value=e.map(function(e){return UV(e,g.value.format).month()}),i.value=!1,p.value=!1):-1!==t?(f.value=t,p.value=!0):(f.value=f.value?0:1,p.value=!0)}function A(e){var t=e;"function"==typeof e&&(t=e()),Array.isArray(t)&&(null==m||m(zH(t,{format:g.value.format,targetFormat:g.value.valueType}),{dayjsValue:t.map(function(e){return UV(e)}),trigger:"preset"}),i.value=!1)}function C(t,n){var r="start"===n.partial?0:1;e.enableTimePicker&&(r=f.value);var i=Iw(l.value);i[r]=t,0===r&&(i[1]=Math.max(i[0],i[1])),1===r&&(i[0]=Math.min(i[0],i[1])),l.value=i}function T(t,n){var r="start"===n.partial?0:1;e.enableTimePicker&&(r=f.value);var i=Iw(u.value);i[r]=t,l[0]===l[1]&&(0===r&&(i[1]=Math.max(i[0],i[1])),1===r&&(i[0]=Math.min(i[0],i[1]))),u.value=i}ta(i,function(t){if(t)if(y.value=!1,p.value=!1,d.value=zH(s.value||[],{format:g.value.format,targetFormat:g.value.format}),c.value=BH(s.value||[UV().format(g.value.timeFormat),UV().format(g.value.timeFormat)],g.value.timeFormat),s.value.length)if(2!==s.value.length||e.enableTimePicker)l.value=s.value.map(function(e){return jH(e||new Date,g.value.format).year()}),u.value=s.value.map(function(e){return jH(e||new Date,g.value.format).month()});else{var n=s.value.map(function(e){return jH(e||new Date,g.value.format).month()});l.value[0]===l.value[1]&&n[0]===n[1]&&(11===n[0]?n[0]-=1:n[1]+=1),u.value=n}else l.value=TU({value:s.value,mode:e.mode,format:g.value.format}).year,u.value=TU({value:s.value,mode:e.mode,format:g.value.format,enableTimePicker:e.enableTimePicker}).month});var O=vo(function(){return{hoverValue:h.value?r.value:[],value:y.value?d.value:s.value,isFirstValueSelected:p.value,activeIndex:f.value,year:l.value,month:u.value,format:g.value.format,mode:e.mode,presets:e.presets,time:c.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:i.value,panelPreselection:e.panelPreselection,onCellClick:x,onCellMouseEnter:b,onCellMouseLeave:w,onJumperClick:S,onConfirmClick:k,onPresetClick:A,onYearChange:C,onMonthChange:T,onTimePickerChange:_}});return function(){return Na("div",{class:t.value},[Na(_U,{disabled:v.value,status:e.status,tips:e.tips,inputValue:r.value,popupProps:o.value,rangeInputProps:a.value,popupVisible:i.value,panel:function(){return Na(CU,O.value,null)}},null)])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function RU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var LU=yr({name:"TDateRangePickerPanel",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({value:mU.value,defaultValue:mU.defaultValue,modelValue:mU.modelValue,valueType:mU.valueType,disabled:mU.disabled,disableDate:mU.disableDate,enableTimePicker:mU.enableTimePicker,firstDayOfWeek:mU.firstDayOfWeek,format:mU.format,mode:mU.mode,presets:mU.presets,presetsPlacement:mU.presetsPlacement,timePickerProps:mU.timePickerProps,panelPreselection:mU.panelPreselection},{onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function}),setup:function(e){var t=OU(e),n=t.value,r=t.year,i=t.month,a=t.time,o=t.cacheValue,s=t.isFirstValueSelected,l=t.onChange,u=vo(function(){return VH({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format,valueType:e.valueType})}),c=Et(!1),d=Et(!1),f=Et([]),h=vo(function(){return s.value?1:0});function p(e){d.value=!0;var t=Iw(f.value);t[h.value]=zH(e,{format:u.value.format,targetFormat:u.value.format}),f.value=t}function m(){d.value=!1,f.value=o.value}function v(t,r){var i,a=r.e;null===(i=e.onCellClick)||void 0===i||i.call(e,{e:a,partial:h.value?"end":"start",date:n.value.map(function(e){return UV(e).toDate()})}),d.value=!1,c.value=!0;var f=Iw(o.value);f[h.value]=zH(t,{format:u.value.format,targetFormat:u.value.format}),o.value=f,e.enableTimePicker||(2===f.length&&!e.enableTimePicker&&s.value?(null==l||l(zH(f,{format:u.value.format,targetFormat:u.value.valueType}),{dayjsValue:f.map(function(e){return UV(e)}),trigger:"pick"}),s.value=!1):s.value=!0)}function g(t){var a=t.trigger,o=t.partial,s="start"===o?0:1,l={prev:"arrow-previous",next:"arrow-next"},u={date:1,month:12,year:120}[e.mode]||0,c=new Date(r.value[s],i.value[s]),d=null;"prev"===a?d=EH(c,u):"current"===a?d=new Date:"next"===a&&(d=MH(c,u));var f=Iw(r.value);f[s]=d.getFullYear();var h,p,m=Iw(i.value);(m[s]=d.getMonth(),0===s&&(f[1]=Math.max(f[0],f[1]),f[0]===f[1]&&(m[1]=Math.max(m[0],m[1]))),1===s&&(f[0]=Math.min(f[0],f[1]),f[0]===f[1]&&(m[0]=Math.min(m[0],m[1]))),r.value.some(function(e){return!f.includes(e)}))&&(null===(h=e.onYearChange)||void 0===h||h.call(e,{partial:o,year:f[s],date:n.value.map(function(e){return UV(e).toDate()}),trigger:"current"===a?"today":"year-".concat(l[a])}));i.value.some(function(e){return!m.includes(e)})&&(null===(p=e.onMonthChange)||void 0===p||p.call(e,{partial:o,month:m[s],date:n.value.map(function(e){return UV(e).toDate()}),trigger:"current"===a?"today":"month-".concat(l[a])}));r.value=f,i.value=m}function y(t){var s,l=LH(t),d=l.hours,f=l.minutes,p=l.seconds,m=l.milliseconds,v=l.meridiem,g=Iw(o.value),y=o.value[h.value],b=UV(y,u.value.format).isValid()?UV(y,u.value.format):UV().year(r.value[h.value]).month(i.value[h.value]),w=d;/am/i.test(v)&&12===w&&(w-=12),/pm/i.test(v)&&w<12&&(w+=12);var x=b.hour(w).minute(f).second(p).millisecond(m).toDate();g[h.value]=x;var S=Iw(a.value);S[h.value]=t,a.value=S,c.value=!0,o.value=zH(g,{format:u.value.format,targetFormat:u.value.format}),null===(s=e.onTimeChange)||void 0===s||s.call(e,{time:t,date:n.value.map(function(e){return UV(e).toDate()}),partial:h.value?"end":"start",trigger:"time-hour"})}function b(t){var a,c=t.e,d=Iw(o.value);2===d.length&&s.value?(null==l||l(zH(d,{format:u.value.format,targetFormat:u.value.valueType}),{dayjsValue:d.map(function(e){return UV(e)}),trigger:"confirm"}),r.value=d.map(function(e){return UV(e,u.value.format).year()}),i.value=d.map(function(e){return UV(e,u.value.format).month()}),s.value=!1):s.value=!0,null===(a=e.onConfirm)||void 0===a||a.call(e,{date:n.value.map(function(e){return UV(e).toDate()}),e:c})}function w(e){var t=e;"function"==typeof e&&(t=e()),Array.isArray(t)&&(null==l||l(zH(t,{format:u.value.format,targetFormat:u.value.valueType}),{dayjsValue:t.map(function(e){return UV(e)}),trigger:"preset"}))}function x(t,i){var a,o=i.partial,s="start"===o?0:1;e.enableTimePicker&&(s=h.value);var l=Iw(r.value);l[s]=t,0===s&&(l[1]=Math.max(l[0],l[1])),1===s&&(l[0]=Math.min(l[0],l[1])),r.value=l,null===(a=e.onYearChange)||void 0===a||a.call(e,{partial:o,year:l[s],date:n.value.map(function(e){return UV(e).toDate()}),trigger:"year-select"})}function S(t,a){var o,s=a.partial,l="start"===s?0:1;e.enableTimePicker&&(l=h.value);var u=Iw(i.value);u[l]=t,r[0]===r[1]&&(0===l&&(u[1]=Math.max(u[0],u[1])),1===l&&(u[0]=Math.min(u[0],u[1]))),i.value=u,null===(o=e.onMonthChange)||void 0===o||o.call(e,{partial:s,month:u[l],date:n.value.map(function(e){return UV(e).toDate()}),trigger:"month-select"})}var _=vo(function(){return{hoverValue:d.value?f.value:[],value:c.value?o.value:n.value,activeIndex:h.value,year:r.value,month:i.value,mode:e.mode,format:u.value.format,presets:e.presets,time:a.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,panelPreselection:e.panelPreselection,panelClick:e.onPanelClick,onCellClick:v,onCellMouseEnter:p,onCellMouseLeave:m,onJumperClick:g,onConfirmClick:b,onPresetClick:w,onYearChange:x,onMonthChange:S,onTimePickerChange:y}});return function(){return Na(CU,_.value,null)}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */AO(fU),AO(pU);var NU=AO(DU);AO(LU);
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var jU=tx,FU=SS;var zU=function(e){return!0===e||!1===e||FU(e)&&"[object Boolean]"==jU(e)};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function BU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var VU=yr({name:"TForm",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BU(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{colon:Boolean,data:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:void 0},errorMessage:{type:Object},formControlledComponents:{type:Array},labelAlign:{type:String,default:"right",validator:function(e){return!e||["left","right","top"].includes(e)}},labelWidth:{type:[String,Number],default:"100px"},layout:{type:String,default:"vertical",validator:function(e){return!e||["vertical","inline"].includes(e)}},preventSubmitDefault:{type:Boolean,default:!0},requiredMark:{type:Boolean,default:void 0},resetType:{type:String,default:"empty",validator:function(e){return!e||["empty","initial"].includes(e)}},rules:{type:Object},scrollToFirstError:{type:String,default:"",validator:function(e){return!e||["","smooth","auto"].includes(e)}},showErrorMessage:{type:Boolean,default:!0},statusIcon:{type:[Boolean,Function],default:void 0},submitWithWarningMessage:Boolean,onReset:Function,onSubmit:Function,onValidate:Function}),setup:function(e,t){var n=t.expose,r=LO();gi("formDisabled",{disabled:Ft(e).disabled});var i=Et(null),a=Et([]),o=Ft(e),s=o.showErrorMessage,l=o.labelWidth,u=o.labelAlign,c=o.data,d=o.colon,f=o.requiredMark,h=o.rules,p=o.errorMessage,m=o.resetType;gi(UR,bt({showErrorMessage:s,labelWidth:l,labelAlign:u,data:c,colon:d,requiredMark:f,rules:h,errorMessage:p,resetType:m,children:a,renderContent:r}));var v=wA("form"),g=HR(),y=vo(function(){return[g.value.form,Pw({},"".concat(v.value,"-inline"),"inline"===e.layout)]}),b=wA("form-item__"),w=function(t){if(zU(t))return"";var n=Ew(Object.keys(t),1)[0];e.scrollToFirstError&&x(".".concat(b.value+n));var r=t[n];return r_(r)?r.filter(function(e){return!e.result})[0].message:""},x=function(t){var n,r=null===(n=i.value)||void 0===n?void 0:n.querySelector(t),a=e.scrollToFirstError;a&&r&&r.scrollIntoView({behavior:a})},S=function(e,t){return!t||!Array.isArray(t)||-1!==t.indexOf("".concat(e))},_=function(e){var t=e.reduce(function(e,t){return Object.assign(e||{},t)},{});return Object.keys(t).forEach(function(e){!0===t[e]&&delete t[e]}),!!IC(t)||t},k=function(){var t=fE(vE.mark(function t(n){var r,i,o,s,l,u,c,d,f,h;return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=(i=n||{}).fields,s=i.trigger,l=void 0===s?"all":s,u=i.showErrorMessage,c=a.value.filter(function(e){return ox(e.validate)&&S(String(e.name),o)}).map(function(e){return e.validate(l,u)}),t.next=4,Promise.all(c);case 4:return d=t.sent,f=_(d),h=w(f),null===(r=e.onValidate)||void 0===r||r.call(e,{validateResult:f,firstError:h}),t.abrupt("return",f);case 9:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),A=function(){var e=fE(vE.mark(function e(t){var n,r,i,o,s,l;return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n=t||{}).fields,i=n.trigger,o=void 0===i?"all":i,s=a.value.filter(function(e){return ox(e.validateOnly)&&S(String(e.name),r)}).map(function(e){return e.validateOnly(o)}),e.next=4,Promise.all(s);case 4:return l=e.sent,e.abrupt("return",_(l));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),C=Et(),T=function(){var e=fE(vE.mark(function e(t){return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:C.value=t,qA(i.value);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),O=Et();return n({validate:k,submit:T,reset:function(e){O.value=e,i.value.reset()},clearValidate:function(e){a.value.forEach(function(t){ox(t.resetHandler)&&S(String(t.name),e)&&t.resetHandler()})},setValidateMessage:function(e){var t=Object.keys(e);if(t.length){var n=a.value.filter(function(e){return ox(e.setValidateMessage)&&t.includes("".concat(e.name))}).map(function(t){return t.setValidateMessage(e[t.name])});Promise.all(n)}},validateOnly:A}),function(){return Na("form",{ref:i,class:y.value,onSubmit:function(t){return function(t){e.preventSubmitDefault&&t&&(t.preventDefault(),t.stopPropagation()),k(C.value).then(function(n){var r;null===(r=e.onSubmit)||void 0===r||r.call(e,{validateResult:n,firstError:w(n),e:t})}),C.value=void 0}(t)},onReset:function(t){return function(t){var n;e.preventSubmitDefault&&t&&(t.preventDefault(),t.stopPropagation()),a.value.filter(function(e){var t;return ox(e.resetField)&&S(String(e.name),null===(t=O.value)||void 0===t?void 0:t.fields)}).forEach(function(e){var t;return e.resetField(null===(t=O.value)||void 0===t?void 0:t.type)}),O.value=void 0,null===(n=e.onReset)||void 0===n||n.call(e,{e:t})}(t)}},[r("default")])}}}),HU=YL;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var WU=function(e,t,n){return null==e?e:HU(e,t,n)},UU={exports:{}},XU={exports:{}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}(XU,XU.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},s):(0,r.default)(t,s);if("string"==typeof e&&(m=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(m))){var n,o=t.delimiters.find(function(e){return-1!==t.format.indexOf(e)}),l=t.strictMode?o:t.delimiters.find(function(t){return-1!==e.indexOf(t)}),u=function(e,t){for(var n=[],r=Math.min(e.length,t.length),i=0;i<r;i++)n.push([e[i],t[i]]);return n}(e.split(l),t.format.toLowerCase().split(o)),c={},d=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=a(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(u);try{for(d.s();!(n=d.n()).done;){var f=i(n.value,2),h=f[0],p=f[1];if(h.length!==p.length)return!1;c[p.charAt(0)]=h}}catch(v){d.e(v)}finally{d.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var m;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,r=(n=XU.exports)&&n.__esModule?n:{default:n};function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(UU,UU.exports);var GU=Fw(UU.exports),YU={exports:{}},KU={exports:{}};!function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default}(KU,KU.exports);var qU={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a;(0,r.default)(e),"object"===i(t)?(n=t.min||0,a=t.max):(n=arguments[1],a=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=n&&(void 0===a||o<=a)};var n,r=(n=KU.exports)&&n.__esModule?n:{default:n};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default}(qU,qU.exports);var ZU={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,r.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),o=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return i.every(function(e){return!(e.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))})};var n=i(KU.exports),r=i(XU.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};e.exports=t.default,e.exports.default=t.default}(ZU,ZU.exports);var JU={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n){return!!o.test(t)&&t.split(".").sort(function(e,t){return e-t})[3]<=255}if("6"===n)return!!l.test(t);return!1};var n,r=(n=KU.exports)&&n.__esModule?n:{default:n};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),o=new RegExp("^".concat(a,"$")),s="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(a,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(a,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(a,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(a,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(a,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(a,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(a,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(JU,JU.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,r.default)(t,l)).require_display_name||t.allow_display_name){var s=e.match(u);if(s){var v=s[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.substr(0,v.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),y=g.pop(),b=y.toLowerCase();if(t.host_blacklist.includes(b))return!1;var w=g.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var x=(w=w.toLowerCase()).split("+")[0];if(!(0,i.default)(x.replace(/\./g,""),{min:6,max:30}))return!1;for(var S=x.split("."),_=0;_<S.length;_++)if(!d.test(S[_]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(w,{max:64})&&(0,i.default)(y,{max:254})))return!1;if(!(0,a.default)(y,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var k=y.substr(1,y.length-2);if(0===k.length||!(0,o.default)(k))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?p.test(w):f.test(w);for(var A=t.allow_utf8_local_part?h:c,C=w.split("."),T=0;T<C.length;T++)if(!A.test(C[T]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var n=s(KU.exports),r=s(XU.exports),i=s(qU.exports),a=s(ZU.exports),o=s(JU.exports);function s(e){return e&&e.__esModule?e:{default:e}}var l={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,d=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default}(YU,YU.exports);var QU=Fw(YU.exports),$U={exports:{}};function eX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eX(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nX(e){return"[object Date]"!==Object.prototype.toString.call(e)&&("object"===zw(e)?IC(e):["",void 0,null].includes(e))}!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,l)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var o,c,f,h,p,m,v,g;if(v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),(v=e.split("://")).length>1){if(o=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(o))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.substr(2)}}if(""===(e=v.join("://")))return!1;if(v=e.split("/"),""===(e=v.shift())&&!t.require_host)return!0;if((v=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===v[0])return!1;if((c=v.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(_=2,function(e){if(Array.isArray(e))return e}(S=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(S,_)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(S,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],x=b[1];if(""===w&&""===x)return!1}var S,_;h=v.join("@"),m=null,g=null;var k=h.match(u);k?(f="",g=k[1],m=k[2]||null):(f=(v=h.split(":")).shift(),v.length&&(m=v.join(":")));if(null!==m&&m.length>0){if(p=parseInt(m,10),!/^[0-9]+$/.test(m)||p<=0||p>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(!((0,i.default)(f)||(0,r.default)(f,t)||g&&(0,i.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var n=o(KU.exports),r=o(ZU.exports),i=o(JU.exports),a=o(XU.exports);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},u=/^\[([^\]]+)\](?::([0-9]+))?$/;function c(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||c(r)&&r.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}($U,$U.exports);var rX={date:GU,url:Fw($U.exports),email:QU,required:function(e){return!nX(e)},whitespace:function(e){return!(/^\s+$/.test(e)||""===e)},boolean:function(e){return"boolean"==typeof e},max:function(e,t){return NR(e)?e<=t:ID(e)<=t},min:function(e,t){return NR(e)?e>=t:ID(e)>=t},len:function(e,t){return ID(e)===t},number:function(e){return NR(e)},enum:function(e,t){return t.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,t){return t.test(e)},validator:function(e,t){return t(e)}};function iX(e,t){return aX.apply(this,arguments)}function aX(){return(aX=fE(vE.mark(function e(t,n){var r,i,a,o,s,l,u;return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r={result:!0},i=Object.keys(n),s=0;case 3:if(!(s<i.length)){e.next=15;break}if(l=i[s],n.required||!nX(t)||n.validator){e.next=7;break}return e.abrupt("return",r);case 7:if(!(u=rX[l])||!n[l]){e.next=12;break}return a=!0===n[l]?void 0:n[l],o=u,e.abrupt("break",15);case 12:s++,e.next=3;break;case 15:if(!o){e.next=23;break}return e.next=18,o(t,a);case 18:if("boolean"!=typeof(r=e.sent)){e.next=21;break}return e.abrupt("return",tX(tX({},n),{},{result:r}));case 21:if("object"!==zw(r)){e.next=23;break}return e.abrupt("return",r);case 23:return e.abrupt("return",r);case 24:case"end":return e.stop()}},e)}))).apply(this,arguments)}function oX(e,t){return sX.apply(this,arguments)}function sX(){return(sX=fE(vE.mark(function e(t,n){var r,i;return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map(function(e){return iX(t,e)}),e.next=3,Promise.all(r);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var lX={for:{type:String,default:""},help:{type:[String,Function]},label:{type:[String,Function],default:""},labelAlign:{type:String,validator:function(e){return!e||["left","right","top"].includes(e)}},labelWidth:{type:[String,Number]},name:{type:[String,Number]},requiredMark:{type:Boolean,default:void 0},rules:{type:Array},showErrorMessage:{type:Boolean,default:void 0},statusIcon:{type:[Boolean,Function],default:void 0},successBorder:Boolean},uX=F_,cX=ek,dX=dA(function(e,t,n,r){uX(t,cX(t),e,r)}),fX=tx,hX=SS,pX=Tk;
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var mX=function(e){if(!hX(e))return!1;var t=fX(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!pX(e)},vX=nk,gX=mX,yX=yk(function(e,t){try{return vX(e,void 0,t)}catch(kJe){return gX(kJe)?kJe:new Error(kJe)}}),bX=PC;var wX=function(e,t){return bX(t,function(t){return e[t]})},xX=Tx,SX=Object.prototype,_X=SX.hasOwnProperty;var kX=function(e,t,n,r){return void 0===e||xX(e,SX[n])&&!_X.call(r,n)?t:e},AX={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var CX=function(e){return"\\"+AX[e]},TX=/<%=([\s\S]+?)%>/g,OX=bT({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),IX=VC,PX=/[&<>"']/g,EX=RegExp(PX.source);var MX=dX,DX=yX,RX=wX,LX=kX,NX=CX,jX=mX,FX=Mk,zX=AN,BX=TX,VX={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:TX,variable:"",imports:{_:{escape:function(e){return(e=IX(e))&&EX.test(e)?e.replace(PX,OX):e}}}},HX=VC,WX=/\b__p \+= '';/g,UX=/\b(__p \+=) '' \+/g,XX=/(__e\(.*?\)|\b__t\)) \+\n'';/g,GX=/[()=,{}\[\]\/\s]/,YX=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,KX=/($^)/,qX=/['\n\r\u2028\u2029\\]/g,ZX=Object.prototype.hasOwnProperty;var JX=function(e,t,n){var r=VX.imports._.templateSettings||VX;n&&FX(e,t,n)&&(t=void 0),e=HX(e),t=MX({},t,r,LX);var i,a,o=MX({},t.imports,r.imports,LX),s=zX(o),l=RX(o,s),u=0,c=t.interpolate||KX,d="__p += '",f=RegExp((t.escape||KX).source+"|"+c.source+"|"+(c===BX?YX:KX).source+"|"+(t.evaluate||KX).source+"|$","g"),h=ZX.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(u,l).replace(qX,NX),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),d+="';\n";var p=ZX.call(t,"variable")&&t.variable;if(p){if(GX.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(WX,""):d).replace(UX,"$1").replace(XX,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=DX(function(){return Function(s,h+"return "+d).apply(void 0,l)});if(m.source=d,jX(m))throw m;return m};function QX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QX(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eG=yr({name:"TFormItem",props:$X({},lX),setup:function(e){var t=LO(),n=HR(),r=bA("form").globalConfig,i=kE({CheckCircleFilledIcon:gI,CloseCircleFilledIcon:$I,ErrorCircleFilledIcon:mP}),a=i.CheckCircleFilledIcon,o=i.CloseCircleFilledIcon,s=i.ErrorCircleFilledIcon,l=yi(UR,void 0),u=wA("form-item__"),c=vo(function(){var t=e.requiredMark;if("boolean"==typeof t)return t;var n=void 0===(null==l?void 0:l.requiredMark)?r.value.requiredMark:null==l?void 0:l.requiredMark,i=E.value.filter(function(e){return e.required}).length>0;return Boolean(n&&i)}),d=vo(function(){return!(null==l||!l.colon||!t("label"))}),f=wA("form__label"),h=vo(function(){return hV(e.labelAlign)?null==l?void 0:l.labelAlign:e.labelAlign}),p=vo(function(){return hV(e.labelWidth)?null==l?void 0:l.labelWidth:e.labelWidth}),m=vo(function(){var e;return[n.value.label,(e={},Pw(e,"".concat(f.value,"--required"),c.value),Pw(e,"".concat(f.value,"--colon"),d.value),Pw(e,"".concat(f.value,"--top"),"top"===h.value||!p.value),Pw(e,"".concat(f.value,"--left"),"left"===h.value&&p.value),Pw(e,"".concat(f.value,"--right"),"right"===h.value&&p.value),e)]}),v=function(){if(0!==Number(p.value)){var n={};return p.value&&"top"!==h.value&&(n="number"==typeof p.value?{width:"".concat(p.value,"px")}:{width:p.value}),Na("div",{class:m.value,style:n},[Na("label",{for:e.for},[t("label")])])}},g=function(){var e=function(e){return Na("span",{class:n.value.status},[Na(e,null,null)])},t=S.value;if(k.value===WR.SUCCESS)return e(a);if(null!=t&&t[0]){var r=t[0].type||"error";return e({error:o,warning:s}[r]||a)}return null},y=function(){if(!1!==e.statusIcon){var r=t("statusIcon",{defaultNode:g()});if(r)return Na("span",{class:n.value.status},[r]);if(!1!==r)return(r=null==l?void 0:l.renderContent("statusIcon",{defaultNode:g()}))||void 0}},b=vo(function(){return z.value?k.value===WR.SUCCESS?e.successBorder?[n.value.success,n.value.successBorder].join(" "):n.value.success:S.value.length?"error"===(S.value[0].type||"error")?n.value.error:n.value.warning:void 0:""}),w=vo(function(){return[n.value.controls,b.value]}),x=vo(function(){var e={};return p.value&&"top"!==h.value&&(e="number"==typeof p.value?{marginLeft:"".concat(p.value,"px")}:{marginLeft:p.value}),e}),S=Et([]),_=Et([]),k=Et(WR.TO_BE_VALIDATED),A=Et(!1),C=Et(!1),T=function(){C.value=!1,S.value=[],_.value=[],k.value=WR.TO_BE_VALIDATED},O=function(){var t,n=Object.prototype.toString.call(fF(null==l?void 0:l.data,e.name));return"[object String]"===n&&(t=""),"[object Array]"===n&&(t=[]),"[object Object]"===n&&(t={}),t},I=function(){var t=fE(vE.mark(function t(){var n,r=arguments;return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.length>0&&void 0!==r[0]?r[0]:null==l?void 0:l.resetType,e.name){t.next=3;break}return t.abrupt("return");case 3:return"empty"===n?WU(null==l?void 0:l.data,e.name,O()):"initial"===n&&WU(null==l?void 0:l.data,e.name,N.value),t.next=6,fn();case 6:A.value?C.value=!0:T();case 7:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),P=vo(function(){var e;return null!==(e=null==l?void 0:l.errorMessage)&&void 0!==e?e:r.value.errorMessage}),E=vo(function(){var t;if(null!==(t=e.rules)&&void 0!==t&&t.length)return e.rules;if(!e.name)return[];var n="".concat(e.name).lastIndexOf(".")||-1,r="".concat(e.name).slice(n+1);return fF(null==l?void 0:l.rules,e.name)||fF(null==l?void 0:l.rules,r)||[]}),M=function(){var t=fE(vE.mark(function t(n){var r,i;return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((i={successList:[],errorList:[],rules:[],resultList:[],allowSetValue:!1}).rules="all"===n?E.value:E.value.filter(function(e){return(e.trigger||"change")===n}),!E.value.length||null!==(r=i.rules)&&void 0!==r&&r.length){t.next=4;break}return t.abrupt("return",i);case 4:return i.allowSetValue=!0,t.next=7,oX(L.value,i.rules);case 7:return i.resultList=t.sent,i.errorList=i.resultList.filter(function(e){return!0!==e.result}).map(function(t){return Object.keys(t).forEach(function(n){if(!t.message&&P.value[n]){var r=JX(P.value[n]),i="string"==typeof e.label?e.label:e.name;t.message=r({name:i,validate:t[n]})}}),t}),i.successList=i.resultList.filter(function(e){return!0===e.result&&e.message&&"success"===e.type}),t.abrupt("return",i);case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),D=function(){var t=fE(vE.mark(function t(n,r){var i,a,o,s,l;return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return A.value=!0,F.value=r,t.next=4,M(n);case 4:return i=t.sent,a=i.successList,o=i.errorList,s=i.rules,l=i.resultList,i.allowSetValue&&(_.value=a,S.value=o),s.length?k.value=o.length?WR.FAIL:WR.SUCCESS:k.value=WR.TO_BE_VALIDATED,C.value&&T(),A.value=!1,t.abrupt("return",Pw({},e.name,0===o.length||l));case 15:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}(),R=function(){var t=fE(vE.mark(function t(n){var r,i,a;return vE.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,M(n);case 2:return r=t.sent,i=r.errorList,a=r.resultList,t.abrupt("return",Pw({},e.name,0===i.length||a));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),L=vo(function(){return(null==l?void 0:l.data)&&fF(null==l?void 0:l.data,e.name)}),N=Et(void 0),j=bt({name:Ft(e).name,resetHandler:T,resetField:I,validate:D,validateOnly:R,setValidateMessage:function(e){(e||Array.isArray(e))&&(0===e.length&&(S.value=[],k.value=WR.SUCCESS),S.value=e.map(function(e){return $X($X({},e),{},{result:!1})}),k.value=WR.FAIL)}});Er(function(){N.value=uF(L.value),null==l||l.children.push(j)}),Rr(function(){l&&(l.children=null==l?void 0:l.children.filter(function(e){return e!==j}))}),ta(L,fE(vE.mark(function e(){return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D("change");case 2:case"end":return e.stop()}},e)})),{deep:!0});var F=Et(void 0),z=vo(function(){return"boolean"==typeof F.value?F.value:"boolean"==typeof e.showErrorMessage?e.showErrorMessage:null==l?void 0:l.showErrorMessage}),B=vo(function(){var t;return[n.value.formItem,u.value+(e.name||""),(t={},Pw(t,n.value.formItemWithHelp,V.value),Pw(t,n.value.formItemWithExtra,H.value),t)]}),V=vo(function(){var e=t("help");return e?Na("div",{class:n.value.help},[e]):null}),H=vo(function(){var e,t=function(e){return Na("div",{class:n.value.extra},[e])},r=S.value;return z.value&&null!=r&&null!==(e=r[0])&&void 0!==e&&e.message?t(r[0].message):_.value.length?t(_.value[0].message):null}),W=function(){var e=fE(vE.mark(function e(){return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D("blur");case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return gi(XR,{handleBlur:W}),function(){return Na("div",{class:B.value},[v(),Na("div",{class:w.value,style:x.value},[Na("div",{class:n.value.controlsContent},[t("default"),y()]),[V.value,H.value]])])}}}),tG=AO(VU),nG=AO(eG),rG={allowUncheck:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},label:{type:[String,Function]},name:{type:String,default:""},value:{type:[String,Number,Boolean],default:void 0},onChange:Function,onClick:Function},iG=Symbol("RadioGroupProvide"),aG=Symbol("RadioButtonProvide");
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var sG=yr({name:"TRadio",inheritAttrs:!1,props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},rG),setup:function(e,t){var n=t.attrs,r=Ft(e),i=Ew(pD(r.checked,r.modelValue,e.defaultChecked,e.onChange,"checked"),2),a=i[0],o=i[1],s=vo(function(){return l?e.value===l.value:a.value}),l=yi(iG,void 0),u=function(t){if(null!=l&&l.setValue)l.setValue(e.value,{e:t});else{var n=t.target.checked;o(n,{e:t})}},c=function(t){var n;t.stopPropagation(),null===(n=e.onClick)||void 0===n||n.call(e,{e:t}),s.value&&e.allowUncheck&&(l?l.setValue(void 0,{e:t}):o(!1,{e:t}))},d=vo(function(){return e={focus:n.onFocus,blur:n.onBlur,keydown:n.onKeydown,keyup:n.onKeyup,keypresss:n.onKeypresss},t={},Object.keys(e).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t;var e,t}),f=vo(function(){var e=[].concat(Iw(Object.keys(d.value)),["input","change"]).map(function(e){return"on".concat(e[0].toUpperCase()).concat(e.slice(1))});return CD(n,e)}),h=DO(vo(function(){return null==l?void 0:l.disabled})),p=vo(function(){return{name:l?l.name:e.name,checked:s.value,disabled:h.value,value:e.value}}),m=xA().STATUS,v=yi(aG,void 0),g=wA("radio-button"),y=wA("radio"),b=vo(function(){return v?g.value:y.value}),w=vo(function(){var e;return["".concat(b.value),(e={},Pw(e,m.value.checked,p.value.checked),Pw(e,m.value.disabled,p.value.disabled),e)]}),x=jO();return function(){return Na("label",Xa({class:w.value},f.value),[Na("input",Xa({type:"radio",class:"".concat(b.value,"__former")},d.value,p.value,{onChange:u,onClick:c}),null),Na("span",{class:"".concat(b.value,"__input")},null),Na("span",{class:"".concat(b.value,"__label")},[x("default","label")])])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function lG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var uG=yr({name:"TRadioGroup",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{disabled:{type:Boolean,default:void 0},name:{type:String,default:""},options:{type:Array},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:void 0},variant:{type:String,default:"outline",validator:function(e){return["outline","primary-filled","default-filled"].includes(e)}},onChange:Function}),setup:function(e){var t=Ft(e),n=Ew(pD(t.value,t.modelValue,e.defaultValue,e.onChange),2),r=n[0],i=n[1],a=Et(),o=wA("radio-button"),s=xA(),l=s.STATUS,u=s.SIZE,c=vo(function(){return".".concat(o.value,".").concat(l.value.checked)}),d=Et({width:"0px",left:"0px"}),f=function(){if("outline"!==e.variant){var t=a.value.querySelector(c.value);if(t){var n=t.offsetWidth,r=t.offsetLeft;n?d.value={width:"".concat(n,"px"),left:"".concat(r,"px")}:function(){var e=document.createElement("div");e.setAttribute("style","position: absolute; visibility: hidden;"),e.appendChild(a.value.cloneNode(!0)),document.body.appendChild(e);var t=e.querySelector(c.value),n=t.offsetWidth,r=t.offsetLeft;d.value={width:"".concat(n,"px"),left:"".concat(r,"px")},document.body.removeChild(e)}()}else d.value={width:"0px",left:"0px"}}};ta(r,fE(vE.mark(function e(){return vE.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fn();case 2:f();case 3:case"end":return e.stop()}},e)}))),Er(function(){f()});var h=Ft(e),p=h.name,m=h.disabled;gi(iG,bt({name:p,disabled:m,value:r,setValue:i}));var v=wA("radio-group"),g=NO(),y=function(){if(e.variant.includes("filled")&&!hV(r.value))return Na("div",{style:d.value,class:"".concat(v.value,"__bg-block")},null)},b=vo(function(){var t;return["".concat(v.value),u.value[e.size],(t={},Pw(t,"".concat(v.value,"__outline"),"outline"===e.variant),Pw(t,"".concat(v.value,"--filled"),e.variant.includes("filled")),Pw(t,"".concat(v.value,"--primary-filled"),"primary-filled"===e.variant),t)]});return function(){return Na("div",{ref:a,class:b.value},[g("default")||(null===(t=e.options)||void 0===t?void 0:t.map(function(t){var n=t;return(NR(t)||CA(t))&&(n={value:t,label:t.toString()}),Na(sG,{key:"radio-group-options-".concat(n.value,"-").concat(Math.random()),name:e.name,checked:r.value===n.value,disabled:"disabled"in n?n.disabled:e.disabled,value:n.value},{default:function(){return["function"==typeof n.label?n.label(go):n.label]}})})),y()]);var t}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function cG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fG=yr({name:"TRadioButton",inheritAttrs:!1,props:dG({},rG),setup:function(e,t){var n=t.attrs;gi(aG,bt({}));var r=vo(function(){return dG(dG({},e),CD(n,Object.keys(n).filter(function(e){return e.startsWith("on")})))}),i=NO();return function(){var e,t;return Na(sG,r.value,"function"==typeof(t=e=i("default"))||"[object Object]"===Object.prototype.toString.call(t)&&!Ea(t)?e:{default:function(){return[e]}})}}}),hG=AO(sG),pG=AO(uG),mG=AO(fG),vG={attach:{type:[String,Function],default:""},body:{type:[String,Function],default:""},cancelBtn:{type:[String,Object,Function],default:""},closeBtn:{type:[String,Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function],default:""},confirmOnEnter:Boolean,default:{type:[String,Function]},destroyOnClose:Boolean,draggable:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"modal",validator:function(e){return!e||["modal","modeless","normal"].includes(e)}},placement:{type:String,default:"top",validator:function(e){return!e||["top","center"].includes(e)}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return!e||["default","info","warning","danger","success"].includes(e)}},top:{type:[String,Number]},visible:Boolean,width:{type:[String,Number]},zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onClosed:Function,onConfirm:Function,onEscKeydown:Function,onOpened:Function,onOverlayClick:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function gG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bG(e){var t=Za(),n=LO(),r=function(e,t,n){var r=t;return CA(e)?r.content=e:nx(e)&&(r=yG(yG({},r),e)),Na(VO,Xa({class:n},r),null)};return{getConfirmBtn:function(i){var a=i.confirmBtn,o=i.className;if(null===a)return null;a&&t.slots.confirmBtn;var s=function(t){var n=t.globalConfirm,r=t.theme,i=t.globalConfirmBtnTheme,a={theme:(null==i?void 0:i[r])||"primary",size:t.size,onClick:function(t){e.confirmBtnAction(t)}};return CA(n)?a.content=n:nx(n)&&(a=yG(yG({},a),n)),a}(i);return a||t.slots.confirmBtn?a&&["string","object"].includes(zw(a))?r(a,s,o):n("confirmBtn"):Na(VO,Xa({class:o},s),null)},getCancelBtn:function(i){var a=i.cancelBtn,o=i.className;if(null===a)return null;a&&t.slots.cancelBtn;var s=function(t){var n=t.globalCancel,r={theme:"default",size:t.size,onClick:function(t){e.cancelBtnAction(t)}};return CA(n)?r.content=n:nx(n)&&(r=yG(yG({},r),n)),r}(i);return a||t.slots.cancelBtn?a&&["string","object"].includes(zw(a))?r(a,s):n("cancelBtn"):Na(VO,Xa({class:o},s),null)}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var wG,xG=[],SG={push:function(e){xG.push(e)},pop:function(){xG.pop()},get top(){return xG[xG.length-1]}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function _G(e){return Number.isNaN(Number(e))?e:"".concat(Number(e),"px")}"undefined"!=typeof window&&window.document&&window.document.documentElement&&document.documentElement.addEventListener("click",function(e){wG={x:e.clientX,y:e.clientY},setTimeout(function(){wG=null},100)},!0);var kG=yr({name:"TDialog",directives:{TransferDom:pO,draggable:function(e,t){var n,r,i;e&&t&&t.value&&(n=e,r=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,n.addEventListener("mousedown",function(e){var t=e.clientX-n.offsetLeft,a=e.clientY-n.offsetTop,o=n.offsetWidth,s=n.offsetHeight;function l(e){var o=e.clientX-t,s=e.clientY-a;o<0&&(o=0),s<0&&(s=0),r-n.offsetWidth-o<0&&(o=r-n.offsetWidth),i-n.offsetHeight-s<0&&(s=i-n.offsetHeight),n.style.position="absolute",n.style.left="".concat(o,"px"),n.style.top="".concat(s,"px")}function u(){document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u)}o>r||s>i||(document.addEventListener("mousemove",l),document.addEventListener("mouseup",u),document.addEventListener("dragend",u))}))}},props:vG,emits:["update:visible"],setup:function(e,t){var n=this,r=wA("dialog"),i=wA("dialog--lock"),a=wA(),o=jO(),s=LO(),l=Et(null),u=Et(null),c=bA("dialog").globalConfig,d=kE({CloseIcon:rP,InfoCircleFilledIcon:EP,CheckCircleFilledIcon:gI,ErrorCircleFilledIcon:mP}),f=d.CloseIcon,h=d.InfoCircleFilledIcon,p=d.CheckCircleFilledIcon,m=d.ErrorCircleFilledIcon,v=bG({confirmBtnAction:function(t){var n;null===(n=e.onConfirm)||void 0===n||n.call(e,{e:t})},cancelBtnAction:function(t){var n;null===(n=e.onCancel)||void 0===n||n.call(e,{e:t}),N({e:t,trigger:"cancel"})}}),g=v.getConfirmBtn,y=v.getCancelBtn;VD();var b=Et(0),w=vo(function(){return"modal"===e.mode}),x=vo(function(){return"modeless"===e.mode}),S=vo(function(){return"normal"===e.mode}),_=vo(function(){return["".concat(r.value,"__mask"),!e.showOverlay&&"".concat(a.value,"-is-hidden")]}),k=vo(function(){return S.value?[]:["".concat(r.value,"__position"),!!e.top&&"".concat(r.value,"--top"),"".concat(e.placement&&!e.top?"".concat(r.value,"--").concat(e.placement):"")]}),A=vo(function(){return[!S.value&&"".concat(r.value,"__wrap")]}),C=vo(function(){var t=e.top,n={};void 0!==t&&(n={paddingTop:_G(t)});return n}),T=vo(function(){return["".concat(r.value),"".concat(r.value,"--default"),"".concat(r.value,"--").concat(e.placement),"".concat(r.value,"__modal-").concat(e.theme),x.value&&e.draggable&&"".concat(r.value,"--draggable")]}),O=vo(function(){return{width:_G(e.width)}});ta(function(){return e.visible},function(t){if(t){if(w.value&&!e.showInAttachedElement){if(b.value>0&&e.preventScrollThrough){var n="position: relative;width: calc(100% - ".concat(b.value,"px);");document.body.style.cssText=n}!x.value&&e.preventScrollThrough&&UA(document.body,i.value),fn(function(){wG&&l.value&&(l.value.style.transformOrigin="".concat(wG.x-l.value.offsetLeft,"px ").concat(wG.y-l.value.offsetTop,"px")),document.activeElement.blur()})}}else document.body.style.cssText="",XA(document.body,i.value);P(t),E(t)});var I=Za(),P=function(e){e?SG.push(I.uid):SG.pop()},E=function(t){t?(document.addEventListener("keydown",D),e.confirmOnEnter&&document.addEventListener("keydown",M)):(document.removeEventListener("keydown",D),e.confirmOnEnter&&document.removeEventListener("keydown",M))},M=function(t){var n,r=t.code;"Enter"!==r&&"NumpadEnter"!==r||SG.top!==I.uid||(null===(n=e.onConfirm)||void 0===n||n.call(e,{e:t}))},D=function(t){var n,r;"Escape"===t.code&&SG.top===I.uid&&(null===(n=e.onEscKeydown)||void 0===n||n.call(e,{e:t}),(null!==(r=e.closeOnEscKeydown)&&void 0!==r?r:c.value.closeOnEscKeydown)&&N({e:t,trigger:"esc"}))},R=function(t){var n,r;e.showOverlay&&(null!==(n=e.closeOnOverlayClick)&&void 0!==n?n:c.value.closeOnOverlayClick)&&(t.target===u.value&&(null===(r=e.onOverlayClick)||void 0===r||r.call(e,{e:t}),N({e:t,trigger:"overlay"})))},L=function(t){var n;null===(n=e.onCloseBtnClick)||void 0===n||n.call(e,{e:t}),N({trigger:"close-btn",e:t})},N=function(n){var r;null===(r=e.onClose)||void 0===r||r.call(e,n),t.emit("update:visible",!1)};return Er(function(){b.value=window.innerWidth-document.body.offsetWidth}),Rr(function(){E(!1)}),{COMPONENT_NAME:r,scrollWidth:b,isModal:w,isModeLess:x,maskClass:_,dialogClass:T,dialogStyle:O,dialogEle:l,afterEnter:function(){var t;null===(t=e.onOpened)||void 0===t||t.call(e)},afterLeave:function(){var t;x.value&&e.draggable&&(l.value.style.position="relative",l.value.style.left="unset",l.value.style.top="unset"),null===(t=e.onClosed)||void 0===t||t.call(e)},hasEventOn:function(e){var t,r=null===(t=n._events)||void 0===t?void 0:t[e];return!(null==r||!r.length)},renderDialog:function(){var t=Na("h5",{class:"title"},null),n=Na(f,null,null),i=o("default","body"),d=Na("div",null,[y({cancelBtn:e.cancelBtn,globalCancel:c.value.cancel,className:"".concat(r.value,"__cancel")}),g({theme:e.theme,confirmBtn:e.confirmBtn,globalConfirm:c.value.confirm,globalConfirmBtnTheme:c.value.confirmBtnTheme,className:"".concat(r.value,"__confirm")})]),v="default"===e.theme?"".concat(r.value,"__body"):"".concat(r.value,"__body__icon"),b=s("footer",d),w=function(t){x.value&&e.draggable&&t.stopPropagation()};return Na("div",{class:A.value},[Na("div",{class:k.value,style:C.value,onClick:R,ref:u},[Xn(Na("div",{key:"dialog",class:T.value,style:O.value,ref:l},[Na("div",{class:"".concat(r.value,"__header"),onmousedown:w},[{info:Na(h,{class:"".concat(a.value,"-is-info")},null),warning:Na(m,{class:"".concat(a.value,"-is-warning")},null),danger:Na(m,{class:"".concat(a.value,"-is-error")},null),success:Na(p,{class:"".concat(a.value,"-is-success")},null)}[e.theme],s("header",t)]),e.closeBtn?Na("span",{class:"".concat(r.value,"__close"),onClick:L},[s("closeBtn",n)]):null,Na("div",{class:v,onmousedown:w},[i]),b&&Na("div",{class:"".concat(r.value,"__footer"),onmousedown:w},[b])]),[[Wr("draggable"),x.value&&e.draggable]])])])}}},render:function(){var e,t=this,n=this.COMPONENT_NAME,r=[this.isModal&&Na("div",{key:"mask",class:this.maskClass},null),this.renderDialog()],i={zIndex:this.zIndex},a=["".concat(n,"__ctx"),(e={},Pw(e,"".concat(n,"__ctx--fixed"),"modal"===this.mode),Pw(e,"".concat(n,"__ctx--absolute"),this.isModal&&this.showInAttachedElement),Pw(e,"".concat(n,"__ctx--modeless"),this.isModeLess),e)];return Na(Eo,{duration:300,name:"".concat(n,"-zoom__vue"),onAfterEnter:this.afterEnter,onAfterLeave:this.afterLeave},{default:function(){return[(!t.destroyOnClose||t.visible)&&Xn(Na("div",{class:a,style:i},[r]),[[Xo,t.visible],[Wr("transfer-dom"),t.attach]])]}})}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function AG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var TG=function(e){var t=CG({},e),n=document.createElement("div"),r=Et(!1),i=t.className,a=Ss(yr({setup:function(e,n){var i=n.expose,a=Et(t);Er(function(){r.value=!0,document.activeElement.blur()});return i({update:function(e){a.value=CG(CG({},t),e)}}),function(){var e=t.onClose||function(){r.value=!1};return delete t.className,go(kG,CG({onClose:e,visible:r.value},a.value))}}})).mount(n);i&&i.split(" ").forEach(function(e){a.$el.classList.add(e.trim())}),t.style&&(a.$el.style.cssText+=t.style);var o=GA(t.attach);return o&&o.appendChild(n),{show:function(){r.value=!0},hide:function(){r.value=!1},update:function(e){a.update(e)},destroy:function(){r.value=!1,setTimeout(function(){n.parentNode.removeChild(n)},300)}}},OG={confirm:function(e){return TG(e)},alert:function(e){var t=CG({},e);return t.cancelBtn=null,TG(t)}},IG=TG;IG.install=function(e){e.config.globalProperties.$dialog=TG,Object.keys(OG).forEach(function(t){e.config.globalProperties.$dialog[t]=OG[t]})},Object.keys(OG).forEach(function(e){IG[e]=OG[e]});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
var PG=AO(kG),EG="line",MG="plump",DG="circle",RG="small",LG="medium",NG="large",jG=72,FG=112,zG=160,BG=14/jG,VG=20/FG,HG=36/zG,WG=["success","error","warning"],UG=AO(yr({name:"TProgress",props:{color:{type:[String,Object,Array],default:""},label:{type:[String,Boolean,Function],default:!0},percentage:{type:Number,default:0},size:{type:[String,Number],default:"medium"},status:{type:String,validator:function(e){return["success","error","warning","active"].includes(e)}},strokeWidth:{type:[String,Number]},theme:{type:String,default:"line",validator:function(e){return["line","plump","circle"].includes(e)}},trackColor:{type:String,default:""}},setup:function(e){var t=LO(),n=wA("progress"),r=kE({CloseCircleFilledIcon:$I,CheckCircleFilledIcon:gI,ErrorCircleFilledIcon:mP,CloseIcon:rP,CheckIcon:xI,ErrorIcon:bP}),i=r.CloseCircleFilledIcon,a=r.CheckCircleFilledIcon,o=r.ErrorCircleFilledIcon,s=r.CloseIcon,l=r.CheckIcon,u=r.ErrorIcon,c=vo(function(){return e.percentage>=100?"success":e.status||"default"}),d=vo(function(){var t={};if(e.strokeWidth){var n="string"==typeof e.strokeWidth?e.strokeWidth:"".concat(e.strokeWidth,"px");t.height=n,t.borderRadius=n}return e.trackColor&&(t.backgroundColor=e.trackColor),t}),f=vo(function(){return{width:"".concat(e.percentage,"%"),background:e.color&&OD(e.color)}}),h=vo(function(){return{stroke:"object"===zw(e.color)?"":e.color}}),p=vo(function(){var t=FG;if(!e.size)return t;var n=RG,r=NG,i=LG;switch(e.size){case n:t=jG;break;case i:t=FG;break;case r:t=zG;break;default:t=Number(e.size)}return t}),m=vo(function(){return p.value/2}),v=vo(function(){return m.value-y.value/2}),g=vo(function(){if(e.theme!==DG)return{};var t=p.value*VG;return p.value<=jG?t=p.value*BG:p.value>=zG&&(t=p.value*HG),{width:"".concat(p.value,"px"),height:"".concat(p.value,"px"),fontSize:"".concat(t,"px")}}),y=vo(function(){var t=e.size===RG?4:6;return e.strokeWidth?Number(e.strokeWidth):t}),b=vo(function(){var t=(p.value-y.value)/2,n=2*Math.PI*t,r=e.percentage/100;return"".concat(n*r,"  ").concat(n*(1-r))}),w=function(){var t,r,c="".concat(e.percentage,"%"),d=e.status||"";if(WG.includes(d)&&e.theme!==MG){var f=(t={success:l,warning:u,error:s},r={success:a,warning:o,error:i},e.theme===DG?t:r)[d];f&&(c=Na(f,{class:["".concat(n.value,"__icon")]},null))}return c};return function(){var r=Na("div",{class:"".concat(n.value,"__info")},[t("label",w())]),i=e.percentage>10?"".concat(n.value,"--over-ten"):"".concat(n.value,"--under-ten");return Na("div",{class:n.value},[e.theme===EG&&Na("div",{class:"".concat(n.value,"--thin ").concat(n.value,"--status--").concat(c.value)},[Na("div",{class:"".concat(n.value,"__bar"),style:d.value},[Na("div",{class:"".concat(n.value,"__inner"),style:f.value},null)]),r]),e.theme===MG&&Na("div",{class:["".concat(n.value,"__bar ").concat(n.value,"--plump ").concat(i),Pw({},"".concat(n.value,"--status--").concat(c.value),c.value)],style:d.value},[Na("div",{class:"".concat(n.value,"__inner"),style:f.value},[e.percentage>10&&r]),e.percentage<=10&&r]),e.theme===DG&&Na("div",{class:"".concat(n.value,"--circle ").concat(n.value,"--status--").concat(c.value),style:g.value},[r,Na("svg",{width:p.value,height:p.value,viewBox:"0 0 ".concat(p.value," ").concat(p.value)},[Na("circle",{cx:m.value,cy:m.value,r:v.value,"stroke-width":y.value,stroke:e.trackColor,fill:"none",class:["".concat(n.value,"__circle-outer")]},null),e.percentage>0&&Na("circle",{cx:m.value,cy:m.value,r:v.value,"stroke-width":y.value,fill:"none","stroke-linecap":"round",class:["".concat(n.value,"__circle-inner")],transform:"matrix(0,-1,1,0,0,".concat(p.value,")"),"stroke-dasharray":b.value,style:h.value},null)])])])}}})),XG={allowResizeColumnWidth:{type:Boolean,default:void 0},bordered:Boolean,bottomContent:{type:[String,Function]},cellEmptyContent:{type:[String,Function]},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},disableDataPage:Boolean,empty:{type:[String,Function],default:""},firstFullRow:{type:[String,Function]},fixedRows:{type:Array},footData:{type:Array,default:function(){return[]}},footerAffixProps:{type:Object},footerAffixedBottom:{type:[Boolean,Object],default:!1},footerSummary:{type:[String,Function]},headerAffixProps:{type:Object},headerAffixedTop:{type:[Boolean,Object],default:!1},height:{type:[String,Number]},horizontalScrollAffixedBottom:{type:[Boolean,Object]},hover:Boolean,lastFullRow:{type:[String,Function]},loading:{type:[Boolean,Function],default:void 0},loadingProps:{type:Object},maxHeight:{type:[String,Number]},pagination:{type:Object},paginationAffixedBottom:{type:[Boolean,Object]},resizable:Boolean,rowAttributes:{type:[Object,Array,Function]},rowClassName:{type:[String,Object,Array,Function]},rowKey:{type:String,default:"id",required:!0},rowspanAndColspan:{type:Function},rowspanAndColspanInFooter:{type:Function},scroll:{type:Object},size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},stripe:Boolean,tableContentWidth:{type:String,default:""},tableLayout:{type:String,default:"fixed",validator:function(e){return!e||["auto","fixed"].includes(e)}},topContent:{type:[String,Function]},verticalAlign:{type:String,default:"middle",validator:function(e){return!e||["top","middle","bottom"].includes(e)}},onCellClick:Function,onPageChange:Function,onRowClick:Function,onRowDblclick:Function,onRowMousedown:Function,onRowMouseenter:Function,onRowMouseleave:Function,onRowMouseover:Function,onRowMouseup:Function,onScroll:Function,onScrollX:Function,onScrollY:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function GG(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=n,i=0,a=e.length;i<a;i++){var o,s=e[i];if(t.set(s,n),null!=s&&null!==(o=s.children)&&void 0!==o&&o.length){var l=GG(s.children,t,n+1);l>r&&(r=l)}}return r}function YG(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(null==e?void 0:e.children)||[],r=0,i=n.length;r<i;r++){var a=n[r];a.children?t=YG(a,t):t+=1}return t}function KG(e){var t=new Map,n=GG(e,t),r=new Map,i=[];return function e(i,a){for(var o=0,s=i.length;o<s;o++){var l,u=i[o],c=u.children?1:n-t.get(u)+1,d=u.children?YG(u):1,f={};c>1&&(f.rowspan=c),d>1&&(f.colspan=d),r.set(u,f),null!=u&&null!==(l=u.children)&&void 0!==l&&l.length?e(u.children,a):a.push(u)}}(e,i),{rowspanAndColspanMap:r,leafColumns:i}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function qG(){var e=wA();return{tableBaseClass:{table:"".concat(e.value,"-table"),columnResizableTable:"".concat(e.value,"-table--column-resizable"),overflowVisible:"".concat(e.value,"-table--overflow-visible"),body:"".concat(e.value,"-table__body"),content:"".concat(e.value,"-table__content"),topContent:"".concat(e.value,"-table__top-content"),bottomContent:"".concat(e.value,"-table__bottom-content"),paginationWrap:"".concat(e.value,"-table__pagination-wrap"),tdLastRow:"".concat(e.value,"-table__td-last-row"),tdFirstCol:"".concat(e.value,"-table__td-first-col"),thCellInner:"".concat(e.value,"-table__th-cell-inner"),tableRowEdit:"".concat(e.value,"-table--row-edit"),cellEditable:"".concat(e.value,"-table__cell--editable"),cellEditWrap:"".concat(e.value,"-table__cell-wrap"),bordered:"".concat(e.value,"-table--bordered"),striped:"".concat(e.value,"-table--striped"),hover:"".concat(e.value,"-table--hoverable"),loading:"".concat(e.value,"-table--loading"),rowspanAndColspan:"".concat(e.value,"-table--rowspan-colspan"),empty:"".concat(e.value,"-table__empty"),emptyRow:"".concat(e.value,"-table__empty-row"),headerFixed:"".concat(e.value,"-table--header-fixed"),columnFixed:"".concat(e.value,"-table--column-fixed"),widthOverflow:"".concat(e.value,"-table--width-overflow"),multipleHeader:"".concat(e.value,"-table--multiple-header"),footerAffixed:"".concat(e.value,"-table--footer-affixed"),horizontalBarAffixed:"".concat(e.value,"-table--horizontal-bar-affixed"),affixedHeader:"".concat(e.value,"-table--affixed-header"),affixedHeaderElm:"".concat(e.value,"-table__affixed-header-elm"),affixedFooterElm:"".concat(e.value,"-table__affixed-footer-elm"),affixedFooterWrap:"".concat(e.value,"-table__affixed-footer-wrap"),scrollbarDivider:"".concat(e.value,"-table__scroll-bar-divider"),fullHeight:"".concat(e.value,"-table--full-height"),resizeLine:"".concat(e.value,"-table__resize-line"),obviousScrollbar:"".concat(e.value,"-table__scrollbar--obvious"),affixedHeaderWrap:"".concat(e.value,"-table__affixed-header-elm-wrap")},tdAlignClasses:{left:"".concat(e.value,"-align-left"),right:"".concat(e.value,"-align-right"),center:"".concat(e.value,"-align-center")},tableHeaderClasses:{header:"".concat(e.value,"-table__header"),thBordered:"".concat(e.value,"-table__header-th--bordered"),fixed:"".concat(e.value,"-table__header--fixed"),multipleHeader:"".concat(e.value,"-table__header--multiple")},tableFooterClasses:{footer:"".concat(e.value,"-table__footer"),fixed:"".concat(e.value,"-table__footer--fixed")},tableAlignClasses:{top:"".concat(e.value,"-vertical-align-top"),middle:"".concat(e.value,"-vertical-align-middle"),bottom:"".concat(e.value,"-vertical-align-bottom")},tableRowFixedClasses:{top:"".concat(e.value,"-table__row--fixed-top"),bottom:"".concat(e.value,"-table__row--fixed-bottom"),firstBottom:"".concat(e.value,"-table__row--fixed-bottom-first"),withoutBorderBottom:"".concat(e.value,"-table__row--without-border-bottom")},tableColFixedClasses:{left:"".concat(e.value,"-table__cell--fixed-left"),right:"".concat(e.value,"-table__cell--fixed-right"),lastLeft:"".concat(e.value,"-table__cell--fixed-left-last"),firstRight:"".concat(e.value,"-table__cell--fixed-right-first"),leftShadow:"".concat(e.value,"-table__content--scrollable-to-left"),rightShadow:"".concat(e.value,"-table__content--scrollable-to-right")},tableLayoutClasses:{auto:"".concat(e.value,"-table--layout-auto"),fixed:"".concat(e.value,"-table--layout-fixed")},tdEllipsisClass:"".concat(e.value,"-table-td--ellipsis"),tableFullRowClasses:{base:"".concat(e.value,"-table__row--full"),innerFullRow:"".concat(e.value,"-table__row-full-inner"),innerFullElement:"".concat(e.value,"-table__row-full-element"),firstFullRow:"".concat(e.value,"-table__first-full-row"),lastFullRow:"".concat(e.value,"-table__last-full-row")},tableExpandClasses:{iconBox:"".concat(e.value,"-table__expand-box"),iconCell:"".concat(e.value,"-table__expandable-icon-cell"),row:"".concat(e.value,"-table__expanded-row"),rowInner:"".concat(e.value,"-table__expanded-row-inner"),expanded:"".concat(e.value,"-table__row--expanded"),collapsed:"".concat(e.value,"-table__row--collapsed")},tableSortClasses:{sortable:"".concat(e.value,"-table__cell--sortable"),title:"".concat(e.value,"-table__cell--title"),trigger:"".concat(e.value,"-table__cell--sort-trigger"),doubleIcon:"".concat(e.value,"-table__double-icons"),sortIcon:"".concat(e.value,"-table__sort-icon"),iconDirection:{asc:"".concat(e.value,"-table-sort-asc"),desc:"".concat(e.value,"-table-sort-desc")},iconActive:"".concat(e.value,"-table__sort-icon--active"),iconDefault:"".concat(e.value,"-icon-sort--default")},tableSelectedClasses:{selected:"".concat(e.value,"-table__row--selected"),disabled:"".concat(e.value,"-table__row--disabled"),checkCell:"".concat(e.value,"-table__cell-check")},tableFilterClasses:{filterable:"".concat(e.value,"-table__cell--filterable"),popup:"".concat(e.value,"-table__filter-pop"),icon:"".concat(e.value,"-table__filter-icon"),popupContent:"".concat(e.value,"-table__filter-pop-content"),result:"".concat(e.value,"-table__filter-result"),inner:"".concat(e.value,"-table__row-filter-inner"),bottomButtons:"".concat(e.value,"-table__filter--bottom-buttons"),contentInner:"".concat(e.value,"-table__filter-pop-content-inner"),iconWrap:"".concat(e.value,"-table__filter-icon-wrap")},asyncLoadingClass:"".concat(e.value,"-table__async-loading"),isFocusClass:"".concat(e.value,"-is-focus"),isLoadingClass:"".concat(e.value,"-is-loading"),isLoadMoreClass:"".concat(e.value,"-is-load-more"),tableTreeClasses:{col:"".concat(e.value,"-table__tree-col"),inlineCol:"".concat(e.value,"-table__tree-col--inline"),icon:"".concat(e.value,"-table__tree-op-icon")},tableDraggableClasses:{rowDraggable:"".concat(e.value,"-table--row-draggable"),rowHandlerDraggable:"".concat(e.value,"-table--row-handler-draggable"),colDraggable:"".concat(e.value,"-table--col-draggable"),handle:"".concat(e.value,"-table__handle-draggable"),ghost:"".concat(e.value,"-table__ele--draggable-ghost"),chosen:"".concat(e.value,"-table__ele--draggable-chosen"),dragging:"".concat(e.value,"-table__ele--draggable-dragging")},virtualScrollClasses:{cursor:"".concat(e.value,"-table__virtual-scroll-cursor"),header:"".concat(e.value,"-table__virtual-scroll-header")},positiveRotate90:"".concat(e.value,"-positive-rotate-90"),negativeRotate180:"".concat(e.value,"-negative-rotate-180")}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function ZG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var JG=yr({name:"TEllipsis",props:{content:{type:[String,Function]},default:{type:[String,Function]},tooltipContent:{type:[String,Number,Function]},placement:String,attach:Function,tooltipProps:Object,zIndex:Number},setup:function(){var e=bA().classPrefix,t=Et(),n=Et(!1),r=vo(function(){return["".concat(e.value,"-table__ellipsis"),"".concat(e.value,"-text-ellipsis")]}),i=sR(function(e){("mouseleave"===e.type||t.value)&&(n.value=KA(t.value))},80);return{root:t,isOverflow:n,ellipsisClasses:r,onMouseAround:i}},render:function(){var e,t=hO(this,"default","content"),n=Na("div",{ref:"root",class:this.ellipsisClasses,onMouseenter:this.onMouseAround,onMouseleave:this.onMouseAround},[t]),r=null;if(this.isOverflow){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({content:this.tooltipContent||function(){return t},destroyOnClose:!0,zIndex:this.zIndex,attach:this.attach,placement:this.placement},this.tooltipProps);r=Na(_D,i,"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!Ea(e)?n:{default:function(){return[n]}})}else r=n;return r}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function QG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QG(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eY(e,t,n){var r={col:t,colIndex:n};return ox(t.title)?t.title(go,r):CA(t.title)&&e[t.title]?e[t.title](r):ox(t.render)&&t.render(go,$G($G({},r),{},{type:"title",row:{},rowIndex:-1}))||t.title}function tY(e){var t=qG(),n=t.tableSortClasses,r=t.tableFilterClasses,i=vo(function(){return KG(e.columns)}),a=vo(function(){return function e(t,n){for(var r,i=[],a=[],o=0,s=t.length;o<s;o++){var l,u=t[o],c=[u];i=i.concat(c),null!=u&&null!==(l=u.children)&&void 0!==l&&l.length&&(a=a.concat(u.children))}return null!==(r=a)&&void 0!==r&&r.length&&e(a,n),n.push(i),i}(e.columns,t=[]),t.reverse();var t}),o=vo(function(){return a.value.length>1});return{thList:a,isMultipleHeader:o,spansAndLeafNodes:i,renderTitleWidthIcon:function(e,t,i,a,o){var s,l,u=Ew(e,3),c=u[0],d=u[1],f=u[2],h=(Pw(s={},n.sortable,d),Pw(s,r.filterable,f),s),p=ox(a)?a(go,{col:t,colIndex:i}):void 0;return Na("div",{class:h},[Na("div",{class:n.title},[t.ellipsis&&!1!==a&&null!==a?Na(JG,{placement:"bottom-right",attach:o?function(){return o}:void 0,tooltipContent:p&&function(){return p},tooltipProps:"object"===zw(a)?a:void 0},(l=c,"function"==typeof l||"[object Object]"===Object.prototype.toString.call(l)&&!Ea(l)?c:{default:function(){return[c]}})):Na("div",null,[c]),Boolean(d||f)&&Na("div",{class:r.iconWrap},[d,f])])])}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function nY(e,t,n,r){var i=Et(),a=Et([]),o={isDragging:!1,draggingCol:null,draggingStart:0,effectCol:null},s=bt({display:"none",left:"10px",height:"10px",bottom:"0"});return{resizeLineRef:i,resizeLineStyle:s,onColumnMouseover:function(e){if(i.value){var t=e.target.closest("th"),n=t.getBoundingClientRect();if(!o.isDragging){if(n.right-e.pageX<=8)t.style.cursor="col-resize",o.draggingCol=t,o.effectCol="next";else if(e.pageX-n.left<=8){var r=t.previousElementSibling;r?(t.style.cursor="col-resize",o.draggingCol=r,o.effectCol="prev"):(t.style.cursor="",o.draggingCol=null,o.effectCol=null)}else t.style.cursor="",o.draggingCol=null,o.effectCol=null}}},onColumnMousedown:function(l,u,c,d){var f,h,p;if(o.draggingCol){var m=o.draggingCol,v=m.getBoundingClientRect(),g=null===(f=e.value)||void 0===f?void 0:f.getBoundingClientRect(),y=v.right-g.left,b=v.left-g.left,w=(null===(h=u.resize)||void 0===h?void 0:h.minWidth)||80,x=(null===(p=u.resize)||void 0===p?void 0:p.maxWidth)||600,S=b+w,_=b+x;if(o.isDragging=!0,o.draggingStart=l.x,null!=i&&i.value){s.display="block",s.left="".concat(y,"px"),s.height="".concat(g.bottom-v.top,"px");var k=e.value.parentElement.getBoundingClientRect();s.bottom="".concat(k.bottom-g.bottom,"px")}var A=function(e,t,i){var o,s,l,u=n(),c=NR(e.width)?e.width:parseFloat(e.width),d=NR(i.width)?i.width:parseFloat(i.width),f=u[e.colKey]||c,h=u[i.colKey]||d;r((Pw(s={},e.colKey,t),Pw(s,i.colKey,Math.max((null===(o=i.resize)||void 0===o?void 0:o.minWidth)||80,f+h-t)),s)),l=[e.colKey,i.colKey],a.value=l},C=function(e){if(o.isDragging){var t=y+e.x-o.draggingStart;s.left="".concat(Math.min(Math.max(t,S),_),"px")}};document.addEventListener("mouseup",function e(){if(o.isDragging){var n=Math.ceil(parseInt(s.left,10)-b)||0;n<=w?n=w:n>=x&&(n=x),"next"===o.effectCol?A(u,n,c):"prev"===o.effectCol&&A(d,n,u),o.isDragging=!1,o.draggingCol=null,o.effectCol=null,m.style.cursor="",s.display="none",s.left="0",document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null}t()}),document.addEventListener("mousemove",C),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1}}},recalculateColWidth:function(e,t,n,i){var o=0,s=[],l={};e.forEach(function(e){t[e.colKey]?l[e.colKey]=t[e.colKey]:l[e.colKey]=NR(e.width)?e.width:parseFloat(e.width);var n=l[e.colKey];n?o+=n:s.push(e)});var u=i,c=!1;if(u>0)if(s.length){if(o<u){var d=(u-o)/s.length;s.forEach(function(e){l[e.colKey]=d})}else if("fixed"===n)s.forEach(function(e){var t=l[e.colKey]||100;l[e.colKey]=NR(t)?t:parseFloat(t)});else{var f=100*s.length+o;e.forEach(function(e){l[e.colKey]?l[e.colKey]=l[e.colKey]/f*u:l[e.colKey]=100/f*u})}c=!0}else{if(a.value.length){var h=0;a.value.forEach(function(e){h+=l[e]}),o-=h,u-=h}(o!==u||a.value.length)&&(e.forEach(function(e){a.value.includes(e.colKey)||(l[e.colKey]=l[e.colKey]/o*u)}),c=!0)}else s.forEach(function(e){var t=l[e.colKey]||100;l[e.colKey]=NR(t)?t:parseFloat(t)}),c=!0;if(c){var p=0;Object.keys(l).forEach(function(e){var t=l[e];p+=t-Math.floor(t),l[e]=Math.floor(t)+(p>1?1:0),p>1&&(p-=1)}),p>.5&&(l[e[0].colKey]+=1)}r(l),a.value.length&&(a.value=[])}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function rY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aY(e,t,n,r){var i,a=null==n?void 0:n.get(e.colKey||t);if(!a)return{};var o=(Pw(i={},r.left,"left"===e.fixed),Pw(i,r.right,"right"===e.fixed),Pw(i,r.lastLeft,"left"===e.fixed&&a.lastLeftFixedCol),Pw(i,r.firstRight,"right"===e.fixed&&a.firstRightFixedCol),i);return{style:{left:"left"===e.fixed?"".concat(a.left,"px"):void 0,right:"right"===e.fixed?"".concat(a.right,"px"):void 0},classes:o}}function oY(e,t,n){var r=Ft(e),i=r.columns,a=r.tableLayout,o=r.tableContentWidth,s=r.fixedRows,l=r.firstFullRow,u=r.lastFullRow,c=r.maxHeight,d=r.headerAffixedTop,f=r.footerAffixedBottom,h=r.bordered,p=r.resizable,m=r.allowResizeColumnWidth,v=Et([]),g=Et(),y=Et(),b=Et(!1),w=Et(!1),x=Et(),S=Et(6),_=Et(new Map),k=bt({left:!1,right:!1}),A=Et({left:0,top:0}),C=Et(0),T=Et(0),O=Et({}),I=Et(!1),P=Et(!1),E=Et(!1),M=vo(function(){return p.value||m.value||!1}),D=vo(function(){var t;return!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom||"virtual"===(null===(t=e.scroll)||void 0===t?void 0:t.type))}),R=Et(function(){});function L(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=0,o=e.length;a<o;a++){var s,l=e[a];["left","right"].includes(l.fixed)&&(I.value=!0),"right"===l.fixed&&(P.value=!0),"left"===l.fixed&&(E.value=!0);var u=l.colKey||a,c={col:l,parent:i,index:a};t.set(u,c),null!==(s=l.children)&&void 0!==s&&s.length&&L(l.children,t,n,r+1,c),n[r]?n[r].push(c):n[r]=[c]}return{newColumnsMap:t,levelNodes:n}}var N,j=function e(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=0,a=t.length;i<a;i++){var o,s=t[i];if("right"===s.fixed)return;for(var l=n.get(s.colKey||i),u=i-1;u>=0&&"left"!==t[u].fixed;)u-=1;var c=t[u],d=0===i&&(null==r?void 0:r.left)||0,f=n.get((null==c?void 0:c.colKey)||i-1);l.left=((null==f?void 0:f.left)||d)+((null==f?void 0:f.width)||0),null!==(o=s.children)&&void 0!==o&&o.length&&e(s.children,n,l)}},F=function e(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.length-1;i>=0;i--){var a,o=t[i];if("left"===o.fixed)return;for(var s=n.get(o.colKey||i),l=i+1;l<t.length&&"right"!==t[l].fixed;)l+=1;var u=t[l],c=i===t.length-1&&(null==r?void 0:r.right)||0,d=n.get((null==u?void 0:u.colKey)||i+1);s.right=((null==d?void 0:d.right)||c)+((null==d?void 0:d.width)||0),null!==(a=o.children)&&void 0!==a&&a.length&&e(o.children,n,s)}},z=function(t,n){if(_.value.clear(),t){var r=t.querySelector("thead");r&&function(e,t){if(e){for(var n=0,r=e.length;n<r;n++)for(var a=e[n].children,o=0,s=a.length;o<s;o++){var l,u=a[o],c=u.dataset.colkey;c||ND("TDesign Table","".concat(u.innerText," missing colKey. colKey is required for fixed column feature."));var d=t.get(c||o);null!=d&&null!==(l=d.col)&&void 0!==l&&l.fixed&&t.set(c,iY(iY({},d),{},{width:u.getBoundingClientRect().width}))}j(i.value,t),F(i.value,t)}}(r.children,n);var a=t.querySelector("tbody"),o=t.querySelector("tfoot");a&&function(t,n,r,i){for(var a=Ew(s.value||[],2),o=a[0],l=a[1],u=e.data,c=e.rowKey,d=void 0===c?"id":c,f=0;f<o;f++){var h=t[f],p=fF(u[f],d),m=n.get(p)||{},v=fF(u[f-1],d),g=n.get(v)||{},y=0;0===f&&(y=(null==r?void 0:r.getBoundingClientRect().height)||0),m.top=(g.top||y)+(g.height||0),n.set(p,iY(iY({},m),{},{height:h.getBoundingClientRect().height}))}for(var b=u.length-1;b>=u.length-l;b--){var w=t[b],x=fF(u[b],d),S=n.get(x)||{},_=fF(u[b+1],d),k=n.get(_)||{},A=0;b===u.length-1&&(A=(null==i?void 0:i.getBoundingClientRect().height)||0),S.bottom=(k.bottom||A)+(k.height||0),n.set(x,iY(iY({},S),{},{height:w.getBoundingClientRect().height}))}}(a.children,n,r,o),_.value=n}},B=function(e,t){if(I.value&&e){var n=e.scrollLeft;if(N!==n||t&&t.skipScrollLimit){N=n;var r=e.clientWidth+n<e.scrollWidth;k.left=n>0,k.right=r}}},V=function(){var e=L(i.value),t=e.newColumnsMap;!function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0,i=n.length;r<i;r++){var a=n[r],o=n[r+1],s=a.parent;(!s||(null==s?void 0:s.lastLeftFixedCol))&&"left"===a.col.fixed&&"left"!==(null==o?void 0:o.col.fixed)&&(a.lastLeftFixedCol=!0);var l=n[r-1];(!s||(null==s?void 0:s.firstRightFixedCol))&&"right"===a.col.fixed&&"right"!==(null==l?void 0:l.col.fixed)&&(a.firstRightFixedCol=!0)}}(e.levelNodes);var n=setTimeout(function(){var e;(I.value||null!==(e=s.value)&&void 0!==e&&e.length)&&z(y.value,t),clearTimeout(n)},0);return function(){clearTimeout(n)}},H=function(){var e=setTimeout(function(){if(y.value){b.value=y.value.scrollHeight>y.value.clientHeight,w.value=y.value.scrollWidth>y.value.clientWidth;var t=y.value.getBoundingClientRect();A.value={top:t.top,left:t.left},clearTimeout(e)}},0)},W=function(){var t,n,r=null===(t=y.value)||void 0===t?void 0:t.getBoundingClientRect();if(r){var i=b.value?S.value:0;C.value=r.width-i-(e.bordered?1:0);var a=null==x||null===(n=x.value)||void 0===n?void 0:n.getBoundingClientRect();T.value=null==a?void 0:a.width}},U=function(e){if(e instanceof HTMLCollection){if(M.value)return;for(var t={},n=0,r=e.length;n<r;n++)for(var i=e[n].children,a=0,o=i.length;a<o;a++){var s=i[a];t[s.dataset.colkey]=s.getBoundingClientRect().width}O.value=t}else O.value||(O.value={}),Object.entries(e).forEach(function(e){var t=Ew(e,2),n=t[0],r=t[1];O.value[n]=r})},X=function(){if(M.value&&R.value(n.value,O.value,a.value,T.value),!D.value)var e=setTimeout(function(){var t;W();var n=null===(t=y.value)||void 0===t?void 0:t.querySelector("thead");n&&(U(n.children),clearTimeout(e))},0)};ta([v,i,h,a,o,b,w,I,s,l,u],V,{immediate:!0}),ta([I,i],function(){var e=setTimeout(function(){I.value&&B(y.value),clearTimeout(e)},0)},{immediate:!0}),ta([c,v,i,h],H,{immediate:!0}),ta([v,i,h,a,s,b,d,f,o],X,{immediate:!0});var G=sR(function(){W(),H(),X(),(I.value||b.value)&&(V(),B(y.value,{skipScrollLimit:!0}))},30),Y=G,K=null;Er(function(){var e=function(){if(!navigator)return 6;if(/(Chrome|Safari)/i.test(navigator.userAgent))return 6;var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),/Firefox/.test(navigator.userAgent)&&(t-=4),Rw()<=11&&(t=12),t}();S.value=e;var t=setTimeout(function(){W(),M.value&&R.value(n.value,O.value,a.value,T.value),clearTimeout(t)});((I.value||b.value||!D.value||!v.value.length)&&Rw()<11||void 0===window.ResizeObserver)&&VA(window,"resize",Y)}),Rr(function(){var e,t;HA(window,"resize",Y),null===(e=K)||void 0===e||e.unobserve(g.value),null===(t=K)||void 0===t||t.disconnect()});return{tableWidth:C,tableElmWidth:T,thWidthList:O,isFixedHeader:b,isWidthOverflow:w,tableContentRef:y,isFixedColumn:I,showColumnShadow:k,rowAndColFixedPosition:_,virtualScrollHeaderPos:A,scrollbarWidth:S,setData:function(e){v.value=e},refreshTable:G,emitScrollEvent:function(t){var n,r,i;null===(n=e.onScrollX)||void 0===n||n.call(e,{e:t}),null===(r=e.onScrollY)||void 0===r||r.call(e,{e:t}),null===(i=e.onScroll)||void 0===i||i.call(e,{e:t})},updateThWidthListHandler:X,updateColumnFixedShadow:B,setUseFixedTableElmRef:function(e){x.value=e},getThWidthList:function(){return O.value||(O.value={}),O.value},updateThWidthList:U,setRecalculateColWidthFuncRef:function(e){R.value=e},addTableResizeObserver:function(e){Rw()<11||void 0===window.ResizeObserver||(HA(window,"resize",Y),(K=new window.ResizeObserver(function(){G()})).observe(e),g.value=e)}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function sY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lY(e){var t=Ft(e),n=t.pagination,r=t.data,i=t.disableDataPage,a=bA().classPrefix,o=Et([]),s=Et(!1),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=e.data,a=Boolean(!i.value&&r.length>n);if(s.value=a,a){var l=(t-1)*n,u=t*n;o.value=r.slice(l,u)}else o.value=r};ta(function(){var e,t;return[null===(e=n.value)||void 0===e?void 0:e.current,null===(t=n.value)||void 0===t?void 0:t.pageSize,r.value.length,i]},function(){n.value&&n.value.current&&l(n.value.current,n.value.pageSize)},{immediate:!0}),ta([r],function(){n.value&&n.value.defaultCurrent&&l(n.value.defaultCurrent,n.value.defaultPageSize)},{immediate:!0});return{isPaginateData:s,dataSource:o,renderPagination:function(){if(!e.pagination)return null;var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.pagination);return delete t.onChange,Na("div",{class:"".concat(a.value,"-table__pagination")},[Na(dB,Xa(t,{onChange:function(t){var r,i,a;null===(r=e.pagination)||void 0===r||null===(i=r.onChange)||void 0===i||i.call(r,t),null===(a=e.onPageChange)||void 0===a||a.call(e,t,o.value),n&&!n.value.current&&n.value.defaultCurrent&&l(t.current,t.pageSize)}}),null)])}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function uY(e){var t=Et(),n=Et(),r=Et(),i=Et(),a=Et(),o=Et(!0),s=Et(!0),l=Et(!0),u=vo(function(){return e.scroll&&"virtual"===e.scroll.type&&(e.scroll.threshold||100)<e.data.length}),c=vo(function(){return!!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom)}),d=0,f=function(e){if(c.value||u.value){var a=e;if(!a&&t.value&&(d=0,a=t.value),a){var o=a.scrollLeft;if(d!==o){d=o;for(var s=[t.value,n.value,r.value,i.value],l=0,f=s.length;l<f;l++)s[l]&&e!==s[l]&&(s[l].scrollLeft=o)}}}},h=function(e,t,n){return t.top+n<e.top&&e.top>e.height},p=function(){var d,f,p,m;if(c.value||u.value){var v,g=null===(d=t.value)||void 0===d?void 0:d.getBoundingClientRect(),y=null===(f=t.value)||void 0===f||null===(p=f.querySelector("thead"))||void 0===p?void 0:p.getBoundingClientRect(),b=y.height||0,w=null===(m=r.value)||void 0===m?void 0:m.getBoundingClientRect();if((e.headerAffixedTop||u.value)&&n.value){var x="boolean"==typeof(v=e.headerAffixProps||e.headerAffixedTop)?0:v.offsetTop||0,S=(null==w?void 0:w.height)||0,_=Math.abs(g.top)<g.height-b-x-S;u.value&&(_=g.top>-1*y.height),o.value=_}if(e.footerAffixedBottom&&null!=r&&r.value)s.value=h(w,g,b);else if(e.horizontalScrollAffixedBottom&&null!=i&&i.value){var k=i.value.getBoundingClientRect();s.value=h(k,g,b)}if(e.paginationAffixedBottom&&a.value){var A=a.value.getBoundingClientRect();l.value=h(A,g,b)}}},m=function(){p()},v=function(){f(r.value)},g=function(){f(n.value)},y=function(){f(i.value)},b=function(){f(t.value)},w=function(){VA(r.value,"scroll",v)},x=function(){HA(r.value,"scroll",v)},S=function(){VA(n.value,"scroll",g)},_=function(){HA(n.value,"scroll",g)},k=function(){VA(i.value,"scroll",y)},A=function(){HA(i.value,"scroll",y)},C=function(){VA(t.value,"scroll",b)},T=function(){HA(t.value,"scroll",b)},O=function(){if(c.value||e.paginationAffixedBottom)var t=setTimeout(function(){c.value||e.paginationAffixedBottom?VA(document,"scroll",m):HA(document,"scroll",m),clearTimeout(t)})};ta([n,r,i,t],function(){n.value&&(VA(n.value,"mouseenter",S),VA(n.value,"mouseleave",_)),e.footerAffixedBottom&&r.value&&(VA(r.value,"mouseenter",w),VA(r.value,"mouseleave",x)),e.horizontalScrollAffixedBottom&&i.value&&(VA(i.value,"mouseenter",k),VA(i.value,"mouseleave",A)),(c.value||u.value)&&t.value&&(VA(t.value,"mouseenter",C),VA(t.value,"mouseleave",T)),f(),p()}),ta(c,O),ta(function(){return[e.data,e.columns,e.headerAffixedTop,e.footerAffixedBottom,e.horizontalScrollAffixedBottom]},function(){f()}),Pr(function(){HA(document,"scroll",m),n.value&&(HA(n.value,"mouseenter",S),HA(n.value,"mouseleave",_)),r.value&&(HA(r.value,"mouseenter",w),HA(r.value,"mouseleave",x)),t.value&&(HA(t.value,"mouseenter",C),HA(t.value,"mouseleave",T)),i.value&&(HA(i.value,"mouseenter",k),HA(i.value,"mouseleave",A))});return{showAffixHeader:o,showAffixFooter:s,showAffixPagination:l,affixHeaderRef:n,affixFooterRef:r,horizontalScrollbarRef:i,paginationRef:a,onHorizontalScroll:f,setTableContentRef:function(e){t.value=e,O()},updateAffixHeaderOrFooter:p}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function cY(e,t){if(e){for(var n=e instanceof Array?e:[e],r={},i=0;i<n.length;i++){var a=n[i];if(a){var o=ox(a)?a(t):a;r=o instanceof Array?cY(o,t):Object.assign(r,o)}}return r}}function dY(e,t,n){for(var r=e instanceof Array?e:[e],i=t.row,a=t.rowIndex,o=[],s=0,l=r.length;s<l;s++){var u=r[s],c=ox(u)?u(t):u;if(!nx(c)||c instanceof Array)c instanceof Array&&(c=dY(c,t,n));else{c[a]&&(c=c[a]);var d=fF(i,n||"id");c[d]&&(c=c[d])}o=o.concat(c)}return o}function fY(e,t){if(e&&t){var n=null==e?void 0:e.find(function(e){return e.colKey===t});if(n)return n;for(var r=0,i=e.length;r<i;r++){var a,o,s;if(null!==(a=e[r])&&void 0!==a&&null!==(o=a.children)&&void 0!==o&&o.length)return fY(null===(s=e[r])||void 0===s?void 0:s.children,t)}}}function hY(e,t){return"object"===zw(e)?e:"object"===zw(t)?t:{}}function pY(e,t){for(var n=0,r=e.length;n<r;n++){var i;if(e[n].colKey===t)return e[n];if(null!==(i=e[n].children)&&void 0!==i&&i.length){var a=pY(e[n].children,t);if(a)return a}}return null}function mY(e,t){for(var n=0,r=e.length;n<r;n++){var i;if(e[n].colKey===t)return n;if(null!==(i=e[n].children)&&void 0!==i&&i.length)if(pY(e[n].children,t))return n}return-1}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function vY(e,t,n){var r=vo(function(){return Math.max(n.rowHeight||48,48)}),i=Et(0===n.rowIndex),a=vo(function(){return"lazy"===(null==n?void 0:n.type)&&!i.value}),o=!BA&&window.requestAnimationFrame||function(e){return setTimeout(e,16.6)},s=function(){i.value||o(function(){i.value=!0})};return Er(function(){"lazy"===(null==n?void 0:n.type)&&fn(function(){var i=Math.max(10,n.bufferSize||10),a=r.value*i;!function(e,t,n,r){if(!window||!window.IntersectionObserver)return n(),null;var i=null;try{(i=new window.IntersectionObserver(function(t){t[0].isIntersecting&&(n(),i.unobserve(e))},{rootMargin:"0px 0px ".concat(r,"px 0px"),root:t})).observe(e)}catch(kJe){n()}}(t.value,e.value,s,a)})}),{hasLazyLoadHolder:a,tRowHeight:r}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function gY(e,t,n,r){var i=fF(e,t);return void 0===i&&FD("Table","rowKey is wrong, can not get unique identifier of row."),[i,n||r].join("_")}function yY(e,t,n,r){var i=Et(new Map),a=function(r,a){var o=r.rowIndex,s=r.colIndex;if(a.rowspan||a.colspan)for(var l=o+(a.rowspan||1),u=s+(a.colspan||1),c=o;c<l;c++)for(var d=s;d<u;d++)if(c!==o||d!==s){if(!e.value[c]||!t.value[d])return;var f=gY(e.value[c],n.value,t.value[d].colKey,d),h=i.value.get(f)||{};h.skipped=!0,i.value.set(f,h)}};return ta(function(){return[e.value,t.value,r]},function(){!function(e,t,r){var o;if(null===(o=i.value)||void 0===o||o.clear(),e&&r)for(var s=0,l=e.length;s<l;s++)for(var u=e[s],c=0,d=t.length;c<d;c++){var f=t[c],h={row:u,col:f,rowIndex:s,colIndex:c},p=gY(u,n.value,f.colKey,c),m=i.value.get(p)||{},v=r(h)||{};(v.rowspan||v.colspan||m.rowspan||m.colspan)&&(v.rowspan&&(m.rowspan=v.rowspan),v.colspan&&(m.colspan=v.colspan),i.value.set(p,m)),null==a||a(h,m)}}(e.value,t.value,null==r?void 0:r.value)},{immediate:!0}),{skipSpansMap:i}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function bY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xY=["rowKey","rowClassName","columns","fixedRows","footData","rowAttributes","rowspanAndColspan","scroll","cellEmptyContent","onCellClick","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup"],SY=["click","dblclick","mouseover","mousedown","mouseenter","mouseleave","mouseup"];function _Y(e,t,n){var r=e.col,i=e.row;if(ox(r.cell))return r.cell(go,e);if(t[r.colKey])return t[r.colKey](e);if(CA(r.cell)&&t[r.cell])return t[r.cell](e);if(ox(r.render))return r.render(go,wY(wY({},e),{},{type:"cell"}));var a=fF(i,r.colKey);return[void 0,"",null].includes(a)?null!=n&&n.cellEmptyContent?ox(n.cellEmptyContent)?n.cellEmptyContent(go,e):n.cellEmptyContent:t.cellEmptyContent?t.cellEmptyContent(e):a:a}var kY=yr({name:"TR",props:wY(wY({row:Object,rowIndex:Number,dataLength:Number,rowAndColFixedPosition:Map,skipSpansMap:Map},xN(XG,xY)),{},{scrollType:String,rowHeight:Number,trs:Map,bufferSize:Number,isVirtual:Boolean,tableElm:{},tableContentElm:{}}),emits:["row-mounted"],setup:function(e,t){var n=Ft(e).tableContentElm,r=Et(null),i=qG(),a=i.tdEllipsisClass,o=i.tableBaseClass,s=i.tableColFixedClasses,l=i.tableRowFixedClasses,u=i.tdAlignClasses,c=i.tableDraggableClasses,d=vo(function(){return function(e,t,n,r,i,a){var o;if(!r||!r.length)return{style:void 0,classes:void 0};var s=t<r[0],l=t>n-1-r[1],u=n-r[1],c=(null==i?void 0:i.get(e))||{},d=(Pw(o={},a.top,s),Pw(o,a.bottom,l),Pw(o,a.firstBottom,t===u),Pw(o,a.withoutBorderBottom,t===u-1),o);return{style:{top:s?"".concat(c.top,"px"):void 0,bottom:l?"".concat(c.bottom,"px"):void 0},classes:d}}(fF(e.row,e.rowKey||"id"),e.rowIndex,e.dataLength,e.fixedRows,e.rowAndColFixedPosition,l)}),f=vo(function(){return cY(e.rowAttributes,{row:e.row,rowIndex:e.rowIndex,type:"body"})||{}}),h=vo(function(){var t,n=dY(e.rowClassName,{row:e.row,rowIndex:e.rowIndex,type:"body"},e.rowKey||"id");return[null===(t=d.value)||void 0===t?void 0:t.classes,n].filter(function(e){return e})}),p=vY(n,r,bt(wY(wY({},e.scroll),{},{rowIndex:e.rowIndex}))),m=p.hasLazyLoadHolder,v=p.tRowHeight;return Er(function(){var n=e.scrollType,i=e.isVirtual,a=e.row,o=e.trs;if("virtual"===n&&i){var s=a.$index;o.set(s,r.value),t.emit("row-mounted")}}),Rr(function(){if(e.isVirtual){var t=e.trs,n=e.row.$index;t.delete(n)}}),{trRef:r,tableColFixedClasses:s,tSlots:t.slots,tdEllipsisClass:a,tableBaseClass:o,tdAlignClasses:u,tableDraggableClasses:c,trStyles:d,classes:h,trAttributes:f,tRowHeight:v,hasLazyLoadHolder:m,getTrListeners:function(t,n){var r={};return SY.forEach(function(i){r["on".concat(pT(i))]=function(r){var a,o={e:r,row:t,index:n};null===(a=e["onRow".concat(pT(i))])||void 0===a||a.call(e,o)}}),r}}},methods:{renderEllipsisCell:function(e,t){var n,r=t.cellNode,i=e.col,a=e.colIndex<2?"top-left":"top-right",o=ox(i.ellipsis)?i.ellipsis(go,e):void 0,s=this.tableElm;return Na(JG,{placement:a,attach:s?function(){return s}:void 0,tooltipContent:o&&function(){return o},tooltipProps:"object"===zw(i.ellipsis)?i.ellipsis:void 0},"function"==typeof(n=r)||"[object Object]"===Object.prototype.toString.call(n)&&!Ea(n)?r:{default:function(){return[r]}})},renderTd:function(e,t){var n,r=this,i=e.col,a=e.colIndex,o=e.rowIndex,s=t.cellSpans,l=t.dataLength,u=t.rowAndColFixedPosition,c=_Y(e,this.tSlots,{cellEmptyContent:t.cellEmptyContent}),d=aY(i,a,u,this.tableColFixedClasses),f=ox(i.className)?i.className(wY(wY({},e),{},{type:"td"})):i.className,h=[d.classes,f,(n={},Pw(n,this.tdEllipsisClass,i.ellipsis),Pw(n,this.tableBaseClass.tdLastRow,o+s.rowspan===l),Pw(n,this.tableBaseClass.tdFirstCol,0===a&&this.rowspanAndColspan),Pw(n,this.tdAlignClasses[i.align],i.align&&"left"!==i.align),Pw(n,this.tableDraggableClasses.handle,"drag"===i.colKey),n)],p=wY(wY({},i.attrs),s);return Na("td",Xa({key:"".concat(i.colKey,"_").concat(a),class:h,style:d.style},p,{onClick:function(t){var n,i=wY(wY({},e),{},{e:t});null===(n=r.onCellClick)||void 0===n||n.call(r,i)}}),[i.ellipsis?this.renderEllipsisCell(e,{cellNode:c}):c])}},render:function(){var e,t,n=this,r=this.row,i=this.rowIndex,a=this.dataLength,o=this.rowAndColFixedPosition,s=null===(e=this.columns)||void 0===e?void 0:e.map(function(e,t){var s={},l={row:r,col:e,rowIndex:i,colIndex:t},u=null;if(n.skipSpansMap.size){var c,d,f=gY(r,n.rowKey,e.colKey,t);if((null===(c=u=n.skipSpansMap.get(f)||{})||void 0===c?void 0:c.rowspan)>1&&(s.rowspan=u.rowspan),(null===(d=u)||void 0===d?void 0:d.colspan)>1&&(s.colspan=u.colspan),u.skipped)return null}return n.renderTd(l,{dataLength:a,rowAndColFixedPosition:o,columnLength:n.columns.length,cellSpans:s,cellEmptyContent:n.cellEmptyContent})});return Na("tr",Xa({ref:"trRef"},this.trAttributes,{style:null===(t=this.trStyles)||void 0===t?void 0:t.style,class:this.classes},this.getTrListeners(r,i)),[this.hasLazyLoadHolder?[Na("td",{style:{height:"".concat(this.tRowHeight,"px"),border:"none"}},null)]:s])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function AY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var TY=["rowKey","rowClassName","rowAttributes","loading","empty","fixedRows","firstFullRow","lastFullRow","rowspanAndColspan","scroll","cellEmptyContent","onCellClick","onPageChange","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup","onScroll","onScrollX","onScrollY"],OY=yr({name:"TBody",props:CY({data:Array,columns:Array,rowAndColFixedPosition:Map,showColumnShadow:Object,tableElm:{},tableWidth:Number,isWidthOverflow:Boolean,translateY:Number,scrollType:String,isVirtual:Boolean,rowHeight:Number,trs:Map,bufferSize:Number,tableContentElm:{},handleRowMounted:Function,renderExpandedRow:Function,firstFullRow:[String,Function],lastFullRow:[String,Function]},xN(XG,TY)),setup:function(e){var t=LO(),n=Ft(e),r=n.data,i=n.columns,a=n.rowKey,o=n.rowspanAndColspan,s=bA("table"),l=s.t,u=s.globalConfig,c=qG(),d=c.tableFullRowClasses,f=c.tableBaseClass,h=yY(r,i,a,o).skipSpansMap;return{t:l,globalConfig:u,renderTNode:t,tableFullRowClasses:d,tbodyClasses:vo(function(){return[f.body]}),tableBaseClass:f,skipSpansMap:h}},render:function(){var e,t,n=this,r=function(e,t){var r=sO(t),i=n.renderTNode(r);if(["",null,void 0,!1].includes(i))return null;var a=n.isWidthOverflow&&n.columns.find(function(e){return"left"===e.fixed}),o=[n.tableFullRowClasses.base,n.tableFullRowClasses[r]];return Na("tr",{class:o,key:"key-full-row-".concat(t)},[Na("td",{colspan:e},[Na("div",{class:Pw({},n.tableFullRowClasses.innerFullRow,a),style:a?{width:"".concat(n.tableWidth,"px")}:{}},[Na("div",{class:n.tableFullRowClasses.innerFullElement},[i])])])])},i=this.columns.length,a=this.data.length,o=[],s=["rowAndColFixedPosition","scroll","tableElm","tableContentElm","trs","bufferSize","isVirtual","rowHeight","scrollType"];null===(e=this.data)||void 0===e||e.forEach(function(e,t){var r=CY(CY({},xN(n.$props,xY)),{},{rowKey:n.rowKey||"id",row:e,columns:n.columns,rowIndex:t,dataLength:a,skipSpansMap:n.skipSpansMap},xN(n.$props,s));n.onCellClick&&(r.onCellClick=n.onCellClick);var i=Na(kY,Xa({key:"".concat(fF(e,n.rowKey||"id"),"__").concat(t)},r,{onRowMounted:n.handleRowMounted}),n.$slots);if(o.push(i),n.renderExpandedRow){var l={row:e,index:t,columns:n.columns,tableWidth:n.tableWidth,isWidthOverflow:n.isWidthOverflow},u=n.renderExpandedRow(l);u&&o.push(u)}});var l,u=[r(i,"first-full-row")].concat(o,[r(i,"last-full-row")]),c=!(null!==(t=this.data)&&void 0!==t&&t.length||this.loading||this.firstFullRow||this.lastFullRow),d="translate(0, ".concat(this.translateY,"px)"),f={transform:d,"-ms-transform":d,"-moz-transform":d,"-webkit-transform":d};return Na("tbody",{class:this.tbodyClasses,style:this.isVirtual&&CY({},f)},[c?(l=this.columns,Na("tr",{class:[n.tableBaseClass.emptyRow,Pw({},n.tableFullRowClasses.base,n.isWidthOverflow)]},[Na("td",{colspan:l.length},[Na("div",{class:[n.tableBaseClass.empty,Pw({},n.tableFullRowClasses.innerFullRow,n.isWidthOverflow)],style:n.isWidthOverflow?{width:"".concat(n.tableWidth,"px")}:{}},[n.renderTNode("empty")||n.t(n.globalConfig.empty)])])])):u])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function IY(e){return e?isNaN(Number(e))?e:"".concat(e,"px"):e}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function PY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var MY=yr({name:"THead",props:{isFixedHeader:Boolean,rowAndColFixedPosition:Map,thWidthList:Object,bordered:Boolean,isMultipleHeader:Boolean,resizable:Boolean,spansAndLeafNodes:Object,thList:Array,columnResizeParams:Object},setup:function(e,t){var n=t.slots,r=Et(),i=qG(),a=i.tableHeaderClasses,o=i.tableBaseClass,s=bA().classPrefix,l=vo(function(){var t;return[a.header,(t={},Pw(t,a.fixed,e.isFixedHeader),Pw(t,o.bordered,e.bordered&&e.isMultipleHeader),Pw(t,a.multipleHeader,e.isMultipleHeader),t)]});return EY(EY({},i),{},{theadClasses:l,classPrefix:s,theadRef:r,slots:n})},render:function(){var e,t,n,r,i=this;return Na("thead",{ref:"theadRef",class:this.theadClasses},[(e=this.rowAndColFixedPosition,t=this.thWidthList,n=new Map,r=i.spansAndLeafNodes.rowspanAndColspanMap,i.thList.map(function(a,o){var s=a.map(function(s,l){var u,c,d=r.get(s);if(0===l&&d.rowspan>1)for(var f=o+1;f<o+d.rowspan;f++)n.set(i.thList[f][0],!0);var h,p=aY(s,l,e,i.tableColFixedClasses),m={col:s,colIndex:l,row:{},rowIndex:-1},v=ox(s.className)?s.className(EY(EY({},m),{},{type:"th"})):s.className,g=[p.classes,v,(u={},Pw(u,i.tableHeaderClasses.thBordered,n.get(s)),Pw(u,"".concat(i.classPrefix,"-table__th-").concat(s.colKey),s.colKey),Pw(u,i.tdAlignClasses[s.align],s.align&&"left"!==s.align),u)],y=null!==(c=s.children)&&void 0!==c&&c.length||null==t||!t[s.colKey]?void 0:"".concat(null==t?void 0:t[s.colKey],"px"),b=EY(EY({},p.style||{}),{},{width:y}),w=eY(i.slots,s,l),x=i.resizable?{onMousedown:function(e){var t,n;return null===(t=i.columnResizeParams)||void 0===t||null===(n=t.onColumnMousedown)||void 0===n?void 0:n.call(t,e,s,l<a.length-1?a[l+1]:a[l-1],l>0?a[l-1]:a[l+1])},onMousemove:function(e){var t,n;return null===(t=i.columnResizeParams)||void 0===t||null===(n=t.onColumnMouseover)||void 0===n?void 0:n.call(t,e)}}:{},S=ox(s.ellipsisTitle)?s.ellipsisTitle(go,{col:s,colIndex:l}):void 0;return Na("th",Xa({key:s.colKey,"data-colkey":s.colKey,class:g,style:b},d,x),[Na("div",{class:i.tableBaseClass.thCellInner},[s.ellipsis&&!1!==s.ellipsisTitle&&null!==s.ellipsisTitle?Na(JG,{placement:"bottom",attach:i.theadRef?function(){return i.theadRef}:void 0,tooltipContent:S&&function(){return S},tooltipProps:"object"===zw(s.ellipsisTitle)?s.ellipsisTitle:void 0},(h=w,"function"==typeof h||"[object Object]"===Object.prototype.toString.call(h)&&!Ea(h)?w:{default:function(){return[w]}})):w])])});return Na("tr",{key:o},[s])}))])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function DY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var LY=yr({name:"TFoot",props:{rowKey:String,isFixedHeader:Boolean,rowAndColFixedPosition:Map,footData:Array,columns:Array,rowAttributes:[Array,Object,Function],rowClassName:[Array,String,Object,Function],thWidthList:[Object],footerSummary:[String,Function],rowspanAndColspanInFooter:Function},setup:function(e,t){var n=LO(),r=qG(),i=Ft(e);return RY(RY({skipSpansMap:yY(i.footData,i.columns,i.rowKey,i.rowspanAndColspanInFooter).skipSpansMap},r),{},{renderTFootCell:function(e){var n=e.col,r=e.row;return ox(n.foot)?n.foot(go,e):CA(n.foot)&&t.slots[n.foot]?t.slots[n.foot](e)||n.foot:n.foot||fF(r,n.colKey)},renderTNode:n})},render:function(){var e,t=this;if(!this.columns)return null;var n=[this.tableFooterClasses.footer,Pw({},this.tableFooterClasses.fixed,this.isFixedHeader)],r=null===(e=this.footData)||void 0===e?void 0:e.map(function(e,n){var r=cY(t.rowAttributes,{row:e,rowIndex:n,type:"foot"}),i=dY(t.rowClassName,{row:e,rowIndex:n,type:"foot"},t.rowKey||"id");return Na("tr",Xa(r,{key:n,class:i}),[t.columns.map(function(r,i){var a,o={},s=null;if(t.skipSpansMap.size){var l,u,c=gY(e,t.rowKey,r.colKey,i);if((null===(l=s=t.skipSpansMap.get(c)||{})||void 0===l?void 0:l.rowspan)>1&&(o.rowspan=s.rowspan),(null===(u=s)||void 0===u?void 0:u.colspan)>1&&(o.colspan=s.colspan),s.skipped)return null}var d=aY(r,i,t.rowAndColFixedPosition,t.tableColFixedClasses),f=RY({},d.style);return null!==(a=t.thWidthList)&&void 0!==a&&a[r.colKey]&&(f.width="".concat(t.thWidthList[r.colKey],"px")),Na("td",Xa(RY({key:r.colKey},o),{class:d.classes,style:f}),[t.renderTFootCell({row:e,rowIndex:n,col:r,colIndex:i})])})])}),i=this.renderTNode("footerSummary");return i||this.footData&&this.footData.length?Na("tfoot",{ref:"tFooterRef",class:n},[i&&Na("tr",{class:this.tableFullRowClasses.base},[Na("td",{colspan:this.columns.length},[Na("div",{class:this.tableFullRowClasses.innerFullElement},[i])])]),r]):null}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function NY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FY(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ea(e)}var zY=yr({name:"TBaseTable",props:jY(jY({},XG),{},{renderExpandedRow:Function,onLeafColumnsChange:Function}),setup:function(e,t){var n,r=LO(),i=Et(),a=Et(),o=Et(),s=Et(0),l=qG(),u=l.virtualScrollClasses,c=l.tableLayoutClasses,d=l.tableBaseClass,f=l.tableColFixedClasses,h=function(e){var t=Ft(e),n=t.size,r=t.bordered,i=t.stripe,a=t.hover,o=t.verticalAlign,s=t.height,l=t.maxHeight,u=t.tableContentWidth,c=qG(),d=c.tableBaseClass,f=c.tableAlignClasses,h=FR().sizeClassNames,p=vo(function(){var t;return[d.table,(t={},Pw(t,h[n.value],"medium"!==n.value),Pw(t,d.bordered,r.value),Pw(t,d.striped,i.value),Pw(t,d.hover,a.value),Pw(t,d.loading,e.loading),Pw(t,d.affixedHeader,e.headerAffixedTop),Pw(t,d.rowspanAndColspan,e.rowspanAndColspan),Pw(t,f[o.value],"middle"!==o.value),t)]}),m=vo(function(){return{height:IY(s.value),maxHeight:IY(l.value)}});return{tableClasses:p,tableElementStyles:vo(function(){return{width:IY(u.value)}}),tableContentStyles:m}}(e),p=h.tableClasses,m=h.tableContentStyles,v=h.tableElementStyles,g=bA("table").globalConfig,y=tY(e),b=y.isMultipleHeader,w=y.spansAndLeafNodes,x=y.thList,S=vo(function(){var t;return(null===(t=w.value)||void 0===t?void 0:t.leafColumns)||e.columns}),_=oY(e,0,S),k=_.scrollbarWidth,A=_.virtualScrollHeaderPos,C=_.tableWidth,T=_.tableElmWidth,O=_.tableContentRef,I=_.isFixedHeader,P=_.isWidthOverflow,E=_.isFixedColumn,M=_.thWidthList,D=_.showColumnShadow,R=_.rowAndColFixedPosition,L=_.setData,N=_.refreshTable,j=_.emitScrollEvent,F=_.setUseFixedTableElmRef,z=_.updateColumnFixedShadow,B=_.getThWidthList,V=_.updateThWidthList,H=_.setRecalculateColWidthFuncRef,W=_.addTableResizeObserver,U=uY(e),X=U.affixHeaderRef,G=U.affixFooterRef,Y=U.horizontalScrollbarRef,K=U.paginationRef,q=U.showAffixHeader,Z=U.showAffixFooter,J=U.showAffixPagination,Q=U.onHorizontalScroll,$=U.setTableContentRef,ee=U.updateAffixHeaderOrFooter,te=lY(e),ne=te.dataSource,re=te.isPaginateData,ie=te.renderPagination,ae=nY(O,N,B,V),oe=ae.resizeLineRef,se=ae.resizeLineStyle;H(ae.recalculateColWidth);var le=vo(function(){var t;return[p.value,(t={},Pw(t,d.headerFixed,I.value),Pw(t,d.columnFixed,E.value),Pw(t,d.widthOverflow,P.value),Pw(t,d.multipleHeader,b.value),Pw(t,f.leftShadow,D.left),Pw(t,f.rightShadow,D.right),Pw(t,d.columnResizableTable,e.resizable),t)]}),ue=vo(function(){return[[c[e.tableLayout]],Pw({},d.fullHeight,e.height)]}),ce=vo(function(){var t,n;return"virtual"===he&&(null===(t=e.data)||void 0===t?void 0:t.length)>((null===(n=e.scroll)||void 0===n?void 0:n.threshold)||100)}),de=vo(function(){return e.bordered&&I.value&&(b.value&&P.value||!b.value)});ta(a,function(){F(a.value)}),ta(function(){return[e.data,ne]},function(){L(re.value?ne.value:e.data)}),ta(w,function(){var t;null===(t=e.onLeafColumnsChange)||void 0===t||t.call(e,w.value.leafColumns)},{immediate:!0});var fe=e.scroll||{},he=fe.type,pe=fe.rowHeight,me=fe.bufferSize,ve=void 0===me?20:me,ge=fe.isFixedRowHeight,ye=void 0!==ge&&ge,be=Ft(e).data,we="virtual"===he?VR({container:O,data:be,fixedHeight:ye,lineHeight:pe,bufferSize:ve,threshold:null===(n=e.scroll)||void 0===n?void 0:n.threshold}):{},xe=we.trs,Se=void 0===xe?null:xe,_e=we.scrollHeight,ke=void 0===_e?null:_e,Ae=we.visibleData,Ce=void 0===Ae?null:Ae,Te=we.translateY,Oe=void 0===Te?null:Te,Ie=we.handleScroll,Pe=void 0===Ie?null:Ie,Ee=we.handleRowMounted,Me=void 0===Ee?null:Ee;gi("tableContentRef",O),gi("rowHeightRef",Et(pe));var De=0,Re=function(){var e;a.value&&(s.value=null===(e=a.value.querySelector("tfoot"))||void 0===e?void 0:e.getBoundingClientRect().height)};return ta(O,function(){$(O.value)}),ta(a,Re),ta(i,function(e){W(e)}),Er(function(){Re(),$(O.value),W(i.value)}),{thList:x,isVirtual:ce,globalConfig:g,tableFootHeight:s,virtualScrollHeaderPos:A,tableWidth:C,tableElmWidth:T,tableRef:i,tableElmRef:a,tableBaseClass:d,spansAndLeafNodes:w,dynamicBaseTableClasses:le,tableContentStyles:m,tableElementStyles:v,virtualScrollClasses:u,tableLayoutClasses:c,tableElmClasses:ue,tableContentRef:O,isFixedHeader:I,isWidthOverflow:P,isFixedColumn:E,rowAndColFixedPosition:R,showColumnShadow:D,thWidthList:M,isPaginateData:re,dataSource:ne,scrollType:he,rowHeight:pe,trs:Se,bufferSize:ve,scrollHeight:ke,visibleData:Ce,translateY:Oe,affixHeaderRef:X,affixFooterRef:G,paginationRef:K,showAffixHeader:q,showAffixFooter:Z,scrollbarWidth:k,isMultipleHeader:b,showRightDivider:de,resizeLineRef:oe,resizeLineStyle:se,columnResizeParams:ae,horizontalScrollbarRef:Y,tableBodyRef:o,showAffixPagination:J,renderPagination:ie,renderTNode:r,handleRowMounted:Me,onFixedChange:function(){fn(function(){Q(),ee()})},onHorizontalScroll:Q,updateAffixHeaderOrFooter:ee,refreshTable:N,onInnerVirtualScroll:function(e){var t=e.target||e.srcElement,n=t.scrollTop;De!==n?ce.value&&Pe():(De=0,z(t)),De=n,j(e)}}},render:function(){var e,t,n,r,i,a=this,o=this.rowAndColFixedPosition,s=this.isPaginateData?this.dataSource:this.data,l=(null===(e=this.spansAndLeafNodes)||void 0===e?void 0:e.leafColumns)||this.columns;(void 0===this.allowResizeColumnWidth?this.resizable:this.allowResizeColumnWidth)&&"auto"===this.tableLayout&&ND("Table","table-layout can not be `auto` for resizable column table, set `table-layout: fixed` please.");var u="fixed"===this.tableLayout&&this.isWidthOverflow?"100px":void 0,c=!(!this.isVirtual||this.headerAffixedTop||!this.bordered)&&/Chrome/.test(null===(t=navigator)||void 0===t?void 0:t.userAgent),d=this.bordered&&c?1:0,f=((null===(n=this.affixHeaderRef)||void 0===n?void 0:n.getBoundingClientRect().height)||0)-this.scrollbarWidth-d,h=XG.headerAffixedTop?Number(this.showAffixHeader):1,p={width:"".concat(this.tableWidth,"px"),height:"".concat(f,"px"),opacity:h,marginTop:c?"".concat(d,"px"):0},m=this.bordered?1:0,v=Boolean((this.headerAffixedTop||this.isVirtual)&&this.tableWidth)&&Na("div",{ref:"affixHeaderRef",style:{width:"".concat(this.tableWidth-m,"px"),opacity:Number(this.showAffixHeader)},class:["scrollbar",Pw({},this.tableBaseClass.affixedHeaderElm,this.headerAffixedTop||this.isVirtual)]},[Na("table",{class:this.tableElmClasses,style:jY(jY({},this.tableElementStyles),{},{width:"".concat(this.tableElmWidth,"px")})},[Na("colgroup",null,[l.map(function(e){var t={width:IY(a.thWidthList[e.colKey]||e.width)||u};return e.minWidth&&(t.minWidth=IY(e.minWidth)),Na("col",{key:e.colKey,style:t},null)})]),Na(MY,{isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:this.rowAndColFixedPosition,isMultipleHeader:this.isMultipleHeader,bordered:this.bordered,spansAndLeafNodes:this.spansAndLeafNodes,thList:this.thList,thWidthList:this.thWidthList,resizable:this.resizable,columnResizeParams:this.columnResizeParams},this.$slots)])]),g=Na("div",{class:this.tableBaseClass.affixedHeaderWrap,style:p},[v]),y=this.isWidthOverflow?this.scrollbarWidth:0;this.bordered&&(y+=1);var b=Boolean(this.footerAffixedBottom&&(null===(r=this.footData)||void 0===r?void 0:r.length)&&this.tableWidth)&&Na(yE,Xa({class:this.tableBaseClass.affixedFooterWrap,onFixedChange:this.onFixedChange,offsetBottom:y||0},hY(this.footerAffixedBottom),{style:{marginTop:"".concat(-1*(this.tableFootHeight+y),"px")}}),{default:function(){return[Na("div",{ref:"affixFooterRef",style:{width:"".concat(a.tableWidth-m,"px"),opacity:Number(a.showAffixFooter)},class:["scrollbar",Pw({},a.tableBaseClass.affixedFooterElm,a.footerAffixedBottom||a.isVirtual)]},[Na("table",{class:a.tableElmClasses,style:jY(jY({},a.tableElementStyles),{},{width:"".concat(a.tableElmWidth,"px")})},[Na("colgroup",null,[l.map(function(e){var t={width:IY(a.thWidthList[e.colKey]||e.width)||u};return e.minWidth&&(t.minWidth=IY(e.minWidth)),Na("col",{key:e.colKey,style:t},null)})]),Na(LY,{rowKey:a.rowKey,isFixedHeader:a.isFixedHeader,rowAndColFixedPosition:o,footData:a.footData,columns:l,rowAttributes:a.rowAttributes,rowClassName:a.rowClassName,thWidthList:a.thWidthList,footerSummary:a.footerSummary,rowspanAndColspanInFooter:a.rowspanAndColspanInFooter},a.$slots)])])]}}),w="translate(0, ".concat(this.scrollHeight,"px)"),x={transform:w,"-ms-transform":w,"-moz-transform":w,"-webkit-transform":w},S=jY({rowAndColFixedPosition:o,showColumnShadow:this.showColumnShadow,data:this.isVirtual?this.visibleData:s,columns:this.spansAndLeafNodes.leafColumns,tableElm:this.tableRef,tableWidth:this.tableWidth,isWidthOverflow:this.isWidthOverflow,isVirtual:this.isVirtual,translateY:this.translateY,scrollType:this.scrollType,rowHeight:this.rowHeight,trs:this.trs,bufferSize:this.bufferSize,scroll:this.scroll,cellEmptyContent:this.cellEmptyContent,tableContentElm:this.tableContentRef,handleRowMounted:this.handleRowMounted,renderExpandedRow:this.renderExpandedRow},xN(this.$props,TY)),_=Na("div",{ref:"tableContentRef",class:this.tableBaseClass.content,style:this.tableContentStyles,onScroll:this.onInnerVirtualScroll},[this.isVirtual&&Na("div",{class:this.virtualScrollClasses.cursor,style:x},null),Na("table",{ref:"tableElmRef",class:this.tableElmClasses,style:this.tableElementStyles},[Na("colgroup",null,[l.map(function(e){var t={width:IY(a.thWidthList[e.colKey]||e.width)||u};return e.minWidth&&(t.minWidth=IY(e.minWidth)),Na("col",{key:e.colKey,style:t},null)})]),Na(MY,{isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:this.rowAndColFixedPosition,isMultipleHeader:this.isMultipleHeader,bordered:this.bordered,spansAndLeafNodes:this.spansAndLeafNodes,thList:this.thList,thWidthList:this.thWidthList,resizable:this.resizable,columnResizeParams:this.columnResizeParams},this.$slots),Na(OY,S,this.$slots),Na(LY,{rowKey:this.rowKey,isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:o,footData:this.footData,columns:l,rowAttributes:this.rowAttributes,rowClassName:this.rowClassName,footerSummary:this.footerSummary,rowspanAndColspanInFooter:this.rowspanAndColspanInFooter},this.$slots)])]),k=this.renderTNode("loading"),A=void 0!==this.loading&&Na(CO,Xa({loading:!!this.loading,text:k?function(){return k}:void 0,attach:this.tableRef?function(){return a.tableRef}:void 0,showOverlay:!0,size:"small"},this.loadingProps),null),C=this.renderTNode("topContent"),T=this.renderTNode("bottomContent"),O=Na("div",{ref:"paginationRef",class:this.tableBaseClass.paginationWrap,style:{opacity:Number(this.showAffixPagination)}},[this.renderPagination()]),I=!!T&&Na("div",{class:this.tableBaseClass.bottomContent},[T]);return Na("div",{ref:"tableRef",class:this.dynamicBaseTableClasses,style:"position: relative"},[!!C&&Na("div",{class:this.tableBaseClass.topContent},[C]),!(!this.isVirtual&&!this.headerAffixedTop)&&(this.headerAffixedTop?Na(yE,Xa({offsetTop:0},hY(this.headerAffixedTop),{onFixedChange:this.onFixedChange}),FY(g)?g:{default:function(){return[g]}}):this.isFixedHeader&&g),_,b,A,this.showRightDivider&&Na("div",{class:this.tableBaseClass.scrollbarDivider,style:{right:"".concat(this.scrollbarWidth,"px"),height:"".concat(null===(i=this.tableContentRef)||void 0===i?void 0:i.getBoundingClientRect().height,"px")}},null),I,this.horizontalScrollAffixedBottom&&Na(yE,Xa({offsetBottom:0},hY(this.horizontalScrollAffixedBottom),{style:{marginTop:"-".concat(2*this.scrollbarWidth,"px")}}),{default:function(){return[Na("div",{ref:"horizontalScrollbarRef",class:["scrollbar",a.tableBaseClass.obviousScrollbar],style:{width:"".concat(a.tableWidth,"px"),overflow:"auto",opacity:Number(a.showAffixFooter)}},[Na("div",{style:{width:"".concat(a.tableElmWidth,"px"),height:"5px"}},null)])]}}),this.paginationAffixedBottom?Na(yE,Xa({offsetBottom:0},hY(this.paginationAffixedBottom)),FY(O)?O:{default:function(){return[O]}}):O,Na("div",{ref:"resizeLineRef",class:this.tableBaseClass.resizeLine,style:this.resizeLineStyle},null)])}}),BY={asyncLoading:{type:[String,Function]},columnController:{type:Object},columnControllerVisible:{type:Boolean,default:void 0},defaultColumnControllerVisible:{type:Boolean,default:void 0},columns:{type:Array,default:function(){return[]}},displayColumns:{type:Array,default:void 0},defaultDisplayColumns:{type:Array},dragSort:{type:String,validator:function(e){return!e||["row","row-handler","col","row-handler-col","drag-col"].includes(e)}},dragSortOptions:{type:Object},editableCellState:{type:Function},editableRowKeys:{type:Array},expandIcon:{type:[Boolean,Function],default:!0},expandOnRowClick:Boolean,expandedRow:{type:[String,Function]},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:function(){return[]}},filterIcon:{type:Function},filterRow:{type:[String,Function]},filterValue:{type:Object,default:void 0},defaultFilterValue:{type:Object},hideSortTips:Boolean,indeterminateSelectedRowKeys:{type:Array},multipleSort:Boolean,selectedRowKeys:{type:Array,default:void 0},defaultSelectedRowKeys:{type:Array,default:function(){return[]}},sort:{type:[Object,Array],default:void 0},defaultSort:{type:[Object,Array]},sortIcon:{type:Function},sortOnRowDraggable:Boolean,onAsyncLoadingClick:Function,onCellClick:Function,onChange:Function,onColumnChange:Function,onColumnControllerVisibleChange:Function,onDataChange:Function,onDisplayColumnsChange:Function,onDragSort:Function,onExpandChange:Function,onFilterChange:Function,onRowEdit:Function,onRowValidate:Function,onSelectChange:Function,onSortChange:Function,onValidate:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function VY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HY(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=0,r=e.length;n<r;n++){var i,a=e[n];a.colKey&&t.add(a.colKey),null!==(i=a.children)&&void 0!==i&&i.length&&HY(a.children,t)}return t}function WY(e,t){var n=bA("table"),r=n.classPrefix,i=n.globalConfig,a=kE({SettingIcon:tE}).SettingIcon,o=Ft(e),s=o.columns,l=o.columnController,u=o.displayColumns,c=o.columnControllerVisible,d=Et(null),f=vo(function(){var e,t=((null===(e=l.value)||void 0===e?void 0:e.fields)||Iw(HY(s.value))).filter(function(e){return e});return new Set(t)}),h=Iw(HY(s.value)),p=Ew(zD(u,e.defaultDisplayColumns||h,e.onDisplayColumnsChange,"displayColumns"),2),m=p[0],v=p[1],g=Et(u.value||e.defaultDisplayColumns||h),y=vo(function(){return w(s.value)}),b=vo(function(){return Pz(g.value,Iw(f.value))});function w(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(r,i){var a,o=e[r];o.colKey&&n.push({label:function(){return eY(t.slots,o,r)},value:o.colKey,disabled:!f.value.has(o.colKey)}),null!==(a=o.children)&&void 0!==a&&a.length&&w(o.children,n)},i=0,a=e.length;i<a;i++)r(i);return n}ta([u],function(t){var n=Ew(t,1)[0];g.value=n||e.defaultDisplayColumns||h});var x=function(t,n){var r;g.value=t;var i={columns:t,type:n.type,currentColumn:fY(s.value,String(n.current)),e:n.e};null===(r=e.onColumnChange)||void 0===r||r.call(e,i)},S=function(t,n){if(t){var r,i,a=(null===(r=y.value)||void 0===r?void 0:r.map(function(e){return e.value}))||[];g.value=a,null===(i=e.onColumnChange)||void 0===i||i.call(e,{type:"check",columns:a,e:n.e})}else{var o,s=y.value.filter(function(e){return e.disabled}).map(function(e){return e.value});g.value=s,null===(o=e.onColumnChange)||void 0===o||o.call(e,{type:"uncheck",columns:s,e:n.e})}},_=function(){var n;d.value=IG.confirm(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({header:i.value.columnConfigTitleText,body:function(){var e,t,n="fixed-width"===(null===(e=l.value)||void 0===e?void 0:e.displayType)?"fixed":"auto",a=b.value.length,o=a===f.value.size,s=a>0&&a<f.value.size;return Na("div",{class:["".concat(r.value,"-table__column-controller"),"".concat(r.value,"-table__column-controller--").concat(n)]},[Na("div",{class:"".concat(r.value,"-table__column-controller-body")},[Na("p",{class:"".concat(r.value,"-table__column-controller-desc")},[i.value.columnConfigDescriptionText]),Na("div",{class:"".concat(r.value,"-table__column-controller-block")},[Na(Dz,{indeterminate:s,checked:o,onChange:S},{default:function(){return[i.value.selectAllText]}})]),Na("div",{class:"".concat(r.value,"-table__column-controller-block")},[Na(Rz,Xa({options:y.value},(null===(t=l.value)||void 0===t?void 0:t.checkboxProps)||{},{value:g.value,onChange:x}),null)])])])},confirmBtn:i.value.confirmText,cancelBtn:i.value.cancelText,width:612,onConfirm:function(){var n;(v(Iw(g.value)),void 0===c.value)?d.value.hide():(null===(n=e.onColumnControllerVisibleChange)||void 0===n||n.call(e,!1,{trigger:"cancel"}),t.emit("update:columnControllerVisible",!1))},onClose:function(){var n;void 0===c.value?d.value.hide():(null===(n=e.onColumnControllerVisibleChange)||void 0===n||n.call(e,!1,{trigger:"confirm"}),t.emit("update:columnControllerVisible",!1))}},(null===(n=l.value)||void 0===n?void 0:n.dialogProps)||{}))};ta([c],function(e){var t=Ew(e,1)[0];void 0!==t&&(d.value?t?d.value.show():d.value.hide():t&&_())},{immediate:!0});return{tDisplayColumns:m,columnCheckboxKeys:g,checkboxOptions:y,renderColumnController:function(){var t,n=!(!l.value||!Object.keys(l.value).length),o=n?l.value.placement||"top-right":"";if(n&&l.value.hideTriggerButton)return null;var s=["".concat(r.value,"-table__column-controller-trigger"),Pw({},"".concat(r.value,"-align-").concat(o),!!o)];return Na("div",{class:s},[Na(VO,Xa({theme:"default",variant:"outline",onClick:_,content:i.value.columnConfigButtonText},null===(t=e.columnController)||void 0===t?void 0:t.buttonProps),{icon:function(){return Na(a,null,null)}})])}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function UY(e,t,n){var r=ox(e.disabled)?e.disabled({row:t,rowIndex:n}):e.disabled;return e.checkProps&&(ox(e.checkProps)?r=r||e.checkProps({row:t,rowIndex:n}).disabled:"object"===e.checkProps&&(r=r||e.checkProps.disabled)),!!r}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function XY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YY(e,t){var n=Ft(e),r=n.selectedRowKeys,i=n.columns,a=n.data,o=n.rowKey,s=Et(),l=Ew(zD(r,e.defaultSelectedRowKeys||[],e.onSelectChange,"selectedRowKeys"),2),u=l[0],c=l[1],d=Et(new Map),f=vo(function(){return e.columns.find(function(e){var t=e.type;return["multiple","single"].includes(t)})}),h=vo(function(){return a.value.filter(function(e,t){return!function(e,t){return UY(f.value,e,t)}(e,t)})}),p=vo(function(){return Pz(u.value,h.value.map(function(t){return fF(t,e.rowKey||"id")}))});function m(t){var n=t.col,r=t.row,i=void 0===r?{}:r,a=t.rowIndex,o=GY(GY({checked:u.value.includes(fF(i,e.rowKey||"id")),disabled:"function"==typeof n.disabled?n.disabled({row:i,rowIndex:a}):n.disabled},ox(n.checkProps)?n.checkProps({row:i,rowIndex:a}):n.checkProps),{},{onClick:function(e){var t;"object"===zw(e)&&"e"in e?null===(t=e.e)||void 0===t||t.stopPropagation():null==e||e.stopPropagation()},onChange:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Iw(u.value),r=e.rowKey||"id",i=fF(t,r);d.value.set(i,t);var a=n.indexOf(i),o=-1!==a;if("multiple"===f.value.type)o?n.splice(a,1):n.push(i);else{if("single"!==f.value.type)return void ND("Table","`column.type` must be one of `multiple` and `single`");n=o?[]:[i]}c(n,{selectedRowData:n.map(function(e){return d.value.get(e)}),currentRowKey:i,currentRowData:t,type:o?"uncheck":"check"})}(i)}});if("single"===n.type)return Na(hG,o,null);if("multiple"===n.type){var s,l=!(null===(s=e.indeterminateSelectedRowKeys)||void 0===s||!s.length)&&e.indeterminateSelectedRowKeys.includes(fF(i,e.rowKey));return Na(Dz,Xa({indeterminate:l},o),null)}return null}function v(t){var n,i=e.rowKey||"id",a=h.value.map(function(e){return fF(e,i)}),o=(null===(n=r.value)||void 0===n?void 0:n.filter(function(e){return!a.includes(e)}))||[],s=t?[].concat(Iw(o),Iw(a)):Iw(o);c(s,{selectedRowData:t?s.map(function(e){return d.value.get(e)}):[],type:t?"check":"uncheck",currentRowKey:"CHECK_ALL_BOX"})}return ta([a,i,u,f,o],function(){var n,r=null!==(n=f.value)&&void 0!==n&&n.disabled?function(e){return f.value.disabled(e)?t.disabled:""}:void 0,i=new Set(u.value),a=i.size?function(n){var r=n.row,a=fF(r,e.rowKey||"id");return i.has(a)?t.selected:""}:void 0;s.value=[r,a]},{immediate:!0}),ta([a,o],function(e){for(var t=Ew(e,2),n=t[0],r=t[1],i=0,a=n.length;i<a;i++)d.value.set(fF(n[i],r||"id"),n[i])},{immediate:!0}),{selectedRowClassNames:s,formatToRowSelectColumn:function(e){return["multiple","single"].includes(e.type)?GY(GY({},e),{},{width:e.width||64,className:t.checkCell,cell:function(e,t){return m(t)},title:"multiple"===e.type?function(){var e=p.value.length>0&&p.value.length<h.value.length,t=0!==p.value.length&&0!==h.value.length&&p.value.length===h.value.length;return Na(Dz,{checked:t,indeterminate:e,disabled:!h.value.length,onChange:v},null)}:""}):e}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var KY=yr({name:"TSorterButton",props:{sortType:{type:String,default:"all"},sortOrder:{type:String,default:function(){return""}},sortIcon:Function,tooltipProps:Object,hideSortTips:Boolean},emits:["sort-icon-click"],setup:function(e,t){var n=qG(),r=n.tableSortClasses,i=n.negativeRotate180,a=NO(),o=bA("table");return{t:o.t,globalConfig:o.globalConfig,ChevronDownIcon:kE({ChevronDownIcon:AI}).ChevronDownIcon,tableSortClasses:r,negativeRotate180:i,allowSortTypes:vo(function(){return"all"===e.sortType?["asc","desc"]:[e.sortType]}),onSortIconClick:function(e,n){t.emit("sort-icon-click",e,{descending:"desc"===n})},renderTNode:a}},methods:{getSortIcon:function(e,t){var n=this,r=this.ChevronDownIcon,i=this.t(this.globalConfig.sortIcon)||Na(r,null,null),a=this.renderTNode("sortIcon",i),o=[t,this.tableSortClasses.sortIcon,this.tableSortClasses.iconDirection[e],Pw({},this.negativeRotate180,"asc"===e)];return Na("span",{class:o,onClick:function(t){return n.onSortIconClick(t,e)}},[a])}},render:function(){var e=this,t=this.tableSortClasses,n=[t.trigger,Pw({},t.doubleIcon,this.allowSortTypes.length>1)],r={asc:this.globalConfig.sortAscendingOperationText,desc:this.globalConfig.sortDescendingOperationText},i=this.allowSortTypes.map(function(n){var i,a,o,s=n===e.sortOrder?t.iconActive:t.iconDefault,l=e.globalConfig.sortCancelOperationText,u=n===e.sortOrder?l:r[n];return(null!==(a=e.hideSortTips)&&void 0!==a?a:e.globalConfig.hideSortTips)?e.getSortIcon(n,s):Na(_D,Xa({content:u,placement:"right"},e.tooltipProps,{showArrow:!1,class:e.tableSortClasses.iconDirection[n]}),"function"==typeof(o=i=e.getSortIcon(n,s))||"[object Object]"===Object.prototype.toString.call(o)&&!Ea(o)?i:{default:function(){return[i]}})});return Na("div",{class:n},[i])}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function qY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZY(e,t){t.emit;var n=t.slots,r=Ft(e),i=r.sort,a=r.data,o=Et(),s=Ew(zD(i,e.defaultSort,e.onSortChange,"sort"),2),l=s[0],u=s[1],c=Ew(zD(a,[],e.onDataChange,"data"),2),d=c[0],f=c[1],h=vo(function(){return v(e.columns)}),p=vo(function(){var e=l.value;return e?Array.isArray(e)?e:[e]:[]}),m=vo(function(){var e={};return p.value.forEach(function(t,n){var r=t.sortBy;e[r]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({index:n},t)}),e});function v(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0,r=e.length;n<r;n++){var i,a=e[n];ox(a.sorter)&&(t[a.colKey]=a.sorter),null!==(i=a.children)&&void 0!==i&&i.length&&v(a.children,t)}return t}function g(t,n){var r,i;e.multipleSort?i=function(e,t){var n=l.value;if(!(n instanceof Array))return;for(var r=e.colKey,i=Iw(n),a=0,o=n.length;a<o;a++)if(n[a].sortBy===r){var s=b(e,n[a],t);return s?i[a]=s:i.splice(a,1),i}return i.push({sortBy:r,descending:t.descending}),i}(t,n):i=b(t,l.value instanceof Array?l.value[0]:l.value,n);var a=function(e){var t=e;if(Object.keys(h.value).length){o.value||(o.value=d.value);var n=!t||t instanceof Array&&!t.length,r=!(t instanceof Array||null!=t&&t.sortBy);if(n||r)return f(o.value,{trigger:"sort"}),o.value;var i=t instanceof Array?t:[t],a=d.value.slice().sort(function(e,t){for(var n=0,r=0,a=i.length;r<a;r++){var o=i[r],s=h.value[o.sortBy];if(0!==n||!s)break;n=o.descending?s(t,e):s(e,t)}return n});if(JSON.stringify(a)!==JSON.stringify(d.value))return f(a,{trigger:"sort"}),a}}(i),s=a||d.value;u(i,{currentDataSource:s,col:t}),null===(r=e.onChange)||void 0===r||r.call(e,{sorter:i},{currentData:s,trigger:"sorter"})}function y(e){if(void 0!==e)return e?"desc":"asc"}function b(e,t,n){if(!t||t.sortBy!==e.colKey||t.descending!==n.descending)return{sortBy:e.colKey,descending:n.descending}}return{renderSortIcon:function(t){var r,i=t.col;if(!i.sorter)return null;var a={sortType:i.sortType,sortOrder:y(null===(r=m.value[i.colKey])||void 0===r?void 0:r.descending),sortIcon:e.sortIcon,hideSortTips:e.hideSortTips};return Na(KY,Xa(a,{onSortIconClick:function(e,t){return g(i,t)}}),{sortIcon:n.sortIcon})}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function JY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JY(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $Y=yr({name:"TableFilterController",props:{column:Object,tFilterValue:Object,innerFilterValue:Object,tableFilterClasses:Object,isFocusClass:String,primaryTableElement:{},onVisibleChange:Function},emits:["inner-filter-change","reset","confirm"],setup:function(e){var t=Et(null),n=NO(),r=bA("table"),i=r.t,a=r.globalConfig,o=kE({FilterIcon:_P}).FilterIcon,s=Et(!1);return{t:i,globalConfig:a,FilterIcon:o,filterPopupVisible:s,triggerElementRef:t,renderTNode:n,onFilterPopupVisibleChange:function(t){var n;s.value=t,null===(n=e.onVisibleChange)||void 0===n||n.call(e,t)}}},render:function(){var e,t=this,n=function(e){var n,r,i;if(!e.type||["single","multiple","input"].includes(e.filter.type)){var a={single:pG,multiple:Rz,input:eL}[e.filter.type]||e.filter.component;if(a||e.filter.component){var o=QY(QY({options:["single","multiple"].includes(e.filter.type)?null===(n=e.filter)||void 0===n?void 0:n.list:void 0},(null===(r=e.filter)||void 0===r?void 0:r.props)||{}),{},{value:null===(i=t.innerFilterValue)||void 0===i?void 0:i[e.colKey],onChange:function(n){t.$emit("inner-filter-change",n,e)}});e.filter.confirmEvents&&e.filter.confirmEvents.forEach(function(n){o[n]=function(){t.$emit("confirm",e),t.filterPopupVisible=!1}});return Na("div",{class:t.tableFilterClasses.contentInner},[function(){var n;if(!a)return null;var r=!!a.setup;return"function"!=typeof e.filter.component||r?Na(a,Xa({value:null===(n=t.innerFilterValue)||void 0===n?void 0:n[e.colKey]},o),null):e.filter.component(function(e,t){var n="object"===zw(t)&&"attrs"in t?t.attrs:{};return go(e,{props:QY(QY({},o),n)})})}()])}}},r=function(e){if(e.filter.showConfirmAndReset)return Na("div",{class:t.tableFilterClasses.bottomButtons},[Na(VO,{theme:"default",size:"small",onClick:function(){t.$emit("reset",e),t.filterPopupVisible=!1}},{default:function(){return[t.globalConfig.resetText]}}),Na(VO,{theme:"primary",size:"small",onClick:function(){t.$emit("confirm",e),t.filterPopupVisible=!1}},{default:function(){return[t.globalConfig.confirmText]}})])},i=this.column,a=this.FilterIcon;if(!i.filter||i.filter&&!Object.keys(i.filter).length)return null;var o=this.t(this.globalConfig.filterIcon)||Na(a,null,null);return Na(wD,{attach:this.primaryTableElement?function(){return t.primaryTableElement}:void 0,visible:this.filterPopupVisible,destroyOnClose:!0,trigger:"click",placement:"bottom-right",showArrow:!0,overlayClassName:this.tableFilterClasses.popup,onVisibleChange:function(e){return t.onFilterPopupVisibleChange(e)},class:[this.tableFilterClasses.icon,Pw({},this.isFocusClass,!IC(null===(e=this.tFilterValue)||void 0===e?void 0:e[i.colKey]))],content:function(){return Na("div",{class:t.tableFilterClasses.popupContent},[n(i),r(i)])}},{default:function(){return[Na("div",{ref:"triggerElementRef"},[t.renderTNode("filterIcon",o)])]}})}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function eK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eK(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nK(e,t){var n=Et(null),r=bA("table"),i=r.t,a=r.globalConfig,o=NO(),s=Ft(e).filterValue,l=qG(),u=l.tableFilterClasses,c=l.isFocusClass,d=Et(),f=Ew(zD(s,e.defaultFilterValue,e.onFilterChange,"filterValue"),2),h=f[0],p=f[1],m=Et(h.value),v=vo(function(){var e,t,n=(e=h.value||{},t={},Object.keys(e).forEach(function(n){var r=e[n],i=r instanceof Array&&r.length,a="object"===zw(r)&&!(r instanceof Array)&&Object.keys(r).length;(i||a||!["null","","undefined"].includes(String(r)))&&(t[n]=r)}),t);return!h.value||!Object.keys(n).length});function g(){var t=[];return e.columns.filter(function(e){return e.filter}).forEach(function(e){var n=h.value[e.colKey];if(e.filter.list&&!["null","","undefined"].includes(String(n))){var r=n instanceof Array?n:[n],i=[];e.filter.list.forEach(function(e){r.includes(e.value)&&i.push(e.label)}),n=i.join()}n&&t.push("".concat(e.title,"\uff1a").concat(n))}),t.join("\uff1b")}function y(e,t){var n=tK(tK({},m.value),{},Pw({},t.colKey,e));m.value=n,t.filter.showConfirmAndReset||b(n,t)}function b(t,n){var r;p(t,{col:n}),null===(r=e.onChange)||void 0===r||r.call(e,{filter:t},{trigger:"filter"})}function w(e){b(tK(tK({},h.value),{},Pw({},e.colKey,{single:"",multiple:[],input:""}[e.filter.type]||e.filter.resetValue||"")),e)}function x(){b({},void 0)}function S(e){b(m.value,e)}function _(e){e&&!d.value&&(d.value=!e)}return ta([h],function(e){var t=Ew(e,1)[0];m.value=t}),{hasEmptyCondition:v,isTableOverflowHidden:d,renderFilterIcon:function(r){var i,a=r.col;return Na($Y,{column:a,filterIcon:e.filterIcon,tFilterValue:h.value,innerFilterValue:m.value,tableFilterClasses:u,isFocusClass:c,onReset:w,onConfirm:S,onInnerFilterChange:y,primaryTableElement:null===(i=n.value)||void 0===i?void 0:i.$el,onVisibleChange:_},{filterIcon:t.slots.filterIcon})},renderFirstFilterRow:function(){var t,n;if(v.value)return null;var r=Na("div",{class:u.result},[Na("span",null,[i(a.value.searchResultText,{result:g(),count:(null===(t=e.pagination)||void 0===t?void 0:t.total)||(null===(n=e.data)||void 0===n?void 0:n.length)})]),Na(VO,{theme:"primary",variant:"text",onClick:x},{default:function(){return[a.value.clearFilterResultButtonText]}})]),s=o("filterRow");return e.filterRow&&!s?null:Na("div",{class:u.inner},[s||r])},setFilterPrimaryTableRef:function(e){n.value=e}}}
/**!
   * Sortable 1.15.6
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */function rK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rK(Object(n),!0).forEach(function(t){oK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aK(e){return(aK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sK(){return sK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sK.apply(this,arguments)}function lK(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uK(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var cK=uK(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dK=uK(/Edge/i),fK=uK(/firefox/i),hK=uK(/safari/i)&&!uK(/chrome/i)&&!uK(/android/i),pK=uK(/iP(ad|od|hone)/i),mK=uK(/chrome/i)&&uK(/android/i),vK={capture:!1,passive:!1};function gK(e,t,n){e.addEventListener(t,n,!cK&&vK)}function yK(e,t,n){e.removeEventListener(t,n,!cK&&vK)}function bK(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function wK(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function xK(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&bK(e,t):bK(e,t))||r&&e===n)return e;if(e===n)break}while(e=wK(e))}return null}var SK,_K=/\s+/g;function kK(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_K," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_K," ")}}function AK(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function CK(e,t){var n="";if("string"==typeof e)n=e;else do{var r=AK(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function TK(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function OK(){var e=document.scrollingElement;return e||document.documentElement}function IK(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var a,o,s,l,u,c,d;if(e!==window&&e.parentNode&&e!==OK()?(o=(a=e.getBoundingClientRect()).top,s=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!cK))do{if(i&&i.getBoundingClientRect&&("none"!==AK(i,"transform")||n&&"static"!==AK(i,"position"))){var f=i.getBoundingClientRect();o-=f.top+parseInt(AK(i,"border-top-width")),s-=f.left+parseInt(AK(i,"border-left-width")),l=o+a.height,u=s+a.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=CK(i||e),p=h&&h.a,m=h&&h.d;h&&(l=(o/=m)+(c/=m),u=(s/=p)+(d/=p))}return{top:o,left:s,bottom:l,right:u,width:d,height:c}}}function PK(e,t,n){for(var r=LK(e,!0),i=IK(e)[t];r;){if(!(i>=IK(r)[n]))return r;if(r===OK())break;r=LK(r,!1)}return!1}function EK(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if("none"!==o[a].style.display&&o[a]!==zq.ghost&&(r||o[a]!==zq.dragged)&&xK(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function MK(e,t){for(var n=e.lastElementChild;n&&(n===zq.ghost||"none"===AK(n,"display")||t&&!bK(n,t));)n=n.previousElementSibling;return n||null}function DK(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===zq.clone||t&&!bK(e,t)||n++;return n}function RK(e){var t=0,n=0,r=OK();if(e)do{var i=CK(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function LK(e,t){if(!e||!e.getBoundingClientRect)return OK();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=AK(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return OK();if(r||t)return n;r=!0}}}while(n=n.parentNode);return OK()}function NK(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function jK(e,t){return function(){if(!SK){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),SK=setTimeout(function(){SK=void 0},t)}}}function FK(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function zK(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function BK(e,t,n){var r={};return Array.from(e.children).forEach(function(i){var a,o,s,l;if(xK(i,t.draggable,e,!1)&&!i.animated&&i!==n){var u=IK(i);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,u.left),r.top=Math.min(null!==(o=r.top)&&void 0!==o?o:1/0,u.top),r.right=Math.max(null!==(s=r.right)&&void 0!==s?s:-1/0,u.right),r.bottom=Math.max(null!==(l=r.bottom)&&void 0!==l?l:-1/0,u.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var VK="Sortable"+(new Date).getTime();function HK(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==AK(e,"display")&&e!==zq.ghost){t.push({target:e,rect:IK(e)});var n=iK({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=CK(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,a=0;t.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=IK(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,d=CK(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&NK(l,s)&&!NK(o,s)&&(c.top-s.top)/(c.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,l,u,r.options)),NK(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(e),i?e=setTimeout(function(){"function"==typeof n&&n()},a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){AK(e,"transition",""),AK(e,"transform","");var i=CK(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,AK(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),AK(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),AK(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){AK(e,"transition",""),AK(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}var WK=[],UK={initializeByDefault:!0},XK={mount:function(e){for(var t in UK)UK.hasOwnProperty(t)&&!(t in e)&&(e[t]=UK[t]);WK.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),WK.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";WK.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](iK({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](iK({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in WK.forEach(function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,sK(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);void 0!==a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return WK.forEach(function(r){"function"==typeof r.eventProperties&&sK(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return WK.forEach(function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};var GK=["evt"],YK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=lK(n,GK);XK.pluginEvent.bind(zq)(e,t,iK({dragEl:qK,parentEl:ZK,ghostEl:JK,rootEl:QK,nextEl:$K,lastDownEl:eq,cloneEl:tq,cloneHidden:nq,dragStarted:mq,putSortable:lq,activeSortable:zq.active,originalEvent:r,oldIndex:rq,oldDraggableIndex:aq,newIndex:iq,newDraggableIndex:oq,hideGhostForTarget:Lq,unhideGhostForTarget:Nq,cloneNowHidden:function(){nq=!0},cloneNowShown:function(){nq=!1},dispatchSortableEvent:function(e){KK({sortable:t,name:e,originalEvent:r})}},i))};function KK(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[VK]){var m,v=t.options,g="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||cK||dK?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=o||n,m.from=s||n,m.item=i||n,m.clone=a,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=h?h.lastPutMode:void 0;var y=iK(iK({},p),XK.getEventProperties(r,t));for(var b in y)m[b]=y[b];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}(iK({putSortable:lq,cloneEl:tq,targetEl:qK,rootEl:QK,oldIndex:rq,oldDraggableIndex:aq,newIndex:iq,newDraggableIndex:oq},e))}var qK,ZK,JK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,lq,uq,cq,dq,fq,hq,pq,mq,vq,gq,yq,bq,wq=!1,xq=!1,Sq=[],_q=!1,kq=!1,Aq=[],Cq=!1,Tq=[],Oq="undefined"!=typeof document,Iq=pK,Pq=dK||cK?"cssFloat":"float",Eq=Oq&&!mK&&!pK&&"draggable"in document.createElement("div"),Mq=function(){if(Oq){if(cK)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Dq=function(e,t){var n=AK(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=EK(e,0,t),a=EK(e,1,t),o=i&&AK(i),s=a&&AK(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+IK(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+IK(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&"none"!==o.float){var c="left"===o.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=r&&"none"===n[Pq]||a&&"none"===n[Pq]&&l+u>r)?"vertical":"horizontal"},Rq=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,a,o),n)(r,i,a,o);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==aK(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Lq=function(){!Mq&&JK&&AK(JK,"display","none")},Nq=function(){!Mq&&JK&&AK(JK,"display","")};Oq&&!mK&&document.addEventListener("click",function(e){if(xq)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xq=!1,!1},!0);var jq=function(e){if(qK){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,a=e.clientY,Sq.some(function(e){var t=e[VK].options.emptyInsertThreshold;if(t&&!MK(e)){var n=IK(e),r=i>=n.left-t&&i<=n.right+t,s=a>=n.top-t&&a<=n.bottom+t;return r&&s?o=e:void 0}}),o);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[VK]._onDragOver(n)}}var i,a,o},Fq=function(e){qK&&qK.parentNode[VK]._isOutsideThisEl(e.target)};function zq(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=sK({},t),e[VK]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Dq(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zq.supportPointer&&"PointerEvent"in window&&(!hK||pK),emptyInsertThreshold:5};for(var r in XK.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Rq(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Eq,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?gK(e,"pointerdown",this._onTapStart):(gK(e,"mousedown",this._onTapStart),gK(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(gK(e,"dragover",this),gK(e,"dragenter",this)),Sq.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),sK(this,HK())}function Bq(e,t,n,r,i,a,o,s){var l,u,c=e[VK],d=c.options.onMove;return!window.CustomEvent||cK||dK?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||IK(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),d&&(u=d.call(c,l,o)),u}function Vq(e){e.draggable=!1}function Hq(){Cq=!1}function Wq(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Uq(e){return setTimeout(e,0)}function Xq(e){return clearTimeout(e)}zq.prototype={constructor:zq,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(vq=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,qK):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(function(e){Tq.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Tq.push(r)}}(n),!qK&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!hK||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=xK(s,r.draggable,n,!1))&&s.animated||eq===s)){if(rq=DK(s),aq=DK(s,r.draggable),"function"==typeof u){if(u.call(this,e,s,this))return KK({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),YK("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(u&&(u=u.split(",").some(function(r){if(r=xK(l,r.trim(),n,!1))return KK({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),YK("filter",t,{evt:e}),!0})))return void(i&&e.preventDefault());r.handle&&!xK(l,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,a=i.el,o=i.options,s=a.ownerDocument;if(n&&!qK&&n.parentNode===a){var l=IK(n);if(QK=a,ZK=(qK=n).parentNode,$K=qK.nextSibling,eq=n,sq=o.group,zq.dragged=qK,uq={target:qK,clientX:(t||e).clientX,clientY:(t||e).clientY},hq=uq.clientX-l.left,pq=uq.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,qK.style["will-change"]="all",r=function(){YK("delayEnded",i,{evt:e}),zq.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!fK&&i.nativeDraggable&&(qK.draggable=!0),i._triggerDragStart(e,t),KK({sortable:i,name:"choose",originalEvent:e}),kK(qK,o.chosenClass,!0))},o.ignore.split(",").forEach(function(e){TK(qK,e.trim(),Vq)}),gK(s,"dragover",jq),gK(s,"mousemove",jq),gK(s,"touchmove",jq),o.supportPointer?(gK(s,"pointerup",i._onDrop),!this.nativeDraggable&&gK(s,"pointercancel",i._onDrop)):(gK(s,"mouseup",i._onDrop),gK(s,"touchend",i._onDrop),gK(s,"touchcancel",i._onDrop)),fK&&this.nativeDraggable&&(this.options.touchStartThreshold=4,qK.draggable=!0),YK("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(dK||cK))r();else{if(zq.eventCanceled)return void this._onDrop();o.supportPointer?(gK(s,"pointerup",i._disableDelayedDrag),gK(s,"pointercancel",i._disableDelayedDrag)):(gK(s,"mouseup",i._disableDelayedDrag),gK(s,"touchend",i._disableDelayedDrag),gK(s,"touchcancel",i._disableDelayedDrag)),gK(s,"mousemove",i._delayedDragTouchMoveHandler),gK(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&gK(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){qK&&Vq(qK),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;yK(e,"mouseup",this._disableDelayedDrag),yK(e,"touchend",this._disableDelayedDrag),yK(e,"touchcancel",this._disableDelayedDrag),yK(e,"pointerup",this._disableDelayedDrag),yK(e,"pointercancel",this._disableDelayedDrag),yK(e,"mousemove",this._delayedDragTouchMoveHandler),yK(e,"touchmove",this._delayedDragTouchMoveHandler),yK(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?gK(document,"pointermove",this._onTouchMove):gK(document,t?"touchmove":"mousemove",this._onTouchMove):(gK(qK,"dragend",this),gK(QK,"dragstart",this._onDragStart));try{document.selection?Uq(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(wq=!1,QK&&qK){YK("dragStarted",this,{evt:t}),this.nativeDraggable&&gK(document,"dragover",Fq);var n=this.options;!e&&kK(qK,n.dragClass,!1),kK(qK,n.ghostClass,!0),zq.active=this,e&&this._appendGhost(),KK({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(cq){this._lastX=cq.clientX,this._lastY=cq.clientY,Lq();for(var e=document.elementFromPoint(cq.clientX,cq.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(cq.clientX,cq.clientY))!==t;)t=e;if(qK.parentNode[VK]._isOutsideThisEl(e),t)do{if(t[VK]){if(t[VK]._onDragOver({clientX:cq.clientX,clientY:cq.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=wK(t));Nq()}},_onTouchMove:function(e){if(uq){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=JK&&CK(JK,!0),o=JK&&a&&a.a,s=JK&&a&&a.d,l=Iq&&bq&&RK(bq),u=(i.clientX-uq.clientX+r.x)/(o||1)+(l?l[0]-Aq[0]:0)/(o||1),c=(i.clientY-uq.clientY+r.y)/(s||1)+(l?l[1]-Aq[1]:0)/(s||1);if(!zq.active&&!wq){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(JK){a?(a.e+=u-(dq||0),a.f+=c-(fq||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");AK(JK,"webkitTransform",d),AK(JK,"mozTransform",d),AK(JK,"msTransform",d),AK(JK,"transform",d),dq=u,fq=c,cq=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!JK){var e=this.options.fallbackOnBody?document.body:QK,t=IK(qK,!0,Iq,!0,e),n=this.options;if(Iq){for(bq=e;"static"===AK(bq,"position")&&"none"===AK(bq,"transform")&&bq!==document;)bq=bq.parentNode;bq!==document.body&&bq!==document.documentElement?(bq===document&&(bq=OK()),t.top+=bq.scrollTop,t.left+=bq.scrollLeft):bq=OK(),Aq=RK(bq)}kK(JK=qK.cloneNode(!0),n.ghostClass,!1),kK(JK,n.fallbackClass,!0),kK(JK,n.dragClass,!0),AK(JK,"transition",""),AK(JK,"transform",""),AK(JK,"box-sizing","border-box"),AK(JK,"margin",0),AK(JK,"top",t.top),AK(JK,"left",t.left),AK(JK,"width",t.width),AK(JK,"height",t.height),AK(JK,"opacity","0.8"),AK(JK,"position",Iq?"absolute":"fixed"),AK(JK,"zIndex","100000"),AK(JK,"pointerEvents","none"),zq.ghost=JK,e.appendChild(JK),AK(JK,"transform-origin",hq/parseInt(JK.style.width)*100+"% "+pq/parseInt(JK.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;YK("dragStart",this,{evt:e}),zq.eventCanceled?this._onDrop():(YK("setupClone",this),zq.eventCanceled||((tq=zK(qK)).removeAttribute("id"),tq.draggable=!1,tq.style["will-change"]="",this._hideClone(),kK(tq,this.options.chosenClass,!1),zq.clone=tq),n.cloneId=Uq(function(){YK("clone",n),zq.eventCanceled||(n.options.removeCloneOnHide||QK.insertBefore(tq,qK),n._hideClone(),KK({sortable:n,name:"clone"}))}),!t&&kK(qK,i.dragClass,!0),t?(xq=!0,n._loopId=setInterval(n._emulateDragOver,50)):(yK(document,"mouseup",n._onDrop),yK(document,"touchend",n._onDrop),yK(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,qK)),gK(document,"drop",n),AK(qK,"transform","translateZ(0)")),wq=!0,n._dragStartId=Uq(n._dragStarted.bind(n,t,e)),gK(document,"selectstart",n),mq=!0,window.getSelection().removeAllRanges(),hK&&AK(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,a=this.el,o=e.target,s=this.options,l=s.group,u=zq.active,c=sq===l,d=s.sort,f=lq||u,h=this,p=!1;if(!Cq){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),o=xK(o,s.draggable,a,!0),I("dragOver"),zq.eventCanceled)return p;if(qK.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return E(!1);if(xq=!1,u&&!s.disabled&&(c?d||(r=ZK!==QK):lq===this||(this.lastPutMode=sq.checkPull(this,u,qK,e))&&l.checkPut(this,u,qK,e))){if(i="vertical"===this._getDirection(e,o),t=IK(qK),I("dragOverValid"),zq.eventCanceled)return p;if(r)return ZK=QK,P(),this._hideClone(),I("revert"),zq.eventCanceled||($K?QK.insertBefore(qK,$K):QK.appendChild(qK)),E(!0);var m=MK(a,s.draggable);if(!m||function(e,t,n){var r=IK(MK(n.el,n.options.draggable)),i=BK(n.el,n.options,JK),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}(e,i,this)&&!m.animated){if(m===qK)return E(!1);if(m&&a===e.target&&(o=m),o&&(n=IK(o)),!1!==Bq(QK,a,qK,t,o,n,e,!!o))return P(),m&&m.nextSibling?a.insertBefore(qK,m.nextSibling):a.appendChild(qK),ZK=a,M(),E(!0)}else if(m&&function(e,t,n){var r=IK(EK(n.el,0,n.options,!0)),i=BK(n.el,n.options,JK),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var v=EK(a,0,s,!0);if(v===qK)return E(!1);if(n=IK(o=v),!1!==Bq(QK,a,qK,t,o,n,e,!1))return P(),a.insertBefore(qK,v),ZK=a,M(),E(!0)}else if(o.parentNode===a){n=IK(o);var g,y,b,w=qK.parentNode!==a,x=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===o||i===s||r+a/2===o+l/2}(qK.animated&&qK.toRect||t,o.animated&&o.toRect||n,i),S=i?"top":"left",_=PK(o,"top","top")||PK(qK,"top","top"),k=_?_.scrollTop:void 0;if(vq!==o&&(y=n[S],_q=!1,kq=!x&&s.invertSwap||w),g=function(e,t,n,r,i,a,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o)if(s&&yq<u*i){if(!_q&&(1===gq?l>c+u*a/2:l<d-u*a/2)&&(_q=!0),_q)f=!0;else if(1===gq?l<c+yq:l>d-yq)return-gq}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return function(e){return DK(qK)<DK(e)?1:-1}(t);if((f=f||o)&&(l<c+u*a/2||l>d-u*a/2))return l>c+u/2?1:-1;return 0}(e,o,n,i,x?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,kq,vq===o),0!==g){var A=DK(qK);do{A-=g,b=ZK.children[A]}while(b&&("none"===AK(b,"display")||b===JK))}if(0===g||b===o)return E(!1);vq=o,gq=g;var C=o.nextElementSibling,T=!1,O=Bq(QK,a,qK,t,o,n,e,T=1===g);if(!1!==O)return 1!==O&&-1!==O||(T=1===O),Cq=!0,setTimeout(Hq,30),P(),T&&!C?a.appendChild(qK):o.parentNode.insertBefore(qK,T?C:o),_&&FK(_,0,k-_.scrollTop),ZK=qK.parentNode,void 0===y||kq||(yq=Math.abs(y-IK(o)[S])),M(),E(!0)}if(a.contains(qK))return E(!1)}return!1}function I(s,l){YK(s,h,iK({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:o,completed:E,onMove:function(n,r){return Bq(QK,a,qK,t,n,IK(n),e,r)},changed:M},l))}function P(){I("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function E(t){return I("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==f&&(kK(qK,lq?lq.options.ghostClass:u.options.ghostClass,!1),kK(qK,s.ghostClass,!0)),lq!==h&&h!==zq.active?lq=h:h===zq.active&&lq&&(lq=null),f===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){I("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(o===qK&&!qK.animated||o===a&&!o.animated)&&(vq=null),s.dragoverBubble||e.rootEl||o===document||(qK.parentNode[VK]._isOutsideThisEl(e.target),!t&&jq(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function M(){iq=DK(qK),oq=DK(qK,s.draggable),KK({sortable:h,name:"change",toEl:a,newIndex:iq,newDraggableIndex:oq,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){yK(document,"mousemove",this._onTouchMove),yK(document,"touchmove",this._onTouchMove),yK(document,"pointermove",this._onTouchMove),yK(document,"dragover",jq),yK(document,"mousemove",jq),yK(document,"touchmove",jq)},_offUpEvents:function(){var e=this.el.ownerDocument;yK(e,"mouseup",this._onDrop),yK(e,"touchend",this._onDrop),yK(e,"pointerup",this._onDrop),yK(e,"pointercancel",this._onDrop),yK(e,"touchcancel",this._onDrop),yK(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;iq=DK(qK),oq=DK(qK,n.draggable),YK("drop",this,{evt:e}),ZK=qK&&qK.parentNode,iq=DK(qK),oq=DK(qK,n.draggable),zq.eventCanceled||(wq=!1,kq=!1,_q=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xq(this.cloneId),Xq(this._dragStartId),this.nativeDraggable&&(yK(document,"drop",this),yK(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),hK&&AK(document.body,"user-select",""),AK(qK,"transform",""),e&&(mq&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),JK&&JK.parentNode&&JK.parentNode.removeChild(JK),(QK===ZK||lq&&"clone"!==lq.lastPutMode)&&tq&&tq.parentNode&&tq.parentNode.removeChild(tq),qK&&(this.nativeDraggable&&yK(qK,"dragend",this),Vq(qK),qK.style["will-change"]="",mq&&!wq&&kK(qK,lq?lq.options.ghostClass:this.options.ghostClass,!1),kK(qK,this.options.chosenClass,!1),KK({sortable:this,name:"unchoose",toEl:ZK,newIndex:null,newDraggableIndex:null,originalEvent:e}),QK!==ZK?(iq>=0&&(KK({rootEl:ZK,name:"add",toEl:ZK,fromEl:QK,originalEvent:e}),KK({sortable:this,name:"remove",toEl:ZK,originalEvent:e}),KK({rootEl:ZK,name:"sort",toEl:ZK,fromEl:QK,originalEvent:e}),KK({sortable:this,name:"sort",toEl:ZK,originalEvent:e})),lq&&lq.save()):iq!==rq&&iq>=0&&(KK({sortable:this,name:"update",toEl:ZK,originalEvent:e}),KK({sortable:this,name:"sort",toEl:ZK,originalEvent:e})),zq.active&&(null!=iq&&-1!==iq||(iq=rq,oq=aq),KK({sortable:this,name:"end",toEl:ZK,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){YK("nulling",this),QK=qK=ZK=JK=$K=tq=eq=nq=uq=cq=mq=iq=oq=rq=aq=vq=gq=lq=sq=zq.dragged=zq.ghost=zq.clone=zq.active=null,Tq.forEach(function(e){e.checked=!0}),Tq.length=dq=fq=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":qK&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)xK(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Wq(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];xK(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return xK(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=XK.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Rq(n)},destroy:function(){YK("destroy",this);var e=this.el;e[VK]=null,yK(e,"mousedown",this._onTapStart),yK(e,"touchstart",this._onTapStart),yK(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(yK(e,"dragover",this),yK(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Sq.splice(Sq.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!nq){if(YK("hideClone",this),zq.eventCanceled)return;AK(tq,"display","none"),this.options.removeCloneOnHide&&tq.parentNode&&tq.parentNode.removeChild(tq),nq=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(nq){if(YK("showClone",this),zq.eventCanceled)return;qK.parentNode!=QK||this.options.group.revertClone?$K?QK.insertBefore(tq,$K):QK.appendChild(tq):QK.insertBefore(tq,qK),this.options.group.revertClone&&this.animate(qK,tq),AK(tq,"display",""),nq=!1}}else this._hideClone()}},Oq&&gK(document,"touchmove",function(e){(zq.active||wq)&&e.cancelable&&e.preventDefault()}),zq.utils={on:gK,off:yK,css:AK,find:TK,is:function(e,t){return!!xK(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:jK,closest:xK,toggleClass:kK,clone:zK,index:DK,nextTick:Uq,cancelNextTick:Xq,detectDirection:Dq,getChild:EK,expando:VK},zq.get=function(e){return e[VK]},zq.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(zq.utils=iK(iK({},zq.utils),e.utils)),XK.mount(e)})},zq.create=function(e,t){return new zq(e,t)},zq.version="1.15.6";var Gq,Yq,Kq,qq,Zq,Jq,Qq=[],$q=!1;function eZ(){Qq.forEach(function(e){clearInterval(e.pid)}),Qq=[]}function tZ(){clearInterval(Jq)}var nZ=jK(function(e,t,n,r){if(t.scroll){var i,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=OK(),c=!1;Yq!==n&&(Yq=n,eZ(),Gq=t.scroll,i=t.scrollFn,!0===Gq&&(Gq=LK(n,!0)));var d=0,f=Gq;do{var h=f,p=IK(h),m=p.top,v=p.bottom,g=p.left,y=p.right,b=p.width,w=p.height,x=void 0,S=void 0,_=h.scrollWidth,k=h.scrollHeight,A=AK(h),C=h.scrollLeft,T=h.scrollTop;h===u?(x=b<_&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),S=w<k&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(x=b<_&&("auto"===A.overflowX||"scroll"===A.overflowX),S=w<k&&("auto"===A.overflowY||"scroll"===A.overflowY));var O=x&&(Math.abs(y-a)<=s&&C+b<_)-(Math.abs(g-a)<=s&&!!C),I=S&&(Math.abs(v-o)<=s&&T+w<k)-(Math.abs(m-o)<=s&&!!T);if(!Qq[d])for(var P=0;P<=d;P++)Qq[P]||(Qq[P]={});Qq[d].vx==O&&Qq[d].vy==I&&Qq[d].el===h||(Qq[d].el=h,Qq[d].vx=O,Qq[d].vy=I,clearInterval(Qq[d].pid),0==O&&0==I||(c=!0,Qq[d].pid=setInterval(function(){r&&0===this.layer&&zq.active._onTouchMove(Zq);var t=Qq[this.layer].vy?Qq[this.layer].vy*l:0,n=Qq[this.layer].vx?Qq[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(zq.dragged.parentNode[VK],n,t,e,Zq,Qq[this.layer].el)||FK(Qq[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=LK(f,!1)));$q=c}},30),rZ=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function iZ(){}function aZ(){}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function oZ(e,t,n){var r=Iw(e);return n-t>0?(r.splice(n+1,0,r[t]),r.splice(t,1)):(r.splice(n,0,r[t]),r.splice(t+1,1)),r}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function sZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uZ(e,t){var n=Ft(e),r=n.sortOnRowDraggable,i=n.dragSort,a=n.data,o=n.rowKey,s=qG(),l=s.tableDraggableClasses,u=s.tableBaseClass,c=s.tableFullRowClasses,d=Et(null),f=Et(e.columns||[]),h=vo(function(){return f.value.find(function(e){return"drag"===e.colKey})}),p=vo(function(){return r.value||"row"===i.value}),m=vo(function(){return["row-handler","row-handler-col"].includes(i.value)&&!!h.value}),v=vo(function(){return["col","row-handler-col"].includes(i.value)}),g=Et([]),y=Et([]);e.sortOnRowDraggable&&FD("Table","`sortOnRowDraggable` is going to be deprecated, use dragSort='row' instead."),ta([a],function(e){var t=Ew(e,1)[0];g.value=(null==t?void 0:t.map(function(e){return fF(e,o.value)}))||[]},{immediate:!0}),ta(f,function(e){y.value=e?e.map(function(e){return e.colKey}):[]},{immediate:!0});var b=function(t,n){var r=null,i=lZ(lZ({animation:150},e.dragSortOptions),{},{dataIdAttr:"data-colkey",direction:"vertical",ghostClass:l.ghost,chosenClass:l.chosen,dragClass:l.dragging,handle:".".concat(u.thCellInner),onEnd:function(t){var i,a;n&&(null===(a=r)||void 0===a||a.sort(Iw(y.value)));var o=t.oldIndex,s=t.newIndex,l=t.target,u=n?o:s,c=n?s:o,d=l.children[u],h=l.children[c],p=pY(f.value,d.dataset.colkey),m=pY(f.value,h.dataset.colkey);p&&p.colKey||FD("Table","colKey is missing in ".concat(JSON.stringify(p))),m&&m.colKey||FD("Table","colKey is missing in ".concat(JSON.stringify(m))),u=mY(e.columns,p.colKey),c=mY(e.columns,m.colKey);var v={data:f.value,currentIndex:u,current:p,targetIndex:c,target:m,newData:oZ(Iw(e.columns),u,c),e:t,sort:"col"};v.currentData=v.newData,null===(i=e.onDragSort)||void 0===i||i.call(e,v)}});return r=new zq(t,i)},w=function(e){if(v.value&&e){var t=e.querySelectorAll("thead > tr");if(t.length<=1){var n=Ew(t,1)[0],r=b(n,!0);y.value=null==r?void 0:r.toArray()}else t.forEach(function(e){b(e,!1)})}};return ta([d],function(n){var r=Ew(n,1)[0];if(r&&r.$el){!function(n){if(m.value||p.value){var r=null==n?void 0:n.querySelector("tbody");if(!r)return null;var i=null,o=lZ(lZ({animation:150},e.dragSortOptions),{},{ghostClass:l.ghost,chosenClass:l.chosen,dragClass:l.dragging,filter:".".concat(c.base),onMove:function(e){return!WA(e.related,c.base)},onEnd:function(n){var r,o;null===(r=i)||void 0===r||r.sort(g.value);var s=n.oldIndex,l=n.newIndex;(ox(e.firstFullRow)&&e.firstFullRow(go)||t.slots.firstFullRow)&&(s-=1,l-=1);var u={data:a.value,currentIndex:s,current:a.value[s],targetIndex:l,target:a.value[l],newData:oZ(Iw(e.data),s,l),e:n,sort:"row"};u.currentData=u.newData,null===(o=e.onDragSort)||void 0===o||o.call(e,u)}});i=p.value?new zq(r,lZ({},o)):new zq(r,lZ(lZ({},o),{},{handle:".".concat(l.handle)})),g.value=i.toArray()}}(r.$el),w(r.$el);var i=setTimeout(function(){r.$refs.affixHeaderRef&&w(r.$refs.affixHeaderRef),clearTimeout(i)})}}),{isRowDraggable:p,isRowHandlerDraggable:m,isColDraggable:v,setDragSortPrimaryTableRef:function(e){d.value=e},setDragSortColumns:function(e){f.value=e}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function cZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}iZ.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=EK(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:rZ},sK(iZ,{pluginName:"revertOnSpill"}),aZ.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:rZ},sK(aZ,{pluginName:"removeOnSpill"}),zq.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?gK(document,"dragover",this._handleAutoScroll):this.options.supportPointer?gK(document,"pointermove",this._handleFallbackAutoScroll):t.touches?gK(document,"touchmove",this._handleFallbackAutoScroll):gK(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?yK(document,"dragover",this._handleAutoScroll):(yK(document,"pointermove",this._handleFallbackAutoScroll),yK(document,"touchmove",this._handleFallbackAutoScroll),yK(document,"mousemove",this._handleFallbackAutoScroll)),tZ(),eZ(),clearTimeout(SK),SK=void 0},nulling:function(){Zq=Yq=Gq=$q=Jq=Kq=qq=null,Qq.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(Zq=e,t||this.options.forceAutoScrollFallback||dK||cK||hK){nZ(e,this.options,a,t);var o=LK(a,!0);!$q||Jq&&r===Kq&&i===qq||(Jq&&tZ(),Jq=setInterval(function(){var a=LK(document.elementFromPoint(r,i),!0);a!==o&&(o=a,eZ()),nZ(e,n.options,a,t)},10),Kq=r,qq=i)}else{if(!this.options.bubbleScroll||LK(a,!0)===OK())return void eZ();nZ(e,this.options,LK(a,!1),!1)}}},sK(e,{pluginName:"scroll",initializeByDefault:!0})}),zq.mount(aZ,iZ);var fZ=yr({name:"TableEditableCell",props:{row:Object,rowIndex:Number,col:Object,colIndex:Number,oldCell:[Function,String],tableBaseClass:Object,cellEmptyContent:[Function,String],editable:{type:Boolean,default:void 0},readonly:{type:Boolean},errors:{type:Array,default:void 0},onChange:Function,onValidate:Function,onRuleChange:Function},setup:function(e,t){var n,r=Ft(e),i=r.row,a=r.col,o=Et(null),s=Et((null===(n=e.col.edit)||void 0===n?void 0:n.defaultEditable)||!1),l=Et(),u=Et(),c=kE({Edit1Icon:sP}).Edit1Icon,d=vo(function(){var e=dZ({},i.value);return WU(e,a.value.colKey,l.value),e}),f=vo(function(){return _Y({row:d.value,col:dZ(dZ({},a.value),{},{cell:e.oldCell}),rowIndex:e.rowIndex,colIndex:e.colIndex},t.slots,{cellEmptyContent:e.cellEmptyContent})}),h=vo(function(){var t,n=a.value.edit;if(!n)return{};var r=ox(n.props)?n.props({col:a.value,row:i.value,rowIndex:e.rowIndex,colIndex:e.colIndex,editedRow:d.value}):dZ({},n.props);return delete r.onChange,delete r.value,null===(t=n.abortEditOnEvent)||void 0===t||t.forEach(function(e){delete r[e]}),r}),p=vo(function(){var e,t=a.value.edit;return!!t&&Boolean(null===(e=t.abortEditOnEvent)||void 0===e?void 0:e.includes("onChange"))}),m=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var c;(c="self",new Promise(function(t){var n,r={col:e.col,row:e.row,colIndex:e.colIndex,rowIndex:e.rowIndex},i={result:[dZ(dZ({},r),{},{errorList:[],value:l.value})],trigger:c},o=ox(a.value.edit.rules)?a.value.edit.rules(r):a.value.edit.rules;if(!a.value.edit||!o||!o.length)return null===(n=e.onValidate)||void 0===n||n.call(e,i),void t(!0);oX(l.value,o).then(function(n){var r,a=null==n?void 0:n.filter(function(e){return!e.result});i.result[0].errorList=a,null===(r=e.onValidate)||void 0===r||r.call(e,i),a&&a.length?(u.value=a,t(a)):t(!0)})})).then(function(e){if(!0===e){var n,o,c=fF(i.value,a.value.colKey);n=l.value,o=c,("object"===zw(n)&&"object"===zw(o)?JSON.stringify(n)===JSON.stringify(o):n===o)||(l.value=c,null==t||t.apply(void 0,r));var d=setTimeout(function(){s.value=!1,u.value=[],clearTimeout(d)},0)}})},v=vo(function(){var t,n=a.value.edit,r=void 0===e.editable;if(s.value&&r){if(null==n||null===(t=n.abortEditOnEvent)||void 0===t||!t.length)return{};var i={},o=null==n?void 0:n.onEdited;return n.abortEditOnEvent.forEach(function(t){"onChange"!==t&&(i[t]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];m.apply(void 0,[o,{trigger:t,newRowData:d.value,rowIndex:e.rowIndex}].concat(r))})}),i}}),g=function(t){var n,r;l.value=t;var i={row:e.row,rowIndex:e.rowIndex,value:t,col:e.col,colIndex:e.colIndex,editedRow:dZ(dZ({},e.row),{},Pw({},e.col.colKey,t))};if(null===(n=e.onChange)||void 0===n||n.call(e,i),null===(r=e.onRuleChange)||void 0===r||r.call(e,i),void 0===e.editable&&p.value){for(var o,s=null===(o=a.value.edit)||void 0===o?void 0:o.onEdited,u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];m.apply(void 0,[s,{trigger:"onChange",newRowData:d.value,rowIndex:e.rowIndex}].concat(c))}},y=function(t){var n,r;if(a.value.edit&&a.value.edit.component&&s.value&&(null===(n=t.path)||void 0===n||!n.includes(null===(r=o.value)||void 0===r?void 0:r.$el))){for(var i=0,l=t.path.length;i<l;i++){var u,c;if(null!==(u=t.path[i].classList)&&void 0!==u&&null!==(c=u.value)&&void 0!==c&&c.includes("popup__content"))return}var f=a.value.edit.onEdited;m(f,{trigger:"document",newRowData:d.value,rowIndex:e.rowIndex})}},b=vo(function(){return fF(i.value,a.value.colKey)});return ta(b,function(e){var t=e;"object"===zw(t)&&null!==t&&(t=t instanceof Array?Iw(t):dZ({},t)),l.value=t},{immediate:!0}),ta(s,function(t){var n=void 0===e.editable;a.value.edit&&a.value.edit.component&&n&&(t?document.addEventListener("click",y):document.removeEventListener("click",y))},{immediate:!0}),ta(function(){return[e.editable,e.rowIndex,e.colIndex]},function(t){var n=Ew(t,3),r=n[0],o=n[1],s=n[2];if(!1===r)l.value=b.value;else if(!0===r){var u;null===(u=e.onRuleChange)||void 0===u||u.call(e,{col:a.value,row:i.value,rowIndex:o,colIndex:s,value:b.value,editedRow:i.value})}},{immediate:!0}),ta(function(){return e.errors},function(e){u.value=e}),function(){var t,n,r,i,o,d;if(e.readonly)return f.value;if(void 0===e.editable&&!s.value||!1===e.editable)return Na("div",{class:e.tableBaseClass.cellEditable,onClick:function(e){s.value=!0,e.stopPropagation()}},[f.value,!1!==(null===(d=a.value.edit)||void 0===d?void 0:d.showEditIcon)&&Na(c,{size:"12px"},null)]);var p=null===(t=a.value.edit)||void 0===t?void 0:t.component;if(!p)return FD("Table","edit.component is required."),null;var m=null===(n=u.value)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.message;return Na("div",{class:e.tableBaseClass.cellEditWrap,onClick:function(e){e.stopPropagation()}},[Na(p,Xa({ref:"tableEditableCellRef",status:m?(null===(i=u.value)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.type)||"error":void 0,tips:m},h.value,v.value,{value:l.value,onChange:g}),null)])}}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function hZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mZ=new Map;function vZ(e){var t=Et({}),n=vo(function(){return function(e,t,n){for(var r={},i=0,a=t.length;i<a;i++){var o=fF(t[i],n);e.includes(o)&&(r[o]=!0)}return r}(e.editableRowKeys,e.data,e.rowKey||"id")}),r=function(t){var n={};return t.forEach(function(t){var r=t.row,i=t.col,a=t.errorList,o=[fF(r,e.rowKey||"id"),i.colKey].join("__");null!=a&&a.length?n[o]=a:delete n[o]}),n},i=function(e){var t=mZ.get(e);if(t){var n=t.map(function(e){return new Promise(function(t){var n=e.editedRow,r=e.col,i=ox(r.edit.rules)?r.edit.rules(e):r.edit.rules;r.edit&&i&&i.length?oX(n[r.colKey],i).then(function(n){t(pZ(pZ({},e),{},{errorList:n.filter(function(e){return!e.result})}))}):t(pZ(pZ({},e),{},{errorList:[]}))})});return new Promise(function(e,t){Promise.all(n).then(function(t){e({errors:t.filter(function(e){var t;return null===(t=e.errorList)||void 0===t?void 0:t.length}),errorMap:r(t)})},t)})}};return{errorListMap:t,editableKeysMap:n,validateTableData:function(){for(var n=[],r=e.data||[],a=0,o=r.length;a<o;a++){var s=fF(r[a],e.rowKey||"id");n.push(i(s))}return new Promise(function(r,i){Promise.all(n).then(function(n){var i,a={};n.forEach(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{errorMap:{}}).errorMap;e&&Object.assign(a,e)}),t.value=a,null===(i=e.onValidate)||void 0===i||i.call(e,{result:a}),r({result:a})},i)})},validateRowData:function(n){return new Promise(function(r,a){i(n).then(function(n){var i,a=n.errors,o=n.errorMap;t.value=o;var s="parent";null===(i=e.onRowValidate)||void 0===i||i.call(e,{trigger:s,result:a}),r({trigger:s,result:a})},a)})},onRuleChange:function(t){if(e.editableRowKeys){var n=fF(t.row,e.rowKey||"id"),r=mZ.get(n);if(r){var i=r.findIndex(function(e){return e.col.colKey===t.col.colKey});-1===i?r.push(t):r[i]=t,mZ.set(n,r)}else mZ.set(n,[t])}},clearValidateData:function(){t.value={}}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function gZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bZ=["hideSortTips","dragSort","defaultExpandedRowKeys","defaultSelectedRowKeys","columnController","filterRow","sortOnRowDraggable","expandOnRowClick","multipleSort","expandIcon","onChange","onAsyncLoadingClick","onColumnChange","onColumnControllerVisibleChange","onDataChange","onDisplayColumnsChange","onDragSort","onExpandChange","onFilterChange","onSelectChange","onSortChange"],wZ=yr({name:"TPrimaryTable",props:yZ(yZ({},XG),BY),setup:function(e,t){var n=LO(),r=Ft(e),i=r.columns,a=r.columnController,o=Et(null),s=qG(),l=s.tableDraggableClasses,u=s.tableBaseClass,c=s.tableSelectedClasses,d=WY(e,t),f=d.tDisplayColumns,h=d.renderColumnController,p=function(e,t){var n=Ft(e).expandedRowKeys,r=LO(),i=bA("table"),a=i.t,o=i.globalConfig,s=kE({ChevronRightCircleIcon:jI}).ChevronRightCircleIcon,l=qG(),u=l.tableExpandClasses,c=l.positiveRotate90,d=l.tableFullRowClasses,f=Ew(zD(n,e.defaultExpandedRowKeys||[],e.onExpandChange,"expandedRowKeys"),2),h=f[0],p=f[1],m=vo(function(){return Boolean(e.expandedRow||t.slots.expandedRow||t.slots["expanded-row"])}),v=vo(function(){return!1!==e.expandIcon&&m.value}),g=vo(function(){var t,n;return"left"===(null===(t=e.columns)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.fixed)}),y=function(t,n){e.expandOnRowClick&&t.stopPropagation();var r=fF(n,e.rowKey||"id"),i=h.value.indexOf(r),a=Iw(h.value);-1!==i?a.splice(i,1):a.push(r),p(a,{expandedRowData:e.data.filter(function(t){return a.includes(fF(t,e.rowKey||"id"))}),currentRowData:n})},b=function(t,n){var i=n.row,l=n.rowIndex,d=fF(i,e.rowKey||"id"),f=h.value.includes(d),p=r("expandIcon",{defaultNode:a(o.value.expandIcon)||Na(s,null,null),params:{row:i,index:l}});if(!p)return null;var m=[u.iconBox,u[f?"expanded":"collapsed"],Pw({},c,f)];return Na("span",{class:m,onClick:function(e){return y(e,i)}},[p])};return{showExpandedRow:m,showExpandIconColumn:v,getExpandColumn:function(){return{colKey:"__EXPAND_ROW_ICON_COLUMN__",width:64,className:u.iconCell,fixed:g.value?"left":void 0,cell:b}},renderExpandedRow:function(t){var n=fF(t.row,e.rowKey||"id");if(!h.value.includes(n))return null;var i=t.isWidthOverflow&&e.columns.find(function(e){return"left"===e.fixed});return Na("tr",{key:"expand_".concat(n),class:[u.row,Pw({},d.base,i)]},[Na("td",{colspan:t.columns.length},[Na("div",{class:[u.rowInner,Pw({},d.innerFullRow,i)],style:i?{width:"".concat(t.tableWidth,"px")}:{}},[Na("div",{class:d.innerFullElement},[r("expandedRow",{params:t})])])])])},onInnerExpandRowClick:function(e){y(e.e,e.row)}}}(e,t),m=p.showExpandedRow,v=p.showExpandIconColumn,g=p.getExpandColumn,y=p.renderExpandedRow,b=p.onInnerExpandRowClick,w=ZY(e,t).renderSortIcon,x=YY(e,c),S=x.formatToRowSelectColumn,_=x.selectedRowClassNames,k=nK(e,t),A=k.hasEmptyCondition,C=k.isTableOverflowHidden,T=k.renderFilterIcon,O=k.renderFirstFilterRow,I=k.setFilterPrimaryTableRef,P=uZ(e,t),E=P.isRowHandlerDraggable,M=P.isRowDraggable,D=P.isColDraggable,R=P.setDragSortPrimaryTableRef,L=P.setDragSortColumns,N=tY(e).renderTitleWidthIcon,j=function(e){var t=LO(),n=bA("table").globalConfig,r=qG(),i=r.isLoadingClass,a=r.isLoadMoreClass,o=r.asyncLoadingClass,s=vo(function(){var t;return[o,(t={},Pw(t,i,"loading"===e.asyncLoading),Pw(t,a,"load-more"===e.asyncLoading),t)]});function l(){var t;"string"==typeof e.asyncLoading&&(null===(t=e.onAsyncLoadingClick)||void 0===t||t.call(e,{status:e.asyncLoading}))}return{renderAsyncLoading:function(){var r=t("asyncLoading");if(CA(r)){var i=e.asyncLoading,a={"load-more":n.value.loadingMoreText,loading:n.value.loadingText}[String(i)];return Na("div",{class:s.value,onClick:l},[Na(CO,{loading:"loading"===i,size:"small",text:a},null)])}return[null,!1,void 0].includes(r)?null:Na("div",{class:s.value,onClick:l},[r])}}}(e),F=j.renderAsyncLoading,z=vZ(e),B=z.errorListMap,V=z.editableKeysMap,H=z.validateRowData,W=z.validateTableData,U=z.onRuleChange,X=z.clearValidateData,G=vo(function(){var t;return Pw(t={},l.colDraggable,D.value),Pw(t,l.rowHandlerDraggable,E.value),Pw(t,l.rowDraggable,M.value),Pw(t,u.overflowVisible,!1===C.value),Pw(t,u.tableRowEdit,e.editableRowKeys),t}),Y=vo(function(){return[e.rowClassName,_.value].filter(function(e){return e})}),K=vo(function(){var t=[e.rowAttributes];return(E.value||M.value)&&t.push(function(t){var n=t.row;return{"data-id":fF(n,e.rowKey||"id")}}),t.filter(function(e){return e})});Er(function(){I(o.value),R(o.value)}),t.expose({validateRowData:H,validateTableData:W,clearValidateData:X,refreshTable:function(){o.value.refreshTable()}});var q=function n(r){for(var i=[],a=function(a,s){var l,c,d,h,p,m=yZ({},r[a]);if(!((null===(l=m.children)||void 0===l?void 0:l.length)||(null===(c=f.value)||void 0===c?void 0:c.includes(m.colKey)))&&e.columnController)return"continue";if((m=S(m)).sorter||m.filter){var v=eY(t.slots,m,a),g=m.ellipsisTitle;m.title=function(e,t){var n,r=m.sorter?w(t):null,i=m.filter?T(t):null,a=null===(n=o.value)||void 0===n?void 0:n.tableContentRef;return N([v,r,i],t.col,t.colIndex,g,a)},m.ellipsisTitle=!1}if(null!==(d=m.edit)&&void 0!==d&&d.component){var y=m.cell;m.cell=function(n,r){var i=yZ(yZ({},r),{},{oldCell:y,tableBaseClass:u,cellEmptyContent:e.cellEmptyContent,onChange:e.onRowEdit,onValidate:e.onRowValidate,onRuleChange:U});if(e.editableRowKeys){var a,o=fF(r.row,e.rowKey||"id");i.editable=V.value[o]||!1;var s=[o,r.col.colKey].join("__"),l=null===(a=B.value)||void 0===a?void 0:a[s];l&&(i.errors=l)}return e.editableCellState&&(i.readonly=!e.editableCellState(r)),Na(fZ,i,t.slots)}}null!==(h=m.children)&&void 0!==h&&h.length&&(m.children=n(m.children)),(!m.children||null!==(p=m.children)&&void 0!==p&&p.length)&&i.push(m)},s=0,l=r.length;s<l;s++)a(s);return i},Z=vo(function(){var e=q(i.value);return v.value&&e.unshift(g()),e}),J=function(t,n){var r,i;null===(r=e.onPageChange)||void 0===r||r.call(e,t,n);var a=[{pagination:t},{trigger:"pagination",currentData:n}];null===(i=e.onChange)||void 0===i||i.call.apply(i,[e].concat(a))};return function(){var r=function(t,r,i,a){if(!i)return e[t];var o=r(go),s=n(t);return o&&!s?function(){return o}:s&&!o?function(){return s}:o&&s?function(){return null!=a&&a.reverse?Na("div",null,[o,s]):Na("div",null,[s,o])}:null},i=!(!a.value||!Object.keys(a.value).length),s=i?a.value.placement||"top-right":"",l=i&&-1!==(null==s?void 0:s.indexOf("bottom")),u=r("topContent",h,i&&!l),c=r("bottomContent",h,l,{reverse:!0}),d=r("firstFullRow",O,!A.value),f=r("lastFullRow",F,!!e.asyncLoading),p=yZ(yZ({},ez(e,bZ)),{},{rowClassName:Y.value,rowAttributes:K.value,columns:Z.value,topContent:u,bottomContent:c,firstFullRow:d,lastFullRow:f,onPageChange:J,renderExpandedRow:m.value?y:void 0});return e.expandOnRowClick&&(p.onRowClick=b),Na(zY,Xa({ref:o},p,{class:G.value,onLeafColumnsChange:L}),t.slots)}}}),xZ={beforeDragSort:{type:Function},tree:{type:Object},treeExpandAndFoldIcon:{type:Function},onAbnormalDragSort:Function,onTreeExpandChange:Function};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function SZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kZ=1001,AZ="The same level of rows can not be swapped.",CZ=function(){function e(){DD(this,e),Pw(this,"treeDataMap",new Map),Pw(this,"expandAllRowIndex",void 0),this.treeDataMap=new Map}return RD(e,[{key:"initialTreeStore",value:function(e,t,n){var r;null===(r=this.treeDataMap)||void 0===r||r.clear(),this.initialTreeDataMap(this.treeDataMap,e,t[0],n)}},{key:"getAllUniqueKeys",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0,i=e.length;r<i;r++){var a=e[r];n.push(fF(a,t.rowKey));var o=fF(a,t.childrenKey);null!=o&&o.length&&this.getAllUniqueKeys(o,t,n)}return n}},{key:"toggleExpandData",value:function(e,t,n){if(!e)return FD("EnhancedTable","the node you want to toggleExpand doest not exist in `data`"),t;var r=fF(e.row,n.rowKey);if(void 0===r)return FD("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`."),[];if(!0===fF(e.row,n.childrenKey))return t;var i=this.treeDataMap.get(r);return i.rowIndex=e.rowIndex,i.expanded=!i.expanded,this.treeDataMap.set(r,i),this.updateExpandRow(i,t,n)}},{key:"updateExpandRow",value:function(e,t,n){var r=e.row,i=e.rowIndex,a=e.expanded,o=this.treeDataMap,s=fF(r,n.childrenKey);if(!r||!s)return t;if(a)IZ(o,e,a,n),TZ(o,r,s.length,"expand",n),t.splice.apply(t,[i+1,0].concat(s));else{IZ(o,e,a,n);var l=e.expandChildrenLength||s.length;TZ(o,r,-1*l,"fold",n),t.splice(i+1,l)}return EZ(o,t,{rowKey:n.rowKey,minRowIndex:i+1}),t}},{key:"getData",value:function(e){return this.treeDataMap.get(e)}},{key:"updateData",value:function(e,t,n,r){var i=fF(t,r.rowKey),a=this.treeDataMap.get(e);if(!a||-1===a.rowIndex)return PZ(n,e,t,{rowKey:r.rowKey,childrenKey:r.childrenKey}),-1;if(!0===fF(t,r.childrenKey)){var o=fF(a.row,r.childrenKey);if(null!=o&&o.length)for(var s=0,l=o.length;s<l;s++){var u=fF(o[s],r.rowKey);this.treeDataMap.get(u)&&this.treeDataMap.delete(u)}}var c=a.rowIndex;if(a.row=t,a.id=i,a.parent){var d=fF(a.parent.row,r.childrenKey),f=d.findIndex(function(t){return fF(t,r.rowKey)===e});d[f]=t}return this.treeDataMap.set(i,a),e!==i&&this.treeDataMap.delete(e),c}},{key:"remove",value:function(e,t,n){var r=this.treeDataMap.get(e);if(r&&r.rowIndex>=0){var i=(r.expandChildrenLength||0)+1;if(t.splice(r.rowIndex,i),r.parent){var a=fF(r.parent.row,n.childrenKey),o=a.findIndex(function(t){return fF(t,n.rowKey)===e});a.splice(o,1),TZ(this.treeDataMap,r.parent.row,-1*i,"delete",n)}this.treeDataMap.delete(e),EZ(this.treeDataMap,t,{minRowIndex:r.rowIndex,rowKey:n.rowKey})}else ND("EnhancedTable","Do not remove this node, which is not appeared.");return t}},{key:"appendTo",value:function(e,t,n,r){var i=this.treeDataMap.get(e);if(!this.validateDataExist(i,e))return n;for(var a=fF(i.row,r.childrenKey),o=i.expanded||!(null!=a&&a.length),s=t instanceof Array?t:[t],l=[],u=-1,c=0,d=s.length;c<d;c++){var f=s[c],h=fF(f,r.rowKey),p=this.treeDataMap.get(h);if(this.validateDataDoubleExist(p,h)){var m=o?i.rowIndex+(i.expandChildrenLength||0)+(c+1):-1;0===c&&(u=m);var v={id:h,row:f,rowIndex:m,level:i.level+1,expanded:!1,expandChildrenLength:0,disabled:!1,path:Iw(i.path),parent:i};v.path=v.path.concat(v),l.push(f),this.treeDataMap.set(h,v)}else ND("Table","Duplicated Data `".concat(h,"` has been removed."))}if(!l.length)return n;if(null!=a&&a.length?i.row[r.childrenKey]=i.row[r.childrenKey].concat(l):(i.row[r.childrenKey]=l,i.expanded=!0),o){n.splice.apply(n,[u,0].concat(l));var g=l.length||1;TZ(this.treeDataMap,i.row,g,"insert",{rowKey:r.rowKey,childrenKey:r.childrenKey}),EZ(this.treeDataMap,n,{minRowIndex:u+l.length-1,rowKey:r.rowKey,count:1})}return n}},{key:"appendToRoot",value:function(e,t,n){for(var r=t.concat(e),i=e instanceof Array?e:[e],a=t.length,o=0,s=i.length;o<s;o++){var l=fF(i[o],n.rowKey);if(l){var u={id:l,row:i[o],rowIndex:a+o,level:0,expanded:!1,expandChildrenLength:0,disabled:!1};u.path=[u],this.treeDataMap.set(l,u)}else FD("Table","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.")}return r}},{key:"insertAfter",value:function(e,t,n,r){return this.insert(e,t,n,r,"after")}},{key:"insertBefore",value:function(e,t,n,r){return this.insert(e,t,n,r,"before")}},{key:"insert",value:function(e,t,n,r,i){var a=this.treeDataMap.get(e);if(!this.validateDataExist(a,e))return n;var o=fF(t,r.rowKey),s=this.treeDataMap.get(o);if(!this.validateDataDoubleExist(s,o))return n;var l={id:o,row:t,rowIndex:"after"===i?a.rowIndex+1:a.rowIndex,level:a.level,expanded:!1,expandChildrenLength:0,disabled:!1,path:a.path.slice(0,-1),parent:a.parent};l.path=l.path.concat(l);var u="after"===i?a.rowIndex+(a.expandChildrenLength+1):a.rowIndex;n.splice(u,0,t);var c="after"===i?1:0;if(a.parent){var d=a.parent.row[r.childrenKey].findIndex(function(t){return e===fF(t,r.rowKey)});a.parent.row[r.childrenKey].splice(d+c,0,t),TZ(this.treeDataMap,a.parent.row,1,"insert",r)}return this.treeDataMap.set(o,l),EZ(this.treeDataMap,n,{rowKey:r.rowKey,minRowIndex:a.rowIndex+1}),n}},{key:"swapData",value:function(e,t,n){var r=t.currentIndex,i=t.targetIndex;if(r===i)return{dataSource:e,result:!0};var a=fF(t.current,n.rowKey),o=fF(t.target,n.rowKey),s=this.treeDataMap.get(a),l=this.treeDataMap.get(o);if(s.level!==l.level)return{dataSource:e,result:!1,code:kZ,reason:AZ};var u=r+s.expandChildrenLength+1,c=i+l.expandChildrenLength+1,d=e.slice(r,u),f=e.slice(i,c);if(r>i){var h=e.slice(c,r),p=d.concat(f,h);e.splice(i,p.length),e.splice.apply(e,[i,0].concat(Iw(p))),EZ(this.treeDataMap,e,{rowKey:n.rowKey,minRowIndex:i,maxRowIndex:u})}else{var m=e.slice(u,i).concat(f,d);e.splice(r,m.length),e.splice.apply(e,[r,0].concat(Iw(m))),EZ(this.treeDataMap,e,{rowKey:n.rowKey,minRowIndex:r,maxRowIndex:c})}if(s.parent){for(var v=s.parent.row[n.childrenKey],g=0,y=-1,b=-1,w=0,x=v.length;w<x&&(fF(v[w],n.rowKey)===a&&(y=w,g+=1),fF(v[w],n.rowKey)===o&&(b=w,g+=1),!(g>=2));w++);v[y]=t.target,v[b]=t.current}return{dataSource:e,result:!0}}},{key:"expandAll",value:function(e,t){var n=this;this.expandAllRowIndex=0;return function e(t,r){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=0,l=t.length;s<l;s++){var u=t[s],c=fF(u,r.rowKey),d=n.treeDataMap.get(c),f=fF(u,r.childrenKey),h=d.expanded;if(d.rowIndex=n.expandAllRowIndex,!0!==f&&null!=f&&f.length&&(d.expanded=!0),d.expandChildrenLength=(null==f?void 0:f.length)||0,n.expandAllRowIndex+=1,a||i.push(u),n.treeDataMap.set(c,d),null!=f&&f.length&&!h){for(var p=o;null!==(m=p)&&void 0!==m&&m.row;){var m;p.expandChildrenLength+=f.length,n.treeDataMap.set(p.id,p),p=p.parent}e(f,r,i,h,d)}}return i}(e,t)}},{key:"foldAll",value:function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=fF(a,t.rowKey),s=this.treeDataMap.get(o);s.rowIndex=0===s.level?r:-1,s.expanded=!1,s.expandChildrenLength=0,0===s.level&&n.push(a);var l=fF(a,t.childrenKey);null!=l&&l.length&&this.foldAll(l,t)}return n}},{key:"getTreeNode",value:function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=fF(a,t.rowKey);0===this.treeDataMap.get(o).level&&n.push(a)}return n}},{key:"getTreeExpandedRow",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data",i=[];return e.forEach(function(e){var a=fF(e,t.rowKey),o=n.treeDataMap.get(a);o.expanded&&("unique"===r?i.push(a):"data"===r?i.push(e):i.push(o))}),i}},{key:"initialTreeDataMap",value:function(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=0,s=t.length;o<s;o++){var l=t[o],u=fF(l,r.rowKey);if(void 0===u)return void FD("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");var c=fF(l,r.childrenKey),d={id:u,row:l,rowIndex:0===i?o:-1,level:i,expanded:!1,expandChildrenLength:0,disabled:UY(n,l,o),parent:a};d.path=a?a.path.concat(d):[d],e.set(u,d),null!=c&&c.length&&this.initialTreeDataMap(e,c,n,r,i+1,d)}}},{key:"updateDisabledState",value:function(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=e[r],o=fF(a,n.rowKey);if(void 0===o)return void FD("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");var s=this.treeDataMap.get(o);s.disabled=UY(t,a,r),this.treeDataMap.set(o,s);var l=fF(a,n.childrenKey);null!=l&&l.length&&this.updateDisabledState(l,t,n)}}},{key:"validateDataExist",value:function(e,t){return!!e||(ND("EnhancedTable","".concat(t," does not exist.")),!1)}},{key:"validateDataDoubleExist",value:function(e,t){return!e||(ND("EnhancedTable","Duplicated Key. ".concat(t," already exists.")),!1)}}]),e}();function TZ(e,t,n,r,i){for(var a=t;a;){var o,s=e.get(fF(a,i.rowKey)),l=(s.expandChildrenLength||0)+n;s.expandChildrenLength=Math.max(0,l),a=null==s||null===(o=s.parent)||void 0===o?void 0:o.row}"fold"===r&&OZ(e,t,i)}function OZ(e,t,n){var r=fF(t,n.childrenKey);null!=r&&r.length&&r.forEach(function(t){var r=e.get(fF(t,n.rowKey));r&&(r.expandChildrenLength=0,OZ(e,r.row,n))})}function IZ(e,t,n,r){var i=t.row,a=t.rowIndex;fF(i,r.childrenKey).forEach(function(i,o){var s=fF(i,r.rowKey),l=n?a+1+o:-1,u=_Z(_Z({},e.get(s)),{},{row:i,rowIndex:l,expanded:!1,parent:t});if(e.set(s,u),!n){var c=fF(i,r.childrenKey);null!=c&&c.length&&IZ(e,_Z(_Z({},u),{},{rowIndex:-1,expanded:!1}),n,r)}})}function PZ(e,t,n,r){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(fF(o,r.rowKey)===t)return void(e[i]=n);var s=fF(o,r.childrenKey)||[];null!=s&&s.length&&PZ(s,t,n,r)}}function EZ(e,t,n){for(var r=n.minRowIndex||0,i=n.maxRowIndex||t.length,a=r;a<i;a++){var o=t[a],s=e.get(fF(o,n.rowKey));s||ND("Table","tree map went wrong"),s.rowIndex=a+((null==n?void 0:n.count)||1)-1}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function MZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RZ(e,t){var n=Ft(e),r=n.data,i=n.columns,a=bA("table"),o=a.t,s=a.globalConfig,l=kE({AddRectangleIcon:JO,MinusRectangleIcon:LP}),u=l.AddRectangleIcon,c=l.MinusRectangleIcon,d=Et(new CZ),f=Et(),h=Et([]),p=qG().tableTreeClasses,m=NO(),v=vo(function(){var t;return{rowKey:e.rowKey||"id",childrenKey:(null===(t=e.tree)||void 0===t?void 0:t.childrenKey)||"children"}});ta(vo(function(){return i.value.find(function(e){return"row-select"===e.colKey})}),function(e){d.value&&d.value.updateDisabledState(h.value,e,v.value)});function g(t){var n,r=uF(t);d.value.initialTreeStore(r,e.columns,v.value),null!==(n=e.tree)&&void 0!==n&&n.defaultExpandAll&&(r=d.value.expandAll(r,v.value)),h.value=r}function y(t,n){var r,i,a;h.value=Iw(d.value.toggleExpandData(t,h.value,v.value));var o=fF(t.row,v.value.rowKey),s=null===(r=d.value)||void 0===r||null===(i=r.treeDataMap)||void 0===i?void 0:i.get(o);null===(a=e.onTreeExpandChange)||void 0===a||a.call(e,{row:t.row,rowIndex:t.rowIndex,rowState:s,trigger:n})}return ta([vo(function(){var e,t;return(null===(e=d.value)||void 0===e||null===(t=e.getAllUniqueKeys(r.value,v.value))||void 0===t?void 0:t.join())||""})],function(){r.value&&(e.tree?g(r.value):h.value=r.value)},{immediate:!0}),Lr(function(){var t;e.tree&&(null===(t=d.value.treeDataMap)||void 0===t||t.clear(),d.value=null)}),ta([i],function(){f.value=function(){var t,n=e.columns,r=(null===(t=e.tree)||void 0===t?void 0:t.treeNodeColumnIndex)||0;for(;null!==(i=n[r])&&void 0!==i&&i.type||"__EXPAND_ROW_ICON_COLUMN__"===(null===(a=n[r])||void 0===a?void 0:a.colKey);){var i,a;r+=1}return n[r]}()},{immediate:!0}),{store:d,rowDataKeys:v,dataSource:h,swapData:function(t){var n=d.value.swapData(h.value,t,v.value);if(n.result)h.value=Iw(n.dataSource);else{var r,i={code:n.code,reason:n.reason};null===(r=e.onAbnormalDragSort)||void 0===r||r.call(e,i)}},setData:function(e,t){var n=d.value.updateData(e,t,h.value,v.value),r=Iw(h.value);r[n]=t,h.value=r},getData:function(e){return d.value.getData(e)},remove:function(e){h.value=Iw(d.value.remove(e,h.value,v.value))},appendTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;h.value=e?Iw(d.value.appendTo(e,t,h.value,v.value)):d.value.appendToRoot(t,h.value,v.value)},insertAfter:function(e,t){h.value=Iw(d.value.insertAfter(e,t,h.value,v.value))},insertBefore:function(e,t){h.value=Iw(d.value.insertBefore(e,t,h.value,v.value))},formatTreeColumn:function(n){if(!e.tree||n.colKey!==f.value.colKey)return n;var r=DZ({},f.value);return r.cell=function(r,i){var a,l,h=_Y(DZ(DZ({},i),{},{col:DZ({},f.value)}),t.slots,{cellEmptyContent:e.cellEmptyContent}),g=d.value.treeDataMap.get(fF(i.row,v.value.rowKey)),b=function(t){var n,r;if(void 0!==t){var i=void 0===(null===(n=e.tree)||void 0===n?void 0:n.indent)?24:null===(r=e.tree)||void 0===r?void 0:r.indent;return i?{paddingLeft:"".concat(t*i||1,"px")}:{}}}(null==g?void 0:g.level),w=Pw({},p.inlineCol,!!n.ellipsis),x=fF(i.row,v.value.childrenKey);if(x&&x instanceof Array||!0===x){var S,_=null!==(S=d.value.treeDataMap.get(fF(i.row,v.value.rowKey)))&&void 0!==S&&S.expanded?(a=DZ(DZ({},i),{},{type:"fold"}),l=o(s.value.treeExpandAndFoldIcon,go,a)||Na(c,null,null),m("treeExpandAndFoldIcon",{defaultNode:l,params:a})):function(e){var t=DZ(DZ({},e),{},{type:"expand"}),n=o(s.value.treeExpandAndFoldIcon,go,t)||Na(u,null,null);return m("treeExpandAndFoldIcon",{defaultNode:n,params:t})}(i);return Na("div",{class:[p.col,w],style:b},[!(!x.length&&!0!==x)&&Na("span",{class:p.icon,onClick:function(){return y(i,"expand-fold-icon")}},[_]),h])}return Na("div",{style:b,class:w},[h])},!0===r.ellipsis&&(r.ellipsis=function(e,n){return _Y(DZ(DZ({},n),{},{col:DZ({},f.value)}),t.slots)}),r},toggleExpandData:y,expandAll:function(){h.value=Iw(d.value.expandAll(h.value,v.value))},foldAll:function(){h.value=Iw(d.value.foldAll(h.value,v.value))},getTreeNode:function(){return d.value.getTreeNode(h.value,v.value)},resetData:g,getTreeExpandedRow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data";return d.value.getTreeExpandedRow(h.value,v.value,e)}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function LZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jZ=new Map;function FZ(e,t,n,r){if(jZ.get(t))return jZ.get(t);var i=r||{allChildren:[],allChildrenKeys:[],leafNodeKeys:[]},a=fF(t,n.childrenKey);if(!a||!a.length)return i;var o=a.filter(function(t){var r;return!(null!==(r=e.get(fF(t,n.rowKey)))&&void 0!==r&&r.disabled)});i.allChildren=Iw(new Set(i.allChildren.concat(o)));for(var s=0,l=a.length;s<l;s++){var u=a[s],c=fF(u,n.childrenKey);if(null!=c&&c.length){var d=FZ(e,u,n,i);i.allChildren=Iw(new Set(i.allChildren.concat(d.allChildren)))}}for(var f=0,h=i.allChildren.length;f<h;f++){var p=i.allChildren[f],m=fF(p,n.childrenKey),v=fF(p,n.rowKey);i.allChildrenKeys.push(v),m&&m.length||i.leafNodeKeys.push(v)}return i.allChildrenKeys=Iw(new Set(i.allChildrenKeys)),i.leafNodeKeys=Iw(new Set(i.leafNodeKeys)),i}function zZ(e,t){var n=Ft(e),r=n.selectedRowKeys,i=n.tree,a=n.data,o=n.indeterminateSelectedRowKeys,s=Et([]),l=Ew(zD(r,e.defaultSelectedRowKeys||[],e.onSelectChange,"selectedRowKeys"),2),u=l[0],c=l[1],d=vo(function(){var t;return{rowKey:e.rowKey||"id",childrenKey:(null===(t=e.tree)||void 0===t?void 0:t.childrenKey)||"children"}});return ta([i,t,a,u],function(e){var n=Ew(e,2),r=n[0],a=n[1];r&&a.size&&!r.checkStrictly&&function(){if(!i.value||i.value.checkStrictly)return;if(!u.value.length)return void(s.value=[]);for(var e=[],n={},r=0,a=u.value.length;r<a;r++){var o=u.value[r],l=t.value.get(o),c=fF(l.row,d.value.childrenKey);if(!c||!c.length)for(var f=l.parent;f;){n[f.id]||(n[f.id]=[]),n[f.id].push(l.row);var h=n[f.id].length,p=FZ(t.value,f.row,d.value).allChildrenKeys,m=e.indexOf(f.id),v=u.value.indexOf(f.id);h>0&&h<p.length&&-1===v?-1===m&&e.push(f.id):-1!==m&&e.splice(m,1),f=f.parent}}s.value=e}()}),{tIndeterminateSelectedRowKeys:o.value?o:s,onInnerSelectChange:function(n,r){i.value&&!i.value.checkStrictly?"CHECK_ALL_BOX"===r.currentRowKey?function(e){var n=[],r=[];if("check"===e.type)for(var i=Iw(t.value.values()),a=0,o=i.length;a<o;a++){var s=i[a];s.disabled||(r.push(s.row),n.push(fF(s.row,d.value.rowKey)))}var l=NZ(NZ({},e),{},{selectedRowData:r||[]});c(n,l)}(r):function(n,r){var a,o=Iw(n);if(!1===(null===(a=e.tree)||void 0===a?void 0:a.checkStrictly))if("check"===(null==r?void 0:r.type)){var s=FZ(t.value,r.currentRowData,d.value),l=s.allChildrenKeys;jZ.set(r.currentRowData,s),o=Iw(new Set(o.concat(l)))}else if("uncheck"===(null==r?void 0:r.type)){var u=function(e){for(var t=e.selectedRowKeys,n=e.removeKeys,r={data:[],keys:[]},i=0,a=t.length;i<a;i++){var o=t[i];n.includes(o)||r.keys.push(o)}return r}({selectedRowKeys:n,removeKeys:FZ(t.value,r.currentRowData,d.value).allChildrenKeys});o=u.keys}o=function(e,n,r){if(i.value&&!i.value.checkStrictly){for(var a=Iw(e),o=t.value.get(n).parent;o;){var s=FZ(t.value,o.row,d.value).leafNodeKeys,l=Pz(s,e),u=a.indexOf(o.id);"uncheck"===r?-1!==u&&a.splice(u,1):l.length===s.length&&-1===u&&a.push(o.id),o=o.parent}return a}}(o,r.currentRowKey,r.type);var f=function(e){for(var t=e.treeDataMap,n=e.selectedRowKeys,r=[],i=0,a=n.length;i<a;i++){var o=n[i];r.push(t.get(o))}return r}({treeDataMap:t.value,selectedRowKeys:o}),h=NZ(NZ({},r),{},{selectedRowData:f});c(o,h)}(n,r):c(n,r)}}}
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */var BZ=["store","dataSource","formatTreeColumn","swapData"];function VZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var WZ=yr({name:"TEnhancedTable",props:HZ(HZ(HZ({},XG),BY),xZ),setup:function(e,t){var n=RZ(e,t),r=n.store,i=n.dataSource,a=n.formatTreeColumn,o=n.swapData,s=Dw(n,BZ),l=Et(r.value.treeDataMap),u=zZ(e,l),c=u.tIndeterminateSelectedRowKeys,d=u.onInnerSelectChange,f=function e(t){for(var n=[],r=0,i=t.length;r<i;r++){var o,s,l=HZ({},t[r]);null!==(o=(l=a(l)).children)&&void 0!==o&&o.length&&(l.children=e(l.children)),(!l.children||null!==(s=l.children)&&void 0!==s&&s.length)&&n.push(l)}return n};return HZ({store:r,dataSource:i,tColumns:vo(function(){return!e.tree||!Object.keys(e.tree).length?e.columns:f(e.columns)}),tIndeterminateSelectedRowKeys:c,onDragSortChange:function(t){var n;e.beforeDragSort&&!e.beforeDragSort(t)||(o({current:t.current,target:t.target,currentIndex:t.currentIndex,targetIndex:t.targetIndex}),null===(n=e.onDragSort)||void 0===n||n.call(e,t))},onInnerSelectChange:d},s)},render:function(){var e=HZ(HZ({},this.$props),{},{data:this.dataSource,columns:this.tColumns,indeterminateSelectedRowKeys:this.tIndeterminateSelectedRowKeys,disableDataPage:Boolean(this.tree&&Object.keys(this.tree).length),onSelectChange:this.onInnerSelectChange,onDragSort:this.onDragSortChange});return Na(wZ,Xa(e,this.$attrs),this.$slots)}});
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */AO(zY),AO(wZ),AO(WZ);var UZ=AO(uF(wZ),"TTable");
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */
function XZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var GZ,YZ,KZ=yr({name:"TRate",props:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XZ(Object(n),!0).forEach(function(t){Pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{allowHalf:Boolean,color:{type:[String,Array],default:"#ED7B2F"},count:{type:Number,default:5},disabled:Boolean,gap:{type:Number,default:4},icon:{type:Function},showText:Boolean,size:{type:String,default:"24px"},texts:{type:Array,default:function(){return[]}},value:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},onChange:Function}),setup:function(e,t){var n=t.slots,r=LO(),i=Array.isArray(e.color)?e.color[0]:e.color,a=Array.isArray(e.color)?e.color[1]:"var(--td-bg-color-component)",o=Ft(e),s=Ew(pD(o.value,o.modelValue,e.defaultValue,e.onChange),2),l=s[0],u=s[1],c=Et(void 0),d=Et(),f=vo(function(){return Number(c.value||l.value)}),h=vo(function(){return 0===e.texts.length?["\u6781\u5dee","\u5931\u671b","\u4e00\u822c","\u6ee1\u610f","\u60ca\u559c"]:e.texts}),p=function(e){return void 0!==n.icon?r("icon",{params:e}):Na(aE,e,null)},m=function(t,n){if(e.allowHalf){var r=d.value.getBoundingClientRect().left,i=d.value.firstChild.nextSibling.getBoundingClientRect().width,a=t.clientX,o=i*(n-.5)+e.gap*(n-1);if(a-r>=o)return n;if(a-r<o)return n-.5}return n},v=function(){e.disabled||(c.value=void 0)},g=function(t){return e.allowHalf&&t+.5===f.value?"".concat(y.value,"-rate__item--half"):t>=f.value?"":t<f.value?"".concat(y.value,"-rate__item--full"):void 0},y=bA("classPrefix").classPrefix;return function(){return Na("div",{class:"".concat(y.value,"-rate"),onMouseleave:v},[Na("ul",{class:"".concat(y.value,"-rate__list"),style:{gap:"".concat(e.gap,"px")},ref:d},[Iw(Array(Number(e.count))).map(function(t,n){return Na("li",{key:n,class:["".concat(y.value,"-rate__item"),g(n)],onClick:function(t){return function(t,n){e.disabled||u(m(t,n))}(t,n+1)},onMousemove:function(t){return function(t,n){e.disabled||(c.value=m(t,n))}(t,n+1)}},[e.showText?Na(_D,{key:n,content:h.value[f.value-1]},{default:function(){return[Na("div",{class:"".concat(y.value,"-rate__star-top")},[Na(p,{size:e.size,color:i},null)]),Na("div",{class:"".concat(y.value,"-rate__star-bottom")},[Na(p,{size:e.size,color:a},null)])]}}):Na(ba,null,[Na("div",{class:"".concat(y.value,"-rate__star-top")},[Na(p,{size:e.size,color:i},null)]),Na("div",{class:"".concat(y.value,"-rate__star-bottom")},[Na(p,{size:e.size,color:a},null)])])])})]),e.showText&&Na("div",{className:"".concat(y.value,"-rate__text")},[h.value[f.value-1]])])}}}),qZ=AO(KZ),ZZ={attach:{type:[String,Function],default:""},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function],default:""},closeBtn:{type:[String,Boolean,Function]},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function],default:""},default:{type:[String,Function]},destroyOnClose:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"overlay",validator:function(e){return!e||["overlay","push"].includes(e)}},placement:{type:String,default:"right",validator:function(e){return!e||["left","right","top","bottom"].includes(e)}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},size:{type:String,default:void 0},sizeDraggable:Boolean,visible:Boolean,zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onConfirm:Function,onEscKeydown:Function,onOverlayClick:Function},JZ=AO(yr({name:"TDrawer",directives:{TransferDom:pO},props:ZZ,emits:["update:visible"],setup:function(e,t){var n=Et(!1),r=Et(!1),i=bA("drawer").globalConfig,a=kE({CloseIcon:rP}).CloseIcon,o=LO(),s=jO(),l=wA("drawer"),u=wA("drawer--lock"),c=function(e){var t=Et(!1),n=Et(null),r=function e(){document.removeEventListener("mouseup",e,!0),document.removeEventListener("mousemove",i,!0),t.value=!1},i=function(r){var i=r.x,a=r.y,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth;if(t.value&&e.sizeDraggable){if("right"===e.placement){var l=Math.min(Math.max(s-i+8,8),s);n.value="".concat(l,"px")}if("left"===e.placement){var u=Math.min(Math.max(i+8,8),s);n.value="".concat(u,"px")}if("top"===e.placement){var c=Math.min(Math.max(a+8,8),o);n.value="".concat(c,"px")}if("bottom"===e.placement){var d=Math.min(Math.max(o-a+8,8),o);n.value="".concat(d,"px")}}},a=vo(function(){var t,n=["right","left"].includes(e.placement);return Pw(t={zIndex:1,position:"absolute",background:"transparent"},{left:"right",right:"left",top:"bottom",bottom:"top"}[e.placement],0),Pw(t,"width",n?"16px":"100%"),Pw(t,"height",n?"100%":"16px"),Pw(t,"cursor",n?"col-resize":"row-resize"),t});return{draggedSizeValue:n,enableDrag:function(){document.addEventListener("mouseup",r,!0),document.addEventListener("mousemove",i,!0),t.value=!0},draggableLineStyles:a}}(e),d=c.draggedSizeValue,f=c.enableDrag,h=c.draggableLineStyles,p=bG({confirmBtnAction:function(t){var n;null===(n=e.onConfirm)||void 0===n||n.call(e,{e:t})},cancelBtnAction:function(t){var n;null===(n=e.onCancel)||void 0===n||n.call(e,{e:t}),O({trigger:"cancel",e:t})}}),m=p.getConfirmBtn,v=p.getCancelBtn,g=Et(null),y=vo(function(){var t;return[l.value,"".concat(l.value,"--").concat(e.placement),(t={},Pw(t,"".concat(l.value,"--open"),r.value),Pw(t,"".concat(l.value,"--attach"),e.showInAttachedElement),Pw(t,"".concat(l.value,"--without-mask"),!e.showOverlay),t)]}),b=vo(function(){var t;if(d.value)return d.value;var n=null!==(t=e.size)&&void 0!==t?t:i.value.size,r=isNaN(Number(n))?n:"".concat(n,"px");return{small:"300px",medium:"500px",large:"760px"}[n]||r}),w=vo(function(){return{transform:r.value?"translateX(0)":void 0,width:["left","right"].includes(e.placement)?b.value:"",height:["top","bottom"].includes(e.placement)?b.value:""}}),x=vo(function(){return["".concat(l.value,"__content-wrapper"),"".concat(l.value,"__content-wrapper--").concat(e.placement)]}),S=vo(function(){return g.value&&g.value.parentNode}),_=vo(function(){return[e.mode,e.placement].join()}),k=vo(function(){return{display:"flex",justifyContent:"right"===e.placement?"flex-start":"flex-end"}});ta(_,function(){"push"===e.mode&&fn(function(){S.value&&(S.value.style.cssText="transition: margin 300ms cubic-bezier(0.7, 0.3, 0.1, 1) 0s;")})},{immediate:!0}),ta(function(){return e.visible},function(t){BA||(t&&!e.showInAttachedElement?e.preventScrollThrough&&UA(document.body,u.value):e.preventScrollThrough&&XA(document.body,u.value),e.destroyOnClose?t?(n.value=!1,setTimeout(function(){r.value=!0})):(r.value=!1,setTimeout(function(){n.value=!0},200)):!0===n.value&&t?(n.value=!1,setTimeout(function(){r.value=!0})):r.value=t)},{immediate:!0});var A=function(t){var n;null===(n=e.onCloseBtnClick)||void 0===n||n.call(e,{e:t}),O({trigger:"close-btn",e:t})},C=function(t){var n,r;null===(n=e.onOverlayClick)||void 0===n||n.call(e,{e:t}),(null!==(r=e.closeOnOverlayClick)&&void 0!==r?r:i.value.closeOnOverlayClick)&&O({trigger:"overlay",e:t})},T=function(t){var n,r;(null!==(n=e.closeOnEscKeydown)&&void 0!==n?n:i.value.closeOnEscKeydown)&&"Escape"===t.key&&(null===(r=e.onEscKeydown)||void 0===r||r.call(e,{e:t}),O({trigger:"esc",e:t}))},O=function(n){var r;null===(r=e.onClose)||void 0===r||r.call(e,n),t.emit("update:visible",!1)};return Dr(function(){!function(){if(S.value&&"push"===e.mode&&S.value){var t={left:"margin: 0 0 0 ".concat(b.value),right:"margin: 0 0 0 -".concat(b.value),top:"margin: ".concat(b.value," 0 0 0"),bottom:"margin: -".concat(b.value," 0 0 0")}[e.placement];r.value?S.value.style.cssText+=t:S.value.style.cssText=S.value.style.cssText.replace(/margin:.+;/,"")}}()}),function(){if(!n.value){var t,r,u=s("body","default"),c=o("header"),d=(t=m({confirmBtn:e.confirmBtn,globalConfirm:i.value.confirm,className:"".concat(l.value,"__confirm")}),r=v({cancelBtn:e.cancelBtn,globalCancel:i.value.cancel,className:"".concat(l.value,"__cancel")}),Na("div",{style:k.value},["right"===e.placement?t:null,r,"right"!==e.placement?t:null]));return Xn(Na("div",{ref:g,class:y.value,style:{zIndex:e.zIndex},onKeydown:T,tabindex:0},[e.showOverlay&&Na("div",{class:"".concat(l.value,"__mask"),onClick:C},null),Na("div",{class:x.value,style:w.value},[c&&Na("div",{class:"".concat(l.value,"__header")},[c]),e.closeBtn&&Na("div",{class:"".concat(l.value,"__close-btn"),onClick:A},[o("closeBtn",Na(a,null,null))]),Na("div",{class:["".concat(l.value,"__body"),"narrow-scrollbar"]},[u]),e.footer&&Na("div",{class:"".concat(l.value,"__footer")},[o("footer",d)]),e.sizeDraggable&&Na("div",{style:h.value,onMousedown:f},null)])]),[[Wr("transfer-dom"),e.attach]])}}}})),QZ=AO(yr({name:"TConfigProvider",props:{globalConfig:Object},setup:function(e){var t=uF(gA);gi(yA,vo(function(){return n=t,r=e.globalConfig,hA(n,r,function(e,t){if(Array.isArray(e))return t});var n,r}));var n=LO();return function(){return Na("div",null,[n("default")])}}})),$Z={},eJ={exports:{}};
/**
   * tdesign v0.20.5
   * (c) 2022 tdesign
   * @license MIT
   */function tJ(){return GZ||(GZ=1,function(e){var t;t=function(){return function(){var e={686:function(e,t,n){n.d(t,{default:function(){return S}});var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),l=n.n(s);function u(e){try{return document.execCommand(e)}catch(t){return!1}}var c=function(e){var t=l()(e);return u("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=l()(e),u("copy")),n};function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==h(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?f(a,{container:r}):i?"cut"===n?c(i):f(i,{container:r}):void 0};function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(kJe){return!1}}();return function(){var n,r,i,a=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return r=this,!(i=n)||"object"!==m(i)&&"function"!=typeof i?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):i}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,n,r,i=y(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this)).resolveOptions(t),n.listenClick(e),n}return t=a,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}],n&&v(t.prototype,n),r&&v(t,r),a}(i()),S=x},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,a)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()}(eJ)),eJ.exports}const nJ=xg(function(){if(YZ)return $Z;YZ=1;var e=$Z&&$Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($Z,"__esModule",{value:!0});var t=e(tJ());return $Z.default=function(e){var n=void 0===(null==e?void 0:e.appendToBody)||e.appendToBody;return{toClipboard:function(e,r){return new Promise(function(i,a){var o=document.createElement("button"),s=new t.default(o,{text:function(){return e},action:function(){return"copy"},container:void 0!==r?r:document.body});s.on("success",function(e){s.destroy(),i(e)}),s.on("error",function(e){s.destroy(),a(e)}),n&&document.body.appendChild(o),o.click(),n&&document.body.removeChild(o)})}}},$Z}());let rJ;function iJ(e,t){if(!e)return null;rJ||(rJ=localStorage.getItem("cateList")?JSON.parse(localStorage.getItem("cateList")):[]);let n=rJ.find(t=>t?.cateId==e);return n?n[t]:null}function aJ(e,t){return(e=>{let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0");return e.getFullYear()+"-"+n+"-"+t})(new Date(1e3*(e??t)))}function oJ(e,t="number"){let n=+new Date-+new Date(1e3*e),r=Math.floor(n/864e5),i=Math.floor(r/30);return r%30>15&&(i+=1),"number"===t?i:i<=1?nf.global.t("time.oneMonth"):i<=3?nf.global.t("time.threeMonth"):i<=6?nf.global.t("time.sixMonth"):i<=12?nf.global.t("time.oneYear"):i<=24?nf.global.t("time.twoYear"):nf.global.t("time.thanTwoYear")}function sJ(e,t="all"){let n=+new Date-+new Date(1e3*e),r=Math.floor(n/864e5);if(r<1)return nf.global.t("time.day",{day:1});let i=Math.floor(r/30),a=Math.floor(i/12),o="";return"all"==t&&(o+=a?nf.global.t("time.year",{year:a}):"",o+=i-12*a?nf.global.t("time.month",{month:i-12*a}):""),"year"==t&&(o+=a?nf.global.t("time.year",{year:a}):""),"day"==t&&(o+=nf.global.t("time.day",{day:r})),o||(o+=r?nf.global.t("time.day",{day:r}):""),o}function lJ(e){e&&window.open(`https://${window.location.href.split("//")[1].split("/")[0]}/${e}`,"_blank")}function uJ(e){""!=e&&e!=nf.global.t("common.nothing")&&window.open(`https://${window.location.href.split("//")[1].split("/")[0]}/search?keyword=${e}`,"_blank")}function cJ(e){e&&""!=e&&window.open(`https://${window.location.href.split("//")[1].split("/")[0]}/search/?keyword=${encodeURIComponent(e)}`,"_blank")}const{toClipboard:dJ}=nJ(),fJ=e=>{dJ(e+"").then(()=>{WE.closeAll(),WE.success(nf.global.t("msg.copySuccess"),1e3)}).catch(()=>{WE.closeAll(),WE.error(nf.global.t("msg.copyFail"),1e3)})};var hJ=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,pJ=Math.ceil,mJ=Math.floor,vJ="[BigNumber Error] ",gJ=vJ+"Number primitive has more than 15 significant digits: ",yJ=1e14,bJ=14,wJ=9007199254740991,xJ=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SJ=1e7,_J=1e9;function kJ(e){var t=0|e;return e>0||e===t?t:t-1}function AJ(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=bJ-t.length;n--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function CJ(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=l==u,!i||!a)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=a.length)?l:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function TJ(e,t,n,r){if(e<t||e>n||e!==mJ(e))throw Error(vJ+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function OJ(e){var t=e.c.length-1;return kJ(e.e/bJ)==t&&e.c[t]%2!=0}function IJ(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function PJ(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var EJ=function e(t){var n,r,i,a,o,s=x.prototype={constructor:x,toString:null,valueOf:null},l=new x(1),u=20,c=4,d=-7,f=21,h=-1e7,p=1e7,m=!1,v=1,g=0,y={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},b="0123456789abcdefghijklmnopqrstuvwxyz",w=!0;function x(e,t){var n,a,o,s,l,d,f,m,v=this;if(!(v instanceof x))return new x(e,t);if(null==t){if(e&&!0===e._isBigNumber)return v.s=e.s,void(!e.c||e.e>p?v.c=v.e=null:e.e<h?v.c=[v.e=0]:(v.e=e.e,v.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(v.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,l=e;l>=10;l/=10,s++);return void(s>p?v.c=v.e=null:(v.e=s,v.c=[e]))}m=String(e)}else{if(!hJ.test(m=String(e)))return i(v,m,d);v.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(s=m.indexOf("."))>-1&&(m=m.replace(".","")),(l=m.search(/e/i))>0?(s<0&&(s=l),s+=+m.slice(l+1),m=m.substring(0,l)):s<0&&(s=m.length)}else{if(TJ(t,2,b.length,"Base"),10==t&&w)return A(v=new x(e),u+v.e+1,c);if(m=String(e),d="number"==typeof e){if(0*e!=0)return i(v,m,d,t);if(v.s=1/e<0?(m=m.slice(1),-1):1,x.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(gJ+e)}else v.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(n=b.slice(0,t),s=l=0,f=m.length;l<f;l++)if(n.indexOf(a=m.charAt(l))<0){if("."==a){if(l>s){s=f;continue}}else if(!o&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){o=!0,l=-1,s=0;continue}return i(v,String(e),d,t)}d=!1,(s=(m=r(m,t,10,v.s)).indexOf("."))>-1?m=m.replace(".",""):s=m.length}for(l=0;48===m.charCodeAt(l);l++);for(f=m.length;48===m.charCodeAt(--f););if(m=m.slice(l,++f)){if(f-=l,d&&x.DEBUG&&f>15&&(e>wJ||e!==mJ(e)))throw Error(gJ+v.s*e);if((s=s-l-1)>p)v.c=v.e=null;else if(s<h)v.c=[v.e=0];else{if(v.e=s,v.c=[],l=(s+1)%bJ,s<0&&(l+=bJ),l<f){for(l&&v.c.push(+m.slice(0,l)),f-=bJ;l<f;)v.c.push(+m.slice(l,l+=bJ));l=bJ-(m=m.slice(l)).length}else l-=f;for(;l--;m+="0");v.c.push(+m)}}else v.c=[v.e=0]}function S(e,t,n,r){var i,a,o,s,l;if(null==n?n=c:TJ(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)l=AJ(e.c),l=1==r||2==r&&(o<=d||o>=f)?IJ(l,o):PJ(l,o,"0");else if(a=(e=A(new x(e),t,n)).e,s=(l=AJ(e.c)).length,1==r||2==r&&(t<=a||a<=d)){for(;s<t;l+="0",s++);l=IJ(l,a)}else if(t-=o+(2===r&&a>o),l=PJ(l,a,"0"),a+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function _(e,t){for(var n,r,i=1,a=new x(e[0]);i<e.length;i++)(!(r=new x(e[i])).s||(n=CJ(a,r))===t||0===n&&a.s===t)&&(a=r);return a}function k(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*bJ-1)>p?e.c=e.e=null:n<h?e.c=[e.e=0]:(e.e=n,e.c=t),e}function A(e,t,n,r){var i,a,o,s,l,u,c,d=e.c,f=xJ;if(d){e:{for(i=1,s=d[0];s>=10;s/=10,i++);if((a=t-i)<0)a+=bJ,o=t,l=d[u=0],c=mJ(l/f[i-o-1]%10);else if((u=pJ((a+1)/bJ))>=d.length){if(!r)break e;for(;d.length<=u;d.push(0));l=c=0,i=1,o=(a%=bJ)-bJ+1}else{for(l=s=d[u],i=1;s>=10;s/=10,i++);c=(o=(a%=bJ)-bJ+i)<0?0:mJ(l/f[i-o-1]%10)}if(r=r||t<0||null!=d[u+1]||(o<0?l:l%f[i-o-1]),r=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(a>0?o>0?l/f[i-o]:0:d[u-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,r?(t-=e.e+1,d[0]=f[(bJ-t%bJ)%bJ],e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=u,s=1,u--):(d.length=u+1,s=f[bJ-a],d[u]=o>0?mJ(l/f[i-o]%f[o])*s:0),r)for(;;){if(0==u){for(a=1,o=d[0];o>=10;o/=10,a++);for(o=d[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,d[0]==yJ&&(d[0]=1));break}if(d[u]+=s,d[u]!=yJ)break;d[u--]=0,s=1}for(a=d.length;0===d[--a];d.pop());}e.e>p?e.c=e.e=null:e.e<h&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return null===n?e.toString():(t=AJ(e.c),t=n<=d||n>=f?IJ(t,n):PJ(t,n,"0"),e.s<0?"-"+t:t)}return x.clone=e,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.EUCLID=9,x.config=x.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(vJ+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(TJ(n=e[t],0,_J,t),u=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(TJ(n=e[t],0,8,t),c=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(TJ(n[0],-_J,0,t),TJ(n[1],0,_J,t),d=n[0],f=n[1]):(TJ(n,-_J,_J,t),d=-(f=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)TJ(n[0],-_J,-1,t),TJ(n[1],1,_J,t),h=n[0],p=n[1];else{if(TJ(n,-_J,_J,t),!n)throw Error(vJ+t+" cannot be zero: "+n);h=-(p=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(vJ+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!n,Error(vJ+"crypto unavailable");m=n}else m=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(TJ(n=e[t],0,9,t),v=n),e.hasOwnProperty(t="POW_PRECISION")&&(TJ(n=e[t],0,_J,t),g=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(vJ+t+" not an object: "+n);y=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(vJ+t+" invalid: "+n);w="0123456789"==n.slice(0,10),b=n}}return{DECIMAL_PLACES:u,ROUNDING_MODE:c,EXPONENTIAL_AT:[d,f],RANGE:[h,p],CRYPTO:m,MODULO_MODE:v,POW_PRECISION:g,FORMAT:y,ALPHABET:b}},x.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!x.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===a||-1===a)&&i>=-_J&&i<=_J&&i===mJ(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%bJ)<1&&(t+=bJ),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=yJ||n!==mJ(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(vJ+"Invalid BigNumber: "+e)},x.maximum=x.max=function(){return _(arguments,-1)},x.minimum=x.min=function(){return _(arguments,1)},x.random=(a=9007199254740992,o=Math.random()*a&2097151?function(){return mJ(Math.random()*a)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,a,s=0,c=[],d=new x(l);if(null==e?e=u:TJ(e,0,_J),i=pJ(e/bJ),m)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(a%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw m=!1,Error(vJ+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(a%1e14),s+=7);s=i/7}if(!m)for(;s<i;)(a=o())<9e15&&(c[s++]=a%1e14);for(i=c[--s],e%=bJ,i&&e&&(a=xJ[bJ-e],c[s]=mJ(i/a)*a);0===c[s];c.pop(),s--);if(s<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=bJ);for(s=1,a=c[0];a>=10;a/=10,s++);s<bJ&&(r-=bJ-s)}return d.e=r,d.c=c,d}),x.sum=function(){for(var e=1,t=arguments,n=new x(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,a,o=[0],s=0,l=e.length;s<l;){for(a=o.length;a--;o[a]*=t);for(o[0]+=r.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(r,i,a,o,s){var l,d,f,h,p,m,v,y,w=r.indexOf("."),S=u,_=c;for(w>=0&&(h=g,g=0,r=r.replace(".",""),m=(y=new x(i)).pow(r.length-w),g=h,y.c=t(PJ(AJ(m.c),m.e,"0"),10,a,e),y.e=y.c.length),f=h=(v=t(r,i,a,s?(l=b,e):(l=e,b))).length;0==v[--h];v.pop());if(!v[0])return l.charAt(0);if(w<0?--f:(m.c=v,m.e=f,m.s=o,v=(m=n(m,y,S,_,a)).c,p=m.r,f=m.e),w=v[d=f+S+1],h=a/2,p=p||d<0||null!=v[d+1],p=_<4?(null!=w||p)&&(0==_||_==(m.s<0?3:2)):w>h||w==h&&(4==_||p||6==_&&1&v[d-1]||_==(m.s<0?8:7)),d<1||!v[0])r=p?PJ(l.charAt(1),-S,l.charAt(0)):l.charAt(0);else{if(v.length=d,p)for(--a;++v[--d]>a;)v[d]=0,d||(++f,v=[1].concat(v));for(h=v.length;!v[--h];);for(w=0,r="";w<=h;r+=l.charAt(v[w++]));r=PJ(r,f,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%SJ,c=t/SJ|0;for(e=e.slice();l--;)s=((i=u*(a=e[l]%SJ)+(r=c*a+(o=e[l]/SJ|0)*u)%SJ*SJ+s)/n|0)+(r/SJ|0)+c*o,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var l,u,c,d,f,h,p,m,v,g,y,b,w,S,_,k,C,T=r.s==i.s?1:-1,O=r.c,I=i.c;if(!(O&&O[0]&&I&&I[0]))return new x(r.s&&i.s&&(O?!I||O[0]!=I[0]:I)?O&&0==O[0]||!I?0*T:T/0:NaN);for(v=(m=new x(T)).c=[],T=a+(u=r.e-i.e)+1,s||(s=yJ,u=kJ(r.e/bJ)-kJ(i.e/bJ),T=T/bJ|0),c=0;I[c]==(O[c]||0);c++);if(I[c]>(O[c]||0)&&u--,T<0)v.push(1),d=!0;else{for(S=O.length,k=I.length,c=0,T+=2,(f=mJ(s/(I[0]+1)))>1&&(I=e(I,f,s),O=e(O,f,s),k=I.length,S=O.length),w=k,y=(g=O.slice(0,k)).length;y<k;g[y++]=0);C=I.slice(),C=[0].concat(C),_=I[0],I[1]>=s/2&&_++;do{if(f=0,(l=t(I,g,k,y))<0){if(b=g[0],k!=y&&(b=b*s+(g[1]||0)),(f=mJ(b/_))>1)for(f>=s&&(f=s-1),p=(h=e(I,f,s)).length,y=g.length;1==t(h,g,p,y);)f--,n(h,k<p?C:I,p,s),p=h.length,l=1;else 0==f&&(l=f=1),p=(h=I.slice()).length;if(p<y&&(h=[0].concat(h)),n(g,h,y,s),y=g.length,-1==l)for(;t(I,g,k,y)<1;)f++,n(g,k<y?C:I,y,s),y=g.length}else 0===l&&(f++,g=[0]);v[c++]=f,g[0]?g[y++]=O[w]||0:(g=[O[w]],y=1)}while((w++<S||null!=g[0])&&T--);d=null!=g[0],v[0]||v.splice(0,1)}if(s==yJ){for(c=1,T=v[0];T>=10;T/=10,c++);A(m,a+(m.e=c+u*bJ-1)+1,o,d)}else m.e=u,m.r=+d;return m}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,l){var u,c=s?o:o.replace(i,"");if(r.test(c))a.s=isNaN(c)?null:c<0?-1:1;else{if(!s&&(c=c.replace(e,function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?e:t}),l&&(u=l,c=c.replace(t,"$1").replace(n,"0.$1")),o!=c))return new x(c,u);if(x.DEBUG)throw Error(vJ+"Not a"+(l?" base "+l:"")+" number: "+o);a.s=null}a.c=a.e=null}}(),s.absoluteValue=s.abs=function(){var e=new x(this);return e.s<0&&(e.s=1),e},s.comparedTo=function(e,t){return CJ(this,new x(e,t))},s.decimalPlaces=s.dp=function(e,t){var n,r,i,a=this;if(null!=e)return TJ(e,0,_J),null==t?t=c:TJ(t,0,8),A(new x(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-kJ(this.e/bJ))*bJ,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},s.dividedBy=s.div=function(e,t){return n(this,new x(e,t),u,c)},s.dividedToIntegerBy=s.idiv=function(e,t){return n(this,new x(e,t),0,1)},s.exponentiatedBy=s.pow=function(e,t){var n,r,i,a,o,s,u,d,f=this;if((e=new x(e)).c&&!e.isInteger())throw Error(vJ+"Exponent not an integer: "+C(e));if(null!=t&&(t=new x(t)),o=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return d=new x(Math.pow(+C(f),o?e.s*(2-OJ(e)):+C(e))),t?d.mod(t):d;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new x(NaN);(r=!s&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||o&&f.c[1]>=24e7:f.c[0]<8e13||o&&f.c[0]<=9999975e7)))return a=f.s<0&&OJ(e)?-0:0,f.e>-1&&(a=1/a),new x(s?1/a:a);g&&(a=pJ(g/bJ+2))}for(o?(n=new x(.5),s&&(e.s=1),u=OJ(e)):u=(i=Math.abs(+C(e)))%2,d=new x(l);;){if(u){if(!(d=d.times(f)).c)break;a?d.c.length>a&&(d.c.length=a):r&&(d=d.mod(t))}if(i){if(0===(i=mJ(i/2)))break;u=i%2}else if(A(e=e.times(n),e.e+1,1),e.e>14)u=OJ(e);else{if(0===(i=+C(e)))break;u=i%2}f=f.times(f),a?f.c&&f.c.length>a&&(f.c.length=a):r&&(f=f.mod(t))}return r?d:(s&&(d=l.div(d)),t?d.mod(t):a?A(d,g,c,undefined):d)},s.integerValue=function(e){var t=new x(this);return null==e?e=c:TJ(e,0,8),A(t,t.e+1,e)},s.isEqualTo=s.eq=function(e,t){return 0===CJ(this,new x(e,t))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(e,t){return CJ(this,new x(e,t))>0},s.isGreaterThanOrEqualTo=s.gte=function(e,t){return 1===(t=CJ(this,new x(e,t)))||0===t},s.isInteger=function(){return!!this.c&&kJ(this.e/bJ)>this.c.length-2},s.isLessThan=s.lt=function(e,t){return CJ(this,new x(e,t))<0},s.isLessThanOrEqualTo=s.lte=function(e,t){return-1===(t=CJ(this,new x(e,t)))||0===t},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(e,t){var n,r,i,a,o=this,s=o.s;if(t=(e=new x(e,t)).s,!s||!t)return new x(NaN);if(s!=t)return e.s=-t,o.plus(e);var l=o.e/bJ,u=e.e/bJ,d=o.c,f=e.c;if(!l||!u){if(!d||!f)return d?(e.s=-t,e):new x(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new x(d[0]?o:3==c?-0:0)}if(l=kJ(l),u=kJ(u),d=d.slice(),s=l-u){for((a=s<0)?(s=-s,i=d):(u=l,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=d.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=d.length))>0)for(;t--;d[n++]=0);for(t=yJ-1;r>s;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=yJ}d[r]-=f[r]}for(;0==d[0];d.splice(0,1),--u);return d[0]?k(e,d,u):(e.s=3==c?-1:1,e.c=[e.e=0],e)},s.modulo=s.mod=function(e,t){var r,i,a=this;return e=new x(e,t),!a.c||!e.s||e.c&&!e.c[0]?new x(NaN):!e.c||a.c&&!a.c[0]?new x(a):(9==v?(i=e.s,e.s=1,r=n(a,e,0,3),e.s=i,r.s*=i):r=n(a,e,0,v),(e=a.minus(r.times(e))).c[0]||1!=v||(e.s=a.s),e)},s.multipliedBy=s.times=function(e,t){var n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g=this,y=g.c,b=(e=new x(e,t)).c;if(!(y&&b&&y[0]&&b[0]))return!g.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=g.s,y&&b?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=kJ(g.e/bJ)+kJ(e.e/bJ),e.s*=g.s,(l=y.length)<(d=b.length)&&(p=y,y=b,b=p,i=l,l=d,d=i),i=l+d,p=[];i--;p.push(0));for(m=yJ,v=SJ,i=d;--i>=0;){for(n=0,f=b[i]%v,h=b[i]/v|0,a=i+(o=l);a>i;)n=((u=f*(u=y[--o]%v)+(s=h*u+(c=y[o]/v|0)*f)%v*v+p[a]+n)/m|0)+(s/v|0)+h*c,p[a--]=u%m;p[a]=n}return n?++r:p.splice(0,1),k(e,p,r)},s.negated=function(){var e=new x(this);return e.s=-e.s||null,e},s.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new x(e,t)).s,!i||!t)return new x(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/bJ,o=e.e/bJ,s=r.c,l=e.c;if(!a||!o){if(!s||!l)return new x(i/0);if(!s[0]||!l[0])return l[0]?e:new x(s[0]?r:0*i)}if(a=kJ(a),o=kJ(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=l):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=l.length)<0&&(n=l,l=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+l[t]+i)/yJ|0,s[t]=yJ===s[t]?0:s[t]%yJ;return i&&(s=[i].concat(s),++o),k(e,s,o)},s.precision=s.sd=function(e,t){var n,r,i,a=this;if(null!=e&&e!==!!e)return TJ(e,1,_J),null==t?t=c:TJ(t,0,8),A(new x(a),e,t);if(!(n=a.c))return null;if(r=(i=n.length-1)*bJ+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},s.shiftedBy=function(e){return TJ(e,-9007199254740991,wJ),this.times("1e"+e)},s.squareRoot=s.sqrt=function(){var e,t,r,i,a,o=this,s=o.c,l=o.s,d=o.e,f=u+4,h=new x("0.5");if(1!==l||!s||!s[0])return new x(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(l=Math.sqrt(+C(o)))||l==1/0?(((t=AJ(s)).length+d)%2==0&&(t+="0"),l=Math.sqrt(+t),d=kJ((d+1)/2)-(d<0||d%2),r=new x(t=l==1/0?"5e"+d:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+d)):r=new x(l+""),r.c[0])for((l=(d=r.e)+f)<3&&(l=0);;)if(a=r,r=h.times(a.plus(n(o,a,f,1))),AJ(a.c).slice(0,l)===(t=AJ(r.c)).slice(0,l)){if(r.e<d&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(A(r,r.e+u+2,1),e=!r.times(r).eq(o));break}if(!i&&(A(a,a.e+u+2,0),a.times(a).eq(o))){r=a;break}f+=4,l+=4,i=1}return A(r,r.e+u+1,c,e)},s.toExponential=function(e,t){return null!=e&&(TJ(e,0,_J),e++),S(this,e,t,1)},s.toFixed=function(e,t){return null!=e&&(TJ(e,0,_J),e=e+this.e+1),S(this,e,t)},s.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=y;else if("object"!=typeof n)throw Error(vJ+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var a,o=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=o[0],d=o[1],f=i.s<0,h=f?c.slice(1):c,p=h.length;if(l&&(a=s,s=l,l=a,p-=a),s>0&&p>0){for(a=p%s||s,c=h.substr(0,a);a<p;a+=s)c+=u+h.substr(a,s);l>0&&(c+=u+h.slice(a)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},s.toFraction=function(e){var t,r,i,a,o,s,u,d,f,h,m,v,g=this,y=g.c;if(null!=e&&(!(u=new x(e)).isInteger()&&(u.c||1!==u.s)||u.lt(l)))throw Error(vJ+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+C(u));if(!y)return new x(g);for(t=new x(l),f=r=new x(l),i=d=new x(l),v=AJ(y),o=t.e=v.length-g.e-1,t.c[0]=xJ[(s=o%bJ)<0?bJ+s:s],e=!e||u.comparedTo(t)>0?o>0?t:f:u,s=p,p=1/0,u=new x(v),d.c[0]=0;h=n(u,t,0,1),1!=(a=r.plus(h.times(i))).comparedTo(e);)r=i,i=a,f=d.plus(h.times(a=f)),d=a,t=u.minus(h.times(a=t)),u=a;return a=n(e.minus(r),i,0,1),d=d.plus(a.times(f)),r=r.plus(a.times(i)),d.s=f.s=g.s,m=n(f,i,o*=2,c).minus(g).abs().comparedTo(n(d,r,o,c).minus(g).abs())<1?[f,i]:[d,r],p=s,m},s.toNumber=function(){return+C(this)},s.toPrecision=function(e,t){return null!=e&&TJ(e,1,_J),S(this,e,t,2)},s.toString=function(e){var t,n=this,i=n.s,a=n.e;return null===a?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=a<=d||a>=f?IJ(AJ(n.c),a):PJ(AJ(n.c),a,"0"):10===e&&w?t=PJ(AJ((n=A(new x(n),u+a+1,c)).c),n.e,"0"):(TJ(e,2,b.length,"Base"),t=r(PJ(AJ(n.c),a,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},s.valueOf=s.toJSON=function(){return C(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=t&&x.set(t),x}();const MJ={setPushProductIds(e,{data:t,type:n,keyName:r,num:i=15}){if(e.dispatchShopdoraRequest.productTimeout&&(clearTimeout(e.dispatchShopdoraRequest.productTimeout),e.dispatchShopdoraRequest.productTimeout=null),e.dispatchShopdoraRequest.type=n,r!=e.dispatchShopdoraRequest.keyName)return e.dispatchShopdoraRequest.keyName=r,void(e.dispatchShopdoraRequest.productIds=[t]);if(e.dispatchShopdoraRequest.productIds.push(t),e.dispatchShopdoraRequest.productIds.length>=e.dispatchShopdoraRequest.productNum){let t=JSON.parse(JSON.stringify(e.dispatchShopdoraRequest.productIds));e.dispatchShopdoraRequest.productIds=[],e.dispatchShopdoraRequest.params=t,e.dispatchShopdoraRequest.paramsType=!0}else e.dispatchShopdoraRequest.productTimeout=setTimeout(()=>{let t=JSON.parse(JSON.stringify(e.dispatchShopdoraRequest.productIds));e.dispatchShopdoraRequest.productIds=[],e.dispatchShopdoraRequest.params=t,e.dispatchShopdoraRequest.paramsType=!0},1500)},removeParams(e){e.dispatchShopdoraRequest.params=[],e.dispatchShopdoraRequest.paramsType=!1},setShopeeList(e,{type:t,data:n,keyName:r="",page:i=1,dataType:a="cateList",dataListAll:o=[],totalCount:s=0}){"common"===t?e.shopeeList.common={...e.shopeeList.common,...n}:t.indexOf("shopList")>=0?(e.shopeeList.shopList.keyName!=r&&(e.shopeeList.shopList={keyName:r,shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}}),e.shopeeList.shopList[t][`page${i}`]={...e.shopeeList.shopList[t][`page${i}`],...n}):t.indexOf("list")>=0&&-1==t.indexOf("list_daily")?(e.shopeeList.listData.keyName!=r&&(e.shopeeList.listData={keyName:r,list1:{},list2:{},list3:{},list4:{},list5:{},listAll:{},totalCount:0}),"keywordList"===a&&(e.shopeeList.listData.listAll[`page${i}`]=o),"cateList"===a&&(e.shopeeList.listData.listAll[`page${i}`]=o),"shopList"===a&&(e.shopeeList.listData.listAll[`page${i}`]=o),e.shopeeList.listData.totalCount=s,e.shopeeList.listData[t][`page${i}`]={...e.shopeeList.listData[t][`page${i}`],...n}):-1!=t.indexOf("list_daily")?e.shopeeList.list_daily={...e.shopeeList.list_daily,...n}:"you_may_also_like"===t?e.shopeeList.you_may_also_like={...e.shopeeList.you_may_also_like,...n}:"find_similar_product"===t&&(e.shopeeList.find_similar_product.keyName==r?e.shopeeList.find_similar_product.list={...e.shopeeList.find_similar_product.list,...n}:(e.shopeeList.find_similar_product.keyName=r,e.shopeeList.find_similar_product.list=n))},setProductInfo(e,{type:t,data:n,keyName:r,page:i}){"common"===t?e.productInfo.common={...e.productInfo.common,...n}:t.indexOf("shopList")>=0?(e.productInfo.shopList.keyName!=r&&(e.productInfo.shopList={keyName:r,shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}}),e.productInfo.shopList[t][`page${i}`]={...e.productInfo.shopList[t][`page${i}`],...n}):t.indexOf("list")>=0&&-1==t.indexOf("list_daily")?(e.productInfo.listData.keyName!=r&&(e.productInfo.listData={keyName:r,list1:{},list2:{},list3:{},list4:{},list5:{}}),e.productInfo.listData[t][`page${i}`]={...e.productInfo.listData[t][`page${i}`],...n},e.shopeeList.listData.listAll&&e.shopeeList.listData.listAll[`page${i}`]&&e.shopeeList.listData.listAll[`page${i}`].forEach(e=>{!e.sold&&0!==e.sold&&n[e.itemid]&&(e.sold=n[e.itemid].sales30Day??null),!e.historical_sold&&0!==e.historical_sold&&n[e.itemid]&&(e.historical_sold=n[e.itemid].sales??n[e.itemid].sales)})):-1!=t.indexOf("list_daily")?e.productInfo.list_daily={...e.productInfo.list_daily,...n}:"you_may_also_like"===t?e.productInfo.you_may_also_like={...e.productInfo.you_may_also_like,...n}:"find_similar_product"===t&&(e.productInfo.find_similar_product.keyName==r?e.productInfo.find_similar_product.list={...e.productInfo.find_similar_product.list,...n}:(e.productInfo.find_similar_product.keyName=r,e.productInfo.find_similar_product.list=n))},setProductBasicInfo(e,{type:t,data:n,keyName:r,page:i}){"common"===t?e.productBasicInfo.common={...e.productBasicInfo.common,...n}:t.indexOf("shopList")>=0?(e.productBasicInfo.shopList.keyName!=r&&(e.productBasicInfo.shopList={keyName:r,shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}}),e.productBasicInfo.shopList[t][`page${i}`]={...e.productBasicInfo.shopList[t][`page${i}`],...n}):t.indexOf("list")>=0&&-1==t.indexOf("list_daily")?(e.productBasicInfo.listData.keyName!=r&&(e.productBasicInfo.listData={keyName:r,list1:{},list2:{},list3:{},list4:{},list5:{}}),e.productBasicInfo.listData[t][`page${i}`]={...e.productBasicInfo.listData[t][`page${i}`],...n},e.shopeeList.listData.listAll&&e.shopeeList.listData.listAll[`page${i}`]&&e.shopeeList.listData.listAll[`page${i}`].forEach(e=>{n[e.itemid]&&(e.sellerSourceTips=["","\u672c\u571f","\u8de8\u5883"][n[e.itemid].sellerSource])})):-1!=t.indexOf("list_daily")?e.productBasicInfo.list_daily={...e.productBasicInfo.list_daily,...n}:"you_may_also_like"===t?e.productBasicInfo.you_may_also_like={...e.productBasicInfo.you_may_also_like,...n}:"find_similar_product"===t&&(e.productBasicInfo.find_similar_product.keyName==r?e.productBasicInfo.find_similar_product.list={...e.productBasicInfo.find_similar_product.list,...n}:(e.productBasicInfo.find_similar_product.keyName=r,e.productBasicInfo.find_similar_product.list=n))},setFiltration(e,{type:t,page:n,exportType:r="list"}){let i={},a={},o=Object.values(e.productBasicInfo[-1!=r.indexOf("shopList")?"shopList":"listData"][t][`page${n}`]??[]);e.shopeeList[-1!=r.indexOf("shopList")?"shopList":"listData"][t][`page${n}`]&&(Object.values(e.shopeeList[-1!=r.indexOf("shopList")?"shopList":"listData"][t][`page${n}`]).map(e=>{var t;e.brand=(t=e.brand,o.find(t=>t.itemId==e.itemid)?.brand??null?t:null),i[e.itemid]={brand:e.brand,itemid:e.itemid,shopid:e.shopid,name:e.name??"",sold:e.sold??0,cat_id:e.cat_id,checked:!0,index:e.index},a[e.itemid]={brand:e.brand,itemid:e.itemid,shopid:e.shopid,name:e.name??"",sold:e.sold??0,cat_id:e.cat_id,checked:!1,index:e.index}}),e.productListFiltration[r].list1=i,e.productListFiltration[r].list=JSON.parse(JSON.stringify(i)),e.productListFiltration[r].list3=a)},setDetailPage(e,t){Object.keys(e.productDetailPage).length>=10?e.productDetailPage=t:e.productDetailPage={...t,...e.productDetailPage}},setDetailPageSold(e,t){e.productDetailPage[t.itemId]&&(e.productDetailPage[t.itemId].sold=t.sold)},removeShopList(e){e.shopeeList.common={},e.productInfo.common={},e.productBasicInfo.common={}},removeDetailYouMayAlsoLike(e){e.shopeeList.you_may_also_like={},e.productInfo.you_may_also_like={},e.productBasicInfo.you_may_also_like={}},removeListDaily(e){e.shopeeList.list_daily={},e.productInfo.list_daily={},e.productBasicInfo.list_daily={}},setProductRadio(e,{str:t,exportType:n="list"}){e.productListFiltration[n].radio=t},setProductListFiltration(e,{brand:t,salesM_min:n,salesM_max:r,exportType:i="list"}){let a={};Object.values(e.productListFiltration[i].list).map(o=>{let s=""===t||("1"===t?"\u65e0"!=o.brand:"\u65e0"==o.brand),l=""===n||o.sold>=n,u=""===r||o.sold<=r;s&&l&&u?(o.checked=!0,a[o.itemid]=o):(o.checked=!1,a[o.itemid]=o),e.productListFiltration[i].list2=a})},setProductListChecked(e,{type:t,itemid:n,exportType:r="list"}){e.productListFiltration[r][`list${t}`][n].checked=!e.productListFiltration[r][`list${t}`][n].checked}},DJ={getSkuTrend:async({commit:e},t)=>{oQ("/sku/turnoverRate/dayTrend",{...t,type:["day30","day60","day90"]}).then(t=>{e("setRatioDaily",{data:t.day30,day:"day30"}),e("setRatioDaily",{data:t.day60,day:"day60"}),e("setRatioDaily",{data:t.day90,day:"day90"})}).catch(e=>{}),oQ("/sku/turnoverRate/monthTrend",t).then(t=>{e("setRatioMonth",t)}).catch(e=>{}),oQ("/sku/sales",t).then(t=>{e("setVolume",t)}).catch(e=>{}),oQ("/sku/salesDetail",{...t,type:["day1","day30","day90","year1"]}).then(t=>{e("setDetailDaily",{data:t.day1,day:"day1"}),e("setDetailDaily",{data:t.day30,day:"day30"}),e("setDetailDaily",{data:t.day90,day:"day90"}),e("setDetailDaily",{data:t.year1,day:"year1"})}).catch(e=>{}),oQ("/sku/salesDayTrend",{...t,type:["day30","day90"]}).then(t=>{e("setSkuTrendDaily",{data:t.day30,day:"day30"}),e("setSkuTrendDaily",{data:t.day90,day:"day90"})}).catch(e=>{}),oQ("/sku/salesMonthTrend",t).then(t=>{e("setSkuTrendMonth",t.year1)}).catch(e=>{})},getSkuVolume:async({commit:e},t)=>{oQ("/sku/sales",t).then(t=>{e("setVolume",t)}).catch(e=>{})}},RJ=new ww({modules:{user:Cw,product:{namespaced:!0,state:{dispatchShopdoraRequest:{keyName:"",type:"",productNum:60,productTime:"2000",productTimeout:null,productIds:[],params:[],paramsType:!1},shopeeList:{common:{},shopList:{keyName:"",shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}},listData:{keyName:"",list1:{},list2:{},list3:{},list4:{},list5:{},listAll:{},totalCount:0},list_daily:{},you_may_also_like:{},find_similar_product:{keyName:"",list:{}}},productInfo:{common:{},shopList:{keyName:"",shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}},listData:{keyName:"",list1:{},list2:{},list3:{},list4:{},list5:{}},list_daily:{},you_may_also_like:{},find_similar_product:{keyName:"",list:{}}},productBasicInfo:{common:{},shopList:{keyName:"",shopList1:{},shopList2:{},shopList3:{},shopList4:{},shopList5:{}},listData:{keyName:"",list1:{},list2:{},list3:{},list4:{},list5:{}},list_daily:{},you_may_also_like:{},find_similar_product:{keyName:"",list:{}}},productDetailPage:{},productListFiltration:{list:{radio:"1",list:{},list1:{},list2:{},list3:{}},shopList:{radio:"1",list:{},list1:{},list2:{},list3:{}}}},mutations:MJ,actions:{getProductInfoList:async({commit:e},{type:t,params:n,keyName:r="",page:i=1})=>{oQ("/plugin/productInfo",n).then(n=>{const a={};(n||[]).forEach(e=>{a[e.itemId]=e}),e("setProductInfo",{type:t,data:a,keyName:r,page:i})})},getProductBasicInfoList:async({commit:e},{type:t,params:n,keyName:r="",page:i=1})=>{oQ("/plugin/productBasicInfo",n).then(n=>{const a={};(n||[]).forEach(e=>{a[e.itemId]=e}),e("setProductBasicInfo",{type:t,data:a,keyName:r,page:i})})},upListDataShopReporting:async({commit:e},{upListDataParams:t})=>{oQ("/plugin/shopReporting",t)}},getters:{getDispatchShopdoraRequest:e=>e.dispatchShopdoraRequest,getShopeeListAll:e=>t=>e.shopeeList[-1==t.indexOf("shopList")?"listData":"shopList"],getProductBasicInfoAll:e=>t=>e.productBasicInfo[-1==t.indexOf("shopList")?"listData":"shopList"],getShopeeList:e=>(t,n,r="1")=>"find_similar_product"===t?e.shopeeList.find_similar_product.list?.[n]??null:-1!=t.indexOf("list")&&-1==t.indexOf("list_daily")||-1!=t.indexOf("shopList")?e.shopeeList[-1!=t.indexOf("shopList")?"shopList":"listData"]?.[t][`page${r}`]?.[n]??null:e.shopeeList?.[t]?.[n]??null,getProductBasicInfoBrand:e=>(t,n="1",r="list")=>e.productBasicInfo[-1!=r.indexOf("shopList")?"shopList":"listData"]?.[t]?.[`page${n}`]??null,getProductInfo:e=>(t,n,r="1")=>"find_similar_product"===t?e.productInfo.find_similar_product.list?.[n]??null:-1!=t.indexOf("list")&&-1==t.indexOf("list_daily")||-1!=t.indexOf("shopList")?e.productInfo[-1!=t.indexOf("shopList")?"shopList":"listData"]?.[t][`page${r}`]?.[n]??null:e.productInfo?.[t]?.[n]??null,getProductBasicInfo:e=>(t,n,r="1")=>"find_similar_product"===t?e.productBasicInfo.find_similar_product.list?.[n]??null:-1!=t.indexOf("list")&&-1==t.indexOf("list_daily")||-1!=t.indexOf("shopList")?e.productBasicInfo[-1!=t.indexOf("shopList")?"shopList":"listData"]?.[t][`page${r}`]?.[n]??null:e.productBasicInfo?.[t]?.[n]??null,getProductDetailPage:e=>t=>e.productDetailPage?.[t]??null,getProductListCheckedList:e=>({type:t,exportType:n="list"})=>e.productListFiltration[n][`list${t}`]??{},getProductListCheckedListNum:e=>({type:t,exportType:n="list"})=>Object.values(e.productListFiltration[n][`list${t}`]).filter(e=>e.checked).length??"0",getProductRadioItem:e=>({itemid:t,exportType:n="list"})=>e.productListFiltration[n][`list${e.productListFiltration[n].radio}`][t]??{},getProductRadioValue:e=>(t="list")=>e.productListFiltration[t].radio??"1",getKeywordProductListAllInfo:e=>(t="all")=>{const n={averagePrice:0,minPrice:0,maxPrice:0,minTime:0,maxTime:0,monthSold:0,sold:0,avgSold:0,avgMonthSold:0,avgRating:0,minRatting:0,maxRatting:0,soldSale:0,historical_soldSale:0,historical_sold:0,productNum:0,totalTime:0,brandOptions:{},shopOptions:{},productList:[],timeChart:{},shopLocationChart:{},shopTypeChart:{},local:0,crossBorder:0,normal:0,mall:0,preferredPlus:0,listingTimeList:[],cateCount:{}};let r=new EJ(0),i=0,a=0,o=0,s=0,l=0,u=new EJ(0),c=0,d=-1,f=0;const h=Math.floor((new Date).getTime()/1e3);for(const p in e.shopeeList.listData.listAll){for(const m of e.shopeeList.listData.listAll[p]){0===m.historical_sold?m.ratingRateTotal="0%":m.historical_sold?m.ratingRateTotal=(m.rating_count/m.historical_sold).toFixed(2)+"%":m.ratingRateTotal="-";const e=new EJ(m.price||0).dividedBy(1e5),p=new EJ(m.sold||0).multipliedBy(e),v=new EJ(m.historical_sold||0).multipliedBy(e);m.soldSale=p.toFormat(),m.historical_soldSale=v.toFormat(),r=r.plus(p),u=u.plus(v),n.productNum+=1,1==m.sellerSource?n.local+=1:n.crossBorder+=1,m.is_official_shop?n.mall+=1:m.is_preferred_plus_seller?n.preferredPlus+=1:n.normal+=1;const g=Number(m.rating_star);c+=g,-1==d&&(d=g),d>g&&(d=g),f<g&&(f=g);const y=Number(m.price);y>o&&(o=y),0==a&&(a=y),y<a&&(a=y),i+=y,m.sold&&"-"!=m.sold&&(n.sold+=Number(m.sold)),m.historical_sold&&"-"!=m.historical_sold&&(n.historical_sold+=Number(m.historical_sold));const b=h-m.ctime;n.totalTime+=b,n.listingTimeList.push(b),s<b&&(s=b),0==l&&(l=b),l>b&&(l=b);const w=m.catId||"0";let x=n.cateCount[w]||0;n.cateCount[w]=x+1;const S=m.brand||"nobrand";if(n.brandOptions[S]=n.brandOptions[S]||{sold:0,soldSale:0,historical_sold:0,historical_soldSale:0},n.brandOptions[S].sold+=m.sold,n.brandOptions[S].historical_sold+=m.historical_sold,n.brandOptions[S].soldSale=new EJ(n.brandOptions[S].soldSale).plus(p).toString(),n.brandOptions[S].historical_sold=new EJ(n.brandOptions[S].historical_sold).plus(v).toString(),n.shopOptions[m.shopid]=n.shopOptions[m.shopid]||{sold:0,soldSale:0,historical_sold:0,historical_soldSale:0},n.shopOptions[m.shopid].sold+=m.sold,n.shopOptions[m.shopid].historical_sold+=m.historical_sold,n.shopOptions[m.shopid].soldSale=new EJ(n.shopOptions[m.shopid].soldSale).plus(p).toString(),n.shopOptions[m.shopid].historical_sold=new EJ(n.shopOptions[m.shopid].historical_sold).plus(v).toString(),m.priceStr=e.toFormat(),n.productList.push(m),"all"!==t&&n.productNum>=t)break}if("all"!==t&&n.productNum>=t)break}return n.averagePrice=(i/n.productNum/1e5).toFixed(2),n.minPrice=(a/1e5).toFixed(2),n.maxPrice=(o/1e5).toFixed(2),n.historical_soldSale=u.toString(),n.soldSale=r.toString(),n.avgSold=Math.trunc(Number(n.historical_sold)/n.productNum),n.avgSold=n.avgSold<1?1:n.avgSold,n.avgMonthSold=Math.trunc(Number(n.sold)/n.productNum),n.avgMonthSold=n.avgMonthSold<1?1:n.avgMonthSold,n.avgTime=Math.ceil(n.totalTime/n.productNum),n.avgTimeStr=sJ(h-n.avgTime,"all"),n.minTime=sJ(h-l,"day"),n.maxTime=sJ(h-s,"year"),n.avgRating=(c/n.productNum/10).toFixed(1),n.minRatting=(d/10).toFixed(1),n.maxRatting=(f/10).toFixed(1),n}}},productsku:{namespaced:!0,state:{month:{skuRatio:{year1:{}},skuTrend:{year1:{}}},daily:{skuRatio:{day30:{},day60:{},day90:{}},skuDetails:{day1:{},day30:{},day90:{},year1:{}},skuTrend:{day30:{},day90:{}}},skuVolume:{sku:{}}},mutations:{setRatioDaily(e,{data:t,day:n}){e.daily.skuRatio[n]=t},setRatioMonth(e,t){e.month.skuRatio=t},setVolume(e,t){e.skuVolume=t},setDetailDaily(e,{data:t,day:n}){e.daily.skuDetails[n]=t},setSkuTrendDaily(e,{data:t,day:n}){e.daily.skuTrend[n]=t},setSkuTrendMonth(e,t){e.month.skuTrend.year1=t}},actions:DJ,getters:{getRatioDailyDates:e=>(t,n)=>e.daily.skuRatio[n]?.[t]?.dates??[],getRatioDailyDatas:e=>(t,n)=>e.daily.skuRatio[n]?.[t]?.datas??[],getRatioMonthDates:e=>t=>e.month.skuRatio.year1?.[t]?.dates??[],getRatioMonthDatas:e=>t=>e.month.skuRatio.year1?.[t]?.datas??[],getVolumeData:e=>t=>e.skuVolume.sku?.[t]??[],getDetailsData:e=>(t,n)=>e.daily.skuDetails[n]?.[t]??[],getSkuTrendMonthData:e=>t=>e.month.skuTrend.year1?.[t]?.datas?{datas:e.month.skuTrend.year1[t].datas,skuList:e.month.skuTrend.year1[t].skuList}:{datas:[],skuList:[]},getSkuTrendMonthDates:e=>t=>e.month.skuTrend.year1?.[t]?.dates??[],getSkuTrendDailyData:e=>(t,n)=>e.daily.skuTrend[n]?.[t]?.datas?{datas:e.daily.skuTrend[n][t].datas,skuList:e.daily.skuTrend[n][t].skuList}:{datas:[],skuList:[]},getSkuTrendDailyDates:e=>(t,n)=>e.daily.skuTrend[n]?.[t]?.dates??[]}}}});const LJ=()=>"https://www.shopdora.com",NJ=()=>{RJ.commit("user/setLoginType",!0)},jJ=()=>{window.open("https://www.shopdora.com","_blank")},FJ=(e,t,n,r,i=nf.global.t,a=nf.global.locale.value)=>{let o={itemId:e,name:null,liked_count:null,stock:null,cat_id:null,catId:null,leafCatId:null,image:null,monitor:!1,monitorCreateTime:null,price:null,price_cny:null,price_max:null,price_max_cny:null,price_min:null,price_min_cny:null,nameLink:null,username:null,sellerSource:null,sellerSourceTips:null,brand:null,cateLocalPath:null,cateId:null,cateName:null,cateChPath:null,salestMRank:null,ctime:null,ctimeDay:null,sales1Day:null,sales7Day:null,sales30Day:null,sales:null,salesGrowthRateM:null,salesAmount30Day:null,salesAmount30DayLocal:null,salesAmount30DayUnit:null,salesAmount:null,salesAmountLocal:null,salesAmountUnit:null,skuDetailData:{},shopName:null,shopPage:!1};return!t[1]||i("info.noDataText"),o.brand=t[0]?.brand??i("common.nothing"),o.name=t[0]?.name??null,o.liked_count=t[0]?.liked_count??null,o.stock=t[0]?.stock??null,o.cat_id=t[0]?.cat_id??null,o.catId=t[0]?.catId??null,o.leafCatId=t[0]?.leafCatId??null,o.image=t[0]?.image??null,o.ctime=t[0]?.ctime,t[0]?.ctime&&"-"!=t[0]?.ctime&&(o.ctime=t[0]?.ctime||t[1]?.shelfTime?aJ(t[0]?.ctime,t[1]?.shelfTime):null),o.ctimeDay=t[0]?.ctimeDay,o.cateName=t[1]?.cateName??iJ(t[0]?.cat_id,"cateName"),o.cateChPath=t[1]?.cateChPath??iJ(t[0]?.cat_id,"cateChPath"),o.cateId=t[1]?.cateId??null,o.cateLocalPath=t[1]?.cateLocalPath??iJ(t[0]?.cat_id,"cateLocalPath"),o.salestMRank=t[1]?.salestMRank??null,o.username=t[1]?.username??(t[0]?.shop_name?t[0].shop_name:null),o.shopName=t[0]?.shop_name,o.nameLink=t[1]?.name??null,o.sellerSourceTips=t[1]?.sellerSource||0==t[1]?.sellerSource?[null,i("info.local"),i("info.crossBorder")][t[1].sellerSource]:null,o.sales30Day=t[2]?.sales30Day,o.sales1Day=t[2]?.sales1Day??(0===o.sales30Day?0:null),o.sales7Day=t[2]?.sales7Day??(0===o.sales30Day?0:null),o.sales=t[0]?.historical_sold??t[2]?.sales,o.salesGrowthRateM=t[2]?.salesGrowthRateM??null,o.price=t[0]?.price?(t[0]?.price/1e5).toFixed(2):null,-1==t[0]?.price&&(o.price=t[0]?.price_min?(t[0]?.price_min/1e5).toFixed(2):null),o.price_cny=t[0]?.price?(t[0]?.price/1e5/n[r]*(n["zh"===a?"cn":"us"]??1)).toFixed(2):null,o.price_max=t[0]?.price_max?(t[0]?.price_max/1e5).toFixed(2):null,o.price_max_cny=t[0]?.price_max?(t[0]?.price_max/1e5/n[r]*(n["zh"===a?"cn":"us"]??1)).toFixed(2):null,o.price_min=t[0]?.price_min?(t[0]?.price_min/1e5).toFixed(2):null,o.price_min_cny=t[0]?.price_min?(t[0]?.price_min/1e5/n[r]*(n["zh"===a?"cn":"us"]??1)).toFixed(2):null,o.salesAmount30Day=t[2]?.salesAmountM,o.salesAmount30DayLocal=t[2]?.salesAmountMLocal,isNaN(t[2]?.salesAmountM)||"-"==t[2]?.salesAmountM||(o.salesAmount30Day=`${(t[2]?.salesAmountM/1e5).toFixed(2)}`,o.salesAmount30DayUnit=(t[2]?.salesAmountM/1e5/n[r]*(n["zh"===a?"cn":"us"]??1)).toFixed(2)),o.salesAmount=t[2]?.salesAmount,o.salesAmountLocal=t[2]?.salesAmountLocal,isNaN(t[2]?.salesAmount)||"-"==t[2]?.salesAmount||(o.salesAmount=`${(t[2]?.salesAmount/1e5).toFixed(2)}`,o.salesAmountUnit=(t[2]?.salesAmount/1e5/n[r]*(n["zh"===a?"cn":"us"]??1)).toFixed(2)),o.monitor=t[2]?.monitor??!1,o.monitorCreateTime=t[2]?.monitorCreateTime??"",o.skuDetailData=t[0]?.skuDetailData??[],o.shopPage=t[0]?.shopPage??!1,o};var zJ,BJ,VJ,HJ,WJ,UJ,XJ={exports:{}},GJ={exports:{}};function YJ(){if(VJ)return BJ;VJ=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};return BJ=e}
/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */function KJ(){if(WJ)return HJ;function e(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}return WJ=1,HJ=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}}var qJ,ZJ,JJ,QJ,$J,eQ,tQ,nQ=(UJ||(UJ=1,zJ||(zJ=1,qJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZJ={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&ZJ.rotl(e,8)|4278255360&ZJ.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=ZJ.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(qJ.charAt(r>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)0!=r&&t.push((qJ.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|qJ.indexOf(e.charAt(n))>>>6-2*r);return t}},GJ.exports=ZJ),JJ=GJ.exports,QJ=YJ().utf8,$J=KJ(),eQ=YJ().bin,tQ=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?eQ.stringToBytes(e):QJ.stringToBytes(e):$J(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=JJ.bytesToWords(e),r=8*e.length,i=1732584193,a=-271733879,o=-1732584194,s=271733878,l=0;l<n.length;l++)n[l]=16711935&(n[l]<<8|n[l]>>>24)|4278255360&(n[l]<<24|n[l]>>>8);n[r>>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var u=tQ._ff,c=tQ._gg,d=tQ._hh,f=tQ._ii;for(l=0;l<n.length;l+=16){var h=i,p=a,m=o,v=s;i=u(i,a,o,s,n[l+0],7,-680876936),s=u(s,i,a,o,n[l+1],12,-389564586),o=u(o,s,i,a,n[l+2],17,606105819),a=u(a,o,s,i,n[l+3],22,-1044525330),i=u(i,a,o,s,n[l+4],7,-176418897),s=u(s,i,a,o,n[l+5],12,1200080426),o=u(o,s,i,a,n[l+6],17,-1473231341),a=u(a,o,s,i,n[l+7],22,-45705983),i=u(i,a,o,s,n[l+8],7,1770035416),s=u(s,i,a,o,n[l+9],12,-1958414417),o=u(o,s,i,a,n[l+10],17,-42063),a=u(a,o,s,i,n[l+11],22,-1990404162),i=u(i,a,o,s,n[l+12],7,1804603682),s=u(s,i,a,o,n[l+13],12,-40341101),o=u(o,s,i,a,n[l+14],17,-1502002290),i=c(i,a=u(a,o,s,i,n[l+15],22,1236535329),o,s,n[l+1],5,-165796510),s=c(s,i,a,o,n[l+6],9,-1069501632),o=c(o,s,i,a,n[l+11],14,643717713),a=c(a,o,s,i,n[l+0],20,-373897302),i=c(i,a,o,s,n[l+5],5,-701558691),s=c(s,i,a,o,n[l+10],9,38016083),o=c(o,s,i,a,n[l+15],14,-660478335),a=c(a,o,s,i,n[l+4],20,-405537848),i=c(i,a,o,s,n[l+9],5,568446438),s=c(s,i,a,o,n[l+14],9,-1019803690),o=c(o,s,i,a,n[l+3],14,-187363961),a=c(a,o,s,i,n[l+8],20,1163531501),i=c(i,a,o,s,n[l+13],5,-1444681467),s=c(s,i,a,o,n[l+2],9,-51403784),o=c(o,s,i,a,n[l+7],14,1735328473),i=d(i,a=c(a,o,s,i,n[l+12],20,-1926607734),o,s,n[l+5],4,-378558),s=d(s,i,a,o,n[l+8],11,-2022574463),o=d(o,s,i,a,n[l+11],16,1839030562),a=d(a,o,s,i,n[l+14],23,-35309556),i=d(i,a,o,s,n[l+1],4,-1530992060),s=d(s,i,a,o,n[l+4],11,1272893353),o=d(o,s,i,a,n[l+7],16,-155497632),a=d(a,o,s,i,n[l+10],23,-1094730640),i=d(i,a,o,s,n[l+13],4,681279174),s=d(s,i,a,o,n[l+0],11,-358537222),o=d(o,s,i,a,n[l+3],16,-722521979),a=d(a,o,s,i,n[l+6],23,76029189),i=d(i,a,o,s,n[l+9],4,-640364487),s=d(s,i,a,o,n[l+12],11,-421815835),o=d(o,s,i,a,n[l+15],16,530742520),i=f(i,a=d(a,o,s,i,n[l+2],23,-995338651),o,s,n[l+0],6,-198630844),s=f(s,i,a,o,n[l+7],10,1126891415),o=f(o,s,i,a,n[l+14],15,-1416354905),a=f(a,o,s,i,n[l+5],21,-57434055),i=f(i,a,o,s,n[l+12],6,1700485571),s=f(s,i,a,o,n[l+3],10,-1894986606),o=f(o,s,i,a,n[l+10],15,-1051523),a=f(a,o,s,i,n[l+1],21,-2054922799),i=f(i,a,o,s,n[l+8],6,1873313359),s=f(s,i,a,o,n[l+15],10,-30611744),o=f(o,s,i,a,n[l+6],15,-1560198380),a=f(a,o,s,i,n[l+13],21,1309151649),i=f(i,a,o,s,n[l+4],6,-145523070),s=f(s,i,a,o,n[l+11],10,-1120210379),o=f(o,s,i,a,n[l+2],15,718787259),a=f(a,o,s,i,n[l+9],21,-343485551),i=i+h>>>0,a=a+p>>>0,o=o+m>>>0,s=s+v>>>0}return JJ.endian([i,a,o,s])},tQ._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},tQ._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},tQ._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},tQ._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},tQ._blocksize=16,tQ._digestsize=16,XJ.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=JJ.wordsToBytes(tQ(e,t));return t&&t.asBytes?n:t&&t.asString?eQ.bytesToString(n):JJ.bytesToHex(n)}),XJ.exports);const rQ=xg(nQ),iQ=["un_auth","invalid_token"],aQ=Ob.create({baseURL:"https://www.shopdora.com/api",timeout:1e3,withCredentials:!0});aQ.interceptors.request.use(e=>{const t=(new Date).getTime().toString();return e.headers["shopdora-token"]=localStorage.getItem("shopdoraToken")??"",e.headers.sign=rQ(((e,t="")=>"[object Object]"!==Object.prototype.toString.call(e)?t:Object.keys(e).sort().map(t=>`${e[t]instanceof Object?"":t+e[t]}`).join("")+t)(e.data,t)+"ddabcdshopdoradabcd"+(new Date).getFullYear().toString()).toUpperCase(),e.headers.timestamp=t,e.headers.endpoint="plugin",e.headers.lang=nf.global.locale.value,e}),aQ.defaults.timeout=25e3,aQ.interceptors.response.use(e=>{if(200===e.status){const{data:t,config:n}=e;if(["invalid_token","un_auth"].includes(t.code)&&(NJ(),RJ.commit("user/removeToken"),RJ.commit("user/removeUserInfo")),n.needCode)return t;if("ok"===t.code)return t.data;if("data_quota_limit"===t.code)return RJ.dispatch("user/getUserInfo"),WE.closeAll(),Promise.reject(t.tips);if(!iQ.includes(t.code))return WE.closeAll(),["user_not_exist","invalid_password","invalid_v_code"].includes(t.code)&&WE.error(t.tips||nf.global.t("error.requestErr"),2e3),Promise.reject(t.tips)}return e},e=>{"invalid_token"===e?.response.data.code&&(WE.error(nf.global.t("error.loginError"),1e3),sessionStorage.setItem("shopdoraLogin","1"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("shopdora-token"),RJ.commit("user/removeToken"),RJ.commit("user/removeUserInfo")),WE.closeAll(),e.message.includes("timeout")&&WE.error(nf.global.t("error.requestTimeoutRetry"),1e3);const{config:t}=e;if(!t||!t.retry)return Promise.reject(e);if(t.retryCount=t.retryCount||0,t.retryCount>=t.retry)return Promise.reject(e);t.retryCount+=1;return new Promise(e=>{setTimeout(()=>{e(null)},t.retryDelay||1)}).then(()=>aQ(t))});const oQ=(e,t={})=>(e&&"string"==typeof e&&"/"!=e[0]&&(e="/"+e),new Promise((n,r)=>{aQ.post(e,t).then(e=>(n(e),e)).catch(e=>{r(e)})})),sQ=vo(()=>({tw:{label:nf.global.t("countryArea.tw"),value:"tw",domain:"xiapi.xiapibuy.com",localUnit:"NT$",localUnitCn:nf.global.t("currency.tw"),allDomain:["shopee.tw","xiapi.xiapibuy.com"],tradeFeeRate:2},sg:{label:nf.global.t("countryArea.sg"),value:"sg",domain:"sg.xiapibuy.com",localUnit:"S$",localUnitCn:nf.global.t("currency.sg"),allDomain:["shopee.sg","sg.xiapibuy.com"],tradeFeeRate:2},my:{label:nf.global.t("countryArea.my"),value:"my",domain:"my.xiapibuy.com",localUnit:"RM",localUnitCn:nf.global.t("currency.my"),allDomain:["shopee.com.my","my.xiapibuy.com"],tradeFeeRate:2.12},ph:{label:nf.global.t("countryArea.ph"),value:"ph",domain:"ph.xiapibuy.com",localUnit:"\u20b1",localUnitCn:nf.global.t("currency.ph"),allDomain:["shopee.ph","ph.xiapibuy.com"],tradeFeeRate:2.24},th:{label:nf.global.t("countryArea.th"),value:"th",domain:"th.xiapibuy.com",localUnit:"\u0e3f",localUnitCn:nf.global.t("currency.th"),allDomain:["shopee.co.th","th.xiapibuy.com"],tradeFeeRate:2.14},vn:{label:nf.global.t("countryArea.vn"),value:"vn",domain:"vn.xiapibuy.com",localUnit:"\u20ab",localUnitCn:nf.global.t("currency.vn"),allDomain:["shopee.vn","vn.xiapibuy.com"],tradeFeeRage:2.2},br:{label:nf.global.t("countryArea.br"),value:"br",domain:"br.xiapibuy.com",localUnit:"R$",localUnitCn:nf.global.t("currency.br"),allDomain:["shopee.com.br","br.xiapibuy.com"],tradeFeeRate:2},id:{label:nf.global.t("countryArea.id"),value:"id",domain:"id.xiapibuy.com",localUnit:"Rp",localUnitCn:nf.global.t("currency.id"),allDomain:["shopee.co.id","id.xiapibuy.com"],tradeFeeRate:2},mx:{label:nf.global.t("countryArea.mx"),value:"mx",domain:"shopee.com.mx",localUnit:"MXN",localUnitCn:nf.global.t("currency.mx"),allDomain:["shopee.com.mx","mx.xiapibuy.com"],tradeFeeRate:2}})),lQ=vo(()=>({sg:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.expressChannel"),value:"SG_Doorstep_Delivery_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.buyerSelfPickupChannel"),value:"SG_Shopee_Collection_Point_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.selfPickupLockerChannel"),value:"SG_Pick_Locker_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.onlineSeaShippingChannel"),value:"SG_Doorstep_Delivery_sea_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]}]},{label:nf.global.t("deliverChannel.heavyGoods"),value:"3",children:[{label:nf.global.t("deliverChannel.expressChannel"),value:"SG_Doorstep_Delivery",children:[{label:nf.global.t("common.all"),value:"all"}]}]}],my:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"MY_Standard_Delivery",children:[{label:"Zone KV",value:"ZoneKV"},{label:"Zone Non-KV",value:"ZoneNon-KV"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"}]},{label:nf.global.t("deliverChannel.buyerSelfCollectionChannel"),value:"MY_Self_Collection_Shopee_Xpress",children:[{label:"Zone KV",value:"ZoneKV"}]},{label:nf.global.t("deliverChannel.maritimeEconomicChannel"),value:"MY_Economy_Delivery_Sea_Shipping",children:[{label:"Zone KV",value:"ZoneKV"},{label:"Zone Non-KV",value:"ZoneNon-KV"}]}]},{label:nf.global.t("deliverChannel.heavyGoods"),value:"3",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"MY_Standard_Delivery",children:[{label:"Zone KV",value:"ZoneKV"},{label:"Zone Non-KV",value:"ZoneNon-KV"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"}]},{label:nf.global.t("deliverChannel.maritimeLargeCargoChannel"),value:"MY_Economy_Delivery_Sea_Shipping",children:[{label:"Zone KV",value:"ZoneKV"},{label:"Zone Non-KV",value:"ZoneNon-KV"}]}]}],th:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"TH_International_Express",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"}]},{label:nf.global.t("deliverChannel.standardChannel78017"),value:"TH_Channel_78017",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"}]},{label:nf.global.t("deliverChannel.priorityChannel"),value:"TH_International_Premium",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"}]}]}],ph:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannelMainland"),value:"PH_Standard_International_mainlan",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"},{label:"Zone D",value:"ZoneD"}]},{label:nf.global.t("deliverChannel.standardChannelHongKong"),value:"PH_Standard_International_hongkong",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"},{label:"Zone D",value:"ZoneD"}]},{label:nf.global.t("deliverChannel.maritimeEconomicChannel"),value:"PH_Economy_International",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone B",value:"ZoneB"},{label:"Zone C",value:"ZoneC"},{label:"Zone D",value:"ZoneD"}]}]}],vn:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"VN_Standard_Express",children:[{label:"Zone A1",value:"ZoneA1"},{label:"Zone A2",value:"ZoneA2"},{label:"Zone B1",value:"ZoneB1"},{label:"Zone B2",value:"ZoneB3"}]},{label:nf.global.t("deliverChannel.standardChannel58008"),value:"VN_Channel_58008",children:[{label:"Zone A1",value:"ZoneA1"},{label:"Zone A2",value:"ZoneA2"},{label:"Zone B1",value:"ZoneB1"},{label:"Zone B2",value:"ZoneB3"}]},{label:nf.global.t("deliverChannel.standardChannelHongKong58012"),value:"VN_Channel_58012",children:[{label:"Zone A1",value:"ZoneA1"},{label:"Zone A2",value:"ZoneA2"},{label:"Zone B1",value:"ZoneB1"},{label:"Zone B2",value:"ZoneB3"}]}]},{label:nf.global.t("deliverChannel.heavyGoods"),value:"3",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"VN_Standard_Express",children:[{label:"Zone A1",value:"ZoneA1"},{label:"Zone A2",value:"ZoneA2"},{label:"Zone B1",value:"ZoneB1"},{label:"Zone B2",value:"ZoneB3"}]}]}],tw:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.shopeeOverseas711TC"),value:"TW_CHANNEL_7_11",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHiLifeAirFreightTC"),value:"TW_CHANNEL_AIR",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHiLifeSeaFreightTC"),value:"TW_CHANNEL_SEA",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasFamilyTC"),value:"TW_CHANNEL_FAMILY",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHomeDeliveryAirFreightTC"),value:"TW_home_air",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHomeDeliverySeaFreightTC"),value:"TW_home_sea",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasShopeeStoreInstoreTC"),value:"TW_local_shop",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasOKMARTSeaFreightTC"),value:"TW_OK_MART",children:[{label:nf.global.t("common.all"),value:"all"}]}]},{label:nf.global.t("deliverChannel.specialOffer"),value:"2",children:[{label:nf.global.t("deliverChannel.shopeeOverseas711TC"),value:"TW_CHANNEL_7_11",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHiLifeAirFreightTC"),value:"TW_CHANNEL_AIR",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHiLifeSeaFreightTC"),value:"TW_CHANNEL_SEA",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasFamilyTC"),value:"TW_CHANNEL_FAMILY",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHomeDeliveryAirFreightTC"),value:"TW_home_air",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHomeDeliverySeaFreightTC"),value:"TW_home_sea",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasShopeeStoreInstoreTC"),value:"TW_local_shop",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasOKMARTSeaFreightTC"),value:"TW_OK_MART",children:[{label:nf.global.t("common.all"),value:"all"}]}]},{label:nf.global.t("deliverChannel.lightgoods"),value:"4",children:[{label:nf.global.t("deliverChannel.shopeeOverseas711TC"),value:"TW_CHANNEL_7_11",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHiLifeAirFreightTC"),value:"TW_CHANNEL_AIR",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasFamilyTC"),value:"TW_CHANNEL_FAMILY",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.shopeeOverseasHomeDelivery"),value:"TW_CHANNEL_HOME",children:[{label:nf.global.t("common.all"),value:"all"}]}]}],br:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"BR_Expresso_padr\xe3o",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone A",value:"ZoneA"},{label:"Zone A",value:"ZoneA"}]}]},{label:nf.global.t("deliverChannel.specialOffer"),value:"2",children:[{label:nf.global.t("deliverChannel.specialGoodsChannelTC"),value:"BR_Envio_especial",children:[{label:"Zone A",value:"ZoneA"},{label:"Zone A",value:"ZoneA"},{label:"Zone A",value:"ZoneA"}]}]}],id:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"ID_Standar_Ekspres",children:[{label:"Zone A1",value:"ZoneA1"},{label:"Zone A2",value:"ZoneA2"},{label:"Zone A3",value:"ZoneA3"}]},{label:nf.global.t("deliverChannel.buyerSelfPickupChannel"),value:"SG_Shopee_Collection_Point_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.selfPickupLockerChannel"),value:"SG_Pick_Locker_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]},{label:nf.global.t("deliverChannel.onlineSeaShippingChannel"),value:"SG_Doorstep_Delivery_sea_Overseas",children:[{label:nf.global.t("common.all"),value:"all"}]}]}],mx:[{label:nf.global.t("deliverChannel.generalCargo"),value:"1",children:[{label:nf.global.t("deliverChannel.standardChannel"),value:"MX_Estandar_Rapido",children:[{label:nf.global.t("common.all"),value:"all"}]}]},{label:nf.global.t("deliverChannel.specialOffer"),value:"2",children:[{label:nf.global.t("deliverChannel.specialGoodsChannel"),value:"MX_Productos_Especiales",children:[{label:nf.global.t("common.all"),value:"all"}]}]}]})),uQ={site:{label:nf.global.t("productBasicInfo.site"),tips:nf.global.t("productBasicInfo.sitTip")}},cQ=vo(()=>({exchangeRate:{label:nf.global.t("productBasicInfo.currentExchangeRate"),tips:nf.global.t("productBasicInfo.currentExchangeRateTip"),dataType:"percent"},productType:{label:nf.global.t("productBasicInfo.type"),tips:nf.global.t("productBasicInfo.typeTip")},weight:{label:nf.global.t("productBasicInfo.weight"),tips:nf.global.t("productBasicInfo.weightTip")},productCost:{label:nf.global.t("productBasicInfo.purchasePrice"),tips:nf.global.t("productBasicInfo.purchasePriceTip"),dataType:"amount"},freightCost:{label:nf.global.t("productBasicInfo.freightForTheFirstLeg"),tips:nf.global.t("productBasicInfo.freightForTheFirstLegTip"),dataType:"amount"},commissionRate:{label:nf.global.t("productBasicInfo.commissionRate"),tips:nf.global.t("productBasicInfo.commissionRateTip"),dataType:"percent"},transactionRate:{label:nf.global.t("productBasicInfo.transactionRate"),tips:nf.global.t("productBasicInfo.transactionRateTip"),dataType:"percent"},marketingRate:{label:nf.global.t("productBasicInfo.marketingRate"),tips:nf.global.t("productBasicInfo.marketingRateTip"),dataType:"percent"},withdrawRate:{label:nf.global.t("productBasicInfo.withdrawalFee"),tips:nf.global.t("productBasicInfo.withdrawalFeeTip"),dataType:"amount"},activityCost:{label:nf.global.t("profit.activityCost"),tips:nf.global.t("profit.activityCost")},refundRate:{label:nf.global.t("productBasicInfo.returnRate"),tips:nf.global.t("productBasicInfo.returnRateTip"),dataType:"percent"},refundType:{label:nf.global.t("productBasicInfo.commodityHandling"),tips:nf.global.t("productBasicInfo.commodityHandlingTip")},refundAmount:{label:nf.global.t("productBasicInfo.returnFee"),tips:nf.global.t("productBasicInfo.returnFeeTip"),dataType:"amount"},productPrice:{label:nf.global.t("productBasicInfo.productPrice"),tips:nf.global.t("productBasicInfo.productPriceTip"),dataType:"amount"},productDiscount:{label:nf.global.t("productBasicInfo.discount"),tips:nf.global.t("productBasicInfo.discountTip"),dataType:"percent"},profitValue:{label:nf.global.t("productBasicInfo.profit"),tips:nf.global.t("productBasicInfo.profit"),dataType:"amount"}}));nf.global.t("deliverChannel.generalCargo"),nf.global.t("deliverChannel.specialOffer"),nf.global.t("deliverChannel.heavyGoods"),nf.global.t("deliverChannel.lightGoods");const dQ=vo(()=>[{label:nf.global.t("option.discard"),value:1},{label:nf.global.t("option.return"),value:2}]),fQ=vo(()=>[{label:nf.global.t("productBasicInfo.marketingRate"),value:1},{label:nf.global.t("productBasicInfo.marketingAmount"),value:2}]);nf.global.t("profit.profitRate"),nf.global.t("profit.profitValue"),vo(()=>({listingTimeChart:[nf.global.t("listingTimeCharts.listingTime0"),nf.global.t("listingTimeCharts.listingTime1"),nf.global.t("listingTimeCharts.listingTime2"),nf.global.t("listingTimeCharts.listingTime3"),nf.global.t("listingTimeCharts.listingTime4"),nf.global.t("listingTimeCharts.listingTime5")],shopTypeChart:[nf.global.t("shopTypeCharts.shopType0"),nf.global.t("shopTypeCharts.shopType1"),nf.global.t("shopTypeCharts.shopType2")]}));const hQ=vo(()=>[{label:nf.global.t("option.enabled"),value:0},{label:nf.global.t("option.disabled"),value:1}]),pQ=(e,t=window.location.search)=>{let n=((e=window.location.search)=>Object.fromEntries(new URLSearchParams(decodeURIComponent(e))))(t);return"page"==e&&n[e]?+n[e]+1:"page"==e?1:n[e]??null},mQ=(e="",t="",n=!0)=>{if(t.length>0&&n)return pQ(e,t);let r=pQ("keyword",t);if(-1!=location.pathname.indexOf("-cat.")){let e=location.pathname.split("-cat.")[1];return e.split(".")[1]?e.split(".")[0]:e}return r},vQ=()=>window.location.pathname??(new Date).getTime(),gQ=(e=window.location.host,t="site")=>{if(-1!=e.indexOf("shopdora"))return null;let n=!1,r=!1,i="";const a=Object.values(sQ.value).find(t=>(n=-1!==e.indexOf(t.allDomain[0]),r=-1!==e.indexOf(t.allDomain[1]),n||r));return a?(i=n?a.allDomain[0]:a.allDomain[1],"site"===t?a?a.value:null:"shopee"===t?i:a?"https://"+i:null):null},yQ=(e="list")=>{let t=window.location.href;return t.indexOf("sortBy=relevancy")>=0||t.indexOf("sortBy=pop")>=0||-1==t.indexOf("sortBy")?`${e}1`:t.indexOf("sortBy=ctime")>=0?`${e}2`:t.indexOf("sortBy=sales")>=0?`${e}3`:t.indexOf("sortBy=price")>=0?t.indexOf("order=asc")>=0?`${e}4`:`${e}5`:void 0},bQ=(e,t=!1)=>({brand:e.brand??null,image:e.image??null,cateId:e.cateId,catId:e.catId,leafCatId:e.leafCatId,images:e.images??null,itemid:e.itemId??null,price:e.price??null,shopid:e.shopId??null,sold:e.sales30DayText??null,cat_id:e.catId??null,video_info_list:[{default_format:e?.videoInfoList?e?.videoInfoList[0]?.defaultFormat:null,duration:e?.videoInfoList?e?.videoInfoList[0]?.duration:null,thumb_url:e?.videoInfoList?e?.videoInfoList[0]?.thumb_url:null}],historical_sold:e.salesText??null,ctime:e.ctime??null,name:e.name??null,price_max:e.priceMax??null,price_min:e.priceMin??null,liked_count:e.likedCount??null,adsid:e.adsid,page:e.page,index:e.index,shop_name:e.shopName,rating_count:e.ratingCount,rating_star:e.ratingStar,ctimeDay:e.ctimeDay,ctimeM:oJ(e.ctime,"string"),ctimeMNum:oJ(e.ctime),cateChPath:iJ(e.cateId??null,"cateChPath"),is_preferred_plus_seller:e.isPreferredPlusSeller,is_official_shop:e.isOfficialShop,sellerSource:e.sellerSource,sellerSourceTips:"",shopPage:t}),wQ=e=>({itemId:e.itemId??null,monitor:e.monitor??null,monitorCreateTime:e.monitorCreateTime??null,sales:e.salesText??null,sales1Day:e.sales1DayText??null,sales7Day:e.sales7DayText??null,sales30Day:e.sales30DayText??null,salesAmount:e.salesAmount??null,salesAmountLocal:e.salesAmountLocal??null,salesAmountM:e.sales30DayAmount??null,salesAmountMLocal:e.sales30DayAmountLocal??null,salesGrowthRateM:e.salesGrowthRateMText??null}),xQ=e=>({brand:e.brand,itemId:e.itemId,name:e.username??e.shopName,cateChPath:e.cateChPath??null,cateId:e.cateId??null,cateLocalPath:e.cateLocalPath??null,cateName:e.cateName??null,salestMRank:e.salesMRank,sellerSource:e.sellerSource,shelfTime:e.ctimeDay,shelfTimeToNow:e.ctimeDay,username:e.username}),SQ=e=>new Promise((t,n)=>{const r=new Blob([e]),i=new FileReader;i.onloadend=()=>{const e=i.result.split(",")[1];t(e)},i.onerror=e=>n(e),i.readAsDataURL(r)}),_Q=async e=>{try{const t={data:await SQ(e)};return await oQ("/plugin/productList",t)}catch(t){throw t}},kQ=chrome.runtime.getManifest(),AQ=`v${kQ.version}`,CQ=kQ.version;let TQ=null;const OQ=async()=>{try{if(TQ)return TQ;const e=await fetch(chrome.runtime.getURL("/config.json"));return TQ=await e.json(),TQ}catch(kJe){return{}}},IQ=(e,t,n=!1)=>{if(!t)return"";let r="";return r="mx"===e?`https://down-${e}.img.susercontent.com/${t}`:`https://s-cf-${e}.shopeesz.com/file/${t}`,r=r.replace(/cf.shopee.id/g,"down-id.img.susercontent.com"),r=r.replace(/cf.shopee.my/g,"down-ws-my.img.susercontent.com"),r=r.replace(/cf.shopee.th/g,"down-aka-cn.img.susercontent.com"),n&&(r+="_tn"),r};function PQ(e){let t=+new Date-+new Date(1e3*e);return Math.floor(t/864e5)}const EQ=(e,t,n)=>{let r=!0;setInterval(()=>{if("find_similar_product"===t&&-1==window.location.href.indexOf("find_similar_products"))return;let i;if(null!=localStorage.getItem("shopdoraSwitch")&&(r="1"==localStorage.getItem("shopdoraSwitch")),i=document.querySelectorAll(e),0!=i.length)if(r)i.forEach((e,r)=>{if(e.href.indexOf("-i.")>=0){if("shopdora-list"===e?.childNodes[0]?.id)return void e?.childNodes[0].remove();if(!e||!e.href.split("-i.")[1])return;const[r,i]=e.href.split("-i.")[1].split("?")[0].split("."),a=e?.querySelector("#shopdora-list");if(a){if(a.addEventListener("click",e=>{e.preventDefault()}),a.dataset&&a.dataset.itemid==i)return;a.remove()}if("shopList"===t){if((e=>!(!e||!e.querySelector(".shopee-header-section__header__title")||["RECOMMENDED","\u901b\u901b\u8ce3\u5834\u63a8\u85a6\u597d\u7269","\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e41\u0e19\u0e30\u0e19\u0e33\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e38\u0e13","G\u1ee2I \xdd CHO B\u1ea0N","RECOMENDADO","KAMU MUNGKIN SUKA","\u4e3a\u60a8\u63a8\u8350","DISYORKAN UNTUK ANDA"].some(t=>-1!=e.querySelector(".shopee-header-section__header__title")?.innerText.indexOf(t))))(e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode))return}else{if(e.className.indexOf("shop-collection-view__item")>=0)return;if(e&&"shopee-product-rating__main"==e.parentNode.className)return}e.querySelector(".p_r")?e.children[1].style.height="fit-content":e.children[0].style.height="fit-content",n(e,i,r,gQ(window.location.host,"shopee"),e.href)}});else{let e=document.querySelectorAll("#shopdora-list");if(null==e)return;e.forEach((e,t)=>{e.remove()});let t=document.querySelectorAll(".shopdoraPirceList");if(null==t)return;t.forEach((e,t)=>{e.remove()})}},1e3)},MQ=(e,t)=>{let n=!0;setInterval(()=>{null!=localStorage.getItem("shopdoraSwitch")&&(n="1"==localStorage.getItem("shopdoraSwitch"));let r=document.querySelector(e),i=document.querySelector("#hlistFiltation");if(n){if(null!=i)return;null!=r&&t(r)}else null!=i&&i.remove()},1e3)},DQ=(e,t)=>{let n=!0;setInterval(()=>{let r;if(null!=localStorage.getItem("shopdoraSwitch")&&(n="1"==localStorage.getItem("shopdoraSwitch")),r=document.querySelectorAll(e),0!=r.length)if(n)r.forEach((e,n)=>{if(e.className.indexOf("shop-collection-view__item")>=0)return;const r=e?.querySelector("a");if(!r)return;if(!r.querySelector("div")||r.querySelector(".shopdora-checklist"))return;r.querySelector(".justify-between")?r.querySelector(".justify-between").style.position="relative":r.childNodes[0].childNodes[0].style.position="relative";const i=(e=>{const t={shopId:"",itemId:""},n=e.split("-i.");if(n[1]){const e=n[1].split("?")[0].split(".");t.itemId=e[1]||"",t.shopId=e[0]||""}else{const n=e.split("?")[0].match(/product\/(\d+)\/(\d+)$/);n[2]&&(t.shopId=n[1],t.itemId=n[2])}return t})(r.href);i.itemId&&"0"!==i.itemId&&t(r.querySelector("div").querySelector(".justify-between")??r.childNodes[0].childNodes[0],i.itemId,i.shopId,gQ(window.location.host,"shopee"),r.href)});else{let e=document.querySelectorAll(".shopdora-checklist");if(null==e)return;e.forEach((e,t)=>{e.remove()})}},1e3)},RQ=e=>{let t=e+"=",n=decodeURIComponent(document.cookie).split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return""},LQ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABygAwAEAAAAAQAAABwAAAAAtjBMAwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAoRJREFUSA3tlT1oU1EUx8//pX2kSdQ2aaqpHzQ4pIOTChU/gigOOrkIjkkDpSJ0c3JxcHcQpUTQsSCIW3ERqoilQ8eqXRTFqDWtUNvGNMm7x3NvSYyaNGruIOId3rsf5/1/95x73rlE/1uLCPDo9j4vFZ7gzK5wC1OzjF8xambDmWhSed4jESmSQ3Pw+47jZn61mb2ebwuoBVQ6nCemiHTXCTyPEJK4/umzXmvUnEaTvzMHH5JivwyQS+QkeJWm+cKenmYabXuohXm4N8FKTUt3GwFlYn6NYNdh3Mgt/Qi2AjTQkb69XKrMyCF1M5MH4hz87iGML3ysh1oDGujojgEulmYkvDpjlYAX4DpDyC6+r0KtAg003b+buag97QVLuInyCPgS1ew1QH0GSqkX1V3YfIu3nnjqc9y4i+xseSNLmQeFvGITVNXSMNMvvTml3x1mEPA/obXCKxCUGdt8gEMg5zbu5Cdtyv69WrUs5XTPVYn3eflxN62Ff+QKkwPXfwLZd4vmDHk4elop77IRkzy23UxCVtaPie79jSzt6JzTEFnwbMO0nviwRdLzue5/C+lIf4DLxWeyGJMfVqfyCjrdo7j1wWxGG9totdtC4ltAoOuA7OClKcBSiLlceipF4aANUFWjBtQTurojRENSBsV9FMXbrXILTHEqquNvpX0H1Ir68kR38IhcMbMyKgg0KMX/gU4sG8SfgAZ67e0XxGMn5Yp5LCFeE2hAsvgeZyJn24XWkqaREN895+PJhxOydkZ7KsYlSaT9tHNwHlemKo2+aTW3KVB/zMxQqUhWqn5GhsvwYx/Gl3KthJutNwxpvTEAduKxi3CcSxgYi7QDq9f9d/tfAayj0faXvwjEAAAAAElFTkSuQmCC",NQ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABACAYAAACjgtGkAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAARKADAAQAAAABAAAAQAAAAAA1WWV/AAADo0lEQVR4Ae2avW4TQRCAd85pTGGTIFFRUIYfUUNBjZCgJHXyBgQqJAQCUdBAeIOkhhIkRE0BNUoIJQUVEgl2gZv4hplz4tsb33nOvlubhNnGO3uenbnvdvd25tY5K0bACBgBI2AEjIARMAJGwAgYgeNHAMq4jHfPn4473Yfg4KZzuIzoIqkHAF+jzV+X/PZ47cwOIl702/z6JDoALnYOvqHD91G79Qxeff/t91VXfeTGZMcMAzvdjw7dfb65PBhSJ4TMdhO47Af5w36FsKMC4ZFBzlwOYXzaPtkf9mta/XF6KpDBNBnXxXyuhfJrQb8dXM78B6KNCONPmbZEaHRlG7jGPXAHLdmeyuV1YoiuOYzXU13hV3qhUk1dVPurS+hboCG1Alt7b/y2WdRxdekOraqvfVuNrT3Vf///ZerqlCnTyUn6jwERT9OAGBBBQIjqW4Z3k1md0TdD9nogCRa64PrCl0C2rFsjUEig9vf4kSVcP9eM93uPwOFtB+7CPGKgJCBEt4sO3kaLzaew8aN35F/RbxAgDAP3/3ymHd2VIsOzbqcb/QKLp65qUNRFlUN43/lkO77584PfJutxp/eY2v4ZGOwfPxykEUvVBywXFRWIzGeMj00GZiDGW5n9fpH1Gbcn07cqkKl8pjWDH8mwFAaEw3+oldHgznGWamWc4ogO+6UUdYQo+rmX5QLK0XHVgJCCO06ZedEu5c+UIFPqSL/ynLetu6BiQAyIICBEGyECiLqo/m/BnQpEfmsRQGcmwmAzmPnuE8K4TRlB1YAYEEFAiOoaMk1wJ2zUIuLa2Rvo+i/9zkKsbyqQaYI73+na6njQovCo8MN5XXZsDREkDYgBEQSEaCNEAFEXVU7U+nkETrpwnmGk8HeTgtTiJDr8NnG0gMr+D5M9w+bBiaKhWFtFBcLHmCgjma7udCRBJmrYm8OPSPlb6wl0+NWa+zZBspop7Ff9RZ0yfKarfrPVewzllwokOeAGbrv6LdTXA02Xbfarvh7TnlQgfNoP2q3rNCdecCog1NxNXcqvsd0kFcF+kD+hTiEG+VB1nE8dqSMk/3md3FYDIp6tATEggoAQbYQYEEFAiDZCBJASsYzQKCHyJqpUQFiiryp/mSYgDAKEjkLs0o2kgV5BcFflZkvpyoBw4NdY1SBTBiN4N9bqnC7yWTPNdBAgUbv5hM90acZneZ394YN3ms0gQPhgGx9woyzJc3JkZ64BIdlP/Chx4I5h/QVCszXN6wA4IwAAAABJRU5ErkJggg==",jQ={class:"imgsTab"},FQ={class:"imgTab"},zQ={class:"putImage"},BQ=["onMousemove","onClick"],VQ=["src"],HQ={key:0,style:{display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",height:"16px","max-width":"110px","line-height":"16px","word-break":"break-all",overflow:"hidden","font-family":"PingFangSC-Regular","font-weight":"400","font-size":"12px",color:"rgba(0, 0, 0, 0.6)","text-align":"center"}},WQ=yr({__name:"specification",props:{images:{type:[Array],default:()=>[]},skuImages:{type:Array,default:()=>[]}},emits:["imagePut","close"],setup(e,{emit:t}){const{t:n}=Zd(),r=e,i=Et([]),a=Et("n"),o=t,s=Et(""),l=e=>{s.value=e};ta(()=>a.value,()=>{"n"==a.value?i.value=r.images:i.value=r.skuImages},{immediate:!0});const u=()=>{o("close")};return(t,r)=>{const c=MR,d=ER;return Aa(),Ia("div",jQ,[La("div",{class:"imgButton",onClick:u},[La("button",null,[Na(Lt(av),{size:"20px"})])]),La("div",FQ,[Na(d,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=e=>a.value=e)},{default:Wn(()=>[Na(c,{value:"n",label:Lt(n)("info.mainImg"),destroyOnHide:!1},null,8,["label"]),0!=e.skuImages.length?(Aa(),Pa(c,{key:0,value:"sku",label:Lt(n)("sku.skuImage"),destroyOnHide:!1},null,8,["label"])):Va("v-if",!0)]),_:1},8,["modelValue"])]),La("div",zQ,[(Aa(!0),Ia(ba,null,Gr(i.value,e=>{return Aa(),Ia("div",{class:"img",style:V((t=e.name,{height:t!==n("info.mainImg")?"136px":"120px"})),key:e.url,onMousemove:t=>l(e.url),onMouseleave:r[1]||(r[1]=e=>l("")),onClick:t=>(e=>{o("imagePut",e)})(e.url)},[La("img",{src:e.url,alt:"",class:G({borColor:e.url==s.value})},null,10,VQ),e.name!=Lt(n)("info.mainImg")?(Aa(),Ia("span",HQ,ne(e.name),1)):Va("v-if",!0)],44,BQ);var t}),128))])])}}});var UQ;const XQ="undefined"!=typeof window,GQ=()=>{};function YQ(e){return!!ce()&&(function(e){oe&&oe.cleanups.push(e)}(e),!0)}function KQ(e){var t;const n=Lt(e);return null!=(t=null==n?void 0:n.$el)?t:n}XQ&&(null==(UQ=null==window?void 0:window.navigator)?void 0:UQ.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const qQ=XQ?window:void 0,ZQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},JQ="__vueuse_ssr_handlers__";function QQ(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:a=.1,window:o=qQ}=n,s=o&&"IntersectionObserver"in o;let l=GQ;const u=s?ta(()=>({el:KQ(e),root:KQ(r)}),({el:e,root:n})=>{if(l(),!e)return;const r=new IntersectionObserver(t,{root:n,rootMargin:i,threshold:a});r.observe(e),l=()=>{r.disconnect(),l=GQ}},{immediate:!0,flush:"post"}):GQ,c=()=>{l(),u()};return YQ(c),{isSupported:s,stop:c}}var $Q,e$;ZQ[JQ]=ZQ[JQ]||{},(e$=$Q||($Q={})).UP="UP",e$.RIGHT="RIGHT",e$.DOWN="DOWN",e$.LEFT="LEFT",e$.NONE="NONE";const t$={class:"supply"},n$={class:"left"},r$={class:"head"},i$={class:"name"},a$={key:0,class:"supplyPrice"},o$={style:{"margin-left":"8px",cursor:"pointer"}},s$={class:"img"},l$=["src"],u$={key:1,class:"button-img"},c$={class:"right"},d$={class:"tab"},f$={key:0,class:"shop-loading"},h$={key:0,class:"visit"},p$={class:"icon"},m$={class:"text"},v$={class:"button"},g$={key:1,class:"visit"},y$={class:"icon"},b$={class:"text"},w$={class:"button"},x$={key:1,class:"shop-loading"},S$={class:"visit"},_$={class:"icon"},k$={class:"text"},A$={class:"button"},C$={key:2,class:"shop-loading"},T$={key:3},O$={class:"shopList"},I$={class:"shop"},P$=["onClick"],E$=["src"],M$={class:"name"},D$={class:"price",style:{display:"flex","justify-content":"space-between","align-items":"center"}},R$=["onClick"],L$={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"12px"}},N$={class:"store"},j$=yr({__name:"ImgSupply",props:{site:String,itemid:String||Number,productShopeeList:Object,searchType:String,url:String},setup(e){const{t:t}=Zd(),n=e,r=Et(!0),i=Et(),a=Et([]),o=Et(),s=Et([]);const l=Et(JSON.parse(sessionStorage.getItem("shopdoraExchangeRate")??JSON.stringify({br:.66763,tw:4.3972,sg:.1866,th:4.9639,ph:7.7839,vn:3337.5,id:2108,mx:2.35029,my:.64333})));let u=document.querySelector("picture img");Et({min:"22",max:"33",sort:"1"}),ta(()=>n.productShopeeList,e=>{e&&e.itemid&&"tag"!==n.searchType?(i.value=JSON.parse(JSON.stringify(e)),-1==i.value.price&&(i.value.price=i.value.price_min??0),i.value.price=(i.value.price/1e5).toFixed(2),i.value.priceUnit=sQ.value[n.site].localUnit+i.value.price,i.value.priceUnitCNY=t("common.currency")+(i.value.price/l.value[n.site]).toFixed(2),i.value.images.map(e=>{a.value.push({name:t("info.mainImg"),url:`${u.src.split("/file/")[0]}/file/${e}`})}),i.value.tier_variations&&i.value.tier_variations[0]&&i.value.tier_variations[0].images&&i.value.tier_variations[0].images.map((e,t)=>{i.value.tier_variations[0].options.map((n,r)=>{t==r&&s.value.push({name:n,url:`${u.src.split("/file/")[0]}/file/${e}`})})}),o.value=a.value[0].url):o.value=n.url},{deep:!0,immediate:!0});const c=Et(!1),d=Et(!1),f=Et("1688");let h=Et([]),p=Et([]),m=Et(0),v=Et(0),g=Et(1),y=Et(""),b=Et(!1),w=Et(!1);const x=e=>{oQ("/image/query",{imageId:e,beginPage:g.value,pageSize:40}).then(e=>{g.value++,e.data.map(e=>{h.value.push({url:e.url+`?kj_agent_plugin=shopdora&token=${e.token}`,imageUrl:e.imageUrl,name:e.name,price:e.price,hoverName:null,city:e.address,saleQuantity:e.saleQuantity})})})},S=async(e,t="1688")=>{const n=new Image;n.setAttribute("crossOrigin","anonymous");const r=e;window.console.log(e),n.src=r,n.onload=()=>{var e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0,n.width,n.height);const r=e.toDataURL("image/jpeg",.8).split("data:image/jpeg;base64,")[1];"1688"==t&&""==y.value&&oQ("/image/query/upload",{data:r}).then(e=>{y.value=e,x(e)})}},_=(e,t,n)=>{const r=setInterval(()=>{chrome.runtime.sendMessage({greeting:"cookiePdd"},function(i){if(i.map(e=>{0===e.name.indexOf("mp")&&(j.value=e),N.value[e.name]=e}),N.value.SUB_PASS_ID){let i={};Object.values(N.value).map(e=>{i[e.name]=e.value}),i.mpKey=j.value.name??"aa",i.mpVal=j.value.value??"bb",i.imgUrl=t,i.pageNo=e,i.sub_pass_id=N.value.SUB_PASS_ID.value,i.visitor_pass_id=N.value.VISITOR_PASS_ID.value,i.rn=1==e?"":n,clearInterval(r),oQ("/plugin/pddFigureSources/getData",i).then(e=>{let t=JSON.parse(JSON.parse(e).data).result;t&&(t.goodsList.map(e=>{p.value.push({url:`https://pifa.pinduoduo.com/goods/detail/?gid=${e.goodsId}`,imageUrl:e.goodsImgUrl,name:e.goodsName,price:(e.goodsWholeSalePrice/100).toFixed(2),hoverName:e.mallName,city:e.mallGoodsRegion,saleQuantity:e.salesTipAmount})}),w.value=!1,v.value=1e3,A.value=t.rn)}).catch(e=>{d.value=!0})}})},1e3)},k=Et(""),A=Et(""),C=Et(1),T=Et(null),O=Et(!1);QQ(T,([{isIntersecting:e}],t)=>{O.value=e,O.value&&("pdd"===f.value?(C.value+=1,_(C.value,k.value,A.value)):"1688"===f.value&&x(y.value))});const I=()=>{"1688"==f.value?(c.value=!1,S(o.value,f.value)):"pdd"==f.value&&(d.value=!1,C.value=1,_(C.value,k.value,A.value))},P=Et({pdd:{title:t("msg.pddLogin"),button:t("msg.pddLoginButton")},pddVerify:{title:t("msg.pddVerify"),button:t("msg.pddVerifyButton")}}),E=e=>{"1688"==e&&window.open("https://www.1688.com/","_blank"),"pddVerify"==e&&(window.open("https://pifa.pinduoduo.com/","_blank"),M()),"pdd"==e&&window.open("https://pifa.pinduoduo.com/","_blank")},M=()=>{const e=setInterval(()=>{chrome.runtime.sendMessage({greeting:"cookiePdd"},function(t){if(t.map(e=>{0===e.name.indexOf("mp")&&(j.value=e),N.value[e.name]=e}),N.value.SUB_PASS_ID){const t=new Image;t.setAttribute("crossOrigin","anonymous");const n=o.value;t.src=n,t.onload=()=>{var n=document.createElement("canvas");n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0,t.width,t.height);const r=n.toDataURL("image/jpeg",.8).split("data:image/jpeg;base64,")[1];clearInterval(e);let i={};Object.values(N.value).map(e=>{i[e.name.toLowerCase()]=e.value}),i.mpKey=j.value.name??"aa",i.mpVal=j.value.name??"bb",i.file=r,i.sub_pass_id=N.value.SUB_PASS_ID.value,i.visitor_pass_id=N.value.VISITOR_PASS_ID.value,oQ("/plugin/pddFigureSources/uploadImg",i).then(e=>{let t=JSON.parse(e);t.imgUrl?(w.value=!1,F.value=!1,k.value=t.imgUrl,v.value=1e3,C.value=1,_(C.value,k.value,A.value)):(F.value=!0,w.value=!0,M())})}}else w.value=!0})},1e3)},D=Et(!1),R=()=>{D.value=!0},L=e=>{o.value=e,D.value=!1,h.value=[],p.value=[],g.value=1,y.value="",k.value="",A.value="",C.value=1,"pdd"===f.value?M():"1688"===f.value&&S(e,f.value)},N=Et({}),j=Et({}),F=Et(!1);ta(()=>f.value,()=>{p.value=[],h.value=[],v.value=0,m.value=0,w.value=!1,b.value=!1,k.value="",A.value="",C.value=1,"1688"===f.value&&S(o.value,f.value),"pdd"===f.value&&M()},{deep:!0,immediate:!0});return(e,l)=>{const u=wD,m=VO,v=MR,g=ER,y=CO;return Aa(),Ia("div",t$,[La("div",n$,[La("div",r$,ne(Lt(t)("tools.imagesSupplyPage")),1),La("div",i$,ne(i.value?.name),1),"tag"!==n.searchType?(Aa(),Ia("div",a$,[La("span",null,ne(r.value?i.value?.priceUnit??"":i.value?.priceUnitCNY??""),1),La("span",o$,[Na(u,{content:r.value?Lt(t)("currency.switchCurrency"):Lt(t)("currency.switchToTheCurrency")},{default:Wn(()=>[Va(' <SwapIcon @click="unitType = !unitType" /> '),La("span",{style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:l[0]||(l[0]=e=>r.value=!r.value)},l[5]||(l[5]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["content"])])])):Va("v-if",!0),La("div",s$,[La("img",{src:o.value,alt:""},null,8,l$),D.value?(Aa(),Pa(WQ,{key:0,onClose:l[1]||(l[1]=e=>D.value=!1),onImagePut:L,skuImages:s.value,images:a.value,class:"listSpecification"},null,8,["skuImages","images"])):Va("v-if",!0)]),"tag"!==n.searchType?(Aa(),Ia("div",u$,[Na(m,{onClick:R},{default:Wn(()=>[za(ne(Lt(t)("msg.reselectImg")),1)]),_:1})])):Va("v-if",!0)]),La("div",c$,[La("div",d$,[Na(g,{modelValue:f.value,"onUpdate:modelValue":l[2]||(l[2]=e=>f.value=e)},{default:Wn(()=>[Na(v,{value:"1688",label:"1688",destroyOnHide:!1}),Na(v,{value:"pdd",label:Lt(t)("common.pdd"),destroyOnHide:!1},null,8,["label"]),Va(' <t-tab-panel value="1688kj" label="1688\u8de8\u5883" :destroyOnHide="false"> </t-tab-panel>\n                    <t-tab-panel value="taobao" label="\u6dd8\u5b9d" :destroyOnHide="false"> </t-tab-panel> ')]),_:1},8,["modelValue"])]),"pdd"==f.value&&0==Lt(p).length&&Lt(w)?(Aa(),Ia("div",f$,[F.value?Va("v-if",!0):(Aa(),Ia("div",h$,[La("div",p$,[Na(Lt(hv),{size:"44px"})]),La("div",m$,ne(P.value[f.value].title),1),La("div",v$,[La("button",{onClick:l[3]||(l[3]=e=>E(f.value))},ne(P.value[f.value].button),1)])])),F.value?(Aa(),Ia("div",g$,[La("div",y$,[Na(Lt(hv),{size:"44px"})]),La("div",b$,ne(P.value.pddVerify.title),1),La("div",w$,[La("button",{onClick:l[4]||(l[4]=e=>E("pddVerify"))},ne(P.value.pddVerify.button),1)])])):Va("v-if",!0)])):"1688"==f.value&&0==Lt(h).length&&c.value||"pdd"==f.value&&0==Lt(p).length&&d.value?(Aa(),Ia("div",x$,[La("div",S$,[La("div",_$,[Na(Lt(hv),{size:"44px"})]),La("div",k$,ne(Lt(t)("error.queryFailRetry")),1),La("div",A$,[La("button",{onClick:I},ne(Lt(t)("msg.retry")),1)])])])):"1688"==f.value&&0==Lt(h).length&&!Lt(b)||"pdd"==f.value&&0==Lt(p).length&&!Lt(w)&&!F.value?(Aa(),Ia("div",C$,[Na(y,{size:"50px",text:Lt(t)("common.queryProduct")},null,8,["text"])])):"1688"==f.value&&Lt(h).length>0||"pdd"==f.value&&Lt(p).length>0?(Aa(),Ia("div",T$,[Va(' <div class="sortPrice">\n          <div class="sortPriceItem">\n            <span>\u6392\u5e8f:</span>\n            <t-select width="130px" />\n          </div>\n          <div class="sortPriceItem">\n            <span>\u4ef7\u683c:</span>\n            <t-input width="130px" />\n            \uff5e\n            <t-input width="130px" />\n          </div>\n          <t-button style="margin-left: 12px">\u786e\u5b9a</t-button>\n        </div> '),La("div",O$,[La("div",I$,[(Aa(!0),Ia(ba,null,Gr("1688"==f.value?Lt(h):Lt(p),e=>(Aa(),Ia("div",{class:"shopItem",key:e},[La("div",null,[La("div",{class:"img",onClick:t=>{return n=e.url,oQ("/user/statistics",{tag:"1688"}),void window.open(n,"_blank");var n}},[La("img",{src:e.imageUrl,alt:""},null,8,E$)],8,P$),La("div",M$,ne(e.name),1),La("div",D$,[La("span",null,[za(ne(Lt(t)("common.currency")+" "+e.price),1),La("span",{style:{color:"#fd6012","padding-bottom":"2px","margin-left":"5px",cursor:"pointer"},onClick:t=>(e=>{const{toClipboard:t}=nJ();t(e).then(()=>{WE.closeAll(),WE.success("\u590d\u5236\u6210\u529f",1e3)}).catch(()=>{WE.closeAll(),WE.error("\u590d\u5236\u5931\u8d25",1e3)})})(e.url)},[Na(u,{content:Lt(t)("common.clickCopyLink")},{default:Wn(()=>l[6]||(l[6]=[La("img",{src:NQ,style:{width:"16px",height:"16px"}},null,-1)])),_:1,__:[6]},8,["content"])],8,R$)]),La("span",L$,ne(Lt(t)("info.soldNow")+e.saleQuantity),1)]),La("div",N$,[La("span",null,ne(e.hoverName??""),1),La("span",null,ne(e.city),1)])])]))),128))]),La("div",{ref_key:"target",ref:T,class:"load-more"},[Na(y),La("span",null,ne(Lt(t)("common.loading")),1)],512)])])):Va("v-if",!0)])])}}}),F$={__name:"ImageSearchTag",setup(e){const t=Et(!1),n=Et(0),r=Et(0),i=Et(""),a=Et(null),o=Et(!1),s=Et(yi("imagesSupply",!1));vo(()=>RJ.getters["user/isLogin"]);let l=Et(yi("site",""));const{t:u}=Zd(),c=(e,t="imageSearchTag",n=null)=>u(`style.${t}.${e}`,n),d=e=>{if("1"===localStorage.getItem("shopdora-disabled"))return void v();if(e.target.classList.contains("search-tag"))return;if(s.value)return void(t.value=!1);let n=null;if("IMG"===e.target.tagName&&!e.target.hasAttribute("search-image-disable")){const t=e.target,r=new URL(t.src,window.location.href).href;if(!f(t)&&h(t,r))return n=t,void p(t)}const r=e.pageX,i=e.pageY;document.querySelectorAll("img").forEach(e=>{if(e.hasAttribute("search-image-disable"))return;const t=e.getBoundingClientRect(),a=t.left+window.scrollX,o=t.top+window.scrollY;if(r>=a&&r<=a+t.width&&i>=o&&i<=o+t.height){const t=new URL(e.src,window.location.href).href;if(!f(e)&&h(e,t))return n=e,void p(e)}}),n||v()},f=e=>{if(!e.hasAttribute("alt"))return!1;const t=e.getAttribute("alt");return!(!window.location.host.includes("shopee")&&!window.location.host.includes("xiapi")||t)||"custom-overlay"===t},h=(e,t)=>e.width>100&&e.height>100&&!/^data:(.*?);base64,/.test(t)&&e.width<800&&e.height<800,p=e=>{const o=e.getBoundingClientRect();n.value=o.right-30,r.value=o.top+o.height/2,e.classList.contains("pointer-events-none")&&e.classList.remove("pointer-events-none"),i.value=new URL(e.src,window.location.href).href,a.value=e,t.value=!0},m=()=>{a.value.setAttribute("search-image-disable",!0),v()},v=()=>{t.value=!1,a.value=null},g=()=>{if(null==a.value)return;let e=a.value.src;window.location.host.includes("temu")&&e.includes("?")&&(e=e.split("?")[0]),y(e)},y=e=>{const t=new URL("https://air.1688.com/app/1688-global/main-site-channel/landing-page.html"),n={bizType:"selectionTool",customerId:"xiaduola",outImageAddress:e},r=Object.entries(n).reduce((e,[t,n])=>(e.set(t,n),e),new URLSearchParams).toString();t.search=r,window.open(t.toString())};return Er(()=>{window.addEventListener("mousemove",d),chrome.storage.local.get("shopdora-disabled",e=>{window.console.log("result",e),localStorage.setItem("shopdora-disabled",e["shopdora-disabled"]+"")})}),Lr(()=>{window.removeEventListener("mousemove",d)}),(e,i)=>{const d=JZ;return Aa(),Ia(ba,null,[Va(" \u60ac\u6d6e\u6309\u94ae "),La("div",{id:"shopdora-search-tag",class:"search-tag",style:V({left:`${n.value}px`,top:`${r.value}px`,display:t.value?"block":"none",pointerEvents:t.value?"auto":"none",position:"fixed"}),onClick:g},[La("div",{class:"icon-container",onMouseenter:i[0]||(i[0]=e=>o.value=!0),onMouseleave:i[1]||(i[1]=e=>o.value=!1),style:V({width:o.value?c("searchTagWidth"):"30px",display:"flex",position:"absolute",right:"0",top:"0",alignItems:"center",transition:"width 0.3s ease"})},[i[4]||(i[4]=La("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHSUlEQVR4Aeyaf6gVRRTH7ytFoqgo/CMwkxKEDKMiTZCQjPyjKCSMigxCSrBSUox+opFPw8hSMjCKlIKigtD+iqgkJFMpKaiQDMQM/ygkBP+QzNfns+y8tufu3d27c+093n2c7z2zM2fOnDl7ZvfM7DurNcr/eg4Y5QHQ6kVALwJGuQd6S2CUB0D9h+DAwMBYMBHMBLMLMIv6S2I5F13jQdFY1mvLZGTG1R2z1hJggPMZYD14vwI2ID8JuUaEjiko2AyqjLke+fHIVqbKDkDx7Wj9DjwCZoAJwMHy4N2fT/t9oCmpZx5K8sYJddpyDTKLwZ7UVorlVMkBKHSgDaire0dP0Kcp1dWhjUaf0Vo6dqkDmLzrahWaVAwbpD8pHQIHc7Cfuq3gXdCU1PEmSg6AvLGs+522LGlrP7aPzVbmlUsdQKdLwUyQpW+5uKsEy/r6+g4j04hSHctQUjbe18hk6XouXIqwYqriAMNfBC16ezmGfQp2g705+J66o6FDU46uY2AfyBvLuh2M8RT4AwSaSEHAiqmKA1wCImhxYiJcDxfujRHBnjEUBOxfGlqq4oChff6mQsCGFQ1gjYBVp04cUF37CJA8Yw7giTwOTAFzwDxwJ7gNzACla7Vbvuy6A5icEzeJeoNJFGZzyK0Fk5E5o9Q1BzCZMWAWs/EJvQ1uVjgNfhHw4eTY51D27ptZPkH5Z/qYzpr+ctl90ohujXI3ireAG0AdehTht3BE02g4iR4BK6YqDviB7jtBoF0UfgW5hOHuFu+n8W1wBQhkPzPK6VScB8zSLobfATYCs8pTcKPDxGs7uq7juippk2MEeW3+JVwU8VIHkHz4bn0SBc+Cx8Eq6o7Bi0jjV2YazeVf4/pe0E9fE5fj8JPgKNhO/XKwAHwCArkM1uGEbA4S2k7j6NEmHayNia3UHTlNcEhFqQOUR9F+sBq8CArTW4z17vXT53IgHefnYbCUfgdBbkhaD75Ezl2fDlFO226ibkmql2J7QsdhoI3a6h6hfQdaHQQWjVzvQoVO4nUKWzHKMsX2hJzRYt6/LyPpwzO7lDJNzYvRHMBdMlSXYJJRAGvt4ecVJlVp8sgmhLzr1jAO/VwKbmyS9tg/0RyAYW5BNZZiQq7nwuWSSBT/+DD7MW3WsXPTcnQW0wFuPUUw8mPupk/1cF2Z08+loANDn7CswnU0HtMBnsCIYJyhHMqd8BAB9vVMQh4dMR1gqIrESO6ir6Wk3OGPURC6nh0KsXlMB2iwSGzkoZg9REnqav5ko6ljZ5aNGdMBnsaIMKYJUSh3wt1HhH7Z5RDqovCYDvCJL4Jhc4mCwSURKqvwtN/sjKxnkJnLeMVoDmDNm8t/njHNLXDtKGDy5hFmj571q87jN7NDy9ERzQGpZR+mXOYEVjKhulFg0vOQClKYFYr0Mi6L6gCiwFB9GRNDFmcYv4cTwt6ApnxCJpwfeHYQEiofqm6+jIL8jg1rozogtWUTPHtGfyvX7u/9YGp4c/lfYvI+8R+j1i10eHvoRM8TsroQiUvRHUAUmAA9gJk/ATNB9/03Uv4CfMNk14CFYD5YDJy0Zw7raDedhrWcvBspo+kyK7qF6A7QUJzgZyyd4KGEVcK775GYZwvhfNBocbfn80IZYdh7fuAhyQoqNuGk/3c3iAGTwDNgBcgai335hBN203ILMLS/gntXYYXkOtdhNyPhVx4/xi6k7EZoG+OWOgGZCUAbtTU8R1BRTKURgELX5BpUPA8M09XUebDJZXvCCd5N7+Q9SD4I3gGGe8js5HupUyb59kcfnTDUWVORaRsJ2ORzxBMhbdRWT5m1na7FVOoAuupJn+YUE3JnVikKlGZCp8AhsAUsAFeBC4Akn07BE6PP4MkRFlzHeUTmV2HViLJIcMOUzTvMJHWcfQtRxQGuXRGU+F4X4borHCeEs8jsttgJ6YhoY1ZxQLTB6ipKnRAiwfPFjdT5gKyrqlB+WDtAq5lwiARPjp+zLiaGvQOcrE4Am4FvCquiYUQ4oM5s68p24gD7iLpjdVveUyNRa5wqE/GVJIJi37ciXA8Xbm4igj3aLMJ1Lq/igN/oKWAJXcjvCyQe/ofmNPjUAkRzEvrPBUXjaMMcbFoLsomPD09BdTFVcYDJidlaVsu1XBR+60/b/MxdOWGiTy4xcXW8RGPZeCZoiA2S3xb8YDpYkVcodQBP3r/o+DQY+q1Nb5slXklbHszjTYFpbkTqWISGvDGs04Zs6CPa0lbPEaIsgRZOMGdf2mq1VNyq8RcjY6yrQxtNrUvD33mURoBCAid4Lue3fTMxj6g8AHWQInxEvw9AU3IDpR6XYtFYtrn7fJXBrk5tpVhOlR2gKhRrgF9vk50bde34IuT9l1nEOid0JHcUDe3GCm3+d6rRing1quUAVWLQCXAA7AI72kBn2aUxGOMI2AmKxrPNHafPq1rj1XZALe0jQLjngBFwk7pqYi8CuureEaC8FwEj4Ca1NbFp4z8AAAD//1G37tIAAAAGSURBVAMAGMynnzqM38EAAAAASUVORK5CYII=",alt:"",style:{width:"24px",height:"24px",opacity:1,transition:"all 0.3s ease",verticalAlign:"middle"}},null,-1)),Xn(La("span",{class:"tag-text",style:V({marginLeft:o.value?"3px":"0px",opacity:o.value?1:0,transition:"opacity 0.3s ease",fontSize:"13px",fontFamily:"PingFang SC"})},ne(Lt(u)("imageSearchTag.searchTag")),5),[[Xo,o.value]]),Na(Lt(av),{style:{width:"16px",height:"16px"},onClick:m,"stroke-color":"#f04d47","stroke-width":2})],36)],4),s.value?(Aa(),Pa(d,{key:0,"t-drawer":"",class:"history-trend-drawer-ImgSupply",visible:s.value,"onUpdate:visible":i[2]||(i[2]=e=>s.value=e),preventScrollThrough:!1,footer:!1,closeBtn:!0,destroyOnClose:"",size:"95vh",onClose:i[3]||(i[3]=e=>s.value=!1),placement:"bottom"},{default:Wn(()=>[Na(j$,{site:Lt(l),itemid:null,productShopeeList:null,searchType:"tag",url:a.value.src},null,8,["site","url"])]),_:1},8,["visible"])):Va("v-if",!0)],64)}}},z$="data:image/png;base64, ",B$={myRegionInfo:{label:"",value:"",regex:""},areaOptions:bt([])},V$=yr({__name:"loginCode",emits:["submit"],setup(e,{emit:t}){const n=Et({mobile:"",password:"",vcCode:"",enableQuickSignIn:!0,smsCountryOrRegionEn:"86"});let{myRegionInfo:r}=B$;n.value.smsCountryOrRegionEn=r.label;const i=bt(B$.areaOptions),a=Et(()=>Na(iB,{bordered:!1,autoWidth:!0,modelValue:n.value.smsCountryOrRegionEn,"onUpdate:modelValue":e=>n.value.smsCountryOrRegionEn=e,options:i,onChange:o},null)),o=e=>{r=i.find(t=>t.value===e),l.value.validate({fields:["mobile"]})},s={mobile:[{required:!0,message:"\u624b\u673a\u53f7\u5fc5\u586b",type:"error"},{validator:e=>new RegExp(r.regex).test(e),message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7",type:"error"}],vcCode:[{required:!0,message:"\u9a8c\u8bc1\u7801\u5fc5\u586b",type:"error"},{min:4,message:"\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef",type:"error"}]},l=Et(null),u=Et(!1),[c,d]=((e=60)=>{let t;Lr(()=>{clearInterval(t)});const n=Et(0);return[n,()=>{n.value=e,t=setInterval(()=>{n.value>0?n.value-=1:(clearInterval(t),n.value=0)},1e3)}]})(),f=async()=>{!0===await l.value.validate({fields:["mobile"]})&&(c.value>0||(u.value=!0,oQ("/user/sendVCode",{mobile:n.value.mobile,smsCountryOrRegionEn:r.value}).then(e=>{d()}).catch(e=>{}).finally(()=>{u.value=!1})))};Er(()=>{});const h=t,p=async({validateResult:e})=>{if(!0===e){const e={mobile:n.value.mobile,vcCode:n.value.vcCode,enableQuickSignIn:n.value.enableQuickSignIn,smsCountryOrRegionEn:r.value};h("submit",e)}};return(e,t)=>{const r=eL,i=oB,o=nG,d=VO,h=tG;return Aa(),Pa(h,{ref_key:"form",ref:l,class:"login-form",data:n.value,rules:s,"label-width":"0",onSubmit:p},{default:Wn(()=>[Na(o,{name:"mobile"},{default:Wn(()=>[Na(i,{prepend:a.value},{default:Wn(()=>[Na(r,{autocomplte:"on",name:"username",modelValue:n.value.mobile,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value.mobile=e),placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7",style:{width:"100%",display:"inline-block"},size:"large",maxlength:11,class:"item-cols2"},null,8,["modelValue"])]),_:1},8,["prepend"])]),_:1}),Na(o,{class:"verification-code",name:"vcCode"},{default:Wn(()=>[Na(r,{modelValue:n.value.vcCode,"onUpdate:modelValue":t[1]||(t[1]=e=>n.value.vcCode=e),size:"large",placeholder:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"},{"prefix-icon":Wn(()=>[Na(Lt(qv))]),suffix:Wn(()=>[Na(d,{loading:u.value,class:"send-verify",variant:"text",disabled:Lt(c)>0,onClick:f},{default:Wn(()=>[za(ne(0==Lt(c)?"\u53d1\u9001\u9a8c\u8bc1\u7801":`${Lt(c)}\u79d2\u540e\u53ef\u91cd\u53d1`),1)]),_:1},8,["loading","disabled"])]),_:1},8,["modelValue"])]),_:1}),Va(' <t-form-item name="quick-login">\n      <t-checkbox v-model="formData.enableQuickSignIn"> 7\u5929\u5185\u514d\u767b\u5f55 </t-checkbox>\n    </t-form-item> '),Na(o,{name:"submit"},{default:Wn(()=>[Na(d,{block:"",size:"large",type:"submit"},{default:Wn(()=>t[2]||(t[2]=[za(" \u7acb\u5373\u767b\u5f55 ",-1)])),_:1,__:[2]})]),_:1})]),_:1},8,["data"])}}}),H$=yr({__name:"loginPassword",emits:["submit"],setup(e,{emit:t}){const{t:n}=Zd(),r=Et({mobile:"",password:"",vcCode:"",enableQuickSignIn:!0}),i={mobile:[{required:!0,message:n("login.mobileOrAccountTip"),type:"error"},{validator:e=>/^[0-9a-zA-Z]{6,24}$/.test(e)?{result:!0}:{result:!1,message:"\u624b\u673a\u53f7\u4e3a11\u4f4d\uff0c\u5b50\u8d26\u53f7\u540d\u75316-24\u4f4d\u5b57\u6bcd\u6216\u6570\u5b57\u7ec4\u6210",type:"error"}}],password:[{required:!0,message:n("login.passwordNotEmpty"),type:"error"},{min:6,message:n("login.passwordTip"),type:"error"}]},a=Et(!1),o=Et(null),s=t,l=async({validateResult:e})=>{if(!0===e){let e={mobile:r.value.mobile,password:rQ(r.value.password),enableQuickSignIn:r.value.enableQuickSignIn};s("submit",e)}};return(e,t)=>{const s=eL,u=nG,c=Vr("BrowseIcon"),d=Vr("BrowseOffIcon"),f=VO,h=tG;return Aa(),Pa(h,{class:"login-form",ref_key:"form",ref:o,data:r.value,rules:i,"label-width":"0",onSubmit:l},{default:Wn(()=>[Na(u,{name:"mobile"},{default:Wn(()=>[Na(s,{autocomplte:"on",name:"username",modelValue:r.value.mobile,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value.mobile=e),maxlength:24,size:"large",placeholder:Lt(n)("login.mobileOrAccount")},{"prefix-icon":Wn(()=>[Na(Lt(dg))]),_:1},8,["modelValue","placeholder"])]),_:1}),Na(u,{name:"password"},{default:Wn(()=>[Na(s,{modelValue:r.value.password,"onUpdate:modelValue":t[3]||(t[3]=e=>r.value.password=e),size:"large",type:a.value?"text":"password",clearable:"",autocomplete:"on",name:"current-password",placeholder:Lt(n)("login.enterPassword")},{"prefix-icon":Wn(()=>[Na(Lt(Dv))]),"suffix-icon":Wn(()=>[a.value?(Aa(),Pa(c,{key:0,onClick:t[1]||(t[1]=e=>a.value=!a.value)})):(Aa(),Pa(d,{key:1,onClick:t[2]||(t[2]=e=>a.value=!a.value)}))]),_:1},8,["modelValue","type","placeholder"])]),_:1}),Va(' <t-form-item name="quick-login">\n      <t-checkbox v-model="formData.enableQuickSignIn"> 7\u5929\u5185\u514d\u767b\u5f55 </t-checkbox>\n    </t-form-item> '),Na(u,{name:"submit"},{default:Wn(()=>[Na(f,{block:"",ghost:"",size:"large",type:"submit"},{default:Wn(()=>[za(ne(Lt(n)("common.loginNow")),1)]),_:1})]),_:1})]),_:1},8,["data"])}}}),W$={class:"titleCrx"},U$={key:0,class:"form-container"},X$={class:"go-find"},G$={class:"register"},Y$={key:1,class:"form-container"},K$={class:"quick-login"},q$={class:"name"},Z$={key:0,class:"sub-name"},J$=yr({__name:"login",emits:["go"],setup(e,{emit:t}){const{t:n}=Zd(),r=t,i=Et(1);let a=Et({}),o=Et(!1);const s=Et({});Pr(async()=>{s.value=await OQ(),oQ("/user/get",{quick:!0,ivCode:s.value.invite_code,version:CQ}).then(e=>{""!=e.id&&(a.value=e,RJ.commit("user/setUserInfo",e))}).finally(()=>{o.value=!0});const e=setTimeout(()=>{clearTimeout(e),o.value=!0},5e4)});const l=async e=>{let t={...e,visitorId:localStorage.getItem("__report_visitId")||""};xO(!0);const i=await RJ.dispatch("user/login",t);xO(!1),i&&(WE.success(n("login.loginSuccess"),1e3),await RJ.dispatch("user/getUserInfo"),r("go"))},u=async()=>{xO(!0);const e=await RJ.dispatch("user/quickLogin");xO(!1),e&&(WE.success(n("login.loginSuccess"),1e3),RJ.dispatch("user/getUserInfo"),r("go"))},c=()=>{a.value={},RJ.commit("user/removeUserInfo"),sessionStorage.removeItem("userInfo")},d=()=>{window.open("https://www.shopdora.com/login?type=reset","_blank")},f=async()=>{window.open(`https://www.shopdora.com/register?s=${s.value.invite_code}`,"_blank")};return(e,t)=>{const r=VO;return Aa(),Ia(ba,null,[La("div",W$,ne(Lt(n)("login.welcome")),1),Lt(o)&&!Lt(a).id?(Aa(),Ia("div",U$,[Va(' <t-tabs v-model="tab" :list="tabList"></t-tabs> '),1==i.value?(Aa(),Pa(H$,{key:0,onSubmit:l})):Va("v-if",!0),2==i.value?(Aa(),Pa(V$,{key:1,onSubmit:l})):Va("v-if",!0),La("div",X$,[La("div",{class:"find",onClick:d},ne(Lt(n)("login.forgotPassword")),1),La("div",G$,[za(ne(Lt(n)("login.notAccount")),1),La("span",{class:"link",onClick:f},ne(Lt(n)("login.goRegister")),1)])])])):Lt(o)?(Aa(),Ia("div",Y$,[La("div",K$,[t[0]||(t[0]=La("img",{src:z$,alt:""},null,-1)),La("div",q$,ne(Lt(a).company||Lt(a).mobile),1),Lt(a).company?(Aa(),Ia("div",Z$,ne(Lt(a).mobile),1)):Va("v-if",!0),Na(r,{class:"login-btn",block:"",size:"large",onClick:u},{default:Wn(()=>[za(ne(Lt(n)("common.loginNow")),1)]),_:1}),Na(r,{theme:"primary",variant:"outline",class:"login-others",block:"",size:"large",onClick:c},{default:Wn(()=>[za(ne(Lt(n)("login.loginOther")),1)]),_:1})])])):Va("v-if",!0)],64)}}}),Q$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABACAYAAACjgtGkAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAARKADAAQAAAABAAAAQAAAAAA1WWV/AAADpElEQVR4Ae2avW7UQBCAZ5w0obiQIFFRUIYfUUNBjZCghDp5AwIVEgKBKGggvEFSQwkSoqaAGiWEkoIKiYRcQZrEw4wvOa/n7Bvn7L2DMNvczvpmZ/x5d70zXgAvTsAJOAEn4ARiEcA6HdOdsyfTne4DBLwOQAtEkGg9RPySrP68ELanS6c2iOh82BbWj6KDCCkAfiWgd8ls5ym+/PYr7Kut+sCN6Y4FBu10PwDBPbm5MhhaJ4YsdjO44gf7I37FsGMCkZHBzlyMYXzUPsUf8WtU/WF6JpDeNBnWxWSuxfJr2r4dWij8B5OVhNKPhbZMmOrqNoSpuwh7Hd2ey/V1UkyuAKXLua7yK7/QqGYuqvuL8xRa4CF1G9e2Xodt46jT4vwtXlVfhbam1rZM/8P/16mbU6ZOJ8fpPw5EPU0H4kAUASWabxnZTRZ1Bt8MxeuRJJzuIuwrXyLZ8m6dQCWB1t/jh5Zo+cxMur37EIFuAsK5ScRAWUBIsEmAb5K5mSe48n330L+q3yhABAZt//7EO7pLVYbH3c43+hnnTly2oJiLqoTwofPZdnz1x/uwTdfTnd1H3PbXwBD/5OEQj1iu3he5qphAdD5jeGzSM4Mp3Sjs96usj7k9m75NgYzkM68Z8kj6pTIg7P/DrAwGdyBZqtvDFAd0xC+jmCPE0C+9rBdQiY6bBoQc3EnKLIh2OX9mBJlaR/tV5rxv3RUVB+JAFAEl+ghRQMxF9X8L7kwg+luLAjo2EXubwcJ3nxjGfcooqg7EgSgCSjTXkFGCO2WjFZGWTl8j2H8RdhZjfTOBjBLchU63Vqe9DodHlR/O27Lja4gi6UAciCKgRB8hCoi5qEqiNswjSNJF8gwDRb6bVKQWj6IjbxPgBVT3f5Ds6Tf3ThT1xdYqJhA5xsQZyXx15yMJOlEj3hx8RCrfWh9BR16tpW8TYquFIn61X8wpI2e62jfbvMdYfplAsgNuCOvNb6G9Hni6rItf7fWY92QCkdN+ONu5ynPiuaQCYs3d3KXymtjNUhHiB/sT6xRilA9V//KpI3OElD+v49vqQNSzdSAORBFQoo8QB6IIKNFHiAJSI5ZRGjVE2UTVCghr9NXkL6MEhFGA8FGITb6RPNCrCO6a3GwtXR0Q9vwaqhplylCCb4dandBFOWtmmY4CJJmdeSxnuizj47wu/sjBO8tmFCBysE0OuHGW5Bk7sjHRgJDtZ37UOHBnwfLrTsAJOAEn4ASaEfgDjiM1zWlKEVMAAAAASUVORK5CYII=";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.
  
    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.
  
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
var $$=function(e,t){return($$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function e0(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var t0=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),n0=new(function(){return function(){this.browser=new t0,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(n0.wxa=!0,n0.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?n0.worker=!0:!n0.hasGlobalWindow||"Deno"in window?(n0.node=!0,n0.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,n0);var r0="sans-serif",i0="12px "+r0;var a0=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),o0={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=o0.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||i0),e.measureText(n);n=n||"";var a=/((?:\d+)?\.?\d*)px/.exec(r=r||i0),o=a&&+a[1]||12,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=a0[n[l]];s+=null==u?o:u*o}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},s0=E0(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),l0=E0(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),u0=Object.prototype.toString,c0=Array.prototype,d0=c0.forEach,f0=c0.filter,h0=c0.slice,p0=c0.map,m0=function(){}.constructor,v0=m0?m0.prototype:null,g0="__proto__",y0=2311;function b0(){return y0++}function w0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function x0(e){if(null==e||"object"!=typeof e)return e;var t=e,n=u0.call(e);if("[object Array]"===n){if(!r1(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=x0(e[r])}}else if(l0[n]){if(!r1(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!s0[n]&&!r1(e)&&!U0(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==g0&&(t[o]=x0(e[o]));return t}function S0(e,t,n){if(!V0(t)||!V0(e))return n?x0(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==g0){var i=e[r],a=t[r];!V0(a)||!V0(i)||N0(a)||N0(i)||U0(a)||U0(i)||H0(a)||H0(i)||r1(a)||r1(i)?!n&&r in e||(e[r]=x0(t[r])):S0(i,a,n)}return e}function _0(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=S0(n,e[r],t);return n}function k0(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==g0&&(e[n]=t[n]);return e}function A0(e,t,n){for(var r=D0(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function C0(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function T0(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else A0(e,t,n)}function O0(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function I0(e,t,n){if(e&&t)if(e.forEach&&e.forEach===d0)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function P0(e,t,n){if(!e)return[];if(!t)return J0(e);if(e.map&&e.map===p0)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function E0(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function M0(e,t,n){if(!e)return[];if(!t)return J0(e);if(e.filter&&e.filter===f0)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function D0(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var R0=v0&&j0(v0.bind)?v0.call.bind(v0.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(h0.call(arguments)))}};function L0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(h0.call(arguments)))}}function N0(e){return Array.isArray?Array.isArray(e):"[object Array]"===u0.call(e)}function j0(e){return"function"==typeof e}function F0(e){return"string"==typeof e}function z0(e){return"[object String]"===u0.call(e)}function B0(e){return"number"==typeof e}function V0(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function H0(e){return!!s0[u0.call(e)]}function W0(e){return!!l0[u0.call(e)]}function U0(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function X0(e){return null!=e.colorStops}function G0(e){return"[object RegExp]"===u0.call(e)}function Y0(e){return e!=e}function K0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function q0(e,t){return null!=e?e:t}function Z0(e,t,n){return null!=e?e:null!=t?t:n}function J0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return h0.apply(e,t)}function Q0(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function $0(e,t){if(!e)throw new Error(t)}function e1(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var t1="__ec_primitive__";function n1(e){e[t1]=!0}function r1(e){return e[t1]}var i1=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return D0(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),a1="function"==typeof Map;var o1=function(){function e(t){var n=N0(t);this.data=a1?new Map:new i1;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&I0(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return a1?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function s1(e){return new o1(e)}function l1(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function u1(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&k0(n,t),n}function c1(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function d1(e,t){return e.hasOwnProperty(t)}function f1(){}var h1=180/Math.PI;function p1(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function m1(e,t){return e[0]=t[0],e[1]=t[1],e}function v1(e){return[e[0],e[1]]}function g1(e,t,n){return e[0]=t,e[1]=n,e}function y1(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function b1(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function w1(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function x1(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}function S1(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _1(e,t){var n=x1(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function k1(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var A1=k1;var C1=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function T1(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function O1(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function I1(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function P1(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var E1=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),M1=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new E1(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new E1(t,e),"drag",e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new E1(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new E1(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new E1(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new E1(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),D1=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),R1=Math.log(2);function L1(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/R1);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,f=0,h=0;f<s;f++){var p=1<<f;p&i||(d+=(h%2?-1:1)*e[n][f]*L1(e,t-1,c,u,i|p,a),h++)}return a[o]=d,d}function N1(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=L1(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*L1(n,7,0===o?1:0,1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var j1="___zrEVENTSAVED",F1=[];function z1(e,t,n,r,i){if(t.getBoundingClientRect&&n0.domSupported&&!B1(t)){var a=t[j1]||(t[j1]={}),o=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,l=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&a&&f===a[d]&&h===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?N1(s,o):N1(o,s))}(o,a,i);if(s)return s(e,n,r),!0}return!1}function B1(e){return"CANVAS"===e.nodeName.toUpperCase()}var V1=/([&<>"'])/g,H1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function W1(e){return null==e?"":(e+"").replace(V1,function(e,t){return H1[t]})}var U1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,X1=[],G1=n0.browser.firefox&&+n0.browser.version.split(".")[0]<39;function Y1(e,t,n,r){return n=n||{},r?K1(e,t,n):G1&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):K1(e,t,n),n}function K1(e,t,n){if(n0.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(B1(e)){var a=e.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=i-a.top)}if(z1(X1,e,r,i))return n.zrX=X1[0],void(n.zrY=X1[1])}n.zrX=n.zrY=0}function q1(e){return e||window.event}function Z1(e,t,n){if(null!=(t=q1(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&Y1(e,i,t,n)}else{Y1(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&U1.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function J1(e,t,n,r){e.addEventListener(t,n,r)}function Q1(e,t,n,r){e.removeEventListener(t,n,r)}var $1=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function e2(e){return 2===e.which||3===e.which}var t2=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],l=Y1(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in r2)if(r2.hasOwnProperty(t)){var n=r2[t](this._track,e);if(n)return n}},e}();function n2(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var r2={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=n2(i)/n2(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function i2(){return[1,0,0,1,0,0]}function a2(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function s2(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function l2(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function u2(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=a*d+l*c,e[3]=-a*c+d*l,e[4]=d*(o-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(o-r[0])+r[1],e}function c2(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function d2(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var f2=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),h2=Math.min,p2=Math.max,m2=new f2,v2=new f2,g2=new f2,y2=new f2,b2=new f2,w2=new f2,x2=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=h2(e.x,this.x),n=h2(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=p2(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=p2(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return l2(i,i,[-t.x,-t.y]),c2(i,i,[n,r]),l2(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(a<l||u<i||s<c||d<o);if(n){var h=1/0,p=0,m=Math.abs(a-l),v=Math.abs(u-i),g=Math.abs(s-c),y=Math.abs(d-o),b=Math.min(m,v),w=Math.min(g,y);a<l||u<i?b>p&&(p=b,m<v?f2.set(w2,-m,0):f2.set(w2,v,0)):b<h&&(h=b,m<v?f2.set(b2,m,0):f2.set(b2,-v,0)),s<c||d<o?w>p&&(p=w,g<y?f2.set(w2,0,-g):f2.set(w2,0,y)):b<h&&(h=b,g<y?f2.set(b2,0,g):f2.set(b2,0,-y))}return n&&f2.copy(n,f?b2:w2),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];return t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}m2.x=g2.x=n.x,m2.y=y2.y=n.y,v2.x=y2.x=n.x+n.width,v2.y=g2.y=n.y+n.height,m2.transform(r),y2.transform(r),v2.transform(r),g2.transform(r),t.x=h2(m2.x,v2.x,g2.x,y2.x),t.y=h2(m2.y,v2.y,g2.y,y2.y);var l=p2(m2.x,v2.x,g2.x,y2.x),u=p2(m2.y,v2.y,g2.y,y2.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),S2="silent";function _2(){$1(this.event)}var k2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return e0(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(D1),A2=function(){return function(e,t){this.x=e,this.y=t}}(),C2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],T2=new x2(0,0,0,0),O2=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new A2(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new k2,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new M1(o),o}return e0(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I0(C2,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=E2(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new A2(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new A2(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:_2}}(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new A2(e,t);if(P2(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new x2(e-s,t-s,o,o),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(T2.copy(c.getBoundingRect()),c.transform&&T2.applyTransform(c.transform),T2.intersect(l)&&a.push(c))}if(a.length)for(var d=Math.PI/12,f=2*Math.PI,h=0;h<s;h+=4)for(var p=0;p<f;p+=d){if(P2(a,i,e+h*Math.cos(p),t+h*Math.sin(p),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new t2);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new A2;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(D1);function I2(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||S2}return!1}function P2(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=I2(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==S2)){t.target=o;break}}}function E2(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}I0(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){O2.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=E2(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||A1(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function M2(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function D2(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)i(o,e[a=s+l>>>1])<0?l=a:s=a+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function R2(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[n+i-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function L2(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){for(s=i+1;l<s&&a(e,t[n+i-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])<0?l=c:o=c+1}return l}function N2(e,t){var n,r,i=7,a=0,o=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var f=L2(e[c],e,l,u,0,t);l+=f,0!==(u-=f)&&0!==(d=R2(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,a,s){var l=0;for(l=0;l<r;l++)o[l]=e[n+l];var u=0,c=a,d=n;if(e[d++]=e[c++],0===--s){for(l=0;l<r;l++)e[d+l]=o[u+l];return}if(1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];return void(e[d+s]=o[u])}var f,h,p,m=i;for(;;){f=0,h=0,p=!1;do{if(t(e[c],o[u])<0){if(e[d++]=e[c++],h++,f=0,0===--s){p=!0;break}}else if(e[d++]=o[u++],f++,h=0,1===--r){p=!0;break}}while((f|h)<m);if(p)break;do{if(0!==(f=L2(e[c],o,u,r,0,t))){for(l=0;l<f;l++)e[d+l]=o[u+l];if(d+=f,u+=f,(r-=f)<=1){p=!0;break}}if(e[d++]=e[c++],0===--s){p=!0;break}if(0!==(h=R2(o[u],e,c,s,0,t))){for(l=0;l<h;l++)e[d+l]=e[c+l];if(d+=h,c+=h,0===(s-=h)){p=!0;break}}if(e[d++]=o[u++],1===--r){p=!0;break}m--}while(f>=7||h>=7);if(p)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=o[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=o[u+l]}}(l,u,c,d):function(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+r-1,c=s-1,d=a+s-1,f=0,h=0;if(e[d--]=e[u--],0===--r){for(f=d-(s-1),l=0;l<s;l++)e[f+l]=o[l];return}if(1===s){for(h=(d-=r)+1,f=(u-=r)+1,l=r-1;l>=0;l--)e[h+l]=e[f+l];return void(e[d]=o[c])}var p=i;for(;;){var m=0,v=0,g=!1;do{if(t(o[c],e[u])<0){if(e[d--]=e[u--],m++,v=0,0===--r){g=!0;break}}else if(e[d--]=o[c--],v++,m=0,1===--s){g=!0;break}}while((m|v)<p);if(g)break;do{if(0!==(m=r-L2(o[c],e,n,r,r-1,t))){for(r-=m,h=(d-=m)+1,f=(u-=m)+1,l=m-1;l>=0;l--)e[h+l]=e[f+l];if(0===r){g=!0;break}}if(e[d--]=o[c--],1===--s){g=!0;break}if(0!==(v=s-R2(e[u],o,0,s,s-1,t))){for(s-=v,h=(d-=v)+1,f=(c-=v)+1,l=0;l<v;l++)e[h+l]=o[f+l];if(s<=1){g=!0;break}}if(e[d--]=e[u--],0===--r){g=!0;break}p--}while(m>=7||v>=7);if(g)break;p<0&&(p=0),p+=2}(i=p)<1&&(i=1);if(1===s){for(h=(d-=r)+1,f=(u-=r)+1,l=r-1;l>=0;l--)e[h+l]=e[f+l];e[d]=o[c]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;l<s;l++)e[f+l]=o[l]}}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}function j2(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<32)D2(e,n,r,n+(a=M2(e,n,r,t)),t);else{var o=N2(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=M2(e,n,r,t))<s){var l=i;l>s&&(l=s),D2(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}}var F2=!1;function z2(){F2||(F2=!0)}function B2(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var V2,H2=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=B2}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,j2(n,B2)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(z2(),u.z=0),isNaN(u.z2)&&(z2(),u.z2=0),isNaN(u.zlevel)&&(z2(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=C0(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();V2=n0.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var W2={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-W2.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*W2.bounceIn(2*e):.5*W2.bounceOut(2*e-1)+.5}},U2=Math.pow,X2=Math.sqrt,G2=1e-8,Y2=1e-4,K2=X2(3),q2=1/3,Z2=p1(),J2=p1(),Q2=p1();function $2(e){return e>-1e-8&&e<G2}function e3(e){return e>G2||e<-1e-8}function t3(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function n3(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function r3(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if($2(c)&&$2(d)){if($2(s))a[0]=0;else(k=-l/s)>=0&&k<=1&&(a[h++]=k)}else{var p=d*d-4*c*f;if($2(p)){var m=d/c,v=-m/2;(k=-s/o+m)>=0&&k<=1&&(a[h++]=k),v>=0&&v<=1&&(a[h++]=v)}else if(p>0){var g=X2(p),y=c*s+1.5*o*(-d+g),b=c*s+1.5*o*(-d-g);(k=(-s-((y=y<0?-U2(-y,q2):U2(y,q2))+(b=b<0?-U2(-b,q2):U2(b,q2))))/(3*o))>=0&&k<=1&&(a[h++]=k)}else{var w=(2*c*s-3*o*d)/(2*X2(c*c*c)),x=Math.acos(w)/3,S=X2(c),_=Math.cos(x),k=(-s-2*S*_)/(3*o),A=(v=(-s+S*(_+K2*Math.sin(x)))/(3*o),(-s+S*(_-K2*Math.sin(x)))/(3*o));k>=0&&k<=1&&(a[h++]=k),v>=0&&v<=1&&(a[h++]=v),A>=0&&A<=1&&(a[h++]=A)}}return h}function i3(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if($2(o)){if(e3(a))(c=-s/a)>=0&&c<=1&&(i[l++]=c)}else{var u=a*a-4*o*s;if($2(u))i[0]=-a/(2*o);else if(u>0){var c,d=X2(u),f=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function a3(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function o3(e,t,n,r,i,a,o,s,l,u,c){var d,f,h,p,m,v=.005,g=1/0;Z2[0]=l,Z2[1]=u;for(var y=0;y<1;y+=.05)J2[0]=t3(e,n,i,o,y),J2[1]=t3(t,r,a,s,y),(p=C1(Z2,J2))<g&&(d=y,g=p);g=1/0;for(var b=0;b<32&&!(v<Y2);b++)f=d-v,h=d+v,J2[0]=t3(e,n,i,o,f),J2[1]=t3(t,r,a,s,f),p=C1(J2,Z2),f>=0&&p<g?(d=f,g=p):(Q2[0]=t3(e,n,i,o,h),Q2[1]=t3(t,r,a,s,h),m=C1(Q2,Z2),h<=1&&m<g?(d=h,g=m):v*=.5);return c&&(c[0]=t3(e,n,i,o,d),c[1]=t3(t,r,a,s,d)),X2(g)}function s3(e,t,n,r,i,a,o,s,l){for(var u=e,c=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,m=t3(e,n,i,o,p),v=t3(t,r,a,s,p),g=m-u,y=v-c;d+=Math.sqrt(g*g+y*y),u=m,c=v}return d}function l3(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function u3(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function c3(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function d3(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function f3(e,t,n,r,i,a,o,s,l){var u,c=.005,d=1/0;Z2[0]=o,Z2[1]=s;for(var f=0;f<1;f+=.05){J2[0]=l3(e,n,i,f),J2[1]=l3(t,r,a,f),(v=C1(Z2,J2))<d&&(u=f,d=v)}d=1/0;for(var h=0;h<32&&!(c<Y2);h++){var p=u-c,m=u+c;J2[0]=l3(e,n,i,p),J2[1]=l3(t,r,a,p);var v=C1(J2,Z2);if(p>=0&&v<d)u=p,d=v;else{Q2[0]=l3(e,n,i,m),Q2[1]=l3(t,r,a,m);var g=C1(Q2,Z2);m<=1&&g<d?(u=m,d=g):c*=.5}}return l&&(l[0]=l3(e,n,i,u),l[1]=l3(t,r,a,u)),X2(d)}function h3(e,t,n,r,i,a,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var f=d*c,h=l3(e,n,i,f),p=l3(t,r,a,f),m=h-s,v=p-l;u+=Math.sqrt(m*m+v*v),s=h,l=p}return u}var p3=/cubic-bezier\(([0-9,\.e ]+)\)/;function m3(e){var t=e&&p3.exec(e);if(t){var n=t[1].split(","),r=+e1(n[0]),i=+e1(n[1]),a=+e1(n[2]),o=+e1(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:r3(0,r,a,1,e,s)&&t3(0,i,o,1,s[0])}}}var v3=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||f1,this.ondestroy=e.ondestroy||f1,this.onrestart=e.onrestart||f1,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j0(e)?e:W2[e]||m3(e)},e}(),g3=function(){return function(e){this.value=e}}(),y3=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new g3(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),b3=function(){function e(e){this._list=new y3,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new g3(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),w3={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x3(e){return(e=Math.round(e))<0?0:e>255?255:e}function S3(e){return e<0?0:e>1?1:e}function _3(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?x3(parseFloat(t)/100*255):x3(parseInt(t,10))}function k3(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?S3(parseFloat(t)/100):S3(parseFloat(t))}function A3(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function C3(e,t,n){return e+(t-e)*n}function T3(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function O3(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var I3=new b3(20),P3=null;function E3(e,t){P3&&O3(P3,t),P3=I3.put(e,P3||t.slice())}function M3(e,t){if(e){t=t||[];var n=I3.get(e);if(n)return O3(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in w3)return O3(t,w3[r]),E3(e,t),t;var i,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(T3(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(r.slice(4),16)/15:1),E3(e,t),t):void T3(t,0,0,0,1):7===a||9===a?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(T3(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(r.slice(7),16)/255:1),E3(e,t),t):void T3(t,0,0,0,1):void 0;var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?T3(t,+u[0],+u[1],+u[2],1):T3(t,0,0,0,1);c=k3(u.pop());case"rgb":return u.length>=3?(T3(t,_3(u[0]),_3(u[1]),_3(u[2]),3===u.length?c:k3(u[3])),E3(e,t),t):void T3(t,0,0,0,1);case"hsla":return 4!==u.length?void T3(t,0,0,0,1):(u[3]=k3(u[3]),D3(u,t),E3(e,t),t);case"hsl":return 3!==u.length?void T3(t,0,0,0,1):(D3(u,t),E3(e,t),t);default:return}}T3(t,0,0,0,1)}}function D3(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=k3(e[1]),i=k3(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return T3(t=t||[],x3(255*A3(o,a,n+1/3)),x3(255*A3(o,a,n)),x3(255*A3(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function R3(e,t){var n=M3(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return F3(n,4===n.length?"rgba":"rgb")}}function L3(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],l=r-i;return n[0]=x3(C3(o[0],s[0],l)),n[1]=x3(C3(o[1],s[1],l)),n[2]=x3(C3(o[2],s[2],l)),n[3]=S3(C3(o[3],s[3],l)),n}}function N3(e,t,n,r){var i,a=M3(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-a)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+c-f:a===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}(a),null!=t&&(a[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(a[1]=k3(n)),null!=r&&(a[2]=k3(r)),F3(D3(a),"rgba")}function j3(e,t){var n=M3(e);if(n&&null!=t)return n[3]=S3(t),F3(n,"rgba")}function F3(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function z3(e,t){var n=M3(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var B3=new b3(100);function V3(e){if(F0(e)){var t=B3.get(e);return t||(t=R3(e,-.1),B3.put(e,t)),t}if(X0(e)){var n=k0({},e);return n.colorStops=P0(e.colorStops,function(e){return{offset:e.offset,color:R3(e.color,-.1)}}),n}return e}var H3=Math.round;function W3(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=M3(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var U3=1e-4;function X3(e){return e<U3&&e>-1e-4}function G3(e){return H3(1e3*e)/1e3}function Y3(e){return H3(1e4*e)/1e4}var K3={left:"start",right:"end",center:"middle",middle:"middle"};function q3(e){return e&&!!e.image}function Z3(e){return q3(e)||function(e){return e&&!!e.svgElement}(e)}function J3(e){return"linear"===e.type}function Q3(e){return"radial"===e.type}function $3(e){return e&&("linear"===e.type||"radial"===e.type)}function e5(e){return"url(#"+e+")"}function t5(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function n5(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*h1,i=q0(e.scaleX,1),a=q0(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===a||l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+H3(o*h1)+"deg, "+H3(s*h1)+"deg)"),l.join(" ")}var r5=n0.hasGlobalWindow&&j0(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return w0("Base64 isn't natively supported in the current environment."),null},i5=Array.prototype.slice;function a5(e,t,n){return(t-e)*n+e}function o5(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=a5(t[a],n[a],r);return e}function s5(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function l5(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function u5(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function c5(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(1===n?i[s]:i5.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function d5(e){if(O0(e)){var t=e.length;if(O0(e[0])){for(var n=[],r=0;r<t;r++)n.push(i5.call(e[r]));return n}return i5.call(e)}return e}function f5(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function h5(e){return 4===e||5===e}function p5(e){return 1===e||2===e}var m5=[0,0,0,0],v5=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=6,s=t;if(O0(t)){var l=function(e){return O0(e&&e[0])?2:1}(t);o=l,(1===l&&!B0(t[0])||2===l&&!B0(t[0][0]))&&(a=!0)}else if(B0(t)&&!Y0(t))o=0;else if(F0(t))if(isNaN(+t)){var u=M3(t);u&&(s=u,o=3)}else o=0;else if(X0(t)){var c=k0({},s);c.colorStops=P0(t.colorStops,function(e){return{offset:e.offset,color:M3(e.color)}}),J3(t)?o=4:Q3(t)&&(o=5),s=c}0===i?this.valType=o:o===this.valType&&6!==o||(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=j0(n)?n:W2[n]||m3(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=p5(r),l=h5(r),u=0;u<i;u++){var c=n[u],d=c.value,f=a.value;c.percent=c.time/e,o||(s&&u!==i-1?c5(d,f,r):l&&u5(d.colorStops,f.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-h:3===r?n[u].additiveValue=s5([],n[u].value,h,-1):p5(r)&&(n[u].additiveValue=1===r?s5([],n[u].value,h,-1):l5([],n[u].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,f=this._lastFr,h=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(f+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,u-2)}else{for(n=f;n<u&&!(l[n].percent>t);n++);n=h(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var p=i.percent-r.percent,m=0===p?1:h((t-r.percent)/p,1);i.easingFunc&&(m=i.easingFunc(m));var v=a?this._additiveValue:d?m5:e[c];if(!p5(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[c]=m<1?r.rawValue:i.rawValue;else if(p5(s))1===s?o5(v,r[o],i[o],m):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=a5(t[o][s],n[o][s],r)}}(v,r[o],i[o],m);else if(h5(s)){var g=r[o],y=i[o],b=4===s;e[c]={type:b?"linear":"radial",x:a5(g.x,y.x,m),y:a5(g.y,y.y,m),colorStops:P0(g.colorStops,function(e,t){var n=y.colorStops[t];return{offset:a5(e.offset,n.offset,m),color:f5(o5([],e.color,n.color,m))}}),global:y.global},b?(e[c].x2=a5(g.x2,y.x2,m),e[c].y2=a5(g.y2,y.y2,m)):e[c].r=a5(g.r,y.r,m)}else if(d)o5(v,r[o],i[o],m),a||(e[c]=f5(v));else{var w=a5(r[o],i[o],m);a?this._additiveValue=w:e[c]=w}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(M3(e[n],m5),s5(m5,m5,r,1),e[n]=f5(m5)):1===t?s5(e[n],e[n],r,1):2===t&&l5(e[n],e[n],r,1)},e}(),g5=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?w0("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,D0(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new v5(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=f5(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,d5(l),r),this._trackKeys.push(o)}s.addKeyframe(e,d5(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),l=o.keyframes,u=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new v3({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return P0(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=d5(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||D0(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function y5(){return(new Date).getTime()}var b5,w5,x5=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e0(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=y5()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,V2(function t(){e._running&&(V2(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=y5(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=y5(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=y5()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new g5(e,t.loop);return this.addAnimator(n),n},t}(D1),S5=n0.domSupported,_5=(w5={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:b5=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:P0(b5,function(e){var t=e.replace("mouse","pointer");return w5.hasOwnProperty(t)?t:e})}),k5=["mousemove","mouseup"],A5=["pointermove","pointerup"],C5=!1;function T5(e){var t=e.pointerType;return"pen"===t||"touch"===t}function O5(e){e&&(e.zrByTouch=!0)}function I5(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var P5=function(){return function(e,t){this.stopPropagation=f1,this.stopImmediatePropagation=f1,this.preventDefault=f1,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),E5={mousedown:function(e){e=Z1(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Z1(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Z1(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){I5(this,(e=Z1(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){C5=!0,e=Z1(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){C5||(e=Z1(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){O5(e=Z1(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),E5.mousemove.call(this,e),E5.mousedown.call(this,e)},touchmove:function(e){O5(e=Z1(this.dom,e)),this.handler.processGesture(e,"change"),E5.mousemove.call(this,e)},touchend:function(e){O5(e=Z1(this.dom,e)),this.handler.processGesture(e,"end"),E5.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&E5.click.call(this,e)},pointerdown:function(e){E5.mousedown.call(this,e)},pointermove:function(e){T5(e)||E5.mousemove.call(this,e)},pointerup:function(e){E5.mouseup.call(this,e)},pointerout:function(e){T5(e)||E5.mouseout.call(this,e)}};I0(["click","dblclick","contextmenu"],function(e){E5[e]=function(t){t=Z1(this.dom,t),this.trigger(e,t)}});var M5={pointermove:function(e){T5(e)||M5.mousemove.call(this,e)},pointerup:function(e){M5.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function D5(e,t){var n=t.domHandlers;n0.pointerEventsSupported?I0(_5.pointer,function(r){L5(t,r,function(t){n[r].call(e,t)})}):(n0.touchEventsSupported&&I0(_5.touch,function(r){L5(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),I0(_5.mouse,function(r){L5(t,r,function(i){i=q1(i),t.touching||n[r].call(e,i)})}))}function R5(e,t){function n(n){L5(t,n,function(r){r=q1(r),I5(e,r.target)||(r=function(e,t){return Z1(e.dom,new P5(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}n0.pointerEventsSupported?I0(A5,n):n0.touchEventsSupported||I0(k5,n)}function L5(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,J1(e.domTarget,t,n,r)}function N5(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Q1(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var j5=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),F5=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new j5(t,E5),S5&&(r._globalHandlerScope=new j5(document,M5)),D5(r,r._localHandlerScope),r}return e0(t,e),t.prototype.dispose=function(){N5(this._localHandlerScope),S5&&N5(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,S5&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?R5(this,t):N5(t)}},t}(D1),z5=1;n0.hasGlobalWindow&&(z5=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var B5=z5,V5="#333",H5="#ccc",W5=a2,U5=5e-5;function X5(e){return e>U5||e<-5e-5}var G5=[],Y5=[],K5=[1,0,0,1,0,0],q5=Math.abs,Z5=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return X5(this.rotation)||X5(this.x)||X5(this.y)||X5(this.scaleX-1)||X5(this.scaleY-1)||X5(this.skewX)||X5(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):W5(n),e&&(t?s2(n,e,n):o2(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(W5(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(G5);var n=G5[0]<0?-1:1,r=G5[1]<0?-1:1,i=((G5[0]-n)*t+n)/G5[0]||0,a=((G5[1]-r)*t+r)/G5[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],d2(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],s2(Y5,e.invTransform,t),t=Y5);var n=this.originX,r=this.originY;(n||r)&&(K5[4]=n,K5[5]=r,s2(Y5,t,K5),Y5[4]-=n,Y5[5]-=r,t=Y5),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&O1(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&O1(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&q5(e[0]-1)>1e-10&&q5(e[3]-1)>1e-10?Math.sqrt(q5(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Q5(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var h=n+o,p=r+s;t[4]=-h*i-d*p*a,t[5]=-p*a-f*h*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,l&&u2(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),J5=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Q5(e,t){for(var n=0;n<J5.length;n++){var r=J5[n];e[r]=t[r]}}var $5={};function e4(e,t){var n=$5[t=t||i0];n||(n=$5[t]=new b3(500));var r=n.get(e);return null==r&&(r=o0.measureText(e,t).width,n.put(e,r)),r}function t4(e,t,n,r){var i=e4(e,t),a=a4(t),o=r4(0,i,n),s=i4(0,a,r);return new x2(o,s,i,a)}function n4(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return t4(i[0],t,n,r);for(var a=new x2(0,0,0,0),o=0;o<i.length;o++){var s=t4(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}function r4(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function i4(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function a4(e){return e4("\u56fd",e)}function o4(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function s4(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=o4(r[0],n.width),u+=o4(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var l4="__zr_normal__",u4=J5.concat(["ignore"]),c4=E0(J5,function(e,t){return e[t]=!0,e},{ignore:!1}),d4={},f4=new x2(0,0,0,0),h4=function(){function e(e){this.id=b0(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=f4;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(d4,n,u):s4(d4,n,u),i.x=d4.x,i.y=d4.y,a=d4.align,o=d4.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,f=void 0;"center"===c?(d=.5*u.width,f=.5*u.height):(d=o4(c[0],u.width),f=o4(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,g=void 0,y=void 0;p&&this.canBeInsideText()?(v=n.insideFill,g=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=g&&"auto"!==g||(g=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,g=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=g&&"auto"!==g||(g=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===m.fill&&g===m.stroke&&y===m.autoStroke&&a===m.align&&o===m.verticalAlign||(s=!0,m.fill=v,m.stroke=g,m.autoStroke=y,m.align=a,m.verticalAlign=o,t.setDefaultTextStyle(m)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?H5:V5},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&M3(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,F3(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},k0(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(V0(e))for(var n=D0(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==l4)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,u4)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(l4,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===l4;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(C0(a,e)>=0)||!t&&1!==a.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}w0("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),h=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var p=this._textContent,m=this._textGuide;p&&p.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=C0(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=C0(r,e),a=C0(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];k0(n,i),i.textConfig&&k0(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=k0({},r?this.textConfig:n.textConfig),k0(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<u4.length;u++){var c=u4[u],d=i&&c4[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:o&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var f=this.animators[u],h=f.targetName;f.getLoop()||f.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Z5,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k0(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if(r){var i=new g5(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i}w0('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=C0(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){p4(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){p4(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=p4(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(n[e+t+r]=!0)}function i(e,n,i,a){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}Object.defineProperty(t,e,{get:function(){(r(e,i,a),this[n])||o(this,this[n]=[]);return this[n]},set:function(t){r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function p4(e,t,n,r,i){var a=[];g4(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},d=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var h=a[f];c&&h.done(c),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return a}function m4(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function v4(e,t,n){if(O0(t[n]))if(O0(e[n])||(e[n]=[]),W0(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),m4(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(O0(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?m4(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else m4(a,i,o);a.length=i.length}else e[n]=t[n]}function g4(e,t,n,r,i,a,o,s){for(var l=D0(r),u=i.duration,c=i.delay,d=i.additive,f=i.setToFinal,h=!V0(a),p=e.animators,m=[],v=0;v<l.length;v++){var g=l[v],y=r[g];if(null!=y&&null!=n[g]&&(h||a[g]))if(!V0(y)||O0(y)||X0(y))m.push(g);else{if(t){s||(n[g]=y,e.updateDuringAnimation(t));continue}g4(e,g,n[g],y,i,a&&a[g],o,s)}else s||(n[g]=y,e.updateDuringAnimation(t),m.push(g))}var b=m.length;if(!d&&b)for(var w=0;w<p.length;w++){if((S=p[w]).targetName===t)if(S.stopTracks(m)){var x=C0(p,S);p.splice(x,1)}}if(i.force||(m=M0(m,function(e){return t=r[e],i=n[e],!(t===i||O0(t)&&O0(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),b=m.length),b>0||i.force&&!o.length){var S,_=void 0,k=void 0,A=void 0;if(s){k={},f&&(_={});for(w=0;w<b;w++){k[g=m[w]]=n[g],f?_[g]=r[g]:n[g]=r[g]}}else if(f){A={};for(w=0;w<b;w++){A[g=m[w]]=d5(n[g]),v4(n,r,g)}}(S=new g5(n,!1,!1,d?M0(p,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(S.scope=i.scope),f&&_&&S.whenWithKeys(0,_,m),A&&S.whenWithKeys(0,A,m),S.whenWithKeys(null==u?500:u,s?k:r,m).delay(c||0),e.addAnimator(S,t),o.push(S)}}T0(h4,D1),T0(h4,Z5);var y4=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e0(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=C0(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=C0(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new x2(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(x2.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(h4);y4.prototype.type="group";
/*!
  * ZRender, a high performance 2d drawing library.
  *
  * Copyright (c) 2013, Baidu Inc.
  * All rights reserved.
  *
  * LICENSE
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  */
var b4={},w4={};var x4,S4=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new H2,a=n.renderer||"canvas";if(b4[a]||(a=D0(b4)[0]),!b4[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var o=new b4[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var l,u=n0.node||n0.worker||s?null:new F5(o.getViewportRoot(),o.root),c=n.useCoarsePointer;(null==c||"auto"===c?n0.touchEventsSupported:!!c)&&(l=q0(n.pointerSize,44)),this.handler=new O2(i,o,u,o.root,l),this.animation=new x5({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return z3(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=z3(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=y5();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=y5();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof y4&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete w4[e])},e}();function _4(e,t){var n=new S4(b0(),e,t);return w4[n.id]=n,n}var k4=1e-4;function A4(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],l=a-i,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(r)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function C4(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return F0(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function T4(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function O4(e){return e.sort(function(e,t){return e-t}),e}function I4(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return P4(e)}function P4(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function E4(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function M4(e,t){var n=Math.max(I4(e),I4(t)),r=e+t;return n>20?r:T4(r,n)}var D4=9007199254740991;function R4(e){var t=2*Math.PI;return(e%t+t)%t}function L4(e){return e>-1e-4&&e<k4}var N4=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function j4(e){if(e instanceof Date)return e;if(F0(e)){var t=N4.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function F4(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function z4(e,t){var n=F4(e),r=Math.pow(10,n),i=e/r;return e=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function B4(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function V4(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function H4(e){var t=parseFloat(e);return t==e&&(0!==t||!F0(e)||e.indexOf("x")<=0)?t:NaN}function W4(e){return!isNaN(H4(e))}function U4(){return Math.round(9*Math.random())}function X4(e,t){return 0===t?e:X4(t,e%t)}function G4(e,t){return null==e?t:null==t?e:e*t/X4(e,t)}var Y4={},K4="undefined"!=typeof console&&console.warn&&console.log;function q4(e,t,n){if(K4&&n){if(Y4[t])return;Y4[t]=!0}}function Z4(e,t){q4(0,e,t)}function J4(e,t){q4(0,e,t)}function Q4(e){q4(0,"DEPRECATED: "+e,!0)}function $4(e,t,n){Q4((n?"["+n+"]":"")+e+" is deprecated, use "+t+" instead.")}function e8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":Y0(e)?"NaN":e instanceof Date?"Date("+e.toISOString()+")":j0(e)?"function () { ... }":G0(e)?e+"":null};return P0(e,function(e){if(F0(e))return e;var t=n(e);if(null!=t)return t;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(e,function(e,t){var r=n(t);return null==r?t:r})}catch(r){return"?"}}).join(" ")}function t8(e){throw new Error(e)}function n8(e,t,n){return(t-e)*n+e}var r8="series\0",i8="\0_ec_\0";function a8(e){return e instanceof Array?e:null==e?[]:[e]}function o8(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var s8=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function l8(e){return!V0(e)||N0(e)||e instanceof Date?e:e.value}function u8(e){return V0(e)&&!(e instanceof Array)}function c8(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var o=s1();I0(t,function(e,n){V0(e)?(null==e.id||m8(e.id)||p8(e.id),null==e.name||m8(e.name)||p8(e.name)):t[n]=null});var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||g8(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,o,n);return(r||i)&&function(e,t,n,r){I0(r,function(i,a){if(i&&null!=i.id){var o=f8(i.id),s=n.get(o);if(null!=s){var l=e[s];$0(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],r[a]=null}}})}(u,e,o,t),r&&function(e,t){I0(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(null==a.id||null==n.id)&&!g8(n)&&!g8(a)&&d8("name",a,n))return e[i].newOption=n,void(t[r]=null)}})}(u,t),r||i?function(e,t,n){I0(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||g8(r.existing)||r.existing&&null!=t.id&&!d8("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,t,i):a&&function(e,t){I0(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=s1(),I0(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),I0(s,function(e){var t=e.newOption;$0(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),I0(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(V0(r)){if(i.name=null!=r.name?f8(r.name):n?n.name:r8+t,n)i.id=f8(n.id);else if(null!=r.id)i.id=f8(r.id);else{var a=0;do{i.id="\0"+i.name+"\0"+a++}while(l.get(i.id))}l.set(i.id,e)}}),u}function d8(e,t,n){var r=h8(t[e],null),i=h8(n[e],null);return null!=r&&null!=i&&r===i}function f8(e){if(null==e)throw new Error;return h8(e,"")}function h8(e,t){return null==e?t:F0(e)?e:B0(e)||z0(e)?e+"":t}function p8(e){Z4("`"+e+"` is invalid id or name. Must be a string or number.")}function m8(e){return z0(e)||W4(e)}function v8(e){var t=e.name;return!(!t||!t.indexOf(r8))}function g8(e){return e&&null!=e.id&&0===f8(e.id).indexOf(i8)}function y8(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?N0(t.dataIndex)?P0(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?N0(t.name)?P0(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function b8(){var e="__ec_inner_"+w8++;return function(t){return t[e]||(t[e]={})}}var w8=U4();function x8(e,t,n){var r=S8(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=A8(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}function S8(e,t){var n;if(F0(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=s1(),a={},o=!1;return I0(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&C0(t.includeMainTypes,s)<0))o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e}else a[n]=e}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var _8={useDefault:!0,enableAll:!1,enableNone:!1},k8={useDefault:!1,enableAll:!0,enableNone:!0};function A8(e,t,n,r){r=r||_8;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?($0(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&($0(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function C8(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function T8(e,t){var n=s1(),r=[];return I0(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function O8(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(B0(r))return T4(p=n8(n||0,r,i),a?Math.max(I4(n||0),I4(r)):t);if(F0(r))return i<1?n:r;for(var o=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)o[c]=(i<1&&s?s:l)[c];else{var f=s&&s[c]?s[c]:0,h=l[c],p=n8(f,h,i);o[c]=T4(p,a?Math.max(I4(f),I4(h)):t)}}return o}var I8="___EC__COMPONENT__CONTAINER___",P8="___EC__EXTENDED_CLASS___";function E8(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function M8(e,t){e.$constructor=e,e.extend=function(e){I0(t,function(t){e[t]});var n,r=this;return!function(e){return j0(e)&&/^class\s/.test(Function.prototype.toString.call(e))}(r)?(n=function(){(e.$constructor||r).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(n,this)):n=function(e){function t(){return e.apply(this,arguments)||this}return e0(t,e),t}(r),k0(n.prototype,e),n[P8]=!0,n.extend=this.extend,n.superCall=L8,n.superApply=N8,n.superClass=r,n}}function D8(e,t){e.extend=t.extend}var R8=Math.round(10*Math.random());function L8(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function N8(e,t,n){return this.superClass.prototype[t].apply(e,n)}function j8(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){$0(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=E8(r);if(i.sub){if(i.sub!==I8){var a=function(e){var n=t[e.main];n&&n[I8]||((n=t[e.main]={})[I8]=!0);return n}(i);a[i.sub]=e}}else t[i.main],t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[I8]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=E8(e),r=[],i=t[n.main];return i&&i[I8]?I0(i,function(e,t){t!==I8&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=E8(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return I0(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=E8(e),r=t[n.main];return r&&r[I8]}}function F8(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&C0(r,s)>=0||i&&C0(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var z8=F8([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),B8=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return z8(this,e,t)},e}(),V8=new b3(50);function H8(e){if("string"==typeof e){var t=V8.get(e);return t&&t.image}return e}function W8(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=V8.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?!X8(t=a.image)&&a.pending.push(o):((t=o0.loadImage(e,U8,U8)).__zrImageSrc=e,V8.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function U8(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function X8(e){return e&&e.width&&e.height}var G8=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Y8(e,t,n,r,i,a){if(!n)return e.text="",void(e.isTruncated=!1);var o=(t+"").split("\n");a=K8(n,r,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)q8(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}function K8(e,t,n,r){var i=k0({},r=r||{});i.font=t,n=q0(n,"..."),i.maxIterations=q0(r.maxIterations,2);var a=i.minChar=q0(r.minChar,0);i.cnCharWidth=e4("\u56fd",t);var o=i.ascCharWidth=e4("a",t);i.placeholder=q0(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=e4(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function q8(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var o=e4(t,i);if(o<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?Z8(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=e4(t=t.substr(0,l),i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Z8(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}var J8=function(){return function(){}}(),Q8=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),$8=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function e6(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var f=l.padding,h=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var p=o4(l.width,r.width)+h;u.length>0&&p+r.accumWidth>r.width&&(a=t.split("\n"),d=!0),r.accumWidth=p}else{var m=r6(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var v=0;v<a.length;v++){var g=a[v],y=new J8;if(y.styleName=i,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[v]:e4(g,c),v||d)u.push(new Q8([y]));else{var b=(u[u.length-1]||(u[0]=new Q8)).tokens,w=b.length;1===w&&b[0].isLineHolder?b[0]=y:(g||!w||s)&&b.push(y)}}}var t6=E0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function n6(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!t6[e]}function r6(e,t,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var f=e.charAt(d);if("\n"!==f){var h=e4(f,t),p=!r&&!n6(f);(a.length?c+h>n:i+c+h>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),a.push(s),o.push(c-u),l+=f,s="",c=u+=h):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=f,c=h)):p?(a.push(l),o.push(u),l=f,u=h):(a.push(f),o.push(h)):(c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var i6="__zr_style_"+Math.round(10*Math.random()),a6={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},o6={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};a6[i6]=!0;var s6=["z","z2","invisible"],l6=["invisible"],u6=function(e){function t(t){return e.call(this,t)||this}var n;return e0(t,e),t.prototype._init=function(t){for(var n=D0(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){c6.copy(e.getBoundingRect()),e.transform&&c6.applyTransform(e.transform);return d6.width=t,d6.height=n,!c6.intersect(d6)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new x2(0,0,0,0)),t?x2.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new x2(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:k0(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return u1(a6,e)},t.prototype.useStyle=function(e){e[i6]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[i6]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,s6)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=D0(u),d=0;d<c.length;d++){(h=c[d])in s&&(s[h]=s[h],this.style[h]=u[h])}var f=D0(s);for(d=0;d<f.length;d++){var h=f[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?l6:s6;for(d=0;d<p.length;d++){h=p[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return k0(e,t),e},t.prototype.getAnimationStyleProps=function(){return o6},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(h4),c6=new x2(0,0,0,0),d6=new x2(0,0,0,0);var f6=Math.min,h6=Math.max,p6=Math.sin,m6=Math.cos,v6=2*Math.PI,g6=p1(),y6=p1(),b6=p1();function w6(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=f6(i,r[0]),a=h6(a,r[0]),o=f6(o,r[1]),s=h6(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function x6(e,t,n,r,i,a){i[0]=f6(e,n),i[1]=f6(t,r),a[0]=h6(e,n),a[1]=h6(t,r)}var S6=[],_6=[];function k6(e,t,n,r,i,a,o,s,l,u){var c=i3,d=t3,f=c(e,n,i,o,S6);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<f;h++){var p=d(e,n,i,o,S6[h]);l[0]=f6(p,l[0]),u[0]=h6(p,u[0])}f=c(t,r,a,s,_6);for(h=0;h<f;h++){var m=d(t,r,a,s,_6[h]);l[1]=f6(m,l[1]),u[1]=h6(m,u[1])}l[0]=f6(e,l[0]),u[0]=h6(e,u[0]),l[0]=f6(o,l[0]),u[0]=h6(o,u[0]),l[1]=f6(t,l[1]),u[1]=h6(t,u[1]),l[1]=f6(s,l[1]),u[1]=h6(s,u[1])}function A6(e,t,n,r,i,a,o,s){var l=c3,u=l3,c=h6(f6(l(e,n,i),1),0),d=h6(f6(l(t,r,a),1),0),f=u(e,n,i,c),h=u(t,r,a,d);o[0]=f6(e,i,f),o[1]=f6(t,a,h),s[0]=h6(e,i,f),s[1]=h6(t,a,h)}function C6(e,t,n,r,i,a,o,s,l){var u=I1,c=P1,d=Math.abs(i-a);if(d%v6<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(g6[0]=m6(i)*n+e,g6[1]=p6(i)*r+t,y6[0]=m6(a)*n+e,y6[1]=p6(a)*r+t,u(s,g6,y6),c(l,g6,y6),(i%=v6)<0&&(i+=v6),(a%=v6)<0&&(a+=v6),i>a&&!o?a+=v6:i<a&&o&&(i+=v6),o){var f=a;a=i,i=f}for(var h=0;h<a;h+=Math.PI/2)h>i&&(b6[0]=m6(h)*n+e,b6[1]=p6(h)*r+t,u(s,b6,s),c(l,b6,l))}var T6={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},O6=[],I6=[],P6=[],E6=[],M6=[],D6=[],R6=Math.min,L6=Math.max,N6=Math.cos,j6=Math.sin,F6=Math.abs,z6=Math.PI,B6=2*z6,V6="undefined"!=typeof Float32Array,H6=[];function W6(e){return Math.round(e/z6*1e8)/1e8%2*z6}function U6(e,t){var n=W6(e[0]);n<0&&(n+=B6);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=B6?i=n+B6:t&&n-i>=B6?i=n-B6:!t&&n>i?i=n+(B6-W6(n-i)):t&&n<i&&(i=n-(B6-W6(i-n))),e[0]=n,e[1]=i}var X6=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=F6(n/B5/e)||0,this._uy=F6(n/B5/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(T6.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=F6(e-this._xi),r=F6(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(T6.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(T6.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(T6.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),H6[0]=r,H6[1]=i,U6(H6,a),r=H6[0];var o=(i=H6[1])-r;return this.addData(T6.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=N6(i)*n+e,this._yi=j6(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(T6.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(T6.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!V6||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();V6&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,V6&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){P6[0]=P6[1]=M6[0]=M6[1]=Number.MAX_VALUE,E6[0]=E6[1]=D6[0]=D6[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(i=n=t[e],a=r=t[e+1]),o){case T6.M:n=i=t[e++],r=a=t[e++],M6[0]=i,M6[1]=a,D6[0]=i,D6[1]=a;break;case T6.L:x6(n,r,t[e],t[e+1],M6,D6),n=t[e++],r=t[e++];break;case T6.C:k6(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],M6,D6),n=t[e++],r=t[e++];break;case T6.Q:A6(n,r,t[e++],t[e++],t[e],t[e+1],M6,D6),n=t[e++],r=t[e++];break;case T6.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],f=t[e++],h=t[e++]+f;e+=1;var p=!t[e++];s&&(i=N6(f)*c+l,a=j6(f)*d+u),C6(l,u,c,d,f,h,p,M6,D6),n=N6(h)*c+l,r=j6(h)*d+u;break;case T6.R:x6(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],M6,D6);break;case T6.Z:n=i,r=a}I1(P6,P6,M6),P1(E6,E6,D6)}return 0===e&&(P6[0]=P6[1]=E6[0]=E6[1]=0),new x2(P6[0],P6[1],E6[0]-P6[0],E6[1]-P6[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var f=e[d++],h=1===d;h&&(o=i=e[d],s=a=e[d+1]);var p=-1;switch(f){case T6.M:i=o=e[d++],a=s=e[d++];break;case T6.L:var m=e[d++],v=(b=e[d++])-a;(F6(I=m-i)>n||F6(v)>r||d===t-1)&&(p=Math.sqrt(I*I+v*v),i=m,a=b);break;case T6.C:var g=e[d++],y=e[d++],b=(m=e[d++],e[d++]),w=e[d++],x=e[d++];p=s3(i,a,g,y,m,b,w,x,10),i=w,a=x;break;case T6.Q:p=h3(i,a,g=e[d++],y=e[d++],m=e[d++],b=e[d++],10),i=m,a=b;break;case T6.A:var S=e[d++],_=e[d++],k=e[d++],A=e[d++],C=e[d++],T=e[d++],O=T+C;d+=1,h&&(o=N6(C)*k+S,s=j6(C)*A+_),p=L6(k,A)*R6(B6,Math.abs(T)),i=N6(O)*k+S,a=j6(O)*A+_;break;case T6.R:o=i=e[d++],s=a=e[d++],p=2*e[d++]+2*e[d++];break;case T6.Z:var I=o-i;v=s-a;p=Math.sqrt(I*I+v*v),i=o,a=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,u,c,d,f=this.data,h=this._ux,p=this._uy,m=this._len,v=t<1,g=0,y=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var w=0;w<m;){var x=f[w++],S=1===w;switch(S&&(n=i=f[w],r=a=f[w+1]),x!==T6.L&&b>0&&(e.lineTo(c,d),b=0),x){case T6.M:n=i=f[w++],r=a=f[w++],e.moveTo(i,a);break;case T6.L:o=f[w++],s=f[w++];var _=F6(o-i),k=F6(s-a);if(_>h||k>p){if(v){if(g+(K=l[y++])>u){var A=(u-g)/K;e.lineTo(i*(1-A)+o*A,a*(1-A)+s*A);break e}g+=K}e.lineTo(o,s),i=o,a=s,b=0}else{var C=_*_+k*k;C>b&&(c=o,d=s,b=C)}break;case T6.C:var T=f[w++],O=f[w++],I=f[w++],P=f[w++],E=f[w++],M=f[w++];if(v){if(g+(K=l[y++])>u){a3(i,T,I,E,A=(u-g)/K,O6),a3(a,O,P,M,A,I6),e.bezierCurveTo(O6[1],I6[1],O6[2],I6[2],O6[3],I6[3]);break e}g+=K}e.bezierCurveTo(T,O,I,P,E,M),i=E,a=M;break;case T6.Q:T=f[w++],O=f[w++],I=f[w++],P=f[w++];if(v){if(g+(K=l[y++])>u){d3(i,T,I,A=(u-g)/K,O6),d3(a,O,P,A,I6),e.quadraticCurveTo(O6[1],I6[1],O6[2],I6[2]);break e}g+=K}e.quadraticCurveTo(T,O,I,P),i=I,a=P;break;case T6.A:var D=f[w++],R=f[w++],L=f[w++],N=f[w++],j=f[w++],F=f[w++],z=f[w++],B=!f[w++],V=L>N?L:N,H=F6(L-N)>.001,W=j+F,U=!1;if(v)g+(K=l[y++])>u&&(W=j+F*(u-g)/K,U=!0),g+=K;if(H&&e.ellipse?e.ellipse(D,R,L,N,z,j,W,B):e.arc(D,R,V,j,W,B),U)break e;S&&(n=N6(j)*L+D,r=j6(j)*N+R),i=N6(W)*L+D,a=j6(W)*N+R;break;case T6.R:n=i=f[w],r=a=f[w+1],o=f[w++],s=f[w++];var X=f[w++],G=f[w++];if(v){if(g+(K=l[y++])>u){var Y=u-g;e.moveTo(o,s),e.lineTo(o+R6(Y,X),s),(Y-=X)>0&&e.lineTo(o+X,s+R6(Y,G)),(Y-=G)>0&&e.lineTo(o+L6(X-Y,0),s+G),(Y-=X)>0&&e.lineTo(o,s+L6(G-Y,0));break e}g+=K}e.rect(o,s,X,G);break;case T6.Z:if(v){var K;if(g+(K=l[y++])>u){A=(u-g)/K;e.lineTo(i*(1-A)+n*A,a*(1-A)+r*A);break e}g+=K}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=T6,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function G6(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,l=0;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var u=(l=(t-r)/(e-n))*a-o+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function Y6(e,t,n,r,i,a,o,s,l,u,c){if(0===l)return!1;var d=l;return!(c>t+d&&c>r+d&&c>a+d&&c>s+d||c<t-d&&c<r-d&&c<a-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>o+d||u<e-d&&u<n-d&&u<i-d&&u<o-d)&&o3(e,t,n,r,i,a,o,s,u,c,null)<=d/2}function K6(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;return!(l>t+u&&l>r+u&&l>a+u||l<t-u&&l<r-u&&l<a-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)&&f3(e,t,n,r,i,a,s,l,null)<=u/2}var q6=2*Math.PI;function Z6(e){return(e%=q6)<0&&(e+=q6),e}var J6=2*Math.PI;function Q6(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%J6<1e-4)return!0;if(a){var d=r;r=Z6(i),i=Z6(d)}else r=Z6(r),i=Z6(i);r>i&&(i+=J6);var f=Math.atan2(l,s);return f<0&&(f+=J6),f>=r&&f<=i||f+J6>=r&&f+J6<=i}function $6(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r)return 0;if(r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;1!==o&&0!==o||(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var e9=X6.CMD,t9=2*Math.PI;var n9=[-1,-1,-1],r9=[-1,-1];function i9(){var e=r9[0];r9[0]=r9[1],r9[1]=e}function a9(e,t,n,r,i,a,o,s,l,u){if(u>t&&u>r&&u>a&&u>s||u<t&&u<r&&u<a&&u<s)return 0;var c=r3(t,r,a,s,u,n9);if(0===c)return 0;for(var d=0,f=-1,h=void 0,p=void 0,m=0;m<c;m++){var v=n9[m],g=0===v||1===v?.5:1;t3(e,n,i,o,v)<l||(f<0&&(f=i3(t,r,a,s,r9),r9[1]<r9[0]&&f>1&&i9(),h=t3(t,r,a,s,r9[0]),f>1&&(p=t3(t,r,a,s,r9[1]))),2===f?v<r9[0]?d+=h<t?g:-g:v<r9[1]?d+=p<h?g:-g:d+=s<p?g:-g:v<r9[0]?d+=h<t?g:-g:d+=s<h?g:-g)}return d}function o9(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if($2(a))e3(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if($2(u))(c=-o/(2*a))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=X2(u),f=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}(t,r,a,s,n9);if(0===l)return 0;var u=c3(t,r,a);if(u>=0&&u<=1){for(var c=0,d=l3(t,r,a,u),f=0;f<l;f++){var h=0===n9[f]||1===n9[f]?.5:1;l3(e,n,i,n9[f])<o||(n9[f]<u?c+=d<t?h:-h:c+=a<d?h:-h)}return c}h=0===n9[0]||1===n9[0]?.5:1;return l3(e,n,i,n9[0])<o?0:a<t?h:-h}function s9(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);n9[0]=-l,n9[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=t9-1e-4){r=0,i=t9;var c=a?1:-1;return o>=n9[0]+e&&o<=n9[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=t9,i+=t9);for(var f=0,h=0;h<2;h++){var p=n9[h];if(p+e>o){var m=Math.atan2(s,p);c=a?1:-1;m<0&&(m=t9+m),(m>=r&&m<=i||m+t9>=r&&m+t9<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),f+=c)}}return f}function l9(e,t,n,r,i){for(var a,o,s,l,u=e.data,c=e.len(),d=0,f=0,h=0,p=0,m=0,v=0;v<c;){var g=u[v++],y=1===v;switch(g===e9.M&&v>1&&(n||(d+=$6(f,h,p,m,r,i))),y&&(p=f=u[v],m=h=u[v+1]),g){case e9.M:f=p=u[v++],h=m=u[v++];break;case e9.L:if(n){if(G6(f,h,u[v],u[v+1],t,r,i))return!0}else d+=$6(f,h,u[v],u[v+1],r,i)||0;f=u[v++],h=u[v++];break;case e9.C:if(n){if(Y6(f,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else d+=a9(f,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;f=u[v++],h=u[v++];break;case e9.Q:if(n){if(K6(f,h,u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else d+=o9(f,h,u[v++],u[v++],u[v],u[v+1],r,i)||0;f=u[v++],h=u[v++];break;case e9.A:var b=u[v++],w=u[v++],x=u[v++],S=u[v++],_=u[v++],k=u[v++];v+=1;var A=!!(1-u[v++]);a=Math.cos(_)*x+b,o=Math.sin(_)*S+w,y?(p=a,m=o):d+=$6(f,h,a,o,r,i);var C=(r-b)*S/x+b;if(n){if(Q6(b,w,S,_,_+k,A,t,C,i))return!0}else d+=s9(b,w,S,_,_+k,A,C,i);f=Math.cos(_+k)*x+b,h=Math.sin(_+k)*S+w;break;case e9.R:if(p=f=u[v++],m=h=u[v++],a=p+u[v++],o=m+u[v++],n){if(G6(p,m,a,m,t,r,i)||G6(a,m,a,o,t,r,i)||G6(a,o,p,o,t,r,i)||G6(p,o,p,m,t,r,i))return!0}else d+=$6(a,m,a,o,r,i),d+=$6(p,o,p,m,r,i);break;case e9.Z:if(n){if(G6(f,h,p,m,t,r,i))return!0}else d+=$6(f,h,p,m,r,i);f=p,h=m}}return n||(s=h,l=m,Math.abs(s-l)<1e-4)||(d+=$6(f,h,p,m,r,i)||0),0!==d}var u9=A0({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},a6),c9={style:A0({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},o6.style)},d9=J5.concat(["invisible","culling","z","z2","zlevel","parent"]),f9=function(e){function t(t){return e.call(this,t)||this}var n;return e0(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<d9.length;++s)i[d9[s]]=this[d9[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=D0(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];"style"===a?this.style?k0(this.style,o):this.useStyle(o):"shape"===a?k0(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(F0(e)){var t=z3(e,0);return t>.5?V5:t>.2?"#eee":H5}if(e)return H5}return V5},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(F0(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===z3(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new X6(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return l9(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return l9(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:k0(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return u1(u9,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=k0({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=k0({},r.shape),k0(s,n.shape)):(s=k0({},i?this.shape:r.shape),k0(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=k0({},this.shape);for(var u={},c=D0(s),d=0;d<c.length;d++){var f=c[d];"object"==typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return c9},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return e0(n,t),n.prototype.getDefaultStyle=function(){return x0(e.style)},n.prototype.getDefaultShape=function(){return x0(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(u6),h9=A0({strokeFirst:!0,font:i0,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},u9),p9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return u1(h9,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=n4(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(u6);p9.prototype.type="tspan";var m9=A0({x:0,y:0},a6),v9={style:A0({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},o6.style)};var g9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.createStyle=function(e){return u1(m9,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=t[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return v9},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new x2(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(u6);g9.prototype.type="image";var y9=Math.round;function b9(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(y9(2*r)===y9(2*i)&&(e.x1=e.x2=x9(r,s,!0)),y9(2*a)===y9(2*o)&&(e.y1=e.y2=x9(a,s,!0)),e):e}}function w9(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=x9(r,s,!0),e.y=x9(i,s,!0),e.width=Math.max(x9(r+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(x9(i+o,s,!1)-e.y,0===o?0:1),e):e}}function x9(e,t,n){if(!t)return e;var r=y9(2*e);return(r+y9(t))%2==0?r/2:(r+(n?1:-1))/2}var S9=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),_9={},k9=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new S9},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=w9(_9,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?function(e,t){var n,r,i,a,o,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof d?n=r=i=a=d:d instanceof Array?1===d.length?n=r=i=a=d[0]:2===d.length?(n=i=d[0],r=a=d[1]):3===d.length?(n=d[0],r=a=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],a=d[3]):n=r=i=a=0,n+r>u&&(n*=u/(o=n+r),r*=u/o),i+a>u&&(i*=u/(o=i+a),a*=u/o),r+i>c&&(r*=c/(o=r+i),i*=c/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+a,l+c),0!==a&&e.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(f9);k9.prototype.type="rect";var A9={fill:"#000"},C9={style:A0({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},o6.style)},T9=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=A9,n.attr(t),n}return e0(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,R9(e=this.style),I0(e.rich,R9),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new x2(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||A9},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return k0(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=D0(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},k0(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return C9},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||i0,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o="truncate"===r,s=a4(a),l=q0(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=!1,f=t.width,h=(n=null==f||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?r6(e,t.font,f,"breakAll"===r,0).lines:[]).length*l,p=q0(t.height,h);if(h>p&&c){var m=Math.floor(p/l);d=d||n.length>m,n=n.slice(0,m)}if(e&&o&&null!=f)for(var v=K8(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},y=0;y<n.length;y++)q8(g,n[y],v),n[y]=g.textLine,d=d||g.isTruncated;var b=p,w=0;for(y=0;y<n.length;y++)w=Math.max(e4(n[y],a),w);null==f&&(f=w);var x=w;return i&&(b+=i[0]+i[2],x+=i[1]+i[3],f+=i[1]+i[3]),u&&(x=f),{lines:n,height:p,outerWidth:x,outerHeight:b,lineHeight:l,calculatedLineHeight:s,contentWidth:w,contentHeight:h,width:f,isTruncated:d}}(F9(e),e),i=z9(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,h=e.y||0,p=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",v=f,g=i4(h,r.contentHeight,m);if(i||n){var y=r4(f,s,p),b=i4(h,o,m);i&&this._renderBackground(e,e,y,b,s,o)}g+=c/2,n&&(v=j9(f,p,n),"top"===m?g+=n[0]:"bottom"===m&&(g-=n[2]));for(var w=0,x=!1,S=(N9("fill"in e?e.fill:(x=!0,d.fill))),_=(L9("stroke"in e?e.stroke:a||d.autoStroke&&!x?null:(w=2,d.stroke))),k=e.textShadowBlur>0,A=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,T=0;T<u.length;T++){var O=this._getOrCreateChild(p9),I=O.createStyle();O.useStyle(I),I.text=u[T],I.x=v,I.y=g,I.textAlign=p,I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,k&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=_,I.fill=S,_&&(I.lineWidth=e.lineWidth||w,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=t,M9(I,e),g+=c,A&&O.setBoundingRect(new x2(r4(I.x,l,I.textAlign),i4(I.y,C,I.textBaseline),l,C))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new $8;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,a=t.height,o=t.overflow,s="break"!==o&&"breakAll"!==o||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===o},l=G8.lastIndex=0;null!=(r=G8.exec(e));){var u=r.index;u>l&&e6(n,e.substring(l,u),t,s),e6(n,r[2],t,s,r[1]),l=G8.lastIndex}l<e.length&&e6(n,e.substring(l,e.length),t,s);var c=[],d=0,f=0,h=t.padding,p="truncate"===o,m="truncate"===t.lineOverflow,v={};function g(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}e:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],w=0,x=0,S=0;S<b.tokens.length;S++){var _=(R=b.tokens[S]).styleName&&t.rich[R.styleName]||{},k=R.textPadding=_.padding,A=k?k[1]+k[3]:0,C=R.font=_.font||t.font;R.contentHeight=a4(C);var T=q0(_.height,R.contentHeight);if(R.innerHeight=T,k&&(T+=k[0]+k[2]),R.height=T,R.lineHeight=Z0(_.lineHeight,t.lineHeight,T),R.align=_&&_.align||t.align,R.verticalAlign=_&&_.verticalAlign||"middle",m&&null!=a&&d+R.lineHeight>a){var O=n.lines.length;S>0?(b.tokens=b.tokens.slice(0,S),g(b,x,w),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length<O;break e}var I=_.width,P=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))R.percentWidth=I,c.push(R),R.contentWidth=e4(R.text,C);else{if(P){var E=_.backgroundColor,M=E&&E.image;M&&X8(M=H8(M))&&(R.width=Math.max(R.width,M.width*T/M.height))}var D=p&&null!=i?i-x:null;null!=D&&D<R.width?!P||D<A?(R.text="",R.width=R.contentWidth=0):(Y8(v,R.text,D-A,C,t.ellipsis,{minChar:t.truncateMinChar}),R.text=v.text,n.isTruncated=n.isTruncated||v.isTruncated,R.width=R.contentWidth=e4(R.text,C)):R.contentWidth=e4(R.text,C)}R.width+=A,x+=R.width,_&&(w=Math.max(w,R.lineHeight))}g(b,x,w)}for(n.outerWidth=n.width=q0(i,f),n.outerHeight=n.height=q0(a,d),n.contentHeight=d,n.contentWidth=f,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),y=0;y<c.length;y++){var R,L=(R=c[y]).percentWidth;R.width=parseInt(L,10)/100*n.width}return n}(F9(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=r4(o,r,u),f=i4(s,i,c),h=d,p=f;a&&(h+=a[3],p+=a[0]);var m=h+n;z9(e)&&this._renderBackground(e,e,d,f,r,i);for(var v=!!e.backgroundColor,g=0;g<t.lines.length;g++){for(var y=t.lines[g],b=y.tokens,w=b.length,x=y.lineHeight,S=y.width,_=0,k=h,A=m,C=w-1,T=void 0;_<w&&(!(T=b[_]).align||"left"===T.align);)this._placeToken(T,e,x,p,k,"left",v),S-=T.width,k+=T.width,_++;for(;C>=0&&"right"===(T=b[C]).align;)this._placeToken(T,e,x,p,A,"right",v),S-=T.width,A-=T.width,C--;for(k+=(n-(k-h)-(m-A)-S)/2;_<=C;)T=b[_],this._placeToken(T,e,x,p,k+T.width/2,"center",v),k+=T.width,_++;p+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&z9(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=j9(i,a,d),u-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(p9),h=f.createStyle();f.useStyle(h);var p=this._defaultStyle,m=!1,v=0,g=N9("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,p.fill)),y=L9("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||o||p.autoStroke&&!m?null:(v=2,p.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=i,h.y=u,b&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=a,h.textBaseline="middle",h.font=e.font||i0,h.opacity=Z0(s.opacity,t.opacity,1),M9(h,s),y&&(h.lineWidth=Z0(s.lineWidth,t.lineWidth,v),h.lineDash=q0(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=y),g&&(h.fill=g);var w=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new x2(r4(h.x,w,h.textAlign),i4(h.y,x,h.textBaseline),w,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,f=u&&u.image,h=u&&!f,p=e.borderRadius,m=this;if(h||e.lineHeight||c&&d){(o=this._getOrCreateChild(k9)).useStyle(o.createStyle()),o.style.fill=null;var v=o.shape;v.x=n,v.y=r,v.width=i,v.height=a,v.r=p,o.dirtyShape()}if(h)(l=o.style).fill=u||null,l.fillOpacity=q0(e.fillOpacity,1);else if(f){(s=this._getOrCreateChild(g9)).onload=function(){m.dirtyStyle()};var g=s.style;g.image=u.image,g.x=n,g.y=r,g.width=i,g.height=a}c&&d&&((l=o.style).lineWidth=c,l.stroke=d,l.strokeOpacity=q0(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Z0(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return D9(e)&&(t=[e.fontStyle,e.fontWeight,E9(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&e1(t)||e.textFont||e.font},t}(u6),O9={left:!0,right:1,center:1},I9={top:1,bottom:1,middle:1},P9=["fontStyle","fontWeight","fontSize","fontFamily"];function E9(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function M9(e,t){for(var n=0;n<P9.length;n++){var r=P9[n],i=t[r];null!=i&&(e[r]=i)}}function D9(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function R9(e){if(e){e.font=T9.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||O9[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||I9[n]?n:"top",e.padding&&(e.padding=Q0(e.padding))}}function L9(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function N9(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function j9(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function F9(e){var t=e.text;return null!=t&&(t+=""),t}function z9(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var B9=b8(),V9=function(e,t,n,r){if(r){var i=B9(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=B9(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},H9=1,W9={},U9=b8(),X9=b8(),G9=["emphasis","blur","select"],Y9=["normal","emphasis","blur","select"],K9=10,q9="highlight",Z9="downplay",J9="select",Q9="unselect",$9="toggleSelect";function e7(e){return null!=e&&"none"!==e}function t7(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function n7(e){t7(e,"emphasis",2)}function r7(e){2===e.hoverState&&t7(e,"normal",0)}function i7(e){t7(e,"blur",1)}function a7(e){1===e.hoverState&&t7(e,"normal",0)}function o7(e){e.selected=!0}function s7(e){e.selected=!1}function l7(e,t,n){t(e,n)}function u7(e,t,n){l7(e,t,n),e.isGroup&&e.traverse(function(e){l7(e,t,n)})}function c7(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function d7(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&C0(n,"select")>=0,a=!1;if(e instanceof f9){var o=U9(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(e7(s)||e7(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(a=!0,r=k0({},r),(u=k0({},u)).fill=s):!e7(u.fill)&&e7(s)?(a=!0,r=k0({},r),(u=k0({},u)).fill=V3(s)):!e7(u.stroke)&&e7(l)&&(a||(r=k0({},r),u=k0({},u)),u.stroke=V3(l)),r.style=u}}if(r&&null==r.z2){a||(r=k0({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:K9)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=C0(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,t)}return a}(e,["opacity"],t,{opacity:1}),o=(n=n||{}).style||{};return null==o.opacity&&(n=k0({},n),o=k0({opacity:r?i:.1*a.opacity},o),n.style=o),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=k0({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function f7(e){e.stateProxy=d7;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=d7),n&&(n.stateProxy=d7)}function h7(e,t){!x7(e,t)&&!e.__highByOuter&&u7(e,n7)}function p7(e,t){!x7(e,t)&&!e.__highByOuter&&u7(e,r7)}function m7(e,t){e.__highByOuter|=1<<(t||0),u7(e,n7)}function v7(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&u7(e,r7)}function g7(e){u7(e,i7)}function y7(e){u7(e,a7)}function b7(e){u7(e,o7)}function w7(e){u7(e,s7)}function x7(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function S7(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=X9(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){a7(e)}),o&&n.push(i)),a.isBlured=!1}),I0(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function _7(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&y7(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||i7(e)}),O0(t))a(e.getData(),t);else if(V0(t))for(var c=D0(t),d=0;d<c.length;d++)a(e.getData(c[d]),t[c[d]]);l.push(e),X9(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function k7(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){X9(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){i7(e)})}}}function A7(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,l=o.findHighDownDispatchers(n),u=0;u<l.length;u++)if(L7(l[u])||J4("param should be highDownDispatcher"),"self"===B9(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function C7(e){I0(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?b7(t):w7(t)})})}function T7(e){var t=[];return e.eachSeries(function(e){I0(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}})}),t}function O7(e,t,n){R7(e,!0),u7(e,f7),P7(e,t,n)}function I7(e,t,n,r){r?function(e){R7(e,!1)}(e):O7(e,t,n)}function P7(e,t,n){var r=B9(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var E7=["emphasis","blur","select"],M7={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function D7(e,t,n,r){n=n||"itemStyle";for(var i=0;i<E7.length;i++){var a=E7[i],o=t.getModel([a,n]);e.ensureState(a).style=r?r(o):o[M7[n]]()}}function R7(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function L7(e){return!(!e||!e.__highDownDispatcher)}function N7(e){var t=e.type;return t===J9||t===Q9||t===$9}function j7(e){var t=e.type;return t===q9||t===Z9}var F7=X6.CMD,z7=[[],[],[]],B7=Math.sqrt,V7=Math.atan2;function H7(e,t){if(t){var n,r,i,a,o,s,l=e.data,u=e.len(),c=F7.M,d=F7.C,f=F7.L,h=F7.R,p=F7.A,m=F7.Q;for(i=0,a=0;i<u;){switch(n=l[i++],a=i,r=0,n){case c:case f:r=1;break;case d:r=3;break;case m:r=2;break;case p:var v=t[4],g=t[5],y=B7(t[0]*t[0]+t[1]*t[1]),b=B7(t[2]*t[2]+t[3]*t[3]),w=V7(-t[1]/b,t[0]/y);l[i]*=y,l[i++]+=v,l[i]*=b,l[i++]+=g,l[i++]*=y,l[i++]*=b,l[i++]+=w,l[i++]+=w,a=i+=2;break;case h:s[0]=l[i++],s[1]=l[i++],O1(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],O1(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var x=z7[o];x[0]=l[i++],x[1]=l[i++],O1(x,x,t),l[a++]=x[0],l[a++]=x[1]}}e.increaseVersion()}}var W7=Math.sqrt,U7=Math.sin,X7=Math.cos,G7=Math.PI;function Y7(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function K7(e,t){return(e[0]*t[0]+e[1]*t[1])/(Y7(e)*Y7(t))}function q7(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(K7(e,t))}function Z7(e,t,n,r,i,a,o,s,l,u,c){var d=l*(G7/180),f=X7(d)*(e-n)/2+U7(d)*(t-r)/2,h=-1*U7(d)*(e-n)/2+X7(d)*(t-r)/2,p=f*f/(o*o)+h*h/(s*s);p>1&&(o*=W7(p),s*=W7(p));var m=(i===a?-1:1)*W7((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,v=m*o*h/s,g=m*-s*f/o,y=(e+n)/2+X7(d)*v-U7(d)*g,b=(t+r)/2+U7(d)*v+X7(d)*g,w=q7([1,0],[(f-v)/o,(h-g)/s]),x=[(f-v)/o,(h-g)/s],S=[(-1*f-v)/o,(-1*h-g)/s],_=q7(x,S);if(K7(x,S)<=-1&&(_=G7),K7(x,S)>=1&&(_=0),_<0){var k=Math.round(_/G7*1e6)/1e6;_=2*G7+k%2*G7}c.addData(u,y,b,o,s,w,_,d,a)}var J7=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Q7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var $7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.applyTransform=function(e){},t}(f9);function eee(e){return null!=e.setData}function tee(e,t){var n=function(e){var t=new X6;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=X6.CMD,l=e.match(J7);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),f=void 0,h=c.match(Q7)||[],p=h.length,m=0;m<p;m++)h[m]=parseFloat(h[m]);for(var v=0;v<p;){var g=void 0,y=void 0,b=void 0,w=void 0,x=void 0,S=void 0,_=void 0,k=r,A=i,C=void 0,T=void 0;switch(d){case"l":r+=h[v++],i+=h[v++],f=s.L,t.addData(f,r,i);break;case"L":r=h[v++],i=h[v++],f=s.L,t.addData(f,r,i);break;case"m":r+=h[v++],i+=h[v++],f=s.M,t.addData(f,r,i),a=r,o=i,d="l";break;case"M":r=h[v++],i=h[v++],f=s.M,t.addData(f,r,i),a=r,o=i,d="L";break;case"h":r+=h[v++],f=s.L,t.addData(f,r,i);break;case"H":r=h[v++],f=s.L,t.addData(f,r,i);break;case"v":i+=h[v++],f=s.L,t.addData(f,r,i);break;case"V":i=h[v++],f=s.L,t.addData(f,r,i);break;case"C":f=s.C,t.addData(f,h[v++],h[v++],h[v++],h[v++],h[v++],h[v++]),r=h[v-2],i=h[v-1];break;case"c":f=s.C,t.addData(f,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i),r+=h[v-2],i+=h[v-1];break;case"S":g=r,y=i,C=t.len(),T=t.data,n===s.C&&(g+=r-T[C-4],y+=i-T[C-3]),f=s.C,k=h[v++],A=h[v++],r=h[v++],i=h[v++],t.addData(f,g,y,k,A,r,i);break;case"s":g=r,y=i,C=t.len(),T=t.data,n===s.C&&(g+=r-T[C-4],y+=i-T[C-3]),f=s.C,k=r+h[v++],A=i+h[v++],r+=h[v++],i+=h[v++],t.addData(f,g,y,k,A,r,i);break;case"Q":k=h[v++],A=h[v++],r=h[v++],i=h[v++],f=s.Q,t.addData(f,k,A,r,i);break;case"q":k=h[v++]+r,A=h[v++]+i,r+=h[v++],i+=h[v++],f=s.Q,t.addData(f,k,A,r,i);break;case"T":g=r,y=i,C=t.len(),T=t.data,n===s.Q&&(g+=r-T[C-4],y+=i-T[C-3]),r=h[v++],i=h[v++],f=s.Q,t.addData(f,g,y,r,i);break;case"t":g=r,y=i,C=t.len(),T=t.data,n===s.Q&&(g+=r-T[C-4],y+=i-T[C-3]),r+=h[v++],i+=h[v++],f=s.Q,t.addData(f,g,y,r,i);break;case"A":b=h[v++],w=h[v++],x=h[v++],S=h[v++],_=h[v++],Z7(k=r,A=i,r=h[v++],i=h[v++],S,_,b,w,x,f=s.A,t);break;case"a":b=h[v++],w=h[v++],x=h[v++],S=h[v++],_=h[v++],Z7(k=r,A=i,r+=h[v++],i+=h[v++],S,_,b,w,x,f=s.A,t)}}"z"!==d&&"Z"!==d||(f=s.Z,t.addData(f),r=a,i=o),n=f}return t.toStatic(),t}(e),r=k0({},t);return r.buildPath=function(e){if(eee(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){H7(n,e),this.dirtyShape()},r}function nee(e,t){return new $7(tee(e,t))}function ree(e,t){t=t||{};var n=new f9;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?H7(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var iee=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),aee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new iee},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(f9);aee.prototype.type="circle";var oee=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),see=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new oee},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-l,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-l,r+a,i),e.bezierCurveTo(r+a,i+l,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+l,r-a,i),e.closePath()},t}(f9);see.prototype.type="ellipse";var lee=Math.PI,uee=2*lee,cee=Math.sin,dee=Math.cos,fee=Math.acos,hee=Math.atan2,pee=Math.abs,mee=Math.sqrt,vee=Math.max,gee=Math.min,yee=1e-4;function bee(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/mee(s*s+l*l),c=u*l,d=-u*s,f=e+c,h=t+d,p=n+c,m=r+d,v=(f+p)/2,g=(h+m)/2,y=p-f,b=m-h,w=y*y+b*b,x=i-a,S=f*m-p*h,_=(b<0?-1:1)*mee(vee(0,x*x*w-S*S)),k=(S*b-y*_)/w,A=(-S*y-b*_)/w,C=(S*b+y*_)/w,T=(-S*y+b*_)/w,O=k-v,I=A-g,P=C-v,E=T-g;return O*O+I*I>P*P+E*E&&(k=C,A=T),{cx:k,cy:A,x0:-c,y0:-d,x1:k*(i/x-1),y1:A*(i/x-1)}}function wee(e,t){var n,r=vee(t.r,0),i=vee(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,f=pee(l-s),h=f>uee&&f%uee;if(h>yee&&(f=h),r>yee)if(f>uee-yee)e.moveTo(u+r*dee(s),c+r*cee(s)),e.arc(u,c,r,s,l,!d),i>yee&&(e.moveTo(u+i*dee(l),c+i*cee(l)),e.arc(u,c,i,l,s,d));else{var p=void 0,m=void 0,v=void 0,g=void 0,y=void 0,b=void 0,w=void 0,x=void 0,S=void 0,_=void 0,k=void 0,A=void 0,C=void 0,T=void 0,O=void 0,I=void 0,P=r*dee(s),E=r*cee(s),M=i*dee(l),D=i*cee(l),R=f>yee;if(R){var L=t.cornerRadius;L&&(p=(n=function(e){var t;if(N0(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],m=n[1],v=n[2],g=n[3]);var N=pee(r-i)/2;if(y=gee(N,v),b=gee(N,g),w=gee(N,p),x=gee(N,m),k=S=vee(y,b),A=_=vee(w,x),(S>yee||_>yee)&&(C=r*dee(l),T=r*cee(l),O=i*dee(s),I=i*cee(s),f<lee)){var j=function(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,f=d*l-c*u;if(!(f*f<yee))return[e+(f=(c*(t-a)-d*(e-i))/f)*l,t+f*u]}(P,E,O,I,C,T,M,D);if(j){var F=P-j[0],z=E-j[1],B=C-j[0],V=T-j[1],H=1/cee(fee((F*B+z*V)/(mee(F*F+z*z)*mee(B*B+V*V)))/2),W=mee(j[0]*j[0]+j[1]*j[1]);k=gee(S,(r-W)/(H+1)),A=gee(_,(i-W)/(H-1))}}}if(R)if(k>yee){var U=gee(v,k),X=gee(g,k),G=bee(O,I,P,E,r,U,d),Y=bee(C,T,M,D,r,X,d);e.moveTo(u+G.cx+G.x0,c+G.cy+G.y0),k<S&&U===X?e.arc(u+G.cx,c+G.cy,k,hee(G.y0,G.x0),hee(Y.y0,Y.x0),!d):(U>0&&e.arc(u+G.cx,c+G.cy,U,hee(G.y0,G.x0),hee(G.y1,G.x1),!d),e.arc(u,c,r,hee(G.cy+G.y1,G.cx+G.x1),hee(Y.cy+Y.y1,Y.cx+Y.x1),!d),X>0&&e.arc(u+Y.cx,c+Y.cy,X,hee(Y.y1,Y.x1),hee(Y.y0,Y.x0),!d))}else e.moveTo(u+P,c+E),e.arc(u,c,r,s,l,!d);else e.moveTo(u+P,c+E);if(i>yee&&R)if(A>yee){U=gee(p,A),G=bee(M,D,C,T,i,-(X=gee(m,A)),d),Y=bee(P,E,O,I,i,-U,d);e.lineTo(u+G.cx+G.x0,c+G.cy+G.y0),A<_&&U===X?e.arc(u+G.cx,c+G.cy,A,hee(G.y0,G.x0),hee(Y.y0,Y.x0),!d):(X>0&&e.arc(u+G.cx,c+G.cy,X,hee(G.y0,G.x0),hee(G.y1,G.x1),!d),e.arc(u,c,i,hee(G.cy+G.y1,G.cx+G.x1),hee(Y.cy+Y.y1,Y.cx+Y.x1),d),U>0&&e.arc(u+Y.cx,c+Y.cy,U,hee(Y.y1,Y.x1),hee(Y.y0,Y.x0),!d))}else e.lineTo(u+M,c+D),e.arc(u,c,i,l,s,d);else e.lineTo(u+M,c+D)}else e.moveTo(u,c);e.closePath()}}}var xee=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),See=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new xee},t.prototype.buildPath=function(e,t){wee(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(f9);See.prototype.type="sector";var _ee=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),kee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new _ee},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(f9);function Aee(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,l=[],u=[],c=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,h=e.length;f<h;f++)I1(o,o,e[f]),P1(s,s,e[f]);I1(o,o,r[0]),P1(s,s,r[1])}for(f=0,h=e.length;f<h;f++){var p=e[f];if(n)i=e[f?f-1:h-1],a=e[(f+1)%h];else{if(0===f||f===h-1){l.push(v1(e[f]));continue}i=e[f-1],a=e[f+1]}w1(u,a,i),S1(u,u,t);var m=k1(p,i),v=k1(p,a),g=m+v;0!==g&&(m/=g,v/=g),S1(c,u,-m),S1(d,u,v);var y=y1([],p,c),b=y1([],p,d);r&&(P1(y,y,o),I1(y,y,s),P1(b,b,o),I1(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}kee.prototype.type="ring";var Cee=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Tee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new Cee},t.prototype.buildPath=function(e,t){Aee(e,t,!0)},t}(f9);Tee.prototype.type="polygon";var Oee=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Iee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Oee},t.prototype.buildPath=function(e,t){Aee(e,t,!1)},t}(f9);Iee.prototype.type="polyline";var Pee={},Eee=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),Mee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Eee},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=b9(Pee,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(f9);Mee.prototype.type="line";var Dee=[],Ree=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function Lee(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?n3:t3)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?n3:t3)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?u3:l3)(e.x1,e.cpx1,e.x2,t),(n?u3:l3)(e.y1,e.cpy1,e.y2,t)]}var Nee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ree},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(d3(n,o,i,c,Dee),o=Dee[1],i=Dee[2],d3(r,s,a,c,Dee),s=Dee[1],a=Dee[2]),e.quadraticCurveTo(o,s,i,a)):(c<1&&(a3(n,o,l,i,c,Dee),o=Dee[1],l=Dee[2],i=Dee[3],a3(r,s,u,a,c,Dee),s=Dee[1],u=Dee[2],a=Dee[3]),e.bezierCurveTo(o,s,l,u,i,a)))},t.prototype.pointAt=function(e){return Lee(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Lee(this.shape,e,!0);return _1(t,t)},t}(f9);Nee.prototype.type="bezier-curve";var jee=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Fee=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jee},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,a,o,!s)},t}(f9);Fee.prototype.type="arc";var zee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return e0(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),f9.prototype.getBoundingRect.call(this)},t}(f9),Bee=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Vee=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return e0(t,e),t}(Bee),Hee=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=null==t?.5:t,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return e0(t,e),t}(Bee),Wee=[0,0],Uee=[0,0],Xee=new f2,Gee=new f2,Yee=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new f2;for(n=0;n<2;n++)this._axes[n]=new f2;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);f2.sub(r[0],n[1],n[0]),f2.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Xee.set(1/0,1/0),Gee.set(0,0),!this._intersectCheckOneSide(this,e,Xee,Gee,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Xee,Gee,r,-1)&&(n=!1,r)||r||f2.copy(t,n?Xee:Gee),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Wee),this._getProjMinMaxOnAxis(s,t._corners,Uee),Wee[1]<Uee[0]||Wee[0]>Uee[1]){if(o=!1,i)return o;var u=Math.abs(Uee[0]-Wee[1]),c=Math.abs(Wee[0]-Uee[1]);Math.min(u,c)>r.len()&&(u<c?f2.scale(r,l,-u*a):f2.scale(r,l,c*a))}else if(n){u=Math.abs(Uee[0]-Wee[1]),c=Math.abs(Wee[0]-Uee[1]);Math.min(u,c)<n.len()&&(u<c?f2.scale(n,l,u*a):f2.scale(n,l,-c*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}(),Kee=[],qee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e0(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new x2(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Kee)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(u6),Zee=b8();function Jee(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=q0(r.duration,200),u=q0(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(u=a.easing),null!=a.delay&&(c=a.delay)),j0(c)&&(c=c(n,i)),j0(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function Qee(e,t,n,r,i,a,o){var s,l=!1;j0(i)?(o=a,a=i,i=null):V0(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=Jee(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function $ee(e,t,n,r,i,a){Qee("update",e,t,n,r,i,a)}function ete(e,t,n,r,i,a){Qee("enter",e,t,n,r,i,a)}function tte(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function nte(e,t,n,r,i,a){tte(e)||Qee("leave",e,t,n,r,i,a)}function rte(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),nte(e,{style:{opacity:0}},t,n,r)}function ite(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||rte(e,t,n,r)}):rte(e,t,n,r)}function ate(e){Zee(e).oldStyle=e.style}var ote=Math.max,ste=Math.min,lte={};var ute=function(e,t){var n=tee(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return e0(t,e),t}($7)};function cte(e,t){lte[e]=t}function dte(e){if(lte.hasOwnProperty(e))return lte[e]}function fte(e,t,n,r){var i=nee(e,t);return n&&("center"===r&&(n=pte(n,i.getBoundingRect())),vte(i,n)),i}function hte(e,t,n){var r=new g9({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(pte(t,i))}}});return r}function pte(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var mte=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new f9(t);return o.createPathProxy(),o.buildPath=function(e){if(eee(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function vte(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function gte(e,t){return b9(e,e,{lineWidth:t}),e}var yte=x9;function bte(e,t){for(var n=a2([]);e&&e!==t;)s2(n,e.getLocalTransform(),n),e=e.parent;return n}function wte(e,t,n){return t&&!O0(t)&&(t=Z5.getLocalTransform(t)),n&&(t=d2([],t)),O1([],e,t)}function xte(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=wte(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ste(e){return!e.isGroup}function _te(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Ste(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Ste(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),$ee(e,r,n,B9(e).dataIndex)}}})}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=k0({},e.shape)),t}}function kte(e,t){return P0(e,function(e){var n=e[0];n=ote(n,t.x),n=ste(n,t.x+t.width);var r=e[1];return r=ote(r,t.y),[n,r=ste(r,t.y+t.height)]})}function Ate(e,t,n){var r=k0({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),A0(i,n),new g9(r)):fte(e.replace("path://",""),r,n,"center")}function Cte(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Tte(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Tte(e,t,n,r,i,a,o,s){var l,u=n-e,c=r-t,d=o-i,f=s-a,h=Ote(d,f,u,c);if((l=h)<=1e-6&&l>=-1e-6)return!1;var p=e-i,m=t-a,v=Ote(p,m,u,c)/h;if(v<0||v>1)return!1;var g=Ote(p,m,d,f)/h;return!(g<0||g>1)}function Ote(e,t,n,r){return e*r-n*t}function Ite(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=F0(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&I0(D0(l),function(e){d1(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=B9(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:A0({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Pte(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Ete(e,t){if(e)if(N0(e))for(var n=0;n<e.length;n++)Pte(e[n],t);else Pte(e,t)}cte("circle",aee),cte("ellipse",see),cte("sector",See),cte("ring",kee),cte("polygon",Tee),cte("polyline",Iee),cte("rect",k9),cte("line",Mee),cte("bezierCurve",Nee),cte("arc",Fee);const Mte=Object.freeze(Object.defineProperty({__proto__:null,Arc:Fee,BezierCurve:Nee,BoundingRect:x2,Circle:aee,CompoundPath:zee,Ellipse:see,Group:y4,Image:g9,IncrementalDisplayable:qee,Line:Mee,LinearGradient:Vee,OrientedBoundingRect:Yee,Path:f9,Point:f2,Polygon:Tee,Polyline:Iee,RadialGradient:Hee,Rect:k9,Ring:kee,Sector:See,Text:T9,applyTransform:wte,clipPointsByRect:kte,clipRectByRect:function(e,t){var n=ote(e.x,t.x),r=ste(e.x+e.width,t.x+t.width),i=ote(e.y,t.y),a=ste(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}},createIcon:Ate,extendPath:function(e,t){return ute(e,t)},extendShape:function(e){return f9.extend(e)},getShapeClass:dte,getTransform:bte,groupTransition:_te,initProps:ete,isElementRemoved:tte,lineLineIntersect:Tte,linePolygonIntersect:Cte,makeImage:hte,makePath:fte,mergePath:mte,registerShape:cte,removeElement:nte,removeElementWithFadeOut:ite,resizePath:vte,setTooltipConfig:Ite,subPixelOptimize:yte,subPixelOptimizeLine:gte,subPixelOptimizeRect:function(e){return w9(e.shape,e.shape,e.style),e},transformDirection:xte,traverseElements:Ete,updateProps:$ee},Symbol.toStringTag,{value:"Module"}));var Dte={};function Rte(e,t){for(var n=0;n<G9.length;n++){var r=G9[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Lte(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=j0(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},u=0;u<G9.length;u++){var c=G9[u],d=t[c];l[c]=q0(i?i.getFormattedLabel(a,c,null,o,d&&d.get("formatter")):null,r)}return l}function Nte(e,t,n,r){n=n||Dte;for(var i=e instanceof T9,a=!1,o=0;o<Y9.length;o++){if((f=t[Y9[o]])&&f.getShallow("show")){a=!0;break}}var s=i?e:e.getTextContent();if(a){i||(s||(s=new T9,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Lte(n,t),u=t.normal,c=!!u.getShallow("show"),d=Fte(u,r&&r.normal,n,!1,!i);d.text=l.normal,i||e.setTextConfig(zte(u,n,!1));for(o=0;o<G9.length;o++){var f,h=G9[o];if(f=t[h]){var p=s.ensureState(h),m=!!q0(f.getShallow("show"),c);if(m!==c&&(p.ignore=!m),p.style=Fte(f,r&&r[h],n,!0,!i),p.style.text=l[h],!i)e.ensureState(h).textConfig=zte(f,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(Xte(s).setLabelText=function(e){var r=Lte(n,t,e);Rte(s,r)})}else s&&(s.ignore=!0);e.dirty()}function jte(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<G9.length;r++){var i=G9[r];n[i]=e.getModel([i,t])}return n}function Fte(e,t,n,r,i){var a={};return function(e,t,n,r,i){n=n||Dte;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Dte).rich;if(n){t=t||{};for(var r=D0(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Wte(a[u]={},c,s,n,r,i,!1,!0)}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");null!=f&&(e.margin=f);Wte(e,t,s,n,r,i,!0,!1)}(a,e,n,r,i),t&&k0(a,t),a}function zte(e,t,n){t=t||{};var r,i={},a=e.getShallow("rotate"),o=q0(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=a&&(a*=Math.PI/180,i.rotation=a),null!=o&&(i.distance=o),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Bte=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Vte=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Hte=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wte(e,t,n,r,i,a,o,s){n=!i&&n||Dte;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=q0(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("auto"===u&&$4("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("auto"===c&&$4("color: 'auto'","color: 'inherit'"),c=l||null),a||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var f=q0(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(e.lineWidth=f);var h=q0(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var p=q0(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||a||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<Bte.length;m++){var v=Bte[m];null!=(y=q0(t.getShallow(v),n[v]))&&(e[v]=y)}for(m=0;m<Vte.length;m++){v=Vte[m];null!=(y=t.getShallow(v))&&(e[v]=y)}if(null==e.verticalAlign){var g=t.getShallow("baseline");null!=g&&(e.verticalAlign=g)}if(!o||!r.disableBox){for(m=0;m<Hte.length;m++){var y;v=Hte[m];null!=(y=t.getShallow(v))&&(e[v]=y)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||("auto"===e.backgroundColor&&$4("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||("auto"===e.borderColor&&$4("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function Ute(e,t){var n=t&&t.getModel("textStyle");return e1([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Xte=b8();function Gte(e,t,n,r){if(e){var i=Xte(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function Yte(e,t,n,r,i){var a=Xte(e);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=q0(a.interpolatedValue,a.prevValue),l=a.value;e.percent=0,(null==a.prevValue?ete:$ee)(e,{percent:1},r,t,null,function(r){var u=O8(n,a.precision,s,l,r);a.interpolatedValue=1===r?null:u;var c=Lte({labelDataIndex:t,labelFetcher:i,defaultText:o?o(u):u+""},a.statesModels,u);Rte(e,c)})}}var Kte,qte,Zte=["textStyle","color"],Jte=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qte=new T9,$te=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Zte):null)},e.prototype.getFont=function(){return Ute({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Jte.length;n++)t[Jte[n]]=this.getShallow(Jte[n]);return Qte.useStyle(t),Qte.update(),Qte.getBoundingRect()},e}(),ene=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tne=F8(ene),nne=function(){function e(){}return e.prototype.getLineStyle=function(e){return tne(this,e)},e}(),rne=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ine=F8(rne),ane=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return ine(this,e,t)},e}(),one=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){S0(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(x0(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!n0.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();M8(one),Kte=one,qte=["__\0is_clz",R8++].join("_"),Kte.prototype[qte]=!0,$0(!Kte.isInstance,'The method "is" can not be defined.'),Kte.isInstance=function(e){return!(!e||!e[qte])},T0(one,nne),T0(one,ane),T0(one,B8),T0(one,$te);var sne=Math.round(10*Math.random());function lne(e){return[e||"",sne++].join("_")}function une(e,t){return S0(S0({},e,!0),t,!0)}var cne="ZH",dne="EN",fne=dne,hne={},pne={},mne=n0.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||fne).toUpperCase().indexOf(cne)>-1?cne:fne;function vne(e,t){e=e.toUpperCase(),pne[e]=new one(t),hne[e]=t}function gne(e){return pne[e]}vne(dne,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),vne(cne,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var yne=1e3,bne=6e4,wne=36e5,xne=864e5,Sne=31536e6,_ne={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},kne="{yyyy}-{MM}-{dd}",Ane={year:"{yyyy}",month:"{yyyy}-{MM}",day:kne,hour:kne+" "+_ne.hour,minute:kne+" "+_ne.minute,second:kne+" "+_ne.second,millisecond:_ne.none},Cne=["year","month","day","hour","minute","second","millisecond"],Tne=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function One(e,t){return"0000".substr(0,t-(e+="").length)+e}function Ine(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Pne(e){return e===Ine(e)}function Ene(e,t,n,r){var i=j4(e),a=i[Rne(n)](),o=i[Lne(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[Nne(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[jne(n)](),d=(c-1)%12+1,f=i[Fne(n)](),h=i[zne(n)](),p=i[Bne(n)](),m=c>=12?"pm":"am",v=m.toUpperCase(),g=(r instanceof one?r:gne(r||mne)||pne[fne]).getModel("time"),y=g.get("month"),b=g.get("monthAbbr"),w=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,One(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,One(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,One(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,One(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,One(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,One(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,One(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,One(p,3)).replace(/{S}/g,p+"")}function Mne(e,t){var n=j4(e),r=n[Lne(t)]()+1,i=n[Nne(t)](),a=n[jne(t)](),o=n[Fne(t)](),s=n[zne(t)](),l=0===n[Bne(t)](),u=l&&0===s,c=u&&0===o,d=c&&0===a,f=d&&1===i;return f&&1===r?"year":f?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Dne(e,t,n){var r=B0(e)?j4(e):e;switch(t=t||Mne(e,n)){case"year":return r[Rne(n)]();case"half-year":return r[Lne(n)]()>=6?1:0;case"quarter":return Math.floor((r[Lne(n)]()+1)/4);case"month":return r[Lne(n)]();case"day":return r[Nne(n)]();case"half-day":return r[jne(n)]()/24;case"hour":return r[jne(n)]();case"minute":return r[Fne(n)]();case"second":return r[zne(n)]();case"millisecond":return r[Bne(n)]()}}function Rne(e){return e?"getUTCFullYear":"getFullYear"}function Lne(e){return e?"getUTCMonth":"getMonth"}function Nne(e){return e?"getUTCDate":"getDate"}function jne(e){return e?"getUTCHours":"getHours"}function Fne(e){return e?"getUTCMinutes":"getMinutes"}function zne(e){return e?"getUTCSeconds":"getSeconds"}function Bne(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Vne(e){return e?"setUTCFullYear":"setFullYear"}function Hne(e){return e?"setUTCMonth":"setMonth"}function Wne(e){return e?"setUTCDate":"setDate"}function Une(e){return e?"setUTCHours":"setHours"}function Xne(e){return e?"setUTCMinutes":"setMinutes"}function Gne(e){return e?"setUTCSeconds":"setSeconds"}function Yne(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Kne(e){if(!W4(e))return F0(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qne(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Zne=Q0;function Jne(e,t,n){function r(e){return e&&e1(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,o=e instanceof Date;if(a||o){var s=a?j4(e):e;if(!isNaN(+s))return Ene(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(o)return"-"}if("ordinal"===t)return z0(e)?r(e):B0(e)&&i(e)?e+"":"-";var l=H4(e);return i(l)?Kne(l):z0(e)?r(e):"boolean"==typeof e?e+"":"-"}var Qne=["a","b","c","d","e","f","g"],$ne=function(e,t){return"{"+e+(null==t?"":t)+"}"};function ere(e,t,n){N0(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Qne[a];e=e.replace($ne(o),$ne(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace($ne(Qne[l],s),n?W1(u):u)}return e}function tre(e,t){return t=t||"transparent",F0(e)?e:V0(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function nre(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var rre=I0,ire=["left","right","top","bottom","width","height"],are=[["width","left","right"],["height","top","bottom"]];function ore(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var m=f.width+(p?-p.x+f.x:0);(c=a+m)>r||l.newline?(a=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);(d=o+v)>i||l.newline?(a+=s+n,o=0,d=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)})}var sre=ore;function lre(e,t,n){n=Zne(n||0);var r=t.width,i=t.height,a=C4(e.left,r),o=C4(e.top,i),s=C4(e.right,r),l=C4(e.bottom,i),u=C4(e.width,r),c=C4(e.height,i),d=n[2]+n[0],f=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-f-a),isNaN(c)&&(c=i-l-d-o),null!=h&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=r-s-u-f),isNaN(o)&&(o=i-l-c-d),e.left||e.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-f}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-d}a=a||0,o=o||0,isNaN(u)&&(u=r-f-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var p=new x2(a+n[3],o+n[0],u,c);return p.margin=n,p}function ure(e,t,n,r,i,a){var o,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((a=a||e).x=e.x,a.y=e.y,!s&&!l)return!1;if("raw"===u)o="group"===e.type?new x2(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(o=o.clone()).applyTransform(c)}var d=lre(A0({width:o.width,height:o.height},t),n,r),f=s?d.x-o.x:0,h=l?d.y-o.y:0;return"raw"===u?(a.x=f,a.y=h):(a.x+=f,a.y+=h),a===e&&e.markRedraw(),!0}function cre(e){var t=e.layoutMode||e.constructor.layoutMode;return V0(t)?t:t?{type:t}:null}function dre(e,t,n){var r=n&&n.ignoreSize;!N0(r)&&(r=[r,r]);var i=o(are[0],0),a=o(are[1],1);function o(n,i){var a={},o=0,u={},c=0;if(rre(n,function(t){u[t]=e[t]}),rre(n,function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&o){if(o>=2)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!s(a,f)&&s(e,f)){a[f]=e[f];break}}return a}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){rre(e,function(e){t[e]=n[e]})}u(are[0],e,i),u(are[1],e,a)}function fre(e){return hre({},e)}function hre(e,t){return t&&e&&rre(ire,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}L0(ore,"vertical"),L0(ore,"horizontal");var pre=b8(),mre=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=lne("ec_cpt_model"),i}var n;return e0(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cre(this),r=n?fre(e):{};S0(e,t.getTheme().get(this.mainType)),S0(e,this.getDefaultOption()),n&&dre(e,r,n)},t.prototype.mergeOption=function(e,t){S0(this.option,e,!0);var n=cre(this);n&&dre(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[P8])}(e))return e.defaultOption;var t=pre(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=S0(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return A8(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(one);D8(mre,one),j8(mre),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=E8(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=E8(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}(mre),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,a){if(e.length){var o=function(e){var r={},i=[];return I0(e,function(a){var o=n(r,a),s=function(e,t){var n=[];return I0(e,function(e){C0(t,e)>=0&&n.push(e)}),n}(o.originalDeps=t(a),e);o.entryCount=s.length,0===o.entryCount&&i.push(a),I0(s,function(e){C0(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(r,e);C0(t.successor,e)<0&&t.successor.push(a)})}),{graph:r,noEntryList:i}}(r),s=o.graph,l=o.noEntryList,u={};for(I0(e,function(e){u[e]=!0});l.length;){var c=l.pop(),d=s[c],f=!!u[c];f&&(i.call(a,c,d.originalDeps.slice()),delete u[c]),I0(d.successor,f?p:h)}I0(u,function(){var t;throw t=e8("Circular dependency may exists: ",u,e,r),new Error(t)})}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,h(e)}}}(mre,function(e){var t=[];I0(mre.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=P0(t,function(e){return E8(e).main}),"dataset"!==e&&C0(t,"dataset")<=0&&t.unshift("dataset");return t});var vre="";"undefined"!=typeof navigator&&(vre=navigator.platform||"");var gre="rgba(0, 0, 0, 0.2)";const yre={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gre,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gre,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gre,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gre,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gre,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gre,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vre.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var bre=s1(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),wre="original",xre="arrayRows",Sre="objectRows",_re="keyedColumns",kre="typedArray",Are="unknown",Cre="column",Tre="row",Ore=1,Ire=2,Pre=3,Ere=b8();function Mre(e,t,n){var r={},i=Rre(t);if(!i||!e)return r;var a,o,s=[],l=[],u=t.ecModel,c=Ere(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;I0(e=e.slice(),function(t,n){var i=V0(t)?t:e[n]={name:t};"ordinal"===i.type&&null==a&&(a=n,o=p(i)),r[i.name]=[]});var f=c.get(d)||c.set(d,{categoryWayDim:o,valueWayDim:0});function h(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function p(e){var t=e.dimsDef;return t?t.length:1}return I0(e,function(e,t){var n=e.name,i=p(e);if(null==a){var o=f.valueWayDim;h(r[n],o,i),h(l,o,i),f.valueWayDim+=i}else if(a===t)h(r[n],0,i),h(s,0,i);else{o=f.categoryWayDim;h(r[n],o,i),h(l,o,i),f.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Dre(e,t,n){var r={};if(!Rre(e))return r;var i,a=t.sourceFormat,o=t.dimensionsDefine;a!==Sre&&a!==_re||I0(o,function(e,t){"name"===(V0(e)?e.name:e)&&(i=t)});var s=function(){for(var e={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Nre(t.data,a,t.seriesLayoutBy,o,t.startIndex,l);s.push(c);var d=c===Pre;if(d&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!d&&s[e.n]===Pre)&&(e.n=l),f(e)&&s[e.n]!==Pre)return e;d||(c===Ire&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(e){return null!=e.v&&null!=e.n}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Rre(e){if(!e.get("data",!0))return A8(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},_8).models[0]}function Lre(e,t){return Nre(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Nre(e,t,n,r,i,a){var o,s,l;if(W0(e))return Pre;if(r){var u=r[a];V0(u)?(s=u.name,l=u.type):F0(u)&&(s=u)}if(null!=l)return"ordinal"===l?Ore:Pre;if(t===xre){var c=e;if(n===Tre){for(var d=c[a],f=0;f<(d||[]).length&&f<5;f++)if(null!=(o=y(d[i+f])))return o}else for(f=0;f<c.length&&f<5;f++){var h=c[i+f];if(h&&null!=(o=y(h[a])))return o}}else if(t===Sre){var p=e;if(!s)return Pre;for(f=0;f<p.length&&f<5;f++){if((v=p[f])&&null!=(o=y(v[s])))return o}}else if(t===_re){if(!s)return Pre;if(!(d=e[s])||W0(d))return Pre;for(f=0;f<d.length&&f<5;f++)if(null!=(o=y(d[f])))return o}else if(t===wre){var m=e;for(f=0;f<m.length&&f<5;f++){var v,g=l8(v=m[f]);if(!N0(g))return Pre;if(null!=(o=y(g[a])))return o}}function y(e){var t=F0(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?Ire:Pre:t&&"-"!==e?Ore:void 0}return Pre}var jre=s1();var Fre,zre,Bre,Vre=b8(),Hre=b8(),Wre=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=a8(this.get("color",!0)),i=this.get("colorLayer",!0);return Xre(this,Vre,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=Vre)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function Ure(e,t,n,r){var i=a8(e.get(["aria","decal","decals"]));return Xre(e,Hre,i,null,t,n,r)}function Xre(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((c=c||n)&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}var Gre="\0_ec_inner",Yre={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Kre={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},qre={};var Zre=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new one(r),this._locale=new one(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){$0(null!=e,"option is null/undefined"),$0(1!==e[Gre],"please use chart.getOption()");var r=$re(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$re(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);I0(i,function(e,t){if(!mre.hasClass(t)){var n=Yre[t];n&&!qre[n]&&(J4("Component "+t+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),qre[n]=!0)}}),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Bre(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&I0(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=s1(),s=t&&t.replaceMergeMainTypeMap;Ere(this).datasetMap=s1(),I0(e,function(e,t){null!=e&&(mre.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?x0(e):S0(n[t],e,!0))}),s&&s.each(function(e,t){mre.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),mre.topologicalTravel(a,mre.getAllClassMainTypes(),function(t){var a=function(e,t,n){var r=jre.get(t);if(!r)return n;var i=r(e);if(!i)return n;for(var a=0;a<i.length;a++)$0(g8(i[a]));return n.concat(i)}(this,t,a8(e[t])),o=r.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=c8(o,a,l);(function(e,t,n){I0(e,function(e){var r=e.newOption;V0(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(u,t,mre),n[t]=null,r.set(t,null),i.set(t,0);var c,d,f=[],h=[],p=0;I0(u,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=mre.getClass(t,e.keyInfo.subType,!a);if(!o){var s=e.keyInfo.subType,l=Kre[s];return void(qre[s]||(qre[s]=!0,J4(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unknown series "+s)))}if("tooltip"===t){if(c)return void(d||(Z4("Currently only one tooltip component is allowed."),d=!0));c=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=k0({componentIndex:n},e.keyInfo);k0(r=new o(i,this,this,u),u),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(f.push(r.option),h.push(r),p++):(f.push(void 0),h.push(void 0))},this),n[t]=f,r.set(t,h),i.set(t,p),"series"===t&&Fre(this)},this),this._seriesIndices||Fre(this)},t.prototype.getOption=function(){var e=x0(this.option);return I0(e,function(t,n){if(mre.hasClass(n)){for(var r=a8(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!g8(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Gre],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(t);return o&&o.length?(null!=r?(n=[],I0(a8(r),function(e){o[e]&&n.push(o[e])})):n=null!=i?Jre("id",i,o):null!=a?Jre("name",a,o):M0(o,function(e){return!!e}),Qre(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a=e.query,o=e.mainType,s=(n=o+"Index",r=o+"Id",i=o+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:o,index:t[n],id:t[r],name:t[i]});return function(t){return e.filter?M0(t,e.filter):t}(Qre(s?this.queryComponents(s):M0(this._componentsMap.get(o),function(e){return!!e}),e))},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(j0(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=F0(e)?r.get(e):V0(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var l=o[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=h8(e,null);return M0(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return M0(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return M0(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){zre(this),I0(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){I0(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){zre(this),I0(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return I0(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return zre(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){zre(this);var n=[];I0(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=s1(n)},t.prototype.restoreData=function(e){Fre(this);var t=this._componentsMap,n=[];t.each(function(e,t){mre.hasClass(t)&&n.push(t)}),mre.topologicalTravel(n,mre.getAllClassMainTypes(),function(n){I0(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(Fre=function(e){var t=e._seriesIndices=[];I0(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=s1(t)},zre=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},void(Bre=function(e,t){e.option={},e.option[Gre]=1,e._componentsMap=s1({series:[]}),e._componentsCount=s1();var n,r,i,a=t.aria;V0(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,I0(r,function(e,t){"colorLayer"===t&&i||mre.hasClass(t)||("object"==typeof e?n[t]=n[t]?S0(n[t],e,!1):x0(e):null==n[t]&&(n[t]=e))}),S0(t,yre,!1),e._mergeOption(t,null)})),t}(one);function Jre(e,t,n){if(N0(t)){var r=s1();return I0(t,function(e){null!=e&&(null!=h8(e,null)&&r.set(e,!0))}),M0(n,function(t){return t&&r.get(t[e])})}var i=h8(t,null);return M0(n,function(t){return t&&null!=i&&t[e]===i})}function Qre(e,t){return t.hasOwnProperty("subType")?M0(e,function(e){return e&&e.subType===t.subType}):e}function $re(e){var t=s1();return e&&I0(a8(e.replaceMerge),function(e){$0(mre.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}T0(Zre,Wre);var eie=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tie=function(){return function(e){I0(eie,function(t){this[t]=R0(e[t],e)},this)}}(),nie={},rie=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];I0(nie,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){I0(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){nie[e]=t},e.get=function(e){return nie[e]},e}(),iie=/^(min|max)?(.+)$/,aie=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(I0(a8(e.series),function(e){e&&e.data&&W0(e.data)&&n1(e.data)}),I0(a8(e.dataset),function(e){e&&e.source&&W0(e.source)&&n1(e.source)})),e=x0(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);o?(i=o).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e);c&&(N0(u)?I0(u,function(e){e&&!e.option&&V0(e.query)&&V0(e.query.option)&&J4("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),e&&e.option&&(e.query?a.push(e):r||(r=e))}):J4("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function f(e){I0(t,function(t){t(e,n)})}return f(i),I0(l,function(e){return f(e)}),I0(a,function(e){return f(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],x0(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=x0(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)oie(a[u].query,r,i)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=P0(s,function(e){return x0(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}();function oie(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return I0(e,function(e,t){var n=t.match(iie);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[o],e,a)||(i=!1)}}),i}var sie=I0,lie=V0,uie=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cie(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=uie.length;n<r;n++){var i=uie[n],a=t.normal,o=t.emphasis;a&&a[i]&&($4("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?S0(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&($4("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?S0(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function die(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(Q4("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),n?(e[t].normal=e[t].emphasis=null,A0(e[t],r)):e[t]=r),i&&(Q4(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function fie(e){die(e,"itemStyle"),die(e,"lineStyle"),die(e,"areaStyle"),die(e,"label"),die(e,"labelLine"),die(e,"upperLabel"),die(e,"edgeLabel")}function hie(e,t){var n=lie(e)&&e[t],r=lie(n)&&n.textStyle;if(r){Q4("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=s8.length;i<a;i++){var o=s8[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function pie(e){e&&(fie(e),hie(e,"label"),e.emphasis&&hie(e.emphasis,"label"))}function mie(e){return N0(e)?e:e?[e]:[]}function vie(e){return(N0(e)?e[0]:e)||{}}function gie(e,t){sie(mie(e.series),function(e){lie(e)&&function(e){if(lie(e)){cie(e),fie(e),hie(e,"label"),hie(e,"upperLabel"),hie(e,"edgeLabel"),e.emphasis&&(hie(e.emphasis,"label"),hie(e.emphasis,"upperLabel"),hie(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(cie(t),pie(t));var n=e.markLine;n&&(cie(n),pie(n));var r=e.markArea;r&&pie(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!W0(a))for(var o=0;o<a.length;o++)pie(a[o]);I0(e.categories,function(e){fie(e)})}if(i&&!W0(i))for(o=0;o<i.length;o++)pie(i[o]);if((t=e.markPoint)&&t.data){var s=t.data;for(o=0;o<s.length;o++)pie(s[o])}if((n=e.markLine)&&n.data){var l=n.data;for(o=0;o<l.length;o++)N0(l[o])?(pie(l[o][0]),pie(l[o][1])):pie(l[o])}"gauge"===e.type?(hie(e,"axisLabel"),hie(e,"title"),hie(e,"detail")):"treemap"===e.type?(die(e.breadcrumb,"itemStyle"),I0(e.levels,function(e){fie(e)})):"tree"===e.type&&fie(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),sie(n,function(t){sie(mie(e[t]),function(e){e&&(hie(e,"axisLabel"),hie(e.axisPointer,"label"))})}),sie(mie(e.parallel),function(e){var t=e&&e.parallelAxisDefault;hie(t,"axisLabel"),hie(t&&t.axisPointer,"label")}),sie(mie(e.calendar),function(e){die(e,"itemStyle"),hie(e,"dayLabel"),hie(e,"monthLabel"),hie(e,"yearLabel")}),sie(mie(e.radar),function(e){hie(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name,Q4("name property in radar component has been changed to axisName")),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap,Q4("nameGap property in radar component has been changed to axisNameGap")),sie(e.indicator,function(e){e.text&&$4("text","name","radar.indicator")})}),sie(mie(e.geo),function(e){lie(e)&&(pie(e),sie(mie(e.regions),function(e){pie(e)}))}),sie(mie(e.timeline),function(e){pie(e),die(e,"label"),die(e,"itemStyle"),die(e,"controlStyle",!0);var t=e.data;N0(t)&&I0(t,function(e){V0(e)&&(die(e,"label"),die(e,"itemStyle"))})}),sie(mie(e.toolbox),function(e){die(e,"iconStyle"),sie(e.feature,function(e){die(e,"iconStyle")})}),hie(vie(e.axisPointer),"label"),hie(vie(e.tooltip).axisPointer,"label")}function yie(e){e&&I0(bie,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var bie=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xie=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sie(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<xie.length;n++){var r=xie[n][1],i=xie[n][0];null!=t[r]&&(t[i]=t[r],$4(r,i))}}function _ie(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&($4("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function kie(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,$4("downplay","blur","sunburst"))}function Aie(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Aie(e[n].children,t)}function Cie(e,t){gie(e,t),e.series=a8(e.series),I0(e.series,function(e){if(V0(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow,$4("clipOverflow","clip","line"));else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise,$4("clockWise","clockwise")),_ie(e.label),(i=e.data)&&!W0(i))for(var n=0;n<i.length;n++)_ie(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&($4("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n){for(var r,i=t.split(","),a=e,o=0;o<i.length-1;o++)null==a[r=i[o]]&&(a[r]={}),a=a[r];null==a[i[o]]&&(a[i[o]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(Sie(e),Sie(e.backgroundStyle),Sie(e.emphasis),(i=e.data)&&!W0(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(Sie(i[n]),Sie(i[n]&&i[n].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a,$4("highlightPolicy","emphasis.focus","sunburst"))),kie(e),Aie(e.data,kie)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&($4("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&($4("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(Q4("`mapLocation` is not used anymore."),A0(e,e.mapLocation)));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&($4("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),yie(e)}}),e.dataRange&&(e.visualMap=e.dataRange),I0(wie,function(t){var n=e[t];n&&(N0(n)||(n=[n]),I0(n,function(e){yie(e)}))})}function Tie(e){I0(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,u,c){var d,f,h=o.get(t.stackedDimension,c);if(isNaN(h))return i;s?f=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var p=NaN,m=n-1;m>=0;m--){var v=e[m];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,d)),f>=0){var g=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&g>0||"negative"===l&&g<0||"samesign"===l&&h>=0&&g>0||"samesign"===l&&h<=0&&g<0){h=M4(h,g),p=g;break}}}return r[0]=h,r[1]=p,r})})}var Oie,Iie,Pie,Eie,Mie,Die=function(){return function(e){this.data=e.data||(e.sourceFormat===_re?{}:[]),this.sourceFormat=e.sourceFormat||Are,this.seriesLayoutBy=e.seriesLayoutBy||Cre,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Lre(this,n)===Ore&&(r.type="ordinal")}}}();function Rie(e){return e instanceof Die}function Lie(e,t,n){n=n||jie(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Fie(i),startIndex:o,dimensionsDetectedCount:a};if(t===xre){var s=e;"auto"===r||null==r?zie(function(e){null!=e&&"-"!==e&&(F0(e)?null==o&&(o=1):o=0)},n,s,10):o=B0(r)?r:r?1:0,i||1!==o||(i=[],zie(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),a=i?i.length:n===Tre?s.length:s[0]?s[0].length:null}else if(t===Sre)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return D0(t)}(e));else if(t===_re)i||(i=[],I0(e,function(e,t){i.push(t)}));else if(t===wre){var l=l8(e[0]);a=N0(l)&&l.length||1}else t===kre&&$0(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Fie(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new Die({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:x0(t)})}function Nie(e){return new Die({data:e,sourceFormat:W0(e)?kre:wre})}function jie(e){var t=Are;if(W0(e))t=kre;else if(N0(e)){0===e.length&&(t=xre);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(N0(i)||W0(i)){t=xre;break}if(V0(i)){t=Sre;break}}}}else if(V0(e))for(var a in e)if(d1(e,a)&&O0(e[a])){t=_re;break}return t}function Fie(e){if(e){var t=s1();return P0(e,function(e,n){var r={name:(e=V0(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function zie(e,t,n,r){if(t===Tre)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)e(a[i],i)}}function Bie(e){var t=e.sourceFormat;return t===Sre||t===_re}var Vie=function(){function e(e,t){var n=Rie(e)?e:Nie(e);this._source=n;var r=this._data=n.data;if(n.sourceFormat===kre){if(null==t)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=r}Mie(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Mie=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine,c=Eie[Jie(o,s)];if($0(c,"Invalide sourceFormat: "+o),k0(e,c),o===kre)e.getItem=t,e.count=r,e.fillStorage=n;else{var d=Uie(o,s);e.getItem=R0(d,null,i,l,u);var f=Yie(o,s);e.count=R0(f,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],f=0;f<c;f++){var h=i[f*a+o];d[e+f]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[xre+"_"+Cre]={pure:!0,appendData:i},e[xre+"_"+Tre]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Sre]={pure:!0,appendData:i},e[_re]={pure:!0,appendData:function(e){var t=this._data;I0(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[wre]={appendData:i},e[kre]={persistent:!1,pure:!0,appendData:function(e){$0(W0(e),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Eie=e}(),e}(),Hie=function(e,t,n,r){return e[r]},Wie=((Oie={})[xre+"_"+Cre]=function(e,t,n,r){return e[r+t]},Oie[xre+"_"+Tre]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},Oie[Sre]=Hie,Oie[_re]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name;if(null==s)throw new Error;var l=e[s];a[o]=l?l[r]:null}return a},Oie[wre]=Hie,Oie);function Uie(e,t){var n=Wie[Jie(e,t)];return $0(n,'Do not support get item on "'+e+'", "'+t+'".'),n}var Xie=function(e,t,n){return e.length},Gie=((Iie={})[xre+"_"+Cre]=function(e,t,n){return Math.max(0,e.length-t)},Iie[xre+"_"+Tre]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Iie[Sre]=Xie,Iie[_re]=function(e,t,n){var r=n[0].name;if(null==r)throw new Error;var i=e[r];return i?i.length:0},Iie[wre]=Xie,Iie);function Yie(e,t){var n=Gie[Jie(e,t)];return $0(n,'Do not support count on "'+e+'", "'+t+'".'),n}var Kie=function(e,t,n){return e[t]},qie=((Pie={})[xre]=Kie,Pie[Sre]=function(e,t,n){return e[n]},Pie[_re]=Kie,Pie[wre]=function(e,t,n){var r=l8(e);return r instanceof Array?r[t]:r},Pie[kre]=Kie,Pie);function Zie(e){var t=qie[e];return $0(t,'Do not support get value on "'+e+'".'),t}function Jie(e,t){return e===xre?e+"_"+t:e}function Qie(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Zie(a)(r,o,s)}var l=r;return a===wre&&(l=l8(r)),l}}}var $ie=/\{@(.+?)\}/g,eae=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);(a&&(s.value=a.interpolatedValue),null!=r&&N0(s.value)&&(s.value=s.value[r]),i)||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return j0(i)?(s.status=t,s.dimensionIndex=r,i(s)):F0(i)?ere(i,s).replace($ie,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1),isNaN(i)&&J4("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=Qie(o,e,i);if(a&&N0(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return Qie(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function tae(e){var t,n;return V0(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function nae(e){return new rae(e)}var rae=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}o===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?($0(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):($0(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||f<h)){var p=this._progress;if(N0(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],f,h,l,u);else this._doProgress(p,f,h,l,u)}this._dueIndex=h;var v=null!=this._settedOutputEnd?this._settedOutputEnd:h;$0(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){iae.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:iae.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),N0(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){$0(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),iae=function(){var e,t,n,r,i,a={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function aae(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||B0(e)||null==e||"-"===e||(e=+j4(e)),null==e||""===e?NaN:Number(e))}var oae=s1({number:function(e){return parseFloat(e)},time:function(e){return+j4(e)},trim:function(e){return F0(e)?e1(e):e}});function sae(e){return oae.get(e)}var lae={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},uae=function(){function e(e,t){if(!B0(t)){t8('rvalue of "<", ">", "<=", ">=" can only be number in filter.')}this._opFn=lae[e],this._rvalFloat=H4(t)}return e.prototype.evaluate=function(e){return B0(e)?this._opFn(e,this._rvalFloat):this._opFn(H4(e),this._rvalFloat)},e}(),cae=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=B0(e)?e:H4(e),r=B0(t)?t:H4(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=F0(e),s=F0(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),dae=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=H4(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=H4(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function fae(e,t){return"eq"===e||"ne"===e?new dae("eq"===e,t):d1(lae,e)?new uae(e,t):null}var hae=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return aae(e,t)},e}();function pae(e){var t=e.sourceFormat;if(!wae(t)){t8("`getRawData` is not supported in source format "+t)}return e.data}function mae(e){var t=e.sourceFormat,n=e.data;if(!wae(t)){t8("`cloneRawData` is not supported in source format "+t)}if(t===xre){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===Sre){for(r=[],i=0,a=n.length;i<a;i++)r.push(k0({},n[i]));return r}}function vae(e,t,n){if(null!=n)return B0(n)||!isNaN(n)&&!d1(t,n)?e[n]:d1(t,n)?t[n]:void 0}function gae(e){return x0(e)}var yae=s1();function bae(e,t,n,r){t.length||t8("Must have at least one upstream dataset."),V0(e)||t8("transform declaration must be an object rather than "+typeof e+".");var i=e.type,a=yae.get(i);a||t8('Can not find transform on type "'+i+'".');var o,s=P0(t,function(e){return function(e,t){var n=new hae,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==Cre&&t8('`seriesLayoutBy` of upstream dataset can only be "column" in data transform.');var o=[],s={},l=e.dimensionsDefine;if(l)I0(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),null!=n&&(d1(s,n)&&t8('dimension name "'+n+'" duplicated.'),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount;u++)o.push({index:u});var c=Uie(i,Cre);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,a,o,e)},n.getRawData=R0(pae,null,e)),n.cloneRawData=R0(mae,null,e);var d=Yie(i,Cre);n.count=R0(d,null,r,a,o);var f=Zie(i);n.retrieveValue=function(e,t){var n=c(r,a,o,e);return h(n,t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];return n?f(e,t,n.name):void 0}};return n.getDimensionInfo=R0(vae,null,o,s),n.cloneAllDimensionInfo=R0(gae,null,o),n}(e,a)}),l=a8(a.transform({upstream:s[0],upstreamList:s,config:x0(e.config)}));if(e.print){var u=P0(l,function(e){var t=null!=r?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+t+" ===","- transform result data:",e8(e.data),"- transform result dimensions:",e8(e.dimensions)].join("\n")}).join("\n");q4(0,u,o)}return P0(l,function(e,n){var r;V0(e)||t8("A transform should not return some empty results."),e.data||t8("Transform result data should be not be null or undefined"),wae(jie(e.data))||t8("Transform result data should be array rows or object rows.");var i=t[0];if(i&&0===n&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:Cre,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Cre,sourceHeader:0,dimensions:e.dimensions};return Lie(e.data,r,null)})}function wae(e){return e===xre||e===Sre}var xae,Sae="undefined",_ae=typeof Uint32Array===Sae?Array:Uint32Array,kae=typeof Uint16Array===Sae?Array:Uint16Array,Aae=typeof Int32Array===Sae?Array:Int32Array,Cae=typeof Float64Array===Sae?Array:Float64Array,Tae={float:Cae,int:Aae,ordinal:Array,number:Array,time:Cae};function Oae(e){return e>65535?_ae:kae}function Iae(){return[1/0,-1/0]}function Pae(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Eae(e,t,n,r,i){var a=Tae[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(r)}var Mae=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=s1()}return e.prototype.initData=function(e,t,n){$0(j0(e.getItem)&&j0(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=xae[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=Bie(r);this._dimensions=P0(t,function(e){return a&&$0(null!=e.property),{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Tae[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;0===a&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){$0(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),l=0;l<i;l++){Eae(n,l,(h=r[l]).type,s,!0)}for(var u=[],c=o;c<s;c++)for(var d=c-o,f=0;f<i;f++){var h=r[f],p=xae.arrayRows.call(this,e[d]||u,h.property,d,f);n[f][c]=p;var m=a[f];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=P0(a,function(e){return e.property}),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=Iae()),Eae(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var h=0;h<o;h++){var p=i[h],m=this._dimValueGetter(d,l[h],f,h);p[f]=m;var v=s[h];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<a||d===a&&c>=0&&o<0)&&(a=d,o=c,s=0),c===o&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=Oae(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Oae(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,f=n.getRawIndex(c);if(0===o)d=t(c);else if(1===o){d=t(u[l][f],c)}else{for(var h=0;h<o;h++)a[h]=u[e[h]][f];a[h]=c,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=D0(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Oae(t._rawCount))(a),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,f=!1;if(!t._indices){var h=0;if(1===i){for(var p=d[r[0]],m=0;m<n;m++){((b=p[m])>=u&&b<=c||isNaN(b))&&(o[s++]=h),h++}f=!0}else if(2===i){p=d[r[0]];var v=d[r[1]],g=e[r[1]][0],y=e[r[1]][1];for(m=0;m<n;m++){var b=p[m],w=v[m];(b>=u&&b<=c||isNaN(b))&&(w>=g&&w<=y||isNaN(w))&&(o[s++]=h),h++}f=!0}}if(!f)if(1===i)for(m=0;m<a;m++){var x=t.getRawIndex(m);((b=d[r[0]][x])>=u&&b<=c||isNaN(b))&&(o[s++]=x)}else for(m=0;m<a;m++){for(var S=!0,_=(x=t.getRawIndex(m),0);_<i;_++){var k=r[_];((b=d[k][x])<e[k][0]||b>e[k][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(m))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=Iae();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=c;var h=n&&n.apply(null,s);if(null!=h){"object"!=typeof h&&(i[0]=h,h=i);for(u=0;u<h.length;u++){var p=t[u],m=h[u],v=l[p],g=r[p];g&&(g[d]=m),m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(Oae(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var f=1;f<s-1;f+=u){for(var h=Math.min(f+u,s-1),p=Math.min(f+2*u,s),m=(p+h)/2,v=0,g=h;g<p;g++){var y=o[A=this.getRawIndex(g)];isNaN(y)||(v+=y)}v/=p-h;var b=f,w=Math.min(f+u,s),x=f-1,S=o[c];n=-1,i=b;var _=-1,k=0;for(g=b;g<w;g++){var A;y=o[A=this.getRawIndex(g)];isNaN(y)?(k++,_<0&&(_=A)):(r=Math.abs((x-m)*(y-S)-(x-g)*(v-S)))>n&&(n=r,i=A)}k>0&&k<w-b&&(d[l++]=Math.min(_,i),i=Math.max(_,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),a._count=l,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Oae(this._rawCount))(2*Math.ceil(o/i)),l=0,u=0;u<o;u+=i){var c=u,d=a[this.getRawIndex(c)],f=u,h=a[this.getRawIndex(f)],p=i;u+i>o&&(p=o-u);for(var m=0;m<p;m++){var v=a[this.getRawIndex(u+m)];v<d&&(d=v,c=u+m),v>h&&(h=v,f=u+m)}var g=this.getRawIndex(c),y=this.getRawIndex(f);c<f?(s[l++]=g,s[l++]=y):(s[l++]=y,s[l++]=g)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),l=a[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],d=new(Oae(this._rawCount))(Math.ceil(u/s)),f=0,h=0;h<u;h+=s){s>u-h&&(s=u-h,o.length=s);for(var p=0;p<s;p++){var m=this.getRawIndex(h+p);o[p]=l[m]}var v=n(o),g=this.getRawIndex(Math.min(h+r(o,v)||0,u-1));l[g]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var a=(r=n)[0],o=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return r=[a,o],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&E0(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Pae(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=x0(this._extent),e._rawExtent=x0(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return aae(e[r],this._dimensions[r])}xae={arrayRows:e,objectRows:function(e,t,n,r){return aae(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return aae(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Dae=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Lae(n)){var a=n,o=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),o=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=W0(o=a.get("data",!0))?kre:wre,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},f=q0(c.seriesLayoutBy,d.seriesLayoutBy)||null,h=q0(c.sourceHeader,d.sourceHeader),p=q0(c.dimensions,d.dimensions);e=f!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||p?[Lie(o,{seriesLayoutBy:f,sourceHeader:h,dimensions:p},s)]:[]}else{var m=n;if(i){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{e=[Lie(m.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}$0(e&&t),this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if($0(null!=i||null!=r),null!=i){1!==e.length&&Nae("When using `fromTransformResult`, there should be only one upstream dataset")}var a,o=[],s=[];return I0(e,function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||Nae("Can not retrieve result by `fromTransformResult`: "+i),o.push(t),s.push(e._getVersionSign())}),r?t=function(e,t,n){var r=a8(e),i=r.length;i||t8("If `transform` declared, it should at least contain one transform.");for(var a=0,o=i;a<o;a++)t=bae(r[a],t,n,1===i?null:a),a!==o-1&&(t.length=Math.max(t.length,1));return t}(r,o,{datasetIndex:n.componentIndex}):null!=i&&(t=[(a=o[0],new Die({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:x0(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){$0(Lae(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];Lae(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new Mae).initData(new Vie(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Lae(e)){var t=Rre(e);return t?[t.getSourceManager()]:[]}return P0(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?A8(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},_8).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Lae(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Rae(e){e.option.transform&&n1(e.option.transform)}function Lae(e){return"series"===e.mainType}function Nae(e){throw new Error(e)}function jae(e){var t=e.lineHeight;return null==t?"line-height:1":"line-height:"+W1(t+"")+"px"}function Fae(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+W1(r+"")+"px;color:"+W1(n)+";font-weight:"+W1(i+""),valueStyle:"font-size:"+W1(o+"")+"px;color:"+W1(a)+";font-weight:"+W1(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var zae=[0,10,20,30],Bae=["","\n","\n\n","\n\n\n"];function Vae(e,t){return t.type=e,t}function Hae(e){return"section"===e.type}function Wae(e){return Hae(e)?Xae:Gae}function Uae(e){if(Hae(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return I0(e.blocks,function(e){var n=Uae(e);n>=t&&(t=n+ +(r&&(!n||Hae(e)&&!e.noHeader)))}),t}return 0}function Xae(e,t,n,r){var i,a=t.noHeader,o=(i=Uae(t),{html:zae[i],richText:Bae[i]}),s=[],l=t.blocks||[];$0(!l||N0(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(d1(c,u)){var d=new cae(c[u],null);l.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===u&&l.reverse()}I0(l,function(n,i){var a=t.valueFormatter,l=Wae(n)(a?k0(k0({},e),{valueFormatter:a}):e,n,i>0?o.html:0,r);null!=l&&s.push(l)});var f="richText"===e.renderMode?s.join(o.richText):Kae(r,s.join(""),a?n:o.html);if(a)return f;var h=Jne(t.header,"ordinal",e.useUTC),p=Fae(r,e.renderMode).nameStyle,m=jae(r);return"richText"===e.renderMode?qae(e,h,p)+o.richText+f:Kae(r,'<div style="'+p+";"+m+';">'+W1(h)+"</div>"+f,n)}function Gae(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return P0(e=N0(e)?e:[e],function(e,t){return Jne(e,N0(h)?h[t]:h,u)})};if(!a||!o){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=a?"":Jne(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),m=!s||!a,v=!s&&a,g=Fae(r,i),y=g.nameStyle,b=g.valueStyle;return"richText"===i?(s?"":d)+(a?"":qae(e,f,y))+(o?"":function(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(N0(t)?t.join("  "):t,a)}(e,p,m,v,b)):Kae(r,(s?"":d)+(a?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+W1(e)+"</span>"}(f,!s,y))+(o?"":function(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=N0(e)?e:[e],'<span style="'+a+";"+r+'">'+P0(e,function(e){return W1(e)}).join("&nbsp;&nbsp;")+"</span>"}(p,m,v,b)),n)}}function Yae(e,t,n,r,i,a){if(e)return Wae(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Kae(e,t,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+jae(e)+';">'+t+'<div style="clear:both"></div></div>'}function qae(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Zae(e,t){return tre(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function Jae(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Qae=function(){function e(){this.richTextStyles={},this._nextStyleNameId=U4()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=F0(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||"html";return r?"html"===a?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+W1(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+W1(r)+";"+(t||"")+'"></span>':{renderMode:a,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return F0(i)?i:($0(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};N0(t)?I0(t,function(e){return k0(n,e)}):k0(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function $ae(e){var t,n,r,i,a=e.series,o=e.dataIndex,s=e.multipleSeries,l=a.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=a.getRawValue(o),f=N0(d),h=Zae(a,o);if(c>1||f&&!c){var p=function(e,t,n,r,i){var a=t.getData(),o=E0(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?u.push(Vae("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?I0(r,function(e){c(Qie(a,n,e),e)}):I0(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,a,o,u,h);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var m=l.getDimensionInfo(u[0]);i=t=Qie(l,o,u[0]),n=m.type}else i=t=f?d[0]:d;var v=v8(a),g=v&&a.name||"",y=l.getName(o),b=s?g:y;return Vae("section",{header:g,noHeader:s||!v,sortParam:i,blocks:[Vae("nameValue",{markerType:"item",markerColor:h,name:b,noName:!e1(b),value:t,valueType:n,dataIndex:o})].concat(r||[])})}var eoe=b8();function toe(e,t){return e.getName(t)||e.getId(t)}var noe="__universalTransitionEnabled",roe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return e0(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=nae({count:aoe,reset:ooe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(eoe(this).sourceManager=new Dae(this)).prepareSource();var r=this.getInitialData(e,n);loe(r,this),this.dataTask.context.data=r,$0(r,"getInitialData returned invalid data."),eoe(this).dataBeforeProcessed=r,ioe(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cre(this),r=n?fre(e):{},i=this.subType;mre.hasClass(i)&&(i+="Series"),S0(e,t.getTheme().get(this.subType)),S0(e,this.getDefaultOption()),o8(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&dre(e,r,n)},t.prototype.mergeOption=function(e,t){e=S0(this.option,e,!0),this.fillDataTextStyle(e.data);var n=cre(this);n&&dre(this.option,e,n);var r=eoe(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);loe(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,eoe(this).dataBeforeProcessed=i,ioe(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!W0(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&o8(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=coe(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return eoe(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=coe(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}eoe(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return s1(e)},t.prototype.getSourceManager=function(){return eoe(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return eoe(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return $ae({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(n0.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Wre.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<e.length;a++){var o=toe(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=D0(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[toe(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[noe])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o)if("series"===a)i.selectedMap="all";else if("multiple"===a){V0(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var u=t[l];s[d=toe(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===a||!0===a){var c=t[o-1],d=toe(e,c);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return mre.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(mre);function ioe(e){var t=e.name;v8(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return I0(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function aoe(e){return e.model.getRawData().count()}function ooe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),soe}function soe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function loe(e,t){I0(l1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,L0(uoe,t))})}function uoe(e,t){var n=coe(e);return n&&n.setOutputEnd((t||this).count()),t}function coe(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}T0(roe,eae),T0(roe,Wre),D8(roe,mre);var doe=function(){function e(){this.group=new y4,this.uid=lne("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function foe(){var e=b8();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}M8(doe),j8(doe);var hoe=b8(),poe=foe(),moe=function(){function e(){this.group=new y4,this.uid=lne("viewChart"),this.renderTask=nae({plan:yoe,reset:boe}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){throw new Error("render method must been implemented")},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i?goe(i,r,"emphasis"):J4("Unknown dataType "+r.dataType)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i?goe(i,r,"normal"):J4("Unknown dataType "+r.dataType)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Ete(this.group,e)},e.markUpdateMethod=function(e,t){hoe(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function voe(e,t,n){e&&L7(e)&&("emphasis"===t?m7:v7)(e,n)}function goe(e,t,n){var r=y8(e,t),i=t&&null!=t.highlightKey?function(e){var t=W9[e];return null==t&&H9<=32&&(t=W9[e]=H9++),t}(t.highlightKey):null;null!=r?I0(a8(r),function(t){voe(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){voe(e,n,i)})}function yoe(e){return poe(e.model)}function boe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&hoe(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),woe[l]}M8(moe,["dispose"]),j8(moe);var woe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},xoe="\0__throttleOriginMethod",Soe="\0__throttleRate",_oe="\0__throttleType";function koe(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(a,o||[])}t=t||0;var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=(new Date).getTime(),a=this,o=e;var h=s||t,p=s||n;s=null,i=r-(p?l:u)-h,clearTimeout(c),p?c=setTimeout(d,h):i>=0?d():c=setTimeout(d,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(e){s=e},f}function Aoe(e,t,n,r){var i=e[t];if(i){var a=i[xoe]||i,o=i[_oe];if(i[Soe]!==n||o!==r){if(null==n||!r)return e[t]=a;(i=e[t]=koe(a,n,"debounce"===r))[xoe]=a,i[_oe]=r,i[Soe]=n}return i}}function Coe(e,t){var n=e[t];n&&n[xoe]&&(n.clear&&n.clear(),e[t]=n[xoe])}var Toe=b8(),Ooe={itemStyle:F8(rne,!0),lineStyle:F8(ene,!0)},Ioe={lineStyle:"stroke",itemStyle:"fill"};function Poe(e,t){var n=e.visualStyleMapper||Ooe[t];return n||Ooe.itemStyle}function Eoe(e,t){var n=e.visualDrawType||Ioe[t];return n||"fill"}var Moe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=Poe(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=Eoe(e,r),l=a[s],u=j0(l)?l:null,c="auto"===a.fill||"auto"===a.stroke;if(!a[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||j0(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||j0(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=k0({},a);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},Doe=new one,Roe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Poe(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Doe.option=n[r];var o=i(Doe);k0(e.ensureUniqueItemVisual(t,"style"),o),Doe.option.decal&&(e.setItemVisual(t,"decal",Doe.option.decal),Doe.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Loe={performRawSeries:!0,overallReset:function(e){var t=s1();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Toe(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=Toe(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=Eoe(t,o);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,a,c)}})}})}},Noe=Math.PI;var joe=function(){function e(e,t,n,r){this._stageTaskMap=s1(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:null!=a?Math.ceil(a/i):null,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=s1();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;I0(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});$0(!(r.reset&&r.overallReset),'"reset" and "overallReset" must not be both specified.'),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}I0(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,f=c.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),a.updatePayload(c,n);var h=a.getPerformArgs(c,r.block);f.each(function(e){e.perform(h)}),c.perform(h)&&(i=!0)}else u&&u.each(function(s,l){o(r,s)&&s.dirty();var u=a.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=s1(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=o.set(s,a&&a.get(s)||nae({plan:Hoe,reset:Woe,count:Goe}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||nae({reset:Foe});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=s1(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,nae({reset:zoe,onDirty:Voe})));n.context={model:e,overallProgress:c},n.agent=a,n.__block=c,i._pipe(e,n)}$0(!e.createOnAllSeries,'"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),l?n.eachRawSeriesByType(l,f):u?u(n,r).each(f):(c=!1,I0(n.getSeries(),f)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return j0(e)&&(e={overallReset:e,seriesType:Yoe(e)}),e.uid=lne("stageHandler"),t&&(e.visualType=t),e},e}();function Foe(e){e.overallReset(e.ecModel,e.api,e.payload)}function zoe(e){return e.overallProgress&&Boe}function Boe(){this.agent.dirty(),this.getDownstream().dirty()}function Voe(){this.agent&&this.agent.dirty()}function Hoe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Woe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=a8(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?P0(t,function(e,t){return Xoe(t)}):Uoe}var Uoe=Xoe(0);function Xoe(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function Goe(e){return e.data.count()}function Yoe(e){Koe=null;try{e(qoe,Zoe)}catch(kJe){}return Koe}var Koe,qoe={},Zoe={};function Joe(e,t){for(var n in t.prototype)e[n]=f1}Joe(qoe,Zre),Joe(Zoe,tie),qoe.eachSeriesByType=qoe.eachRawSeriesByType=function(e){Koe=e},qoe.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Koe=e.subType)};var Qoe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $oe={color:Qoe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Qoe]};var ese="#B9B8CE",tse="#100C2A",nse=function(){return{axisLine:{lineStyle:{color:ese}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},rse=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ise={darkMode:!0,color:rse,backgroundColor:tse,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ese},pageTextStyle:{color:ese}},textStyle:{color:ese},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ese}},dataZoom:{borderColor:"#71708A",textStyle:{color:ese},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ese}},timeline:{lineStyle:{color:ese},label:{color:ese},controlStyle:{color:ese,borderColor:ese}},calendar:{itemStyle:{color:tse},dayLabel:{color:ese},monthLabel:{color:ese},yearLabel:{color:ese}},timeAxis:nse(),logAxis:nse(),valueAxis:nse(),categoryAxis:nse(),line:{symbol:"circle"},graph:{color:rse},gauge:{title:{color:ese},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ese},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ise.categoryAxis.splitLine.show=!1;var ase=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(F0(e)){var i=E8(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};I0(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ose=["symbol","symbolSize","symbolRotate","symbolOffset"],sse=ose.concat(["symbolKeepAspect"]),lse={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<ose.length;o++){var s=ose[o],l=e.get(s);j0(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(k0({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=D0(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}},use={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<sse.length;r++){var i=sse[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null}}};function cse(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function dse(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function fse(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r)}}function hse(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}I0([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(e){t(e[0],function(t,r,i){$4((t=k0({},t)).type,e[1]),i.dispatchAction(k0(t,{type:e[1],seriesIndex:n(r,t)}))})})}function pse(e,t,n,r,i){var a=e+t;n.isSilent(a)||(Q4("event "+a+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var l=e.getData(),u=y8(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:N0(u)?l.getName(u[0]):l.getName(u),selected:F0(r)?r:k0({},r)})}}))}function mse(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var vse=Math.round(9*Math.random()),gse="function"==typeof Object.defineProperty,yse=function(){function e(){this._id="__ec_inner_"+vse++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return gse?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),bse=f9.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),wse=f9.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),xse=f9.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),f=Math.cos(u),h=.6*o,p=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*h,l+s+f*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+d*h,l+s+f*h,n-c,l+s),e.closePath()}}),Sse=f9.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),_se={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},kse={};I0({line:Mee,rect:k9,roundRect:k9,square:k9,circle:aee,diamond:wse,pin:xse,arrow:Sse,triangle:bse},function(e,t){kse[t]=new e});var Ase=f9.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=s4(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=kse[r];i||(i=kse[r="rect"]),_se[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Cse(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Tse(e,t,n,r,i,a,o){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?hte(e.slice(8),new x2(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?fte(e.slice(7),{},new x2(t,n,r,i),o?"center":"cover"):new Ase({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=Cse,a&&s.setColor(a),s}function Ose(e){return N0(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ise(e,t){if(null!=e)return N0(e)||(e=[e,e]),[C4(e[0],t[0])||0,C4(q0(e[1],e[0]),t[1])||0]}function Pse(e){return isFinite(e)}function Ese(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=Pse(o)?o:.5,s=Pse(s)?s:.5,l=l>=0&&Pse(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Pse(r)?r:0,i=Pse(i)?i:1,a=Pse(a)?a:0,o=Pse(o)?o:0,e.createLinearGradient(r,a,i,o)}(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Mse(e){return parseInt(e,10)}function Dse(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Mse(s[r])||Mse(e.style[r]))-(Mse(s[a])||0)-(Mse(s[o])||0)|0}function Rse(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:B0(t)?[t]:N0(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(i=P0(i,function(e){return e/o}),a/=o)}return[i,a]}var Lse=new X6(!0);function Nse(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function jse(e){return"string"==typeof e&&"none"!==e}function Fse(e){var t=e.fill;return null!=t&&"none"!==t}function zse(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Bse(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Vse(e,t,n){var r=W8(t.image,t.__image,n);if(X8(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*h1),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var Hse=["shadowBlur","shadowOffsetX","shadowOffsetY"],Wse=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Use(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){Yse(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?a6.opacity:o}(r||t.blend!==n.blend)&&(a||(Yse(e,i),a=!0),e.globalCompositeOperation=t.blend||a6.blend);for(var s=0;s<Hse.length;s++){var l=Hse[s];(r||t[l]!==n[l])&&(a||(Yse(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(Yse(e,i),a=!0),e.shadowColor=t.shadowColor||a6.shadowColor),a}function Xse(e,t,n,r,i){var a=Kse(t,i.inHover),o=r?null:n&&Kse(n,i.inHover)||{};if(a===o)return!1;var s=Use(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(Yse(e,i),s=!0),jse(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(Yse(e,i),s=!0),jse(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(Yse(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Yse(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<Wse.length;u++){var c=Wse[u],d=c[0];(r||a[d]!==o[d])&&(s||(Yse(e,i),s=!0),e[d]=a[d]||c[1])}return s}function Gse(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Yse(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Kse(e,t){return t&&e.__hoverStyle||e.style}function qse(e,t){Zse(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zse(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if(o&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(a,o)||(o&&o.length&&(Yse(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(Yse(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),Gse(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,d,f=t instanceof f9&&t.autoBatch&&function(e){var t=Fse(e),n=Nse(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,d=u.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?(Yse(e,n),Gse(e,t)):f||Yse(e,n);var h=Kse(t,n.inHover);t instanceof f9?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Xse(e,t,u,l,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a=Nse(n),o=Fse(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||Lse,d=t.__dirty;if(!r){var f=n.fill,h=n.stroke,p=o&&!!f.colorStops,m=a&&!!h.colorStops,v=o&&!!f.image,g=a&&!!h.image,y=void 0,b=void 0,w=void 0,x=void 0,S=void 0;(p||m)&&(S=t.getBoundingRect()),p&&(y=d?Ese(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(b=d?Ese(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),v&&(w=d||!t.__canvasFillPattern?Vse(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(x=d||!t.__canvasStrokePattern?Vse(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?e.fillStyle=y:v&&(w?e.fillStyle=w:o=!1),m?e.strokeStyle=b:g&&(x?e.strokeStyle=x:a=!1)}var _,k,A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(_=(i=Rse(t))[0],k=i[1]);var C=!0;(u||4&d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),_&&(e.setLineDash(_),e.lineDashOffset=k),r||(n.strokeFirst?(a&&Bse(e,n),o&&zse(e,n)):(o&&zse(e,n),a&&Bse(e,n))),_&&e.setLineDash([])}(e,t,h,f),f&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof p9?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Xse(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||i0,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(a=(r=Rse(t))[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Nse(n)&&e.strokeText(i,n.x,n.y),Fse(n)&&e.fillText(i,n.x,n.y)):(Fse(n)&&e.fillText(i,n.x,n.y),Nse(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}(e,t,h)):t instanceof g9?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){Use(e,Kse(t,i.inHover),n&&Kse(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=W8(n.image,t.__image,t,t.onload);if(r&&X8(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var d=o-(u=n.sx),f=s-(c=n.sy);e.drawImage(r,u,c,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,h)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a<o;a++){(c=r[a]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Zse(e,c,s,a===o-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Zse(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),f&&r&&Yse(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Jse=new yse,Qse=new b3(100),$se=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ele(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Jse.delete(e);var a=Jse.get(e);if(a)return a;var o=A0(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a=[n],s=!0,l=0;l<$se.length;++l){var u=o[$se[l]];if(null!=u&&!N0(u)&&!F0(u)&&!B0(u)&&"boolean"!=typeof u){s=!1;break}a.push(u)}if(s){t=a.join(",")+(i?"-svg":"");var c=Qse.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,f=nle(o.dashArrayX),h=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(B0(e)){var t=Math.ceil(e);return[t,t]}var n=P0(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),p=tle(o.symbol),m=(w=f,P0(w,function(e){return rle(e)})),v=rle(h),g=!i&&o0.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=G4(e,m[t]);var r=1;for(t=0,n=p.length;t<n;++t)r=G4(r,p[t].length);e*=r;var i=v*m.length*p.length,a=function(e){};e>o.maxTileWidth&&a("maxTileWidth");i>o.maxTileHeight&&a("maxTileHeight");return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();var w;g&&(g.width=b.width*n,g.height=b.height*n,d=g.getContext("2d"));(function(){d&&(d.clearRect(0,0,g.width,g.height),o.backgroundColor&&(d.fillStyle=o.backgroundColor,d.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<h.length;++t)e+=h[t];if(e<=0)return;var a=-v,s=0,l=0,u=0;for(;a<b.height;){if(s%2==0){for(var c=l/2%p.length,m=0,w=0,x=0;m<2*b.width;){var S=0;for(t=0;t<f[u].length;++t)S+=f[u][t];if(S<=0)break;if(w%2==0){var _=.5*(1-o.symbolSize),k=m+f[u][w]*_,A=a+h[s]*_,C=f[u][w]*o.symbolSize,T=h[s]*o.symbolSize,O=x/2%p[c].length;I(k,A,C,T,p[c][O])}m+=f[u][w],++x,++w===f[u].length&&(w=0)}++u===f.length&&(u=0)}a+=h[s],++l,++s===h.length&&(s=0)}function I(e,t,a,s,l){var u=i?1:n,c=Tse(l,e*u,t*u,a*u,s*u,o.color,o.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(c);f&&y.children.push(f)}else qse(d,c)}})(),s&&Qse.put(t,g||y);e.image=g,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Jse.set(e,s),e.dirty=!1,s}function tle(e){if(!e||0===e.length)return[["rect"]];if(F0(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!F0(e[n])){t=!1;break}if(t)return tle([e]);var r=[];for(n=0;n<e.length;++n)F0(e[n])?r.push([e[n]]):r.push(e[n]);return r}function nle(e){if(!e||0===e.length)return[[0,0]];if(B0(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!B0(e[n])){t=!1;break}if(t)return nle([e]);var r=[];for(n=0;n<e.length;++n)if(B0(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=P0(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function rle(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var ile=new D1,ale={};var ole=2e3,sle=4500,lle={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:ole,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:sle,ARIA:6e3,DECAL:7e3}},ule="__flagInMainProcess",cle="__pendingUpdate",dle="__needsUpdateStatus",fle=/^[a-zA-Z0-9_]+$/,hle="__connectUpdateStatus";function ple(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return vle(this,e,t);Ble(this.id)}}function mle(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return vle(this,e,t)}}function vle(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),D1.prototype[t].apply(e,n)}var gle,yle,ble,wle,xle,Sle,_le,kle,Ale,Cle,Tle,Ole,Ile,Ple,Ele,Mle,Dle,Rle,Lle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t}(D1),Nle=Lle.prototype;Nle.on=mle("on"),Nle.off=mle("off");var jle=function(e){function t(t,n,r){var i=e.call(this,new ase)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},F0(n)&&(n=Gle[n]),i._dom=t;var a="canvas",o="auto",s=!1,l=n0.hasGlobalWindow?window:global;l&&(a=q0(l.__ECHARTS__DEFAULT__RENDERER__,a),o=q0(l.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=q0(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s)),r.ssr&&(x4=function(e){var t=B9(e),n=t.dataIndex;if(null!=n){var r=s1();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}});var u=i._zr=_4(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:q0(r.useDirtyRect,s),useCoarsePointer:q0(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=koe(R0(u.flush,u),17),(n=x0(n))&&Cie(n,!0),i._theme=n,i._locale=function(e){if(F0(e)){var t=hne[e.toUpperCase()]||{};return e===cne||e===dne?x0(t):S0(x0(t),x0(hne[fne]),!1)}return S0(x0(e),x0(hne[fne]),!1)}(r.locale||mne),i._coordSysMgr=new rie;var c=i._api=Ele(i);function d(e,t){return e.__prio-t.__prio}return j2(Xle,d),j2(Wle,d),i._scheduler=new joe(i,c,Wle,Xle),i._messageCenter=new Lle,i._initEvents(),i.resize=R0(i.resize,i),u.animation.on("frame",i._onframe,i),Cle(u,i),Tle(u,i),n1(i),i}return e0(t,e),t.prototype._onframe=function(){if(!this._disposed){Rle(this);var e=this._scheduler;if(this[cle]){var t=this[cle].silent;this[ule]=!0;try{gle(this),wle.update.call(this,null,this[cle].updateParams)}catch(kJe){throw this[ule]=!1,this[cle]=null,kJe}this._zr.flush(),this[ule]=!1,this[cle]=null,kle.call(this,t),Ale.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Sle(this,r),e.performVisualTasks(r),Ple(this,this._model,i,"remain",{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[ule])J4("`setOption` should not be called during main process.");else if(this._disposed)Ble(this.id);else{var r,i,a;if(V0(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[ule]=!0,!this._model||t){var o=new aie(this._api),s=this._theme,l=this._model=new Zre;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Ule);var u={seriesTransition:a,optionChanged:!0};if(n)this[cle]={silent:r,updateParams:u},this[ule]=!1,this.getZr().wakeUp();else{try{gle(this),wle.update.call(this,null,u)}catch(kJe){throw this[cle]=null,this[ule]=!1,kJe}this._ssr||this._zr.flush(),this[cle]=null,this[ule]=!1,kle.call(this,r),Ale.call(this,r)}}},t.prototype.setTheme=function(){Q4("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||n0.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return $4("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;if("canvas"!==t.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;if("svg"!==t.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(n0.svgSupported){var e=this._zr;return I0(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;I0(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I0(r,function(e){e.group.ignore=!1}),a}Ble(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(qle[n]){var o=a,s=a,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();I0(Kle,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(x0(e)),h=a.getDom().getBoundingClientRect();o=r(h.left,o),s=r(h.top,s),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:f,left:h.left,top:h.top})}});var f=(l*=d)-(o*=d),h=(u*=d)-(s*=d),p=o0.createCanvas(),m=_4(p,{renderer:t?"svg":"canvas"});if(m.resize({width:f,height:h}),t){var v="";return I0(c,function(e){var t=e.left-o,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new k9({shape:{x:0,y:0,width:f,height:h},style:{fill:e.connectedBackgroundColor}})),I0(c,function(e){var t=new g9({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ble(this.id)},t.prototype.convertToPixel=function(e,t){return xle(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return xle(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return I0(x8(this._model,e),function(e,r){r.indexOf("Models")>=0&&I0(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint?n=n||a.containPoint(t,e):Z4(r+": "+(a?"The found component do not support containPoint.":"No view mapping to the found component."))}else Z4(r+": containPoint is not supported")},this)},this),!!n;Ble(this.id)},t.prototype.getVisual=function(e,t){var n=x8(this._model,e,{defaultMainType:"series"}),r=n.seriesModel;r||Z4("There is no specified series model");var i=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=a?cse(i,a,t):dse(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;I0(zle,function(e){var t=function(t){var n,i=r.getModel(),a=t.target,o="globalout"===e;if(o?n={}:a&&mse(a,function(e){var t=B9(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=k0({},t.eventData),!0},!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];o||u&&c||Z4("model or view can not be found by params"),n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:u,view:c},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),I0(Hle,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),I0(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(pse("map","selectchanged",t,r,e),pse("pie","selectchanged",t,r,e)):"select"===e.fromAction?(pse("map","selected",t,r,e),pse("pie","selected",t,r,e)):"unselect"===e.fromAction&&(pse("map","unselected",t,r,e),pse("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ble(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ble(this.id);else{this._disposed=!0,this.getDom()&&C8(this.getDom(),Jle,"");var e=this,t=e._api,n=e._model;I0(e._componentsViews,function(e){e.dispose(n,t)}),I0(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Kle[e.id]}},t.prototype.resize=function(e){if(this[ule])J4("`resize` should not be called during main process.");else if(this._disposed)Ble(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[cle]&&(null==r&&(r=this[cle].silent),n=!0,this[cle]=null),this[ule]=!0;try{n&&gle(this),wle.update.call(this,{type:"resize",animation:k0({duration:0},e&&e.animation)})}catch(kJe){throw this[ule]=!1,kJe}this[ule]=!1,kle.call(this,r),Ale.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Ble(this.id);else if(V0(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Yle[e]){var n=Yle[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}else Z4("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?Ble(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=k0({},e);return t.type=Hle[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Ble(this.id);else if(V0(t)||(t={silent:!!t}),Vle[e.type]&&this._model)if(this[ule])this._pendingActions.push(e);else{var n=t.silent;_le.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&n0.browser.weChat&&this._throttledZrFlush(),kle.call(this,n),Ale.call(this,n)}},t.prototype.updateLabelLayout=function(){ile.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ble(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);$0(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return r(e,n,i,-1/0),!0})}}function r(e,t,n,i){var a=e.getTextContent(),o=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(a&&(a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered(function(e){if(!tte(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function a(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(tte(e))return;if(e instanceof f9&&function(e){var t=U9(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&t(e)}})}gle=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),yle(e,!0),yle(e,!1),t.plan()},yle=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=E8(e.type),f=t?doe.getClass(d.main,d.sub):moe.getClass(d.sub);$0(f,d.sub+" does not exist."),(c=new f).init(n,s),a[u]=c,i.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},ble=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var o={};o[r+"Id"]=n[r+"Id"],o[r+"Index"]=n[r+"Index"],o[r+"Name"]=n[r+"Name"];var s={mainType:r,query:o};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=s1(),I0(a8(u),function(e){var t=h8(e,null);null!=t&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&null!=l.get(t.id)))if(j7(n))if(t instanceof roe)n.type!==q9||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=y8(i,t);a=(N0(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=B9(o);_7(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&_7(r,c,d,n)}}else J4("Unknown dataType "+t.dataType)}(t,n,e._api);else{var r=A7(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===q9&&i&&!n.notBlur&&k7(t.mainType,t.componentIndex,e._api),a&&I0(a,function(e){n.type===q9?m7(e):v7(e)})}else N7(n)&&t instanceof roe&&(!function(e,t){if(N7(t)){var n=t.dataType,r=y8(e.getData(n),t);N0(r)||(r=[r]),e[t.type===$9?"toggleSelect":t.type===J9?"select":"unselect"](r,n)}}(t,n,e._api),C7(t),Dle(e))},e),a&&a.eachComponent(s,function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else I0([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},wle={prepareAndUpdate:function(e){gle(this),wle.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),Sle(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),Ole(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),ile.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=s1();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),Ple(this,r,i,t,{},o),ile.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),moe.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Ole(this,n,this._api,t,{}),ile.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),moe.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),ile.trigger("afterupdate",r,this._api))},updateLayout:function(e){wle.update.call(this,e)}},xle=function(e,t,n,r){if(e._disposed)Ble(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=x8(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(i=u[t](a,s,r)))return i}Z4("No coordinate system that supports "+t+" found by the given finder.")}},Sle=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},_le=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Vle[i],s=o.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&E8(l[0]);this[ule]=!0;var d=[e],f=!1;e.batch&&(f=!0,d=P0(e.batch,function(t){return(t=A0(k0({},t),e)).batch=null,t}));var h,p=[],m=N7(e),v=j7(e);if(v&&S7(this._api),I0(d,function(t){if((h=(h=o.action(t,n._model,n._api))||k0({},t)).type=s.event||h.type,p.push(h),v){var r=S8(e),i=r.queryOptionMap,a=r.mainTypeSpecified?i.keys()[0]:"series";ble(n,u,t,a),Dle(n)}else m?(ble(n,u,t,"series"),Dle(n)):c&&ble(n,u,t,c.main,c.sub)}),"none"!==u&&!v&&!m&&!c)try{this[cle]?(gle(this),wle.update.call(this,e),this[cle]=null):wle[u].call(this,e)}catch(kJe){throw this[ule]=!1,kJe}if(h=f?{type:s.event||i,escapeConnect:a,batch:p}:p[0],this[ule]=!1,!t){var g=this._messageCenter;if(g.trigger(h.type,h),m){var y={type:"selectchanged",escapeConnect:a,selected:T7(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};g.trigger(y.type,y)}}},kle=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();_le.call(this,n,e)}},Ale=function(e){!e&&this.trigger("updated")},Cle=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[cle]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},Tle=function(e,t){e.on("mouseover",function(e){var n=mse(e.target,L7);n&&(!function(e,t,n){L7(e)||J4("param should be highDownDispatcher");var r=B9(e),i=A7(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&k7(r.componentMainType,r.componentIndex,n),I0(a,function(e){return h7(e,t)})):(_7(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&k7(r.componentMainType,r.componentIndex,n),h7(e,t))}(n,e,t._api),Dle(t))}).on("mouseout",function(e){var n=mse(e.target,L7);n&&(!function(e,t,n){L7(e)||J4("param should be highDownDispatcher"),S7(n);var r=B9(e),i=A7(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?I0(i,function(e){return p7(e,t)}):p7(e,t)}(n,e,t._api),Dle(t))}).on("click",function(e){var n=mse(e.target,function(e){return null!=B9(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=B9(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Ole=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get("zlevel")||0,o=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);j2(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),I0(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)})}}(t),Ile(e,t,n,r,i),I0(e._chartsViews,function(e){e.__alive=!1}),Ple(e,t,n,r,i),I0(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Ile=function(e,t,r,o,s,l){I0(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,r,o),n(s,e),a(s,e)})},Ple=function(e,t,r,o,s,l){var u=e._scheduler;s=k0(s||{},{updatedSeries:t.getSeries()}),ile.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,o),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),C7(t)}),u.unfinished=c||u.unfinished,ile.trigger("series:layoutlabels",t,r,s),ile.trigger("series:transition",t,r,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),a(t,r)}),function(e,t){var n=e._zr,r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++}),i>t.get("hoverLayerThreshold")&&!n0.node&&!n0.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),ile.trigger("series:afterupdate",t,r,s)},Dle=function(e){e[dle]=!0,e.getZr().wakeUp()},Rle=function(e){e[dle]&&(e.getZr().storage.traverse(function(e){tte(e)||t(e)}),e[dle]=!1)},Ele=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e0(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){m7(t,n),Dle(e)},n.prototype.leaveEmphasis=function(t,n){v7(t,n),Dle(e)},n.prototype.enterBlur=function(t){g7(t),Dle(e)},n.prototype.leaveBlur=function(t){y7(t),Dle(e)},n.prototype.enterSelect=function(t){b7(t),Dle(e)},n.prototype.leaveSelect=function(t){w7(t),Dle(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(tie))(e)},Mle=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][hle]=t}}I0(Hle,function(n,r){e._messageCenter.on(r,function(n){if(qle[e.group]&&0!==e[hle]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];I0(Kle,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),I0(i,function(e){1!==e[hle]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(D1),Fle=jle.prototype;Fle.on=ple("on"),Fle.off=ple("off"),Fle.one=function(e,t,n){var r=this;Q4("ECharts#one is deprecated."),this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var zle=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ble(e){Z4("Instance "+e+" has been disposed")}var Vle={},Hle={},Wle=[],Ule=[],Xle=[],Gle={},Yle={},Kle={},qle={},Zle=+new Date-0,Jle="_echarts_instance_";function Qle(e,t,n){if(!e)throw new Error("Initialize failed: invalid dom.");var r=function(e){return Kle[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Jle)]}(e);if(r)return Z4("There is a chart instance already initialized on the dom."),r;!U0(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n)&&(e.clientHeight||n)||Z4("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");var i=new jle(e,t,n);return i.id="ec_"+Zle++,Kle[i.id]=i,C8(e,Jle,i.id),Mle(i),ile.trigger("afterinit",i),i}function $le(e,t){Gle[e]=t}function eue(e){C0(Ule,e)<0&&Ule.push(e)}function tue(e,t){oue(Wle,e,t,2e3)}function nue(e,t){ile.on(e,t)}function rue(e,t,n){j0(t)&&(n=t,t="");var r=V0(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Hle[t]||($0(fle.test(r)&&fle.test(t)),Vle[r]||(Vle[r]={action:n,actionInfo:e}),Hle[t]=r)}function iue(e,t){oue(Xle,e,t,3e3,"visual")}var aue=[];function oue(e,t,n,r,i){if((j0(t)||V0(t))&&(n=t,t=r),isNaN(t)||null==t)throw new Error("Illegal priority");if(I0(e,function(e){$0(e.__raw!==n)}),!(C0(aue,n)>=0)){aue.push(n);var a=joe.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function sue(e,t){Yle[e]=t}var lue=function(e){var t=(e=x0(e)).type;t||t8("Must have a `type` when `registerTransform`.");var n=t.split(":");2!==n.length&&t8('Name must include namespace like "ns:regression".');var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,yae.set(t,e)};iue(ole,Moe),iue(sle,Roe),iue(sle,Loe),iue(ole,lse),iue(sle,use),iue(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=ele(n,t))});var i=r.getVisual("decal");if(i)r.getVisual("style").decal=ele(i,t)}})}),eue(Cie),tue(900,function(e){var t=s1();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(Tie)}),sue("default",function(e,t){A0(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new y4,r=new k9({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new T9({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new k9({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&((i=new Fee({shape:{startAngle:-Noe/2,endAngle:-Noe/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Noe/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Noe/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),rue({type:q9,event:q9,update:q9},f1),rue({type:Z9,event:Z9,update:Z9},f1),rue({type:J9,event:J9,update:J9},f1),rue({type:Q9,event:Q9,update:Q9},f1),rue({type:$9,event:$9,update:$9},f1),$le("light",$oe),$le("dark",ise);var uue=[],cue={registerPreprocessor:eue,registerProcessor:tue,registerPostInit:function(e){nue("afterinit",e)},registerPostUpdate:function(e){nue("afterupdate",e)},registerUpdateLifecycle:nue,registerAction:rue,registerCoordinateSystem:function(e,t){rie.register(e,t)},registerLayout:function(e,t){oue(Xle,e,t,1e3,"layout")},registerVisual:iue,registerTransform:lue,registerLoading:sue,registerMap:function(e,t,n){var r,i=(ale[r="registerMap"]||J4("Implementation of "+r+" doesn't exists."),ale[r]);i&&i(e,t,n)},registerImpl:function(e,t){ale[e]&&J4("Already has an implementation of "+e+"."),ale[e]=t},PRIORITY:lle,ComponentModel:mre,ComponentView:doe,SeriesModel:roe,ChartView:moe,registerComponentModel:function(e){mre.registerClass(e)},registerComponentView:function(e){doe.registerClass(e)},registerSeriesModel:function(e){roe.registerClass(e)},registerChartView:function(e){moe.registerClass(e)},registerSubTypeDefaulter:function(e,t){mre.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,b4[e]=n}};function due(e){N0(e)?I0(e,function(e){due(e)}):C0(uue,e)>=0||(uue.push(e),j0(e)&&(e={install:e}),e.install(cue))}function fue(e){return null==e?0:e.length||1}function hue(e){return e}var pue=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||hue,this._newKeyGetter=r||hue,this.context=i,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var a=0;a<e.length;a++){var o=r[a],s=n[o],l=fue(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var o=0;o<i.length;o++){var s=i[o],l=n[s],u=r[s],c=fue(l),d=fue(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=fue(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o="_ec_"+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],l=fue(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),mue=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function vue(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function gue(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var yue=function(){return function(e){this.otherDims={},null!=e&&k0(this,e)}}(),bue=b8(),wue={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xue=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=kue(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return q0(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Bie(this.source),n=!Aue(e),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=wue[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Sue(e){return e instanceof xue}function _ue(e){for(var t=s1(),n=0;n<(e||[]).length;n++){var r=e[n],i=V0(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function kue(e){var t=bue(e);return t.dimNameMap||(t.dimNameMap=_ue(e.dimensionsDefine))}function Aue(e){return e>30}var Cue,Tue,Oue,Iue,Pue,Eue,Mue,Due=V0,Rue=P0,Lue="undefined"==typeof Int32Array?Array:Int32Array,Nue=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jue=["_approximateExtent"],Fue=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;Sue(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=F0(c)?new yue({name:c}):c instanceof yue?c:new yue(c),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,null!=l[f]&&(s=!0),d.createInvertedIndices&&(o[f]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),$0(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var p=this._dimIdxToName=s1();I0(a,function(e){p.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(B0(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(null==t)throw new Error("Unknown dimension "+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Mae&&(r=e),!r){var a=this.dimensions,o=Rie(e)||O0(e)?new Vie(e,a.length):e;r=new Mae;var s=Rue(a,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(o,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=s1(),a=[],o=[],s={};I0(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){$0(null==bre.get(u));var c=l.coordDimIndex;vue(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(a[0]=t),vue(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&o.push(t)}bre.each(function(e,t){var n=vue(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=P0(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(a=c.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new mue(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Mue(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==kre&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===wre&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&u8(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[o]&&null!=l&&(r[o]=h8(l,null));var u=s.id;null==i[o]&&null!=u&&(i[o]=h8(u,null))}}if(this._shouldMakeIdFromName())for(o=e;o<t;o++)Mue(this,o);Cue(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Due(e)?k0(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Oue(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Tue(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return N0(e)?r.getValues(Rue(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(!n)throw new Error("Do not supported yet");var r=n&&n[t];return null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){j0(e)&&(n=t,t=e,e=[]);var r=n||this,i=Rue(Iue(e),this._getStoreDimIndex,this);this._store.each(i,r?R0(t,r):t)},e.prototype.filterSelf=function(e,t,n){j0(e)&&(n=t,t=e,e=[]);var r=n||this,i=Rue(Iue(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R0(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={};return I0(D0(e),function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){j0(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=Rue(Iue(e),this._getStoreDimIndex,this),o=Eue(this);return o._store=this._store.map(a,i?R0(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;I0(Iue(e),function(e){i.getDimensionInfo(e).isCalculationCoord});var o=Rue(Iue(e),this._getStoreDimIndex,this);this._store.modify(o,a?R0(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=Eue(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Eue(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Eue(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new one(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pue(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Tue(e,t)},function(e){return Tue(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Due(e)?k0(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(N0(i=this.getVisual(t))?i=i.slice():Due(i)&&(i=k0({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Due(t)?k0(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Due(e)?k0(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?k0(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;V9(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){I0(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Rue(this.dimensions,this._getDimInfo,this),this.hostModel)),Pue(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];j0(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(J0(arguments)))})},e.internalField=(Cue=function(e){var t=e._invertedIndicesMap;I0(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Lue(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Oue=function(e,t,n){return h8(e._getCategory(t,n),null)},Tue=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Oue(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},Iue=function(e){return N0(e)||(e=null!=e?[e]:[]),e},Eue=function(t){var n=new e(t._schema?t._schema:Rue(t.dimensions,t._getDimInfo,t),t.hostModel);return Pue(n,t),n},Pue=function(e,t){I0(Nue.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,I0(jue,function(n){e[n]=x0(t[n])}),e._calculationInfo=k0({},t._calculationInfo)},void(Mue=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=Oue(e,i,t)),null==s&&null!=a&&(r[t]=s=Oue(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();function zue(e,t){Rie(e)||(e=Nie(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=s1(),a=[],o=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return I0(t,function(e){var t;V0(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Aue(o),l=r===e.dimensionsDefine,u=l?kue(e):_ue(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var d=s1(c),f=new Aae(o),h=0;h<f.length;h++)f[h]=-1;function p(e){var t=f[e];if(t<0){var n=r[e],i=V0(n)?n:{name:n},o=new yue,s=i.name;null!=s&&null!=u.get(s)&&(o.name=o.displayName=s),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);var l=a.length;return f[e]=l,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(h=0;h<o;h++)p(h);d.each(function(e,t){var n=a8(e).slice();if(1===n.length&&!F0(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);I0(n,function(e,n){var i=F0(e)?u.get(e):e;null!=i&&i<o&&(r[n]=i,v(p(i),t,n))})}});var m=0;function v(e,t,n){null!=bre.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}I0(n,function(e){var t,n,r,i;if(F0(e))t=e,i={};else{t=(i=e).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=k0({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=a8(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;m<o&&null!=p(m).coordDim;)m++;m<o&&s.push(m++)}I0(s,function(e,a){var o=p(e);if(l&&null!=i.type&&(o.type=i.type),v(A0(o,i),t,a),null==o.name&&n){var s=n[a];!V0(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&A0(o.otherDims,r)})}});var g=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=g?y||1:0;var w=g||"value";function x(e){null==e.name&&(e.name=e.coordDim)}if(s)I0(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var _=p(S);null==_.coordDim&&(_.coordDim=Bue(w,i,b),_.coordDimIndex=0,(!g||y<=0)&&(_.isExtraCoord=!0),y--),x(_),null!=_.type||Lre(e,S)!==Ore&&(!_.isExtraCoord||null==_.otherDims.itemName&&null==_.otherDims.seriesName)||(_.type="ordinal")}return function(e){for(var t=s1(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}(a),new xue({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Bue(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Vue=function(){return function(e){this.coordSysDims=[],this.axisMap=s1(),this.categoryAxisMap=s1(),this.coordSysName=e}}();var Hue={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",_8).models[0],a=e.getReferringComponents("yAxis",_8).models[0];if(!i)throw new Error('xAxis "'+K0(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+K0(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found');t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),Wue(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Wue(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",_8).models[0];if(!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],n.set("single",i),Wue(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",_8).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Wue(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),Wue(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();I0(a.parallelAxisIndex,function(e,a){var s=i.getComponent("parallelAxis",e),l=o[a];n.set(l,s),Wue(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=a))})}};function Wue(e){return"category"===e.get("type")}function Uue(e,t,n){var r,i,a,o=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!Sue(e.schema)}(t)?(i=t.schema,r=i.dimensions,a=t.store):r=t;var l,u,c,d,f=!(!e||!e.get("stack"));if(I0(r,function(e,t){F0(e)&&(r[t]=e={name:e}),f&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||o||l||(o=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,p=u.type,m=0;I0(r,function(e){e.coordDim===h&&m++});var v={name:c,coordDim:h,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},g={name:d,coordDim:d,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(v.storeDimIndex=a.ensureCalculationDimension(d,p),g.storeDimIndex=a.ensureCalculationDimension(c,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(g)):(r.push(v),r.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:c}}function Xue(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Gue(e,t){return Xue(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Yue(e,t,n){n=n||{};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=Nie(e)):a=(r=i.getSource()).sourceFormat===wre;var o=function(e){var t=e.get("coordinateSystem"),n=new Vue(t),r=Hue[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=rie.get(r);return t&&t.coordSysDims&&(n=P0(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=gue(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,o),l=n.useEncodeDefaulter,u=j0(l)?l:l?L0(Mre,s,t):null,c=zue(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a}),d=function(e,t,n){var r,i;return n&&I0(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,o),f=a?null:i.getSharedDataStore(c),h=Uue(t,{schema:c,store:f}),p=new Fue(c,t);p.setCalculationInfo(h);var m=null!=d&&function(e){if(e.sourceFormat===wre){return!N0(l8(function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return p.hasItemOption=!1,p.initData(a?r:f,null,m),p}var Kue=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();j8(Kue);var que=0,Zue=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++que}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&P0(r,Jue);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!F0(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=s1(this.categories))},e}();function Jue(e){return V0(e)&&null!=e.value?e.value:e+""}function Que(e){return"interval"===e.type||"log"===e.type}function $ue(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=z4(a/t);null!=n&&o<n&&(o=i.interval=n),null!=r&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=tce(o);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),nce(e,0,t),nce(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[T4(Math.ceil(e[0]/o)*o,s),T4(Math.floor(e[1]/o)*o,s)],e),i}function ece(e){var t=Math.pow(10,F4(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,T4(n*t)}function tce(e){return I4(e)+2}function nce(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function rce(e,t){return e>=t[0]&&e<=t[1]}function ice(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ace(e,t){return e*(t[1]-t[0])+t[0]}var oce=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Zue({})),N0(r)&&(r=new Zue({categories:P0(r,function(e){return V0(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return e0(t,e),t.prototype.parse=function(e){return null==e?NaN:F0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return rce(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return ice(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(ace(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Kue);Kue.registerClass(oce);var sce=T4,lce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e0(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return rce(e,this._extent)},t.prototype.normalize=function(e){return ice(e,this._extent)},t.prototype.scale=function(e){return ace(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=tce(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:sce(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=sce(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:sce(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var c=sce(o.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=I4(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Kne(sce(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=$ue(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=sce(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=sce(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Kue);Kue.registerClass(lce);var uce="undefined"!=typeof Float32Array,cce=uce?Float32Array:Array;function dce(e){return N0(e)?uce?new Float32Array(e):e:new cce(e)}var fce="__ec_stack_";function hce(e){return e.get("stack")||fce+e.seriesIndex}function pce(e){return e.dim+e.index}function mce(e,t){var n=[];return t.eachSeriesByType(e,function(e){wce(e)&&n.push(e)}),n}function vce(e){var t=function(e){var t={};I0(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,l=o.count();s<l;++s){var u=o.get(a,s);t[i]?t[i].push(u):t[i]=[u]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=null===a?s:Math.min(a,s))}n[r]=a}}return n}(e),n=[];return I0(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),a=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var o=i.dim+"_"+i.index,s=t[o],l=Math.abs(a[1]-a[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var d=e.getData();r=Math.abs(a[1]-a[0])/d.count()}var f=C4(e.get("barWidth"),r),h=C4(e.get("barMaxWidth"),r),p=C4(e.get("barMinWidth")||(xce(e)?.5:1),r),m=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:h,barMinWidth:p,barGap:m,barCategoryGap:v,axisKey:pce(i),stackId:hce(e)})}),gce(n)}function gce(e){var t={};I0(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var d=e.barGap;null!=d&&(a.gap=d);var f=e.barCategoryGap;null!=f&&(a.categoryGap=f)});var n={};return I0(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(null==a){var o=D0(r).length;a=Math.max(35-4*o,15)+"%"}var s=C4(a,i),l=C4(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),I0(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f,h=0;I0(r,function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;I0(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)})}),n}function yce(e,t){var n=mce(e,t),r=vce(n);I0(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=hce(e),a=r[pce(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function bce(e){return{seriesType:e,plan:foe(),reset:function(e){if(wce(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Xue(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),f=function(e,t){var n=t.model.get("startValue");n||(n=0);return t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,i),h=xce(e),p=e.get("barMinHeight")||0,m=u&&t.getDimensionIndex(u),v=t.getLayout("size"),g=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,l=h&&dce(3*i),u=h&&s&&dce(3*i),y=h&&dce(i),b=n.master.getRect(),w=d?b.width:b.height,x=t.getStore(),S=0;null!=(r=e.next());){var _=x.get(c?m:a,r),k=x.get(o,r),A=f,C=void 0;c&&(C=+_-x.get(a,r));var T=void 0,O=void 0,I=void 0,P=void 0;if(d){var E=n.dataToPoint([_,k]);if(c)A=n.dataToPoint([C,k])[0];T=A,O=E[1]+g,I=E[0]-A,P=v,Math.abs(I)<p&&(I=(I<0?-1:1)*p)}else{E=n.dataToPoint([k,_]);if(c)A=n.dataToPoint([k,C])[1];T=E[0]+g,O=A,I=v,P=E[1]-A,Math.abs(P)<p&&(P=(P<=0?-1:1)*p)}h?(l[S]=T,l[S+1]=O,l[S+2]=d?I:P,u&&(u[S]=d?b.x:T,u[S+1]=d?O:b.y,u[S+2]=w),y[r]=r):t.setItemLayout(r,{x:T,y:O,width:I,height:P}),S+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function wce(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function xce(e){return e.pipelineContext&&e.pipelineContext.large}var Sce=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return e0(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Ene(e.value,Ane[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ine(this._minLevelUnit))]||Ane.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if(F0(n))a=n;else if(j0(n))a=n(e.value,t,{level:e.level});else{var o=k0({},_ne);if(e.level>0)for(var s=0;s<Cne.length;++s)o[Cne[s]]="{primary|"+o[Cne[s]]+"}";var l=n?!1===n.inherit?n:A0(n,o):o,u=Mne(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(s=Tne.indexOf(u)-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(N0(a)){var c=null==e.level?0:e.level>=0?e.level:a.length+e.level;a=a[c=Math.min(c,a.length-1)]}}return Ene(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,a=Tne,o=0;function s(e,t,n,i,a,o,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,a){var o=[],l=!i.length;if(!function(e,t,n,r){var i=j4(t),a=j4(n),o=function(e){return Dne(i,e,r)===Dne(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}(Ine(e),r[0],r[1],n)){l&&(i=[{value:Ice(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var f=void 0,h=void 0,p=void 0,m=!1;switch(e){case"year":f=Math.max(1,Math.round(t/xne/365)),h=Rne(n),p=Vne(n);break;case"half-year":case"quarter":case"month":f=Ace(t),h=Lne(n),p=Hne(n);break;case"week":case"half-week":case"day":f=kce(t),h=Nne(n),p=Wne(n),m=!0;break;case"half-day":case"quarter-day":case"hour":f=Cce(t),h=jne(n),p=Une(n);break;case"minute":f=Tce(t,!0),h=Fne(n),p=Xne(n);break;case"second":f=Tce(t,!1),h=zne(n),p=Gne(n);break;case"millisecond":f=Oce(t),h=Bne(n),p=Yne(n)}s(f,c,d,h,p,m,o),"year"===e&&a.length>1&&0===u&&a.unshift({value:a[0].value-f})}}for(u=0;u<o.length;u++)a.push(o[u]);return o}}for(var u=[],c=[],d=0,f=0,h=0;h<a.length&&o++<i;++h){var p=Ine(a[h]);if(Pne(a[h]))if(l(a[h],u[u.length-1]||[],c),p!==(a[h+1]?Ine(a[h+1]):null)){if(c.length){f=d,c.sort(function(e,t){return e.value-t.value});for(var m=[],v=0;v<c.length;++v){var g=c[v].value;0!==v&&c[v-1].value===g||(m.push(c[v]),g>=r[0]&&g<=r[1]&&d++)}var y=(r[1]-r[0])/t;if(d>1.5*y&&f>y/1.5)break;if(u.push(m),d>y||e===a[h])break}c=[]}}o>=i&&Z4("Exceed safe limit.");var b=M0(P0(u,function(e){return M0(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),w=[],x=b.length-1;for(h=0;h<b.length;++h)for(var S=b[h],_=0;_<S.length;++_)w.push({value:S[_].value,level:x-h});w.sort(function(e,t){return e.value-t.value});var k=[];for(h=0;h<w.length;++h)0!==h&&w[h].value===w[h-1].value||k.push(w[h]);return k}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=xne,t[1]+=xne),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-xne}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=_ce.length,o=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(_ce,this._approxInterval,0,a),a-1);this._interval=_ce[o][1],this._minLevelUnit=_ce[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return B0(e)?e:+j4(e)},t.prototype.contain=function(e){return rce(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ice(this.parse(e),this._extent)},t.prototype.scale=function(e){return ace(e,this._extent)},t.type="time",t}(lce),_ce=[["second",yne],["minute",bne],["hour",wne],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",Sne/2],["year",Sne]];function kce(e,t){return(e/=xne)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ace(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Cce(e){return(e/=wne)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Tce(e,t){return(e/=t?bne:yne)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Oce(e){return z4(e)}function Ice(e,t,n){var r=new Date(e);switch(Ine(t)){case"year":case"month":r[Hne(n)](0);case"day":r[Wne(n)](1);case"hour":r[Une(n)](0);case"minute":r[Xne(n)](0);case"second":r[Gne(n)](0),r[Yne(n)](0)}return r.getTime()}Kue.registerClass(Sce);var Pce=Kue.prototype,Ece=lce.prototype,Mce=T4,Dce=Math.floor,Rce=Math.ceil,Lce=Math.pow,Nce=Math.log,jce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new lce,t._interval=0,t}return e0(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return P0(Ece.getTicks.call(this,e),function(e){var t=e.value,i=T4(Lce(this.base,t));return i=t===n[0]&&this._fixMin?zce(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?zce(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=Nce(this.base);e=Nce(Math.max(0,e))/n,t=Nce(Math.max(0,t))/n,Ece.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=Pce.getExtent.call(this);t[0]=Lce(e,t[0]),t[1]=Lce(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=zce(t[0],n[0])),this._fixMax&&(t[1]=zce(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Nce(e[0])/Nce(t),e[1]=Nce(e[1])/Nce(t),Pce.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,F4(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var a=[T4(Rce(t[0]/i)*i),T4(Dce(t[1]/i)*i)];this._interval=i,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){Ece.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return rce(e=Nce(e)/Nce(this.base),this._extent)},t.prototype.normalize=function(e){return ice(e=Nce(e)/Nce(this.base),this._extent)},t.prototype.scale=function(e){return e=ace(e,this._extent),Lce(this.base,e)},t.type="log",t}(Kue),Fce=jce.prototype;function zce(e,t){return Mce(e,I4(t))}Fce.getMinorTicks=Ece.getMinorTicks,Fce.getLabel=Ece.getLabel,Kue.registerClass(jce);var Bce=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;j0(a)?this._modelMinNum=Uce(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=Uce(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(j0(o)?this._modelMaxNum=Uce(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Uce(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=N0(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[o4(l[0],1),o4(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=o,u=null!=s;null==o&&(o=e?r?0:NaN:t-i[0]*a),null==s&&(s=e?r?r-1:NaN:n+i[1]*a),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Y0(o)||Y0(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(o=d,l=!0),null!=f&&(s=f,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){$0(!this.frozen),this[Hce[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Vce[e];$0(!this.frozen&&null==this[n]),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Vce={min:"_determinedMin",max:"_determinedMax"},Hce={min:"_dataMin",max:"_dataMax"};function Wce(e,t,n){var r=e.rawExtentInfo;return r||(r=new Bce(e,t,n),e.rawExtentInfo=r,r)}function Uce(e,t){return null==t?null:Y0(t)?NaN:e.parse(t)}function Xce(e,t){var n=e.type,r=Wce(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&"time"===n){var s=mce("bar",o),l=!1;if(I0(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=vce(s),c=function(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=function(e,t){if(e&&t)return e[pce(t)]}(r,n.axis);if(void 0===o)return{min:e,max:t};var s=1/0;I0(o,function(e){s=Math.min(e.offset,s)});var l=-1/0;I0(o,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/a)-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Gce(e,t){var n=t,r=Xce(e,n),i=r.extent,a=n.get("splitNumber");e instanceof jce&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l="interval"===o||"time"===o;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Yce(e,t){if(t=t||e.get("type"))switch(t){case"category":return new oce({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Sce({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Kue.getClass(t)||lce)}}function Kce(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):F0(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(t):j0(t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(qce(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function qce(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Zce(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new x2(e.x,e.y,a,o)}function Jce(e){var t=e.get("interval");return null==t?"auto":t}function Qce(e){return"category"===e.type&&0===Jce(e.getLabelModel())}function $ce(e,t){var n={};return I0(e.mapDimensionsAll(t),function(t){n[Gue(e,t)]=!0}),D0(n)}var ede=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function tde(e,t){return Math.abs(e-t)<1e-8}function nde(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=$6(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return tde(i[0],s[0])&&tde(i[1],s[1])||(r+=$6(i[0],i[1],s[0],s[1],t,n)),0!==r}var rde=[];function ide(e,t){for(var n=0;n<e.length;n++)O1(e[n],e[n],t)}function ade(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(I1(t,t,a),P1(n,n,a))}}var ode=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),sde=function(){return function(e,t){this.type="polygon",this.exterior=e,this.interiors=t}}(),lde=function(){return function(e){this.type="linestring",this.points=e}}(),ude=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return e0(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],a=i.exterior,o=a&&a.length;o>n&&(e=i,n=o)}if(e)return function(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,n+=(a+l)*c,r+=(o+u)*c,a=l,o=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0];return I0(this.geometries,function(t){"polygon"===t.type?ade(t.exterior,n,r,e):I0(t.points,function(t){ade(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new x2(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var a=n[r];if("polygon"===a.type){var o=a.exterior,s=a.interiors;if(nde(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(nde(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new x2(e,t,n,r),s=i.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(ide(c.exterior,s),I0(c.interiors,function(e){ide(e,s)})):I0(c.points,function(e){ide(e,s)})}(i=this._rect).copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(ode),cde=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return e0(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=a2(rde),i=e;i&&!i.isGeoSVGGraphicRoot;)s2(r,i.getLocalTransform(),r),i=i.parent;return d2(r,r),O1(n,n,r),n},t}(ode);function dde(e,t,n){for(var r=0;r<e.length;r++)e[r]=fde(e[r],t[r],n)}function fde(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,a=l+=a,r.push([s/n,l/n])}return r}function hde(e,t){return P0(M0((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),I0(t.features,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=fde(i,r,n);break;case"Polygon":case"MultiLineString":dde(i,r,n);break;case"MultiPolygon":I0(i,function(e,t){return dde(e,r[t],n)})}}),t.UTF8Encoding=!1,t}(e)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var a=r.coordinates;i.push(new sde(a[0],a.slice(1)));break;case"MultiPolygon":I0(r.coordinates,function(e){e[0]&&i.push(new sde(e[0],e.slice(1)))});break;case"LineString":i.push(new lde([r.coordinates]));break;case"MultiLineString":i.push(new lde(r.coordinates))}var o=new ude(n[t||"name"],i,n.cp);return o.properties=n,o})}var pde=b8();function mde(e,t){var n=P0(t,function(t){return e.scale.parse(t)});return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function vde(e){var t=e.getLabelModel().get("customValues");if(t){var n=Kce(e),r=e.scale.getExtent();return{labels:P0(M0(mde(e,t),function(e){return e>=r[0]&&e<=r[1]}),function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=yde(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Kce(e);return{labels:P0(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function gde(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent();return{ticks:M0(mde(e,n),function(e){return e>=r[0]&&e<=r[1]})}}return"category"===e.type?function(e,t){var n,r,i=bde(e,"ticks"),a=Jce(t),o=wde(i,a);if(o)return o;t.get("show")&&!e.scale.isBlank()||(n=[]);if(j0(a))n=_de(e,a,!0);else if("auto"===a){var s=yde(e,e.getLabelModel());r=s.labelCategoryInterval,n=P0(s.labels,function(e){return e.tickValue})}else n=Sde(e,r=a,!0);return xde(i,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:P0(e.scale.getTicks(),function(e){return e.value})}}function yde(e,t){var n,r,i=bde(e,"labels"),a=Jce(t),o=wde(i,a);return o||(j0(a)?n=_de(e,a):(r="auto"===a?function(e){var t=pde(e).autoInterval;return null!=t?t:pde(e).autoInterval=e.calculateCategoryInterval()}(e):a,n=Sde(e,r)),xde(i,a,{labels:n,labelCategoryInterval:r}))}function bde(e,t){return pde(e)[t]||(pde(e)[t]=[])}function wde(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function xde(e,t,n){return e.push({key:t,value:n}),n}function Sde(e,t,n){var r=Kce(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Qce(e),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==a[0]&&m(a[0]);for(var p=u;p<=a[1];p+=l)m(p);function m(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-l!==a[1]&&m(a[1]),s}function _de(e,t,n){var r=e.scale,i=Kce(e),a=[];return I0(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})}),a}var kde=[0,1],Ade=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return E4(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&Cde(n=n.slice(),r.count()),A4(e,kde,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Cde(n=n.slice(),r.count());var i=A4(e,n,kde,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=P0(gde(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a,o,s=e.getExtent();if(1===i)t[0].coord=s[0],a=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;I0(t,function(e){e.coord-=u/2});var c=e.scale.getExtent();o=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*o,tickValue:c[1]+1},t.push(a)}var d=s[0]>s[1];f(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]});f(s[1],a.coord)&&(r?a.coord=s[1]:t.pop());r&&f(a.coord,s[1])&&t.push({coord:s[1]});function f(e,t){return e=T4(e),t=T4(t),d?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),P0(this.scale.getMinorTicks(e),function(e){return P0(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return vde(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Kce(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=a[1];l+=s){var p,m,v=n4(n({value:l}),t.font,"center","top");p=1.3*v.width,m=1.3*v.height,f=Math.max(f,p,7),h=Math.max(h,m,7)}var g=f/c,y=h/d;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(g,y))),w=pde(e.model),x=e.getExtent(),S=w.lastAutoInterval,_=w.lastTickCount;return null!=S&&null!=_&&Math.abs(S-b)<=1&&Math.abs(_-o)<=1&&S>b&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?b=S:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=x[0],w.axisExtent1=x[1]),b}(this)},e}();function Cde(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var Tde=2*Math.PI,Ode=X6.CMD,Ide=["top","right","bottom","left"];function Pde(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function Ede(e,t,n,r,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s),c=(o/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(r-i)%Tde<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var f=r;r=Z6(i),i=Z6(f)}else r=Z6(r),i=Z6(i);r>i&&(i+=Tde);var h=Math.atan2(s,o);if(h<0&&(h+=Tde),h>=r&&h<=i||h+Tde>=r&&h+Tde<=i)return l[0]=c,l[1]=d,u-n;var p=n*Math.cos(r)+e,m=n*Math.sin(r)+t,v=n*Math.cos(i)+e,g=n*Math.sin(i)+t,y=(p-o)*(p-o)+(m-s)*(m-s),b=(v-o)*(v-o)+(g-s)*(g-s);return y<b?(l[0]=p,l[1]=m,Math.sqrt(y)):(l[0]=v,l[1]=g,Math.sqrt(b))}function Mde(e,t,n,r,i,a,o,s){var l=i-e,u=a-t,c=n-e,d=r-t,f=Math.sqrt(c*c+d*d),h=(l*(c/=f)+u*(d/=f))/f;s&&(h=Math.min(Math.max(h,0),1)),h*=f;var p=o[0]=e+h*c,m=o[1]=t+h*d;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function Dde(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Rde=[];function Lde(e,t,n){var r=Dde(t.x,t.y,t.width,t.height,e.x,e.y,Rde);return n.set(Rde[0],Rde[1]),r}function Nde(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,f=e.y,h=0;h<c.length;){var p=c[h++];1===h&&(s=a=c[h],l=o=c[h+1]);var m=u;switch(p){case Ode.M:a=s=c[h++],o=l=c[h++];break;case Ode.L:m=Mde(a,o,c[h],c[h+1],d,f,Rde,!0),a=c[h++],o=c[h++];break;case Ode.C:m=o3(a,o,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],d,f,Rde),a=c[h++],o=c[h++];break;case Ode.Q:m=f3(a,o,c[h++],c[h++],c[h],c[h+1],d,f,Rde),a=c[h++],o=c[h++];break;case Ode.A:var v=c[h++],g=c[h++],y=c[h++],b=c[h++],w=c[h++],x=c[h++];h+=1;var S=!!(1-c[h++]);r=Math.cos(w)*y+v,i=Math.sin(w)*b+g,h<=1&&(s=r,l=i),m=Ede(v,g,b,w,w+x,S,(d-v)*b/y+v,f,Rde),a=Math.cos(w+x)*y+v,o=Math.sin(w+x)*b+g;break;case Ode.R:m=Dde(s=a=c[h++],l=o=c[h++],c[h++],c[h++],d,f,Rde);break;case Ode.Z:m=Mde(a,o,s,l,d,f,Rde,!0),a=s,o=l}m<u&&(u=m,n.set(Rde[0],Rde[1]))}return u}var jde=new f2,Fde=new f2,zde=new f2,Bde=new f2,Vde=new f2;function Hde(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Ide,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),d=c&&d2([],c),f=t.get("length2")||0;u&&zde.copy(u);for(var h=0;h<o.length;h++){Pde(o[h],0,s,jde,Bde),f2.scaleAndAdd(Fde,jde,Bde,f),Fde.transform(d);var p=e.getBoundingRect(),m=u?u.distance(Fde):e instanceof f9?Nde(Fde,e.path,zde):Lde(Fde,p,zde);m<l&&(l=m,Fde.transform(c),zde.transform(c),zde.toArray(a[0]),Fde.toArray(a[1]),jde.toArray(a[2]))}Xde(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var Wde=[],Ude=new f2;function Xde(e,t){if(t<=180&&t>0){t=t/180*Math.PI,jde.fromArray(e[0]),Fde.fromArray(e[1]),zde.fromArray(e[2]),f2.sub(Bde,jde,Fde),f2.sub(Vde,zde,Fde);var n=Bde.len(),r=Vde.len();if(!(n<.001||r<.001)){Bde.scale(1/n),Vde.scale(1/r);var i=Bde.dot(Vde);if(Math.cos(t)<i){var a=Mde(Fde.x,Fde.y,zde.x,zde.y,jde.x,jde.y,Wde,!1);Ude.fromArray(Wde),Ude.scaleAndAdd(Vde,a/Math.tan(Math.PI-t));var o=zde.x!==Fde.x?(Ude.x-Fde.x)/(zde.x-Fde.x):(Ude.y-Fde.y)/(zde.y-Fde.y);if(isNaN(o))return;o<0?f2.copy(Ude,Fde):o>1&&f2.copy(Ude,zde),Ude.toArray(e[1])}}}}function Gde(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,jde.fromArray(e[0]),Fde.fromArray(e[1]),zde.fromArray(e[2]),f2.sub(Bde,Fde,jde),f2.sub(Vde,zde,Fde);var r=Bde.len(),i=Vde.len();if(!(r<.001||i<.001))if(Bde.scale(1/r),Vde.scale(1/i),Bde.dot(t)<Math.cos(n)){var a=Mde(Fde.x,Fde.y,zde.x,zde.y,jde.x,jde.y,Wde,!1);Ude.fromArray(Wde);var o=Math.PI/2,s=o+Math.acos(Vde.dot(t))-n;if(s>=o)f2.copy(Ude,zde);else{Ude.scaleAndAdd(Vde,a/Math.tan(Math.PI/2-s));var l=zde.x!==Fde.x?(Ude.x-Fde.x)/(zde.x-Fde.x):(Ude.y-Fde.y)/(zde.y-Fde.y);if(isNaN(l))return;l<0?f2.copy(Ude,Fde):l>1&&f2.copy(Ude,zde)}Ude.toArray(e[1])}}}function Yde(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Kde(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=A1(r[0],r[1]),a=A1(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=T1([],r[1],r[0],o/i),l=T1([],r[1],r[2],o/a),u=T1([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function qde(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Y9.length;l++){var u=Y9[l],c=t[u],d="normal"===u;if(c){var f=c.get("show");if((d?s:q0(i.states[u]&&i.states[u].ignore,s))||!q0(f,o)){var h=d?r:r&&r.states[u];h&&(h.ignore=!0),r&&Yde(r,!0,u,c);continue}r||(r=new Iee,e.setTextGuideLine(r),d||!s&&o||Yde(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Yde(r,!1,u,c)}}if(r){A0(r.style,n),r.style.fill=null;var p=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=Kde}}else r&&e.removeTextGuideLine()}function Zde(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<G9.length;r++){var i=G9[r];n[i]=e.getModel([i,t])}return n}function Jde(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Yee(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Qde(e,t,n,r,i,a){var o=e.length;if(!(o<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var s,l=0,u=!1,c=0;c<o;c++){var d=e[c],f=d.rect;(s=f[t]-l)<0&&(f[t]-=s,d.label[t]-=s,u=!0),l=f[t]+f[n]}var h,p,m=e[0],v=e[o-1];return g(),h<0&&w(-h,.8),p<0&&w(p,.8),g(),y(h,p,1),y(p,h,-1),g(),h<0&&x(-h),p<0&&x(p),u}function g(){h=m.rect[t]-r,p=i-v.rect[t]-v.rect[n]}function y(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){b(r*n,0,o);var i=r+e;i<0&&w(-i*n,1)}else w(-e*n,1)}}function b(n,r,i){0!==n&&(u=!0);for(var a=r;a<i;a++){var o=e[a];o.rect[t]+=n,o.label[t]+=n}}function w(r,i){for(var a=[],s=0,l=1;l<o;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);a.push(c),s+=c}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<o-1;l++){b(a[l]*d,0,l+1)}else for(l=o-1;l>0;l--){b(-(a[l-1]*d),l,o)}}}function x(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?b(n,0,r+1):b(-n,o-r-1,o),(e-=n)<=0)return}}function $de(e,t,n,r){return Qde(e,"y","height",t,n)}function efe(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new x2(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,f=!1,h=0;h<t.length;h++){var p=t[h];if(n.intersect(p.rect)){if(o&&p.axisAligned){f=!0;break}if(p.obb||(p.obb=new Yee(p.localRect,p.transform)),d||(d=new Yee(s,l)),d.intersect(p.obb)){f=!0;break}}}f?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function tfe(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function nfe(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:tfe(r&&r.shape.points)}}var rfe=["align","verticalAlign","width","height","fontSize"],ife=new Z5,afe=b8(),ofe=b8();function sfe(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var lfe=["x","y","rotation"],ufe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();x2.applyTransform(l,l,s),s?ife.setLocalTransform(s):(ife.x=ife.y=ife.rotation=ife.originX=ife.originY=0,ife.scaleX=ife.scaleY=1),ife.rotation=Z6(ife.rotation);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var d=c.getComputedTransform();x2.applyTransform(u,u,d)}var f=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:ife.x,y:ife.y,scaleX:ife.scaleX,scaleY:ife.scaleY,rotation:ife.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(j0(r)||D0(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=B9(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Hde(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,l=a.defaultAttr,u=void 0;u=(u=j0(a.layoutOption)?a.layoutOption(nfe(a,s)):a.layoutOption)||{},a.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var d=!1;if(null!=u.x?(o.x=C4(u.x,t),o.setStyle("x",0),d=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=u.y?(o.y=C4(u.y,n),o.setStyle("y",0),d=!0):(o.y=l.y,o.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),d=!1)}afe(o).needsUpdateLabelLine=d,o.rotation=null!=u.rotate?u.rotate*c:l.rotation,o.scaleX=l.scaleX,o.scaleY=l.scaleY;for(var h=0;h<rfe.length;h++){var p=rfe[h];o.setStyle(p,null!=u[p]?u[p]:l.style[p])}if(u.draggable){if(o.draggable=!0,o.cursor="move",s){var m=a.seriesModel;if(null!=a.dataIndex)m=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex);o.on("drag",r(s,m.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=Jde(this._labelList),i=M0(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=M0(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});Qde(i,"x","width",0,t),$de(a,0,n),efe(M0(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;I0(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=afe(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=B9(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");if(l){var u=a.getVisual("drawType");s.stroke=l[u]}var c=o.getModel("labelLine");qde(e,Zde(o),s),Hde(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!tte(e))){var i=(h=afe(n)).oldLayout,a=B9(e),o=a.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(a.dataType);if(i){n.attr(i);var u=e.prevStates;u&&(C0(u,"select")>=0&&n.attr(h.oldLayoutSelect),C0(u,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),$ee(n,s,t,o)}else if(n.attr(s),!Xte(n).valueAnimation){var c=q0(n.style.opacity,1);n.style.opacity=0,ete(n,{style:{opacity:c}},t,o)}if(h.oldLayout=s,n.states.select){var d=h.oldLayoutSelect={};sfe(d,s,lfe),sfe(d,n.states.select,lfe)}if(n.states.emphasis){var f=h.oldLayoutEmphasis={};sfe(f,s,lfe),sfe(f,n.states.emphasis,lfe)}Yte(n,o,l,t,t)}if(r&&!r.ignore&&!r.invisible){i=(h=ofe(r)).oldLayout;var h,p={points:r.shape.points};i?(r.attr({shape:i}),$ee(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,ete(r,{style:{strokePercent:1}},t)),h.oldLayout=p}},e}(),cfe=b8();var dfe=Math.sin,ffe=Math.cos,hfe=Math.PI,pfe=2*Math.PI,mfe=180/hfe,vfe=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var l=o-a,u=!s,c=Math.abs(l),d=X3(c-pfe)||(u?l>=pfe:-l>=pfe),f=l>0?l%pfe:l%pfe+pfe,h=!1;h=!!d||!X3(c)&&f>=hfe==!!u;var p=e+n*ffe(a),m=t+r*dfe(a);this._start&&this._add("M",p,m);var v=Math.round(i*mfe);if(d){var g=1/this._p,y=(u?1:-1)*(pfe-g);this._add("A",n,r,v,1,+u,e+n*ffe(a+y),t+r*dfe(a+y)),g>.01&&this._add("A",n,r,v,0,+u,p,m)}else{var b=e+n*ffe(o),w=t+r*dfe(o);this._add("A",n,r,v,+h,+u,b,w)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f))return void(this._invalid=!0);u.push(Math.round(f*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),gfe="none",yfe=Math.round;var bfe=["lineCap","miterLimit","lineJoin"],wfe=P0(bfe,function(e){return"stroke-"+e.toLowerCase()});function xfe(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof g9)e("opacity",i);else{if(function(e){var t=e.fill;return null!=t&&t!==gfe}(t)){var a=W3(t.fill);e("fill",a.color);var o=null!=t.fillOpacity?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",gfe);if(function(e){var t=e.stroke;return null!=t&&t!==gfe}(t)){var s=W3(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if(1!==u&&e("stroke-width",u),d&&e("paint-order",d?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var f=Rse(n),h=f[0],p=f[1];h&&(p=yfe(p||0),e("stroke-dasharray",h.join(",")),(p||r)&&e("stroke-dashoffset",p))}for(var m=0;m<bfe.length;m++){var v=bfe[m];if(t[v]!==u9[v]){var g=t[v]||u9[v];g&&e(wfe[m],g)}}}}}var Sfe="http://www.w3.org/2000/svg",_fe="http://www.w3.org/1999/xlink",kfe="ecmeta_";function Afe(e){return document.createElementNS(Sfe,e)}function Cfe(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function Tfe(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,i=t.tag,a=t.attrs,o=t.text;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&null!=i&&(a+='="'+i+'"'),n.push(a))}return"<"+e+" "+n.join(" ")+">"}(i,a)+("style"!==i?W1(o):o||"")+(r?""+n+P0(r,function(t){return e(t)}).join(n)+n:"")+("</"+i+">")}(e)}function Ofe(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ife(e,t,n,r){return Cfe("svg","root",{width:e,height:t,xmlns:Sfe,"xmlns:xlink":_fe,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var Pfe=0;function Efe(){return Pfe++}var Mfe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Dfe="transform-origin";function Rfe(e,t,n){var r=k0({},e.shape);k0(r,t),e.buildPath(n,r);var i=new vfe;return i.reset(t5(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Lfe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Dfe]=n+"px "+r+"px")}var Nfe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function jfe(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Ffe(e){return F0(e)?Mfe[e]?"cubic-bezier("+Mfe[e]+")":m3(e)?e:"":""}function zfe(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof zee){var s=function(e,t,n){var r,i,a=e.shape.paths,o={};if(I0(a,function(e){var t=Ofe(n.zrId);t.animation=!0,zfe(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,l=D0(a),u=l.length;if(u){var c=a[i=l[u-1]];for(var d in c){var f=c[d];o[d]=o[d]||{d:""},o[d].d+=f.d||""}for(var h in s){var p=s[h].animation;p.indexOf(i)>=0&&(r=p)}}}),r){t.d=!1;var s=jfe(o,n);return r.replace(i,s)}}(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],d=[c.getMaxTime()/1e3+"s"],f=Ffe(c.getClip().easing),h=c.getDelay();f?d.push(f):d.push("linear"),h&&d.push(h/1e3+"s"),c.getLoop()&&d.push("infinite");var p=d.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function m(i){var a,o=i[1],s=o.length,l={},u={},c={},d="animation-timing-function";function f(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],f=Math.round(c.time/i*100)+"%",h=Ffe(c.easing),p=c.rawValue;(F0(p)||B0(p))&&(t[f]=t[f]||{},t[f][l]=c.rawValue,h&&(t[f][d]=h))}}}}for(var h=0;h<s;h++){(_=(S=o[h]).targetName)?"shape"===_&&f(S,u):!r&&f(S,l)}for(var p in l){var m={};Q5(m,e),k0(m,l[p]);var v=n5(m),g=l[p][d];c[p]=v?{transform:v}:{},Lfe(c[p],m),g&&(c[p][d]=g)}var y=!0;for(var p in u){c[p]=c[p]||{};var b=!a;g=u[p][d];b&&(a=new X6);var w=a.len();a.reset(),c[p].d=Rfe(e,u[p],a);var x=a.len();if(!b&&w!==x){y=!1;break}g&&(c[p][d]=g)}if(!y)for(var p in c)delete c[p].d;if(!r)for(h=0;h<s;h++){var S,_;"style"===(_=(S=o[h]).targetName)&&f(S,c,function(e){return Nfe[e]})}var k,A=D0(c),C=!0;for(h=1;h<A.length;h++){var T=A[h-1],O=A[h];if(c[T][Dfe]!==c[O][Dfe]){C=!1;break}k=c[T][Dfe]}if(C&&k){for(var p in c)c[p][Dfe]&&delete c[p][Dfe];t[Dfe]=k}if(M0(A,function(e){return D0(c[e]).length>0}).length)return jfe(c,n)+" "+i[0]+" both"}for(var v in l){(s=m(l[v]))&&o.push(s)}if(o.length){var g=n.zrId+"-cls-"+Efe();n.cssNodes["."+g]={animation:o.join(",")},t.class=g}}function Bfe(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+"-cls-"+Efe(),n.cssStyleCache[i]=a,n.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Vfe=Math.round;function Hfe(e){return e&&F0(e.src)}function Wfe(e){return e&&j0(e.toDataURL)}function Ufe(e,t,n,r){xfe(function(i,a){var o="fill"===i||"stroke"===i;o&&$3(a)?the(t,e,i,r):o&&Z3(a)?nhe(n,e,i,r):e[i]=a,o&&r.ssr&&"none"===a&&(e["pointer-events"]="visible")},t,n,!1),function(e,t,n){var r=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(r)){var i=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,h=W3(r.shadowColor),p=h.opacity,m=h.color,v=f/2/l+" "+f/2/u;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=Cfe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Cfe("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:v,"flood-color":m,"flood-opacity":p})]),a[i]=o}t.filter=e5(o)}}(n,e,r)}function Xfe(e,t){var n=function(e){if("function"==typeof x4)return x4(e)}(t);n&&(n.each(function(t,n){null!=t&&(e[(kfe+n).toLowerCase()]=t+"")}),t.isSilent()&&(e[kfe+"silent"]="true"))}function Gfe(e){return X3(e[0]-1)&&X3(e[1])&&X3(e[2])&&X3(e[3]-1)}function Yfe(e,t,n){if(t&&(!function(e){return X3(e[4])&&X3(e[5])}(t)||!Gfe(t))){var r=1e4;e.transform=Gfe(t)?"translate("+Vfe(t[4]*r)/r+" "+Vfe(t[5]*r)/r+")":function(e){return"matrix("+G3(e[0])+","+G3(e[1])+","+G3(e[2])+","+G3(e[3])+","+Y3(e[4])+","+Y3(e[5])+")"}(t)}}function Kfe(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(Vfe(r[a][0]*n)/n),i.push(Vfe(r[a][1]*n)/n);t.points=i.join(" ")}function qfe(e){return!e.smooth}var Zfe,Jfe,Qfe={circle:[(Zfe=["cx","cy","r"],Jfe=P0(Zfe,function(e){return"string"==typeof e?[e,e]:e}),function(e,t,n){for(var r=0;r<Jfe.length;r++){var i=Jfe[r],a=e[i[0]];null!=a&&(t[i[1]]=Vfe(a*n)/n)}})],polyline:[Kfe,qfe],polygon:[Kfe,qfe]};function $fe(e,t){var n=e.style,r=e.shape,i=Qfe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&t5(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||o&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),h=e,p=h.__svgPathBuilder;h.__svgPathVersion===f&&p&&l===h.__svgPathStrokePercent||(p||(p=h.__svgPathBuilder=new vfe),p.reset(u),d.rebuildPath(p,l),p.generateStr(),h.__svgPathVersion=f,h.__svgPathStrokePercent=l),a.d=p.getStr()}else{s=e.type;var m=Math.pow(10,u);i[0](r,a,m)}return Yfe(a,e.transform),Ufe(a,n,e,t),Xfe(a,e),t.animation&&zfe(e,a,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())Bfe(u={"pointer-events":"none"},t,n);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=r.fill;if(!i){var a=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&o||a;s&&(i=V3(s))}var l=r.lineWidth;l&&(l/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var u={cursor:"pointer"};i&&(u.fill=i),r.stroke&&(u.stroke=r.stroke),l&&(u["stroke-width"]=l),Bfe(u,t,n)}}(e,a,t),Cfe(s,e.id+"",a)}function ehe(e,t){return e instanceof f9?$fe(e,t):e instanceof g9?function(e,t){var n=e.style,r=n.image;if(r&&!F0(r)&&(Hfe(r)?r=r.src:Wfe(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o={href:r,width:n.width,height:n.height};return i&&(o.x=i),a&&(o.y=a),Yfe(o,e.transform),Ufe(o,n,e,t),Xfe(o,e),t.animation&&zfe(e,o,t),Cfe("image",e.id+"",o)}}(e,t):e instanceof p9?function(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||i0,a=n.x||0,o=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,a4(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":K3[n.textAlign]||n.textAlign};if(D9(n)){var l="",u=n.fontStyle,c=E9(n.fontSize);if(!parseFloat(c))return;var d=n.fontFamily||r0,f=n.fontWeight;l+="font-size:"+c+";font-family:"+d+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),f&&"normal"!==f&&(l+="font-weight:"+f+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),a&&(s.x=a),o&&(s.y=o),Yfe(s,e.transform),Ufe(s,n,e,t),Xfe(s,e),t.animation&&zfe(e,s,t),Cfe("text",e.id+"",s,void 0,r)}}(e,t):void 0}function the(e,t,n,r){var i,a=e[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(J3(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!Q3(a))return void w0("Illegal gradient type.");i="radialGradient",o.cx=q0(a.x,.5),o.cy=q0(a.y,.5),o.r=q0(a.r,.5)}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=100*Y3(s[u].offset)+"%",f=W3(s[u].color),h=f.color,p=f.opacity,m={offset:d};m["stop-color"]=h,p<1&&(m["stop-opacity"]=p),l.push(Cfe("stop",u+"",m))}var v=Tfe(Cfe(i,"",o,l)),g=r.gradientCache,y=g[v];y||(y=r.zrId+"-g"+r.gradientIdx++,g[v]=y,o.id=y,r.defs[y]=Cfe(i,y,o,l)),t[n]=e5(y)}function nhe(e,t,n,r){var i,a=e.style[n],o=e.getBoundingRect(),s={},l=a.repeat,u="no-repeat"===l,c="repeat-x"===l,d="repeat-y"===l;if(q3(a)){var f=a.imageWidth,h=a.imageHeight,p=void 0,m=a.image;if(F0(m)?p=m:Hfe(m)?p=m.src:Wfe(m)&&(p=m.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";$0(f,v),$0(h,v)}else if(null==f||null==h){var g=function(e,t){if(e){var n=e.elm,r=f||t.width,i=h||t.height;"pattern"===e.tag&&(c?(i=1,r/=o.width):d&&(r=1,i/=o.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},y=W8(p,null,e,function(e){u||g(S,e),g(i,e)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}i=Cfe("image","img",{href:p,width:f,height:h}),s.width=f,s.height=h}else a.svgElement&&(i=x0(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(i){var b,w;u?b=w=1:c?(w=1,b=s.width/o.width):d?(b=1,w=s.height/o.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==w||isNaN(w)||(s.height=w);var x=n5(a);x&&(s.patternTransform=x);var S=Cfe("pattern","",s,[i]),_=Tfe(S),k=r.patternCache,A=k[_];A||(A=r.zrId+"-p"+r.patternIdx++,k[_]=A,s.id=A,S=r.defs[A]=Cfe("pattern",A,s,[i])),t[n]=e5(A)}}function rhe(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){var o={id:a=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=a,i[a]=Cfe("clipPath",a,o,[$fe(e,n)])}t["clip-path"]=e5(a)}function ihe(e){return document.createTextNode(e)}function ahe(e,t,n){e.insertBefore(t,n)}function ohe(e,t){e.removeChild(t)}function she(e,t){e.appendChild(t)}function lhe(e){return e.parentNode}function uhe(e){return e.nextSibling}function che(e,t){e.textContent=t}var dhe=Cfe("","");function fhe(e){return void 0===e}function hhe(e){return void 0!==e}function phe(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;void 0!==a&&(r[a],r[a]=i)}return r}function mhe(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function vhe(e){var t,n=e.children,r=e.tag;if(hhe(r)){var i=e.elm=Afe(r);if(bhe(dhe,e),N0(n))for(t=0;t<n.length;++t){var a=n[t];null!=a&&she(i,vhe(a))}else hhe(e.text)&&!V0(e.text)&&she(i,ihe(e.text))}else e.elm=ihe(e.text);return e.elm}function ghe(e,t,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&ahe(e,vhe(a),t)}}function yhe(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(hhe(i.tag))ohe(lhe(i.elm),i.elm);else ohe(e,i.elm)}}function bhe(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):"style"===n?r.style.cssText=o:120!==n.charCodeAt(0)?r.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,o):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?r.setAttributeNS(_fe,n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function whe(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(bhe(e,t),fhe(t.text)?hhe(r)&&hhe(i)?r!==i&&function(e,t,n){for(var r,i,a,o=0,s=0,l=t.length-1,u=t[0],c=t[l],d=n.length-1,f=n[0],h=n[d];o<=l&&s<=d;)null==u?u=t[++o]:null==c?c=t[--l]:null==f?f=n[++s]:null==h?h=n[--d]:mhe(u,f)?(whe(u,f),u=t[++o],f=n[++s]):mhe(c,h)?(whe(c,h),c=t[--l],h=n[--d]):mhe(u,h)?(whe(u,h),ahe(e,u.elm,uhe(c.elm)),u=t[++o],h=n[--d]):mhe(c,f)?(whe(c,f),ahe(e,c.elm,u.elm),c=t[--l],f=n[++s]):(fhe(r)&&(r=phe(t,o,l)),fhe(i=r[f.key])||(a=t[i]).tag!==f.tag?ahe(e,vhe(f),u.elm):(whe(a,f),t[i]=void 0,ahe(e,a.elm,u.elm)),f=n[++s]);(o<=l||s<=d)&&(o>l?ghe(e,null==n[d+1]?null:n[d+1].elm,n,s,d):yhe(e,t,o,l))}(n,r,i):hhe(i)?(hhe(e.text)&&che(n,""),ghe(n,null,i,0,i.length-1)):hhe(r)?yhe(n,r,0,r.length-1):hhe(e.text)&&che(n,""):e.text!==t.text&&(hhe(r)&&yhe(n,r,0,r.length-1),che(n,t.text)))}var xhe=0,She=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=_he("refreshHover"),this.configLayer=_he("configLayer"),this.storage=t,this._opts=n=k0({},n),this.root=e,this._id="zr"+xhe++,this._oldVNode=Ife(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Afe("svg");bhe(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(mhe(e,t))whe(e,t);else{var n=e.elm,r=lhe(n);vhe(t),null!==r&&(ahe(r,t.elm,uhe(n)),yhe(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return ehe(e,Ofe(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=Ofe(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=function(e,t,n,r){var i;if(n&&"none"!==n)if(i=Cfe("rect","bg",{width:e,height:t,x:"0",y:"0"}),$3(n))the({fill:n},i.attrs,"fill",r);else if(Z3(n))nhe({style:{fill:n},dirty:f1,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var a=W3(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=Cfe("g","main",{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var l=P0(D0(i.defs),function(e){return i.defs[e]});if(l.length&&a.push(Cfe("defs","defs",{},l)),e.animation){var u=function(e,t,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,a=r+"}",o=P0(D0(e),function(t){return t+i+P0(D0(e[t]),function(n){return n+":"+e[t][n]+";"}).join(r)+a}).join(r),s=P0(D0(t),function(e){return"@keyframes "+e+i+P0(D0(t[e]),function(n){return n+i+P0(D0(t[e][n]),function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+a}).join(r)+a}).join(r);return o||s?["<![CDATA[",o,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=Cfe("style","stl",{},[],u);a.push(c)}}return Ife(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Tfe(this.renderToVNode({animation:q0(e.cssAnimation,!0),emphasis:q0(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:q0(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,l=0,u=0;u<a;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,f=d&&d.length||0,h=i&&i.length||0,p=void 0;for(p=Math.max(f-1,h-1);p>=0&&(!d||!i||d[p]!==i[p]);p--);for(var m=h-1;m>p;m--)r=o[--s-1];for(var v=p+1;v<f;v++){var g={};rhe(d[v],g,t);var y=Cfe("g","clip-g-"+l++,g,[]);(r?r.children:n).push(y),o[s++]=y,r=y}i=d;var b=ehe(c,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=Dse(r,0,n),t=Dse(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+"px",a.height=t+"px"}if(Z3(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",e),o.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=r5(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function _he(e){return function(){w0('In SVG mode painter not support method "'+e+'"')}}function khe(e,t,n){var r=o0.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}var Ahe=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||B5,"string"==typeof t?i=khe(t,n,r):V0(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(c1(i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return e0(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=khe("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new x2(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===a.length){(t=new x2(0,0,0,0)).copy(e),a.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new x2(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var f=e.width*e.height,h=c.width*c.height,p=l.width*l.height-f-h;p<r&&(r=p,i=u)}}if(s&&(a[i].union(e),n=!0),!n)(t=new x2(0,0,0,0)).copy(e),a.push(t);s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(h=e[c]){var d=h.shouldBePainted(n,r,!0,!0);(p=h.__isRendered&&(1&h.__dirty||!d)?h.getPrevPaintRect():null)&&u(p);var f=d&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,p;d=(h=t[c])&&h.shouldBePainted(n,r,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered)(p=h.getPrevPaintRect())&&u(p)}do{i=!1;for(c=0;c<a.length;)if(a[c].isZero())a.splice(c,1);else{for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(i=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(i);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/u,o/u));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;if(X0(t))o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||Ese(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a;else null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,o=Vse(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&I0(n,function(e){f(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(D1),Che=1e5,The=314159,Ohe=.01;var Ihe=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=k0({},n||{}),this.dpr=n.devicePixelRatio||B5,this._singleCanvas=i,this.root=e,e.style&&(c1(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new Ahe(s,this,this.dpr);c.__builtin__=!0,c.initContext(),o[314159]=c,c.zlevel=The,a.push(The),this._domRoot=e}else{this._width=Dse(e,0,n),this._height=Dse(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Che)),r||(r=n.ctx).save(),Zse(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Che)},e.prototype.paintOne=function(e,t){qse(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;V2(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(The).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=function(o){var s,l=i[o],d=l.ctx,h=a&&l.createRepaintRects(e,t,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,v=m&&Date.now(),g=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g,h);else if(p===l.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||l.clear(!1,g,h)}-1===p&&(p=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m)if(Date.now()-v>15)break}n.prevElClipPaths&&d.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var w=f.dpr,x=0;x<h.length;++x){var S=h[x];d.save(),d.beginPath(),d.rect(S.x*w,S.y*w,S.width*w,S.height*w),d.clip(),b(S),d.restore()}else d.save(),b(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},f=this,h=0;h<i.length;h++)d(h);return n0.wxa&&I0(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Zse(o,e,i,a),e.setPrevPaintRect(s))}else Zse(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=The);var n=this._layers[e];return n||((n=new Ahe("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?S0(n,this._layerConfig[e],!0):this._layerConfig[e-Ohe]&&S0(n,this._layerConfig[e-Ohe],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(n[e])w0("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}else w0("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,a=null,o=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,o=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):u=this.getLayer(l+(o>0?Ohe:0),this._needsManuallyCompositing),u.__builtin__||w0("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),a=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,I0(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?S0(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+Ohe)S0(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(C0(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Dse(i,0,r),t=Dse(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(The).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new Ahe("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];Zse(n,u,a,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();var Phe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return e0(t,e),t.prototype.getInitialData=function(e){var t=e.coordinateSystem;if("polar"!==t&&"cartesian2d"!==t)throw new Error("Line not support coordinateSystem besides cartesian and polar");return Yue(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new y4,n=Tse("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),a="none"===r?"circle":r,o=.8*e.itemHeight,s=Tse(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(roe);function Ehe(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Qie(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Qie(e,t,n[o]));return a.join(" ")}}function Mhe(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!N0(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(" ")}var Dhe=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return e0(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=Tse(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=Rhe,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){m7(this.childAt(0))},t.prototype.downplay=function(){v7(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,c)}else{(f=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(d):$ee(f,d,o,n),ate(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,ete(f,d,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,l,u,c,d,f,h,p=this.childAt(0),m=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,f=r.hoverScale,h=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),g=v.getModel("emphasis");a=g.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),o=v.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),c=g.get("disabled"),d=jte(v),f=g.getShallow("scale"),h=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var b=Ise(e.getItemVisual(t,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),h&&p.attr("cursor",h);var w=e.getItemVisual(t,"style"),x=w.fill;if(p instanceof g9){var S=p.style;p.useStyle(k0({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},w))}else p.__isEmptyBrush?p.useStyle(k0({},w)):p.useStyle(w),p.style.decal=null,p.setColor(x,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var _=e.getItemVisual(t,"liftZ"),k=this._z2;null!=_?null==k&&(this._z2=p.z2,p.z2+=_):null!=k&&(p.z2=k,this._z2=null);var A=i&&i.useNameLabel;Nte(p,d,{labelFetcher:m,labelDataIndex:t,defaultText:function(t){return A?e.getName(t):Ehe(e,t)},inheritColor:x,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=p.ensureState("emphasis");C.style=a,p.ensureState("select").style=s,p.ensureState("blur").style=o;var T=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T,this.setSymbolScale(1),I7(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=B9(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&nte(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();nte(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Ose(e.getItemVisual(t,"symbolSize"))},t}(y4);function Rhe(e,t){this.parent.drift(e,t)}function Lhe(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Nhe(e){return null==e||V0(e)||(e={isIgnore:e}),e||{}}function jhe(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:jte(t),cursorStyle:t.get("cursor")}}var Fhe=function(){function e(e){this.group=new y4,this._SymbolCtor=e||Dhe}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Nhe(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=jhe(e),l={disableAnimation:o},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=u(r);if(Lhe(e,i,r,t)){var o=new a(e,r,s,l);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(c,d){var f=i.getItemGraphicEl(d),h=u(c);if(Lhe(e,h,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",m=f&&f.getSymbolType&&f.getSymbolType();if(!f||m&&m!==p)n.remove(f),(f=new a(e,c,s,l)).setPosition(h);else{f.updateData(e,c,s,l);var v={x:h[0],y:h[1]};o?f.attr(v):$ee(f,v,r)}n.add(f),e.setItemGraphicEl(c,f)}else n.remove(f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=jhe(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Nhe(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Lhe(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function zhe(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:B0(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),o=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c="x"===s||"radius"===s?1:0,d=P0(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,h=t.getCalculationInfo("stackResultDimension");return Xue(t,d[0])&&(f=!0,d[0]=h),Xue(t,d[1])&&(f=!0,d[1]=h),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Bhe(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var Vhe=Math.min,Hhe=Math.max;function Whe(e,t){return isNaN(e)||isNaN(t)}function Uhe(e,t,n,r,i,a,o,s,l){for(var u,c,d,f,h,p,m=n,v=0;v<r;v++){var g=t[2*m],y=t[2*m+1];if(m>=i||m<0)break;if(Whe(g,y)){if(l){m+=a;continue}break}if(m===n)e[a>0?"moveTo":"lineTo"](g,y),d=g,f=y;else{var b=g-u,w=y-c;if(b*b+w*w<.5){m+=a;continue}if(o>0){for(var x=m+a,S=t[2*x],_=t[2*x+1];S===g&&_===y&&v<r;)v++,m+=a,S=t[2*(x+=a)],_=t[2*x+1],b=(g=t[2*m])-u,w=(y=t[2*m+1])-c;var k=v+1;if(l)for(;Whe(S,_)&&k<r;)k++,S=t[2*(x+=a)],_=t[2*x+1];var A=.5,C=0,T=0,O=void 0,I=void 0;if(k>=r||Whe(S,_))h=g,p=y;else{C=S-u,T=_-c;var P=g-u,E=S-g,M=y-c,D=_-y,R=void 0,L=void 0;if("x"===s){var N=C>0?1:-1;h=g-N*(R=Math.abs(P))*o,p=y,O=g+N*(L=Math.abs(E))*o,I=y}else if("y"===s){var j=T>0?1:-1;h=g,p=y-j*(R=Math.abs(M))*o,O=g,I=y+j*(L=Math.abs(D))*o}else R=Math.sqrt(P*P+M*M),h=g-C*o*(1-(A=(L=Math.sqrt(E*E+D*D))/(L+R))),p=y-T*o*(1-A),I=y+T*o*A,O=Vhe(O=g+C*o*A,Hhe(S,g)),I=Vhe(I,Hhe(_,y)),O=Hhe(O,Vhe(S,g)),p=y-(T=(I=Hhe(I,Vhe(_,y)))-y)*R/L,h=Vhe(h=g-(C=O-g)*R/L,Hhe(u,g)),p=Vhe(p,Hhe(c,y)),O=g+(C=g-(h=Hhe(h,Vhe(u,g))))*L/R,I=y+(T=y-(p=Hhe(p,Vhe(c,y))))*L/R}e.bezierCurveTo(d,f,h,p,g,y),d=O,f=I}else e.lineTo(g,y)}u=g,c=y,m+=a}return v}var Xhe=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),Ghe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xhe},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Whe(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Whe(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Uhe(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,a=X6.CMD,o="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,d=void 0,f=void 0,h=void 0,p=void 0,m=void 0;switch(i[l++]){case a.M:n=i[l++],r=i[l++];break;case a.L:if(u=i[l++],c=i[l++],(m=o?(e-n)/(u-n):(e-r)/(c-r))<=1&&m>=0){var v=o?(c-r)*m+r:(u-n)*m+n;return o?[e,v]:[v,e]}n=u,r=c;break;case a.C:u=i[l++],c=i[l++],d=i[l++],f=i[l++],h=i[l++],p=i[l++];var g=o?r3(n,u,d,h,e,s):r3(r,c,f,p,e,s);if(g>0)for(var y=0;y<g;y++){var b=s[y];if(b<=1&&b>=0){v=o?t3(r,c,f,p,b):t3(n,u,d,h,b);return o?[e,v]:[v,e]}}n=h,r=p}}},t}(f9),Yhe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t}(Xhe),Khe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new Yhe},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&Whe(n[2*a-2],n[2*a-1]);a--);for(;i<a&&Whe(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=Uhe(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Uhe(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(f9);function qhe(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var d=new k9({shape:{x:o,y:s,width:l,height:u}});if(t){var f=e.getBaseAxis(),h=f.isHorizontal(),p=f.inverse;h?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=u),d.shape.height=0);var m=j0(i)?function(e){i(e,d)}:null;ete(d,{shape:{width:l,height:u,x:o,y:s}},n,null,r,m)}return d}function Zhe(e,t,n){var r=e.getArea(),i=T4(r.r0,1),a=T4(r.r,1),o=new See({shape:{cx:T4(e.cx,1),cy:T4(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?o.shape.endAngle=r.startAngle:o.shape.r=i,ete(o,{shape:{endAngle:r.endAngle,r:a}},n));return o}function Jhe(e,t,n,r,i){return e?"polar"===e.type?Zhe(e,t,n):"cartesian2d"===e.type?qhe(e,t,n,r,i):null:null}function Qhe(e,t){return e.type===t}function $he(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function epe(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function tpe(e,t){var n=epe(e),r=n[0],i=n[1],a=epe(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function npe(e){return B0(e)?e:e?.5:0}function rpe(e,t,n,r,i){var a=n.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],l=0,u=[],c=[],d=[],f=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;isNaN(h[l])||isNaN(h[l+1])||f.push(e[l],e[l+1])}e=f}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[o]=d[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+d[o])/2,m=[];u[o]=m[o]=p,u[1-o]=c[1-o],m[1-o]=d[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=c[o],u[1-o]=d[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function ipe(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=M3(t[i]),s=M3(t[a]),l=r-i,u=F3([x3(C3(o[0],s[0],l)),x3(C3(o[1],s[1],l)),x3(C3(o[2],s[2],l)),S3(C3(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<a;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(o(r,l,t)):n&&i.push(o(n,l,0),o(n,l,t));break}n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}}return i}function ape(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*Dhe.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return I0(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function ope(e,t){return isNaN(e)||isNaN(t)}function spe(e,t){return[e[2*t],e[2*t+1]]}function lpe(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<G9.length;t++)if(e.get([G9[t],"endLabel","show"]))return!0;return!1}function upe(e,t,n,r){if(Qhe(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=lpe(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=qhe(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=c.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return l&&l(1,c),c}return r.get(["endLabel","show"]),Zhe(t,n,r)}var cpe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.init=function(){var e=new y4,t=new Fhe;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=R0(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=a.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,h=this._polygon,p=this._lineGroup,m=!t.ssr&&e.get("animation"),v=!s.isEmpty(),g=s.get("origin"),y=zhe(r,a,g),b=v&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=dce(2*r),a=0;a<r;a++){var o=Bhe(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(r,a,y),w=e.get("showSymbol"),x=e.get("connectNulls"),S=w&&!u&&ape(e,a,r),_=this._data;_&&_.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),_.setItemGraphicEl(t,null))}),w||d.remove(),i.add(p);var k,A=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var C=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){a=r[o];break}}if(a){var l=t.getAxis(i),u=P0(a.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,d=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=ipe(u,"x"===i?n.getWidth():n.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=f[0].coord-10,m=f[h-1].coord+10,v=m-p;if(v<.001)return"transparent";I0(f,function(e){e.offset=(e.coord-p)/v}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var g=new Vee(0,0,0,0,f,!0);return g[i]=p,g[i+"2"]=m,g}}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&c.type===r.type&&A===this._step){v&&!h?h=this._newPolygon(l,b):h&&!v&&(p.remove(h),h=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,tre(C));var T=p.getClipPath();if(T)ete(T,{shape:upe(this,r,!1,e).shape},e);else p.setClipPath(upe(this,r,!0,e));w&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),$he(this._stackedOnPoints,b)&&$he(this._points,l)||(m?this._doUpdateAnimation(a,b,r,n,A,g,x):(A&&(b&&(b=rpe(b,l,r,A,x)),l=rpe(l,null,r,A,x)),f.setShape({points:l}),h&&h.setShape({points:l,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,r,k),A&&(b&&(b=rpe(b,l,r,A,x)),l=rpe(l,null,r,A,x)),f=this._newPolyline(l),v?h=this._newPolygon(l,b):h&&(p.remove(h),h=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,tre(C)),p.setClipPath(upe(this,r,!0,e));var O=e.getModel("emphasis"),I=O.get("focus"),P=O.get("blurScope"),E=O.get("disabled");(f.useStyle(A0(o.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),D7(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);B9(f).seriesIndex=e.seriesIndex,I7(f,I,P,E);var M=npe(e.get("smooth")),D=e.get("smoothMonotone");if(f.setShape({smooth:M,smoothMonotone:D,connectNulls:x}),h){var R=a.getCalculationInfo("stackedOnSeries"),L=0;h.useStyle(A0(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(L=npe(R.get("smooth"))),h.setShape({smooth:M,stackedOnSmooth:L,smoothMonotone:D,connectNulls:x}),D7(h,e,"areaStyle"),B9(h).seriesIndex=e.seriesIndex,I7(h,I,P,E)}var N=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=l,this._step=A,this._valueOrigin=g,e.get("triggerLineEvent")&&(this.packEventData(e,f),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){B9(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=y8(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new Dhe(i,a)).x=l,s.y=u,s.setZ(c,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else moe.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=y8(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else moe.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;c7(this._polyline,e),t&&c7(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Ghe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Khe({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");j0(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=j0(u)?u(null):u;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,h=void 0,p=void 0;if(n)if(i){var m=n,v=t.pointToCoord(d);r?(f=m.startAngle,h=m.endAngle,p=-v[1]/180*Math.PI):(f=m.r0,h=m.r,p=v[0])}else{var g=n;r?(f=g.x,h=g.x+g.width,p=e.x):(f=g.y+g.height,h=g.y,p=e.y)}var y=h===f?0:(p-f)/(h-f);o&&(y=1-y);var b=j0(u)?u(a):l*y+c,w=s.getSymbolPath(),x=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(lpe(e)){var i=e.getData(),a=this._polyline,o=i.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new T9({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&ope(e[2*t-2],e[2*t-1]);t--);return t-1}(o);l>=0&&(Nte(a,jte(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?Mhe(i,n):Ehe(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),f=a.get("precision"),h=a.get("distance")||0,p=o.getBaseAxis(),m=p.isHorizontal(),v=p.inverse,g=t.shape,y=v?m?g.x:g.y+g.height:m?g.x+g.width:g.y,b=(m?h:0)*(v?-1:1),w=(m?0:-h)*(v?-1:1),x=m?"x":"y",S=function(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(i=e[2*u+o],!isNaN(i)&&!isNaN(e[2*u+1-o]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,y,x),_=S.range,k=_[1]-_[0],A=void 0;if(k>=1){if(k>1&&!d){var C=spe(u,_[0]);s.attr({x:C[0]+b,y:C[1]+w}),i&&(A=c.getRawValue(_[0]))}else{(C=l.getPointOn(y,x))&&s.attr({x:C[0]+b,y:C[1]+w});var T=c.getRawValue(_[0]),O=c.getRawValue(_[1]);i&&(A=O8(n,f,T,O,S.t))}r.lastFrameIndex=_[0]}else{var I=1===e||r.lastFrameIndex>0?_[0]:0;C=spe(u,I);i&&(A=c.getRawValue(I)),s.attr({x:C[0]+b,y:C[1]+w})}if(i){var P=Xte(s);"function"==typeof P.setLabelText&&P.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,a,o){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}(e,t),l=[],u=[],c=[],d=[],f=[],h=[],p=[],m=zhe(i,t,o),v=e.getLayout("points")||[],g=t.getLayout("points")||[],y=0;y<s.length;y++){var b=s[y],w=!0,x=void 0,S=void 0;switch(b.cmd){case"=":x=2*b.idx,S=2*b.idx1;var _=v[x],k=v[x+1],A=g[S],C=g[S+1];(isNaN(_)||isNaN(k))&&(_=A,k=C),l.push(_,k),u.push(A,C),c.push(n[x],n[x+1]),d.push(r[S],r[S+1]),p.push(t.getRawIndex(b.idx1));break;case"+":var T=b.idx,O=m.dataDimsForPoint,I=i.dataToPoint([t.get(O[0],T),t.get(O[1],T)]);S=2*T,l.push(I[0],I[1]),u.push(g[S],g[S+1]);var P=Bhe(m,i,t,T);c.push(P[0],P[1]),d.push(r[S],r[S+1]),p.push(t.getRawIndex(T));break;case"-":w=!1}w&&(f.push(b),h.push(h.length))}h.sort(function(e,t){return p[e]-p[t]});var E=l.length,M=dce(E),D=dce(E),R=dce(E),L=dce(E),N=[];for(y=0;y<h.length;y++){var j=h[y],F=2*y,z=2*j;M[F]=l[z],M[F+1]=l[z+1],D[F]=u[z],D[F+1]=u[z+1],R[F]=c[z],R[F+1]=c[z+1],L[F]=d[z],L[F+1]=d[z+1],N[y]=f[j]}return{current:M,next:D,stackedOnCurrent:R,stackedOnNext:L,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,f=c.stackedOnCurrent,h=c.next,p=c.stackedOnNext;if(i&&(f=rpe(c.stackedOnCurrent,c.current,n,i,o),d=rpe(c.current,null,n,i,o),p=rpe(c.stackedOnNext,c.next,n,i,o),h=rpe(c.next,null,n,i,o)),tpe(d,h)>3e3||l&&tpe(f,p)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=d;var m={shape:{points:h}};c.current!==d&&(m.shape.__points=c.next),s.stopAnimation(),$ee(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:f}),l.stopAnimation(),$ee(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],g=c.status,y=0;y<g.length;y++){if("="===g[y].cmd){var b=e.getItemGraphicEl(g[y].idx1);b&&v.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,r=2*v[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(moe);function dpe(e,t){return{seriesType:e,plan:foe(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=P0(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");Xue(n,o[0])&&(o[0]=l),Xue(n,o[1])&&(o[1]=l);var u=n.getStore(),c=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&dce(n*s),o=[],l=[],f=e.start,h=0;f<e.end;f++){var p=void 0;if(1===s){var m=u.get(c,f);p=r.dataToPoint(m,null,l)}else o[0]=u.get(c,f),o[1]=u.get(d,f),p=r.dataToPoint(o,null,l);a?(i[h++]=p[0],i[h++]=p[1]):t.setItemLayout(f,p.slice())}a&&t.setLayout("points",i)}}}}}}var fpe={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},hpe=function(e){return Math.round(e.length/2)};function ppe(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),a=e.coordinateSystem,o=r.count();if(o>10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),f=Math.round(o/d);if(isFinite(f)&&f>1){"lttb"===i?e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/f));var h=void 0;F0(i)?h=fpe[i]:j0(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/f,h,hpe))}}}}}var mpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.getInitialData=function(e,t){return Yue(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)I0(r.getAxes(),function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!o&&(s+=1),r.length<2)return;if(2===r.length)return void(a[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,f=0;f<r.length;f++){var h=r[f].coord,p=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(p===s){c=h;break}if(p<s)u=h;else if(null!=u&&p>s){c=(h+u)/2;break}1===f&&(d=p-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),a[n]=e.toGlobalCoord(c)}});else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;a[u]+=s+l/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(roe);roe.registerClass(mpe);var vpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.getInitialData=function(){return Yue(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=une(mpe.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(mpe),gpe=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),ype=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new gpe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,f=c?u-l<d:l-u<d;f||(l=u-(c?d:-d));var h=Math.cos(l),p=Math.sin(l),m=Math.cos(u),v=Math.sin(u);f?(e.moveTo(h*i+n,p*i+r),e.arc(h*s+n,p*s+r,o,-Math.PI+l,l,!c)):e.moveTo(h*a+n,p*a+r),e.arc(n,r,a,l,u,!c),e.arc(m*s+n,v*s+r,o,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(f9);function bpe(e,t,n){return t*Math.sin(e)*(n?-1:1)}function wpe(e,t,n){return t*Math.cos(e)*(n?1:-1)}function xpe(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;N0(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:P0(r,function(e){return o4(e,i)})}}var Spe=Math.max,_pe=Math.min;var kpe=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return e0(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");"cartesian2d"===i||"polar"===i?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):Z4("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();n&&("category"!==r.type&&Z4("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==t.type&&Z4("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);d&&this._enableRealtimeSort(d,o,n);var f=e.get("clip",!0)||d,h=function(e,t){var n=e.getArea&&e.getArea();if(Qhe(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,o);a.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),g=v.get("borderRadius")||0,y=[],b=this._backgroundEls,w=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function S(e){var t=Mpe[l.type](o,e),n=function(e,t,n){var r="polar"===e.type?See:k9;return new r({shape:zpe(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",g):n.setShape("cornerRadius",g),y[e]=n,n}o.diff(s).add(function(t){var n=o.getItemModel(t),r=Mpe[l.type](o,t,n);if(m&&S(t),o.hasValue(t)&&Epe[l.type](r)){var s=!1;f&&(s=Ape[l.type](h,r));var v=Cpe[l.type](e,o,t,r,i,c,u.model,!1,p);d&&(v.forceLabelAnimation=!0),Rpe(v,o,t,n,r,e,i,"polar"===l.type),w?v.attr({shape:r}):d?Tpe(d,c,v,r,t,i,!1,!1):ete(v,{shape:r},e,t),o.setItemGraphicEl(t,v),a.add(v),v.ignore=s}}).update(function(t,n){var r=o.getItemModel(t),_=Mpe[l.type](o,t,r);if(m){var k=void 0;0===b.length?k=S(n):((k=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?k.setShape("r",g):k.setShape("cornerRadius",g),y[t]=k);var A=Mpe[l.type](o,t);$ee(k,{shape:zpe(i,A,l)},c,t)}var C=s.getItemGraphicEl(n);if(o.hasValue(t)&&Epe[l.type](_)){var T=!1;if(f&&(T=Ape[l.type](h,_))&&a.remove(C),C?ate(C):C=Cpe[l.type](e,o,t,_,i,c,u.model,!!C,p),d&&(C.forceLabelAnimation=!0),x){var O=C.getTextContent();if(O){var I=Xte(O);null!=I.prevValue&&(I.prevValue=I.value)}}else Rpe(C,o,t,r,_,e,i,"polar"===l.type);w?C.attr({shape:_}):d?Tpe(d,c,C,_,t,i,!0,x):$ee(C,{shape:_},e,t,null),o.setItemGraphicEl(t,C),C.ignore=T,a.add(C)}else a.remove(C)}).remove(function(t){var n=s.getItemGraphicEl(t);n&&ite(n,e,t)}).execute();var _=this._backgroundGroup||(this._backgroundGroup=new y4);_.removeAll();for(var k=0;k<y.length;++k)_.add(y[k]);a.add(_),this._backgroundEls=y,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),jpe(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),jpe(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&Jhe(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:P0(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){ite(t,e,B9(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(moe),Ape={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Spe(t.x,e.x),s=_pe(t.x+t.width,i),l=Spe(t.y,e.y),u=_pe(t.y+t.height,a),c=s<o,d=u<l;return t.x=c&&o>i?s:o,t.y=d&&l>a?u:l,t.width=c?0:s-o,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=_pe(t.r,e.r),a=Spe(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},Cpe={cartesian2d:function(e,t,n,r,i,a,o,s,l){var u=new k9({shape:k0({},r),z2:1});(u.__dataIndex=n,u.name="item",a)&&(u.shape[i?"height":"width"]=0);return u},polar:function(e,t,n,r,i,a,o,s,l){var u=!i&&l?ype:See,c=new u({shape:r,z2:1});c.name="item";var d,f,h=Dpe(i);if(c.calculateTextPosition=(d=h,f=({isRoundCap:u===ype}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return s4(e,t,n);var i=d(r),a=null!=t.distance?t.distance:5,o=this.shape,s=o.cx,l=o.cy,u=o.r,c=o.r0,h=(u+c)/2,p=o.startAngle,m=o.endAngle,v=(p+m)/2,g=f?Math.abs(u-c)/2:0,y=Math.cos,b=Math.sin,w=s+u*y(p),x=l+u*b(p),S="left",_="top";switch(i){case"startArc":w=s+(c-a)*y(v),x=l+(c-a)*b(v),S="center",_="top";break;case"insideStartArc":w=s+(c+a)*y(v),x=l+(c+a)*b(v),S="center",_="bottom";break;case"startAngle":w=s+h*y(p)+bpe(p,a+g,!1),x=l+h*b(p)+wpe(p,a+g,!1),S="right",_="middle";break;case"insideStartAngle":w=s+h*y(p)+bpe(p,-a+g,!1),x=l+h*b(p)+wpe(p,-a+g,!1),S="left",_="middle";break;case"middle":w=s+h*y(v),x=l+h*b(v),S="center",_="middle";break;case"endArc":w=s+(u+a)*y(v),x=l+(u+a)*b(v),S="center",_="bottom";break;case"insideEndArc":w=s+(u-a)*y(v),x=l+(u-a)*b(v),S="center",_="top";break;case"endAngle":w=s+h*y(m)+bpe(m,a+g,!0),x=l+h*b(m)+wpe(m,a+g,!0),S="left",_="middle";break;case"insideEndAngle":w=s+h*y(m)+bpe(m,-a+g,!0),x=l+h*b(m)+wpe(m,-a+g,!0),S="right",_="middle";break;default:return s4(e,t,n)}return(e=e||{}).x=w,e.y=x,e.align=S,e.verticalAlign=_,e}),a){var p=i?"r":"endAngle",m={};c.shape[p]=i?r.r0:r.startAngle,m[p]=r[p],(s?$ee:ete)(c,{shape:m},a)}return c}};function Tpe(e,t,n,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?$ee:ete)(n,{shape:l},t,i,null),(o?$ee:ete)(n,{shape:u},t?e.baseAxis.model:null,i)}function Ope(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Ipe=["x","y","width","height"],Ppe=["cx","cy","r","startAngle","endAngle"],Epe={cartesian2d:function(e){return!Ope(e,Ipe)},polar:function(e){return!Ope(e,Ppe)}},Mpe={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Dpe(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function Rpe(e,t,n,r,i,a,o,s){var l=t.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var u=e.shape;k0(u,xpe(r.getModel("itemStyle"),u,!0)),e.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=jte(r);Nte(e,h,{labelFetcher:a,labelDataIndex:n,defaultText:Ehe(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var p=e.getTextContent();if(s&&p){var m=r.get(["label","position"]);e.textConfig.inside="middle"===m||null,function(e,t,n,r){if(B0(r))e.setTextConfig({rotation:r});else if(N0(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}(e,"outside"===m?f:m,Dpe(o),r.get(["label","rotate"]))}Gte(p,h,a.getRawValue(n),function(e){return Mhe(t,e)});var v=r.getModel(["emphasis"]);I7(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),D7(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",I0(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var Lpe=function(){return function(){}}(),Npe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new Lpe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[r]=s,o[i]=n[l+2],a[r]=n[l+r],a[i]=n[l+i],e.rect(a[0],a[1],o[0],o[1])},t}(f9);function jpe(e,t,n,r){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Npe({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new Npe({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,B9(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",Fpe),d.on("mousemove",Fpe)),n&&n.push(d)}var Fpe=koe(function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=a.length/3;c<d;c++){var f=3*c;if(l[r]=u,l[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}(this,e.offsetX,e.offsetY);B9(this).dataIndex=t>=0?t:null},30,!1);function zpe(e,t,n){if(Qhe(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var a=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}var Bpe=2*Math.PI,Vpe=Math.PI/180;function Hpe(e,t){return lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Wpe(e,t){var n=Hpe(e,t),r=e.get("center"),i=e.get("radius");N0(i)||(i=[0,i]);var a,o,s=C4(n.width,t.getWidth()),l=C4(n.height,t.getHeight()),u=Math.min(s,l),c=C4(i[0],u/2),d=C4(i[1],u/2),f=e.coordinateSystem;if(f){var h=f.dataToPoint(r);a=h[0]||0,o=h[1]||0}else N0(r)||(r=[r,r]),a=C4(r[0],s)+n.x,o=C4(r[1],l)+n.y;return{cx:a,cy:o,r0:c,r:d}}function Upe(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension("value"),i=Hpe(e,n),a=Wpe(e,n),o=a.cx,s=a.cy,l=a.r,u=a.r0,c=-e.get("startAngle")*Vpe,d=e.get("endAngle"),f=e.get("padAngle")*Vpe;d="auto"===d?c-Bpe:-d*Vpe;var h=e.get("minAngle")*Vpe+f,p=0;t.each(r,function(e){!isNaN(e)&&p++});var m=t.getSum(r),v=Math.PI/(m||p)*2,g=e.get("clockwise"),y=e.get("roseType"),b=e.get("stillShowZeroSum"),w=t.getDataExtent(r);w[0]=0;var x=g?1:-1,S=[c,d],_=x*f/2;U6(S,!g),c=S[0],d=S[1];var k=Xpe(e);k.startAngle=c,k.endAngle=d,k.clockwise=g;var A=Math.abs(d-c),C=A,T=0,O=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:o,cy:s,r0:u,r:y?NaN:l});else{(r="area"!==y?0===m&&b?v:e*v:A/p)<h?(r=h,C-=h):T+=e;var i=O+x*r,a=0,c=0;f>r?c=a=O+x*r/2:(a=O+_,c=i-_),t.setItemLayout(n,{angle:r,startAngle:a,endAngle:c,clockwise:g,cx:o,cy:s,r0:u,r:y?A4(e,w,[u,l]):l}),O=i}}),C<Bpe&&p)if(C<=.001){var I=A/p;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=I;var i=0,a=0;I<f?a=i=c+x*(n+.5)*I:(i=c+x*n*I+_,a=c+x*(n+1)*I-_),r.startAngle=i,r.endAngle=a}})}else v=C/T,O=c,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===h?h:e*v,a=0,o=0;i<f?o=a=O+x*i/2:(a=O+_,o=O+x*i-_),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var Xpe=b8();function Gpe(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var Ype=Math.PI/180;function Kpe(e,t,n,r,i,a,o,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var f=e[d].label.x-u;e[d].linePoints[1][0]+=f,e[d].label.x=u}$de(e,l,l+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,f=r+l.len,p=Math.abs(d)<f?Math.sqrt(c*c/(1-d*d/f/f)):f;u.rB=p,u.maxY=c}u.list.push(l)}h(a),h(o)}(e)}function h(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,d=c*c,f=Math.sqrt(Math.abs((1-u*u/o)*d)),h=t+(f+l.len2)*i,p=h-l.label.x;qpe(l,l.targetTextWidth-p*i,!0),l.label.x=h}}}function qpe(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||n){var d=a.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var m=r.getBoundingRect();a.width=m.width;var v=(r.style.margin||0)+2.1;a.height=m.height+v,a.y-=(a.height-d)/2}}}function Zpe(e){return"center"===e.position}function Jpe(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*Ype,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(e){e.ignore=!0}r.each(function(e){var s=r.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),p=s.getTextGuideLine(),m=r.getItemModel(e),v=m.getModel("label"),g=v.get("position")||m.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),b=v.get("alignTo"),w=C4(v.get("edgeDistance"),u),x=v.get("bleedMargin"),S=m.getModel("labelLine"),_=S.get("length");_=C4(_,u);var k=S.get("length2");if(k=C4(k,u),Math.abs(d.endAngle-d.startAngle)<o)return I0(f.states,h),f.ignore=!0,void(p&&(I0(p.states,h),p.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(f)){var A,C,T,O,I=(d.startAngle+d.endAngle)/2,P=Math.cos(I),E=Math.sin(I);t=d.cx,n=d.cy;var M="inside"===g||"inner"===g;if("center"===g)A=d.cx,C=d.cy,O="center";else{var D=(M?(d.r+d.r0)/2*P:d.r*P)+t,R=(M?(d.r+d.r0)/2*E:d.r*E)+n;if(A=D+3*P,C=R+3*E,!M){var L=D+P*(_+l-d.r),N=R+E*(_+l-d.r),j=L+(P<0?-1:1)*k;A="edge"===b?P<0?c+w:c+u-w:j+(P<0?-y:y),C=N,T=[[D,R],[L,N],[j,N]]}O=M?"center":"edge"===b?P>0?"right":"left":P>0?"left":"right"}var F=Math.PI,z=0,B=v.get("rotate");if(B0(B))z=B*(F/180);else if("center"===g)z=0;else if("radial"===B||!0===B){z=P<0?-I+F:-I}else if("tangential"===B&&"outside"!==g&&"outer"!==g){var V=Math.atan2(P,E);V<0&&(V=2*F+V),E>0&&(V=F+V),z=V-F}if(a=!!z,f.x=A,f.y=C,f.rotation=z,f.setStyle({verticalAlign:"middle"}),M){f.setStyle({align:O});var H=f.states.select;H&&(H.x+=f.x,H.y+=f.y)}else{var W=f.getBoundingRect().clone();W.applyTransform(f.getComputedTransform());var U=(f.style.margin||0)+2.1;W.y-=U/2,W.height+=U,i.push({label:f,labelLine:p,position:g,len:_,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new f2(P,E),linePoints:T,textAlign:O,labelDistance:y,labelAlignTo:b,edgeDistance:w,bleedMargin:x,rect:W,unconstrainedWidth:W.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:M})}}),!a&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var h=e[f].label;Zpe(e[f])||(h.x<t?(c=Math.min(c,h.x),l.push(e[f])):(d=Math.max(d,h.x),u.push(e[f])))}for(f=0;f<e.length;f++)if(!Zpe(v=e[f])&&v.linePoints){if(null!=v.labelStyleWidth)continue;h=v.label;var p=v.linePoints,m=void 0;m="edge"===v.labelAlignTo?h.x<t?p[2][0]-v.labelDistance-o-v.edgeDistance:o+i-v.edgeDistance-p[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?h.x<t?c-o-v.bleedMargin:o+i-d-v.bleedMargin:h.x<t?h.x-o-v.bleedMargin:o+i-h.x-v.bleedMargin,v.targetTextWidth=m,qpe(v,m)}for(Kpe(u,t,n,r,1,0,a,0,s,d),Kpe(l,t,n,r,-1,0,a,0,s,c),f=0;f<e.length;f++){var v;if(!Zpe(v=e[f])&&v.linePoints){h=v.label,p=v.linePoints;var g="edge"===v.labelAlignTo,y=h.style.padding,b=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:b,x=v.rect.width+w,S=p[1][0]-p[2][0];g?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=h.y}}}(i,t,n,l,u,f,c,d);for(var p=0;p<i.length;p++){var m=i[p],v=m.label,g=m.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),y&&(I0(v.states,h),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(g){var w=m.linePoints;y||!w?(I0(g.states,h),g.ignore=!0):(Xde(w,m.minTurnAngle),Gde(w,m.surfaceNormal,m.maxSurfaceAngle),g.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new f2(w[0][0],w[0][1])})}}}var Qpe=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new T9;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return e0(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel("emphasis"),l=e.getItemLayout(t),u=k0(xpe(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=a.getShallow("animationType");a.ecModel.ssr?(ete(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,ete(i,{shape:{r:l.r}},a,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ete(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,t)):(i.shape.endAngle=l.startAngle,$ee(i,{shape:{endAngle:l.endAngle}},a,t))}else ate(i),$ee(i,{shape:u},a,t);i.useStyle(e.getItemVisual(t,"style")),D7(i,o);var d=(l.startAngle+l.endAngle)/2,f=a.get("selectedOffset"),h=Math.cos(d)*f,p=Math.sin(d)*f,m=o.getShallow("cursor");m&&i.attr("cursor",m),this._updateLabel(a,e,t),i.ensureState("emphasis").shape=k0({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},xpe(s.getModel("itemStyle"),l)),k0(i.ensureState("select"),{x:h,y:p,shape:xpe(o.getModel(["select","itemStyle"]),l)}),k0(i.ensureState("blur"),{shape:xpe(o.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),g=i.getTextContent();v&&k0(v.ensureState("select"),{x:h,y:p}),k0(g.ensureState("select"),{x:h,y:p}),I7(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel("labelLine"),o=t.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;Nte(r,jte(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Iee,this.setTextGuideLine(d)),qde(this,Zde(i),{stroke:s,opacity:Z0(a.get(["lineStyle","opacity"]),l,1)})}},t}(See),$pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e0(t,e),t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var c=Xpe(e),d=new See({shape:k0(Wpe(e,n),c)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}a.diff(o).add(function(e){var t=new Qpe(a,e,i);a.setItemGraphicEl(e,t),s.add(t)}).update(function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off("click"),s.add(n),a.setItemGraphicEl(e,n)}).remove(function(t){ite(o.getItemGraphicEl(t),e,t)}).execute(),Jpe(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="pie",t}(moe);function eme(e,t,n){t=N0(t)&&{coordDimensions:t}||k0({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=zue(r,t).dimensions,a=new Fue(i,e);return a.initData(r,n),a}var tme=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),nme=b8(),rme=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tme(R0(this.getData,this),R0(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return eme(this,{coordDimensions:["value"],encodeDefaulter:L0(Dre,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=nme(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension("value"),function(e){a.push(e)}),i=r.seats=function(e,t){var n=E0(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===n)return[];for(var r=Math.pow(10,t),i=P0(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=100*r,o=P0(i,function(e){return Math.floor(e)}),s=E0(o,function(e,t){return e+t},0),l=P0(i,function(e,t){return e-o[t]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,f=l.length;d<f;++d)l[d]>u&&(u=l[d],c=d);++o[c],l[c]=0,++s}return P0(o,function(e){return e/r})}(a,n.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){o8(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(roe);var ime=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return e0(t,e),t.prototype.getInitialData=function(e,t){return Yue(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(roe),ame=function(){return function(){}}(),ome=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e0(t,e),t.prototype.getDefaultShape=function(){return new ame},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,a=this.symbolProxy,o=a.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],d=r[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(o.x=c-i[0]/2,o.y=d-i[1]/2,o.width=i[0],o.height=i[1],a.buildPath(e,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,a=this.softClipShape;if(i){for(e=this._off;e<n.length;){var o=n[e++],s=n[e++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||i.fillRect(o-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-a/2,c=r[l+1]-o/2;if(e>=u&&t>=c&&e<=u+a&&t<=c+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],f=n[c++];o=Math.min(d,o),l=Math.max(d,l),s=Math.min(f,s),u=Math.max(f,u)}e=this._rect=new x2(o-i/2,s-a/2,l-o+i,u-s+a)}return e},t}(f9),sme=function(){function e(){this.group=new y4}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new ome({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Tse(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=t.getVisual("style"),s=o&&o.fill;s&&e.setColor(s);var l=B9(e);l.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),lme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=dpe("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new sme:new Fhe,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(moe),ume=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(mre),cme=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_8).models[0]},t.type="cartesian2dAxis",t}(mre);T0(cme,ede);var dme={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fme=S0({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dme),hme=S0({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},dme);const pme={category:fme,value:hme,time:S0({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},hme),log:A0({logBase:10},hme)};var mme={value:1,category:1,time:1,log:1};function vme(e,t,n,r){I0(mme,function(i,a){var o=S0(S0({},pme[a],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return e0(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=cre(this),r=n?fre(e):{};S0(e,t.getTheme().get(a+"Axis")),S0(e,this.getDefaultOption()),e.type=gme(e),n&&dre(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Zue.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",gme)}function gme(e){return e.type||(e.data?"category":"value")}var yme=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return P0(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),M0(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),bme=["x","y"];function wme(e){return"interval"===e.type||"time"===e.type}var xme=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=bme,t}return e0(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(wme(e)&&wme(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,u=(a[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,d];this._invTransform=d2([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new x2(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return O1(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return O1(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,a=Math.max(t[0],t[1])-r+e,o=Math.max(n[0],n[1])-i+e;return new x2(r,i,a,o)},t}(yme),Sme=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return e0(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Ade);function _me(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(m,p[1]),p[0])}a.position=["y"===u?p[f[l]]:d[0],"x"===u?p[f[l]]:d[3]],a.rotation=Math.PI/2*("x"===u?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?p[f[s]]-p[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),K0(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-v:v,a.z2=1,a}function kme(e){return"cartesian2d"===e.get("coordinateSystem")}function Ame(e){var t={xAxisModel:null,yAxisModel:null};return I0(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,_8).models[0];if(!a)throw new Error(i+' "'+Z0(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[r]=a}),t}var Cme=Math.log;function Tme(e,t,n){var r=lce.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=Xce(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var f=Cme(e.base);u=[Cme(u[0])/f,Cme(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(e),m=u[0],v=u[1];if(c&&d)p=(v-m)/o;else if(c)for(v=u[0]+p*o;v<u[1]&&isFinite(v)&&isFinite(u[1]);)p=ece(p),v=u[0]+p*o;else if(d)for(m=u[1]-p*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)p=ece(p),m=u[1]-p*o;else{e.getTicks().length-1>o&&(p=ece(p));var g=p*o;(m=T4((v=Math.ceil(u[1]/p)*p)-g))<0&&u[0]>=0?(m=0,v=T4(g)):v>0&&u[1]<=0&&(v=0,m=-T4(g))}var y=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*y,v+p*b),r.setInterval.call(e,p),(y||b)&&r.setNiceExtent.call(e,m+p,v-p);var w,x,S,_=r.getTicks.call(e);_[1]&&(w=p,x=Math.pow(10,F4(Math.abs(w))),0!==(S=Math.abs(w/x))&&1!==S&&2!==S&&3!==S&&5!==S||P4(_[1].value)>P4(p))&&Z4("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}var Ome=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bme,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=D0(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,l=o.scale;Que(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(o):(Gce(l,s),Que(l)&&(t=o))}i.length&&(t||Gce((t=i.pop()).scale,t.model),I0(i,function(e){Tme(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};I0(n.x,function(e){Pme(n,"y",e,i)}),I0(n.y,function(e){Pme(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=lre(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function s(){I0(o,function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?a.x:a.y)})}s(),i&&(I0(o,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,a=n.getExtent();i=n instanceof oce?n.count():(r=n.getTicks()).length;var o,s=e.getLabelModel(),l=Kce(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=l(r?r[c]:{value:a[0]+c},c),f=Zce(s.getTextRect(d),s.get("rotate")||0);o?o.union(f):o=f}return o}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}}),s()),I0(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}V0(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",_8).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",_8).models[0],o=e.gridModel,s=this._coordsList;if(r)C0(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&a)t=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){o.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(Ime(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var u=new Sme(t,Yce(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}this._axesMap=o,I0(o.x,function(t,n){I0(o.y,function(i,a){var o="x"+n+"y"+a,s=new xme(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){I0($ce(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}I0(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(kme(e)){var r=Ame(e),i=r.xAxisModel,a=r.yAxisModel;if(!Ime(i,t)||!Ime(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),l=o.getAxis("x"),u=o.getAxis("y");n(s,l),n(s,u)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return I0(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);C0(t,i)<0&&t.push(i),C0(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){if(kme(e)){var t=Ame(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();if(!i)throw new Error('Grid "'+Z0(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid");var a=i.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=bme,e}();function Ime(e,t){return e.getCoordSysModel()===t}function Pme(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Eme(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Eme(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function Eme(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var Mme=Math.PI,Dme=function(){function e(e,t){this.group=new y4,this.opt=t,this.axisModel=e,A0(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new y4({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!Rme[e]},e.prototype.add=function(e){Rme[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=R4(t-e);return L4(a)?(i=n>0?"top":"bottom",r="center"):L4(a-Mme)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<Mme?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),Rme={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(O1(s,s,o),O1(l,l,o));var c=k0({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Mee({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});gte(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var f=t.get(["axisLine","symbol"]);if(null!=f){var h=t.get(["axisLine","symbolSize"]);F0(f)&&(f=[f,f]),(F0(h)||B0(h))&&(h=[h,h]);var p=Ise(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],v=h[1];I0([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,r){if("none"!==f[r]&&null!=f[r]){var i=Tse(f[r],-m/2,-v/2,m,v,c.stroke,!0),a=t.r+t.offset,o=u?l:s;i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");"auto"===o&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick"));if(!o||i.scale.isBlank())return;for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=Fme(i.getTicksCoords(),t.transform,l,A0(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),a=function(e,t,n,r){var i=n.axis,a=K0(r.axisLabelShow,n.get(["axisLabel","show"]));if(!a||i.scale.isBlank())return;var o=n.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(K0(r.labelRotate,o.get("rotate"))||0)*Mme/180,c=Dme.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),f=[],h=Dme.isLabelSilent(n),p=n.get("triggerEvent");return I0(l,function(a,u){var m="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,v=a.formattedLabel,g=a.rawLabel,y=o;if(d&&d[m]){var b=d[m];V0(b)&&b.textStyle&&(y=new one(b.textStyle,o,n.ecModel))}var w=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(m),S=y.getShallow("align",!0)||c.textAlign,_=q0(y.getShallow("alignMinLabel",!0),S),k=q0(y.getShallow("alignMaxLabel",!0),S),A=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,C=q0(y.getShallow("verticalAlignMinLabel",!0),A),T=q0(y.getShallow("verticalAlignMaxLabel",!0),A),O=new T9({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(a.level||0),style:Fte(y,{text:v,align:0===u?_:u===l.length-1?k:S,verticalAlign:0===u?C:u===l.length-1?T:A,fill:j0(w)?w("category"===i.type?g:"value"===i.type?m+"":m,u):w})});if(O.anid="label_"+m,Ite({el:O,componentModel:n,itemName:v,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:g,tickIndex:u}}),p){var I=Dme.makeAxisEventDataBase(n);I.targetType="axisLabel",I.value=g,I.tickIndex=u,"category"===i.type&&(I.dataIndex=m),B9(O).eventData=I}t.add(O),O.updateTransform(),f.push(O),e.add(O),O.decomposeTransform()}),f}(n,r,t,e);(function(e,t,n){if(Qce(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],f=n[n.length-2];!1===r?(Lme(a),Lme(u)):Nme(a,o)&&(r?(Lme(o),Lme(c)):(Lme(a),Lme(u)));!1===i?(Lme(s),Lme(d)):Nme(l,s)&&(i?(Lme(l),Lme(f)):(Lme(s),Lme(d)))}(t,a,i),function(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(!a.get("show")||i.scale.isBlank())return;var o=i.getMinorTicksCoords();if(!o.length)return;for(var s=a.getModel("lineStyle"),l=r*a.get("length"),u=A0(s.getLineStyle(),A0(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=Fme(o[c],t.transform,l,u,"minorticks_"+c),f=0;f<d.length;f++)e.add(d[f])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&efe(Jde(P0(a,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=K0(e.axisName,t.get("name"));if(i){var a,o,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),f=d[0]>d[1]?-1:1,h=["start"===s?d[0]-f*c:"end"===s?d[1]+f*c:(d[0]+d[1])/2,jme(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*Mme/180),jme(s)?a=Dme.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(a=function(e,t,n,r){var i,a,o=R4(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;L4(o-Mme/2)?(a=l?"bottom":"top",i="center"):L4(o-1.5*Mme)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*Mme&&o>Mme/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,s,p||0,d),null!=(o=e.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var m=u.getFont(),v=t.get("nameTruncate",!0)||{},g=v.ellipsis,y=K0(e.nameTruncateMaxWidth,v.maxWidth,o),b=new T9({x:h[0],y:h[1],rotation:a.rotation,silent:Dme.isLabelSilent(t),style:Fte(u,{text:i,font:m,overflow:"truncate",width:y,ellipsis:g,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||a.textAlign,verticalAlign:u.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(Ite({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=Dme.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,B9(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Lme(e){e&&(e.ignore=!0)}function Nme(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=a2([]);return u2(i,i,-e.rotation),n.applyTransform(s2([],i,e.getLocalTransform())),r.applyTransform(s2([],i,t.getLocalTransform())),n.intersect(r)}}function jme(e){return"middle"===e||"center"===e}function Fme(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(O1(o,o,t),O1(s,s,t));var c=new Mee({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});gte(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function zme(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];I0(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Wme(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(I0(n.getAxes(),L0(h,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),f=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&I0(f.baseAxes,L0(h,!d||"cross",c)),d&&I0(f.otherAxes,L0(h,"cross",!1))}}function h(r,s,c){var d=c.model.getModel("axisPointer",i),f=d.get("show");if(f&&("auto"!==f||r||Hme(d))){null==s&&(s=d.get("triggerTooltip")),d=r?function(e,t,n,r,i,a){var o=t.getModel("axisPointer"),s={};I0(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=x0(o.get(e))}),s.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=o.get(["label","show"]);if(l.show=null==u||u,!a){var c=s.lineStyle=o.get("crossStyle");c&&A0(l,c.textStyle)}}return e.model.getModel("axisPointer",new one(s,n,r))}(c,u,i,t,r,s):d;var h=d.get("snap"),p=d.get("triggerEmphasis"),m=Wme(c.model),v=s||h||"category"===c.type,g=e.axesInfo[m]={key:m,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:p,involveSeries:v,snap:h,useHandle:Hme(d),seriesModels:[],linkGroup:null};l[m]=g,e.seriesInvolved=e.seriesInvolved||v;var y=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Bme(a[r+"AxisId"],n.id)||Bme(a[r+"AxisIndex"],n.componentIndex)||Bme(a[r+"AxisName"],n.name))return i}}(a,c);if(null!=y){var b=o[y]||(o[y]={axesInfo:{}});b.axesInfo[m]=g,b.mapper=a[y].mapper,g.linkGroup=b}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&I0(e.coordSysAxesInfo[Wme(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function Bme(e,t){return"all"===e||N0(e)&&C0(e,t)>=0||e===t}function Vme(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Wme(e)]}function Hme(e){return!!e.get(["handle","show"])}function Wme(e){return e.type+"||"+e.id}var Ume={},Xme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=Vme(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=Hme(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=function(e){var t=Vme(e);return t&&t.axisPointerModel}(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(Ume[e])throw new Error("axisPointer "+e+" exists");Ume[e]=t},t.getAxisPointerClass=function(e){return e&&Ume[e]},t.type="axis",t}(doe),Gme=b8();function Yme(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,d=Gme(e).splitAreaColors,f=s1(),h=0;if(d)for(var p=0;p<u.length;p++){var m=d.get(u[p].tickValue);if(null!=m){h=(m+(c-1)*p)%c;break}}var v=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N0(s)?s:[s];for(p=1;p<u.length;p++){var y=i.toGlobalCoord(u[p].coord),b=void 0,w=void 0,x=void 0,S=void 0;i.isHorizontal()?(b=v,w=l.y,x=y-b,S=l.height,v=b+x):(b=l.x,w=v,x=l.width,v=w+(S=y-w));var _=u[p-1].tickValue;null!=_&&f.set(_,h),t.add(new k9({anid:null!=_?"area_"+_:null,shape:{x:b,y:w,width:x,height:S},style:A0({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%c}Gme(e).splitAreaColors=f}}}function Kme(e){Gme(e).splitAreaColors=null}var qme=["axisLine","axisTickLabel","axisName"],Zme=["splitArea","splitLine","minorSplitLine"],Jme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return e0(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new y4,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),s=_me(o,t),l=new Dme(t,k0({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Que(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));I0(qme,l.add,l),this._axisGroup.add(l.getGroup()),I0(Zme,function(e){t.get([e,"show"])&&Qme[e](this,this._axisGroup,t,o)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||_te(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){Kme(this)},t.type="cartesianAxis",t}(Xme),Qme={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=!1!==a.get("showMinLine"),u=!1!==a.get("showMaxLine");s=N0(s)?s:[s];for(var c=r.coordinateSystem.getRect(),d=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:a}),p=[],m=[],v=o.getLineStyle(),g=0;g<h.length;g++){var y=i.toGlobalCoord(h[g].coord);if((0!==g||l)&&(g!==h.length-1||u)){var b=h[g].tickValue;d?(p[0]=y,p[1]=c.y,m[0]=y,m[1]=c.y+c.height):(p[0]=c.x,p[1]=y,m[0]=c.x+c.width,m[1]=y);var w=f++%s.length,x=new Mee({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:A0({stroke:s[w]},v),silent:!0});gte(x.shape,v.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),o=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=a.getLineStyle(),f=0;f<l.length;f++)for(var h=0;h<l[f].length;h++){var p=i.toGlobalCoord(l[f][h].coord);s?(u[0]=p,u[1]=o.y,c[0]=p,c[1]=o.y+o.height):(u[0]=o.x,u[1]=p,c[0]=o.x+o.width,c[1]=p);var m=new Mee({anid:"minor_line_"+l[f][h].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});gte(m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,n,r){Yme(e,t,n,r)}},$me=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="xAxis",t}(Jme),eve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=$me.type,t}return e0(t,e),t.type="yAxis",t}(Jme),tve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return e0(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new k9({shape:e.coordinateSystem.getRect(),style:A0({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(doe),nve={offset:0};function rve(e){e.registerComponentView(tve),e.registerComponentModel(ume),e.registerCoordinateSystem("cartesian2d",Ome),vme(e,"x",cme,nve),vme(e,"y",cme,nve),e.registerComponentView($me),e.registerComponentView(eve),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ive(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();I0(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=ave(i)?i:ove(r)})}),t.each(function(e){var i=function(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}(n[e],function(e){return ave(e)})||ove(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function ave(e){return!isNaN(e[0])&&!isNaN(e[1])}function ove(e){return[e.cx,e.cy]}function sve(e){var t=e.polar;if(t){N0(t)||(t=[t]);var n=[];I0(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],N0(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}I0(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var lve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=Ose(e.getItemVisual(t,"symbolSize")),i=Tse(n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function l(t,n,r,i,a,o){r.removeAll();for(var l=0;l<n.length-1;l++){var u=s(i,a);u&&(u.__dimIdx=l,t[l]?(u.setPosition(t[l]),Mte[o?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},e,a)):u.setPosition(n[l]),r.add(u))}}function u(e){return P0(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Tee,i=new Iee,o={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),ete(r,o,e,t),ete(i,o,e,t);var s=new y4,c=new y4;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),u=r.childAt(2),c={shape:{points:a.getItemLayout(t)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,a,t,!1),ate(s),ate(i),$ee(i,c,e),$ee(s,c,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),u=l.fill;i.add(e),r.useStyle(A0(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),D7(r,n,"lineStyle"),D7(o,n,"areaStyle");var c=n.getModel("areaStyle"),d=c.isEmpty()&&c.parentModel.isEmpty();o.ignore=d,I0(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=r&&d}),o.useStyle(A0(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var f=n.getModel("emphasis"),h=f.getModel("itemStyle").getItemStyle();s.eachChild(function(e){if(e instanceof g9){var r=e.style;e.useStyle(k0({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=x0(h);var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==i||isNaN(i))&&(i=""),Nte(e,jte(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})}),I7(e,f.get("focus"),f.get("blurScope"),f.get("disabled"))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(moe),uve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return e0(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tme(R0(this.getData,this),R0(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return eme(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=""===a?this.name:a,s=Zae(this,e);return Vae("section",{header:o,sortBlocks:!0,blocks:P0(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return Vae("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(P0(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(roe),cve=pme.value;function dve(e,t){return A0({show:t},e)}var fve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=P0(this.get("indicator")||[],function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var f=o;null!=d.color&&(f=A0({color:d.color},o));var h=S0(x0(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(F0(l)){var p=h.name;h.name=l.replace("{value}",null!=p?p:"")}else j0(l)&&(h.name=l(h.name,h));var m=new one(h,null,this.ecModel);return T0(m,ede.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:S0({lineStyle:{color:"#bbb"}},cve.axisLine),axisLabel:dve(cve.axisLabel,!1),axisTick:dve(cve.axisTick,!1),splitLine:dve(cve.splitLine,!0),splitArea:dve(cve.splitArea,!0),indicator:[]},t}(mre),hve=["axisLine","axisTickLabel","axisName"],pve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;I0(P0(t.getIndicatorAxes(),function(e){var n=e.model.get("showName")?e.name:"";return new Dme(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){I0(hve,e.add,e),this.group.add(e.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),s=a.getModel("areaStyle"),l=i.get("show"),u=a.get("show"),c=o.get("color"),d=s.get("color"),f=N0(c)?c:[c],h=N0(d)?d:[d],p=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),g=t.cx,y=t.cy,b=0;b<v.length;b++){if(l)p[T(p,f,b)].push(new aee({shape:{cx:g,cy:y,r:v[b].coord}}));if(u&&b<v.length-1)m[T(m,h,b)].push(new kee({shape:{cx:g,cy:y,r0:v[b].coord,r:v[b+1].coord}}))}else{var w,x=P0(n,function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),P0(r,function(e){return t.coordToPoint(e.coord,n)})}),S=[];for(b=0;b<=w;b++){for(var _=[],k=0;k<n.length;k++)_.push(x[k][b]);if(_[0]&&_.push(_[0].slice()),l)p[T(p,f,b)].push(new Iee({shape:{points:_}}));if(u&&S)m[T(m,h,b-1)].push(new Tee({shape:{points:_.concat(S)}}));S=_.slice().reverse()}}var A=o.getLineStyle(),C=s.getAreaStyle();I0(m,function(e,t){this.group.add(mte(e,{style:A0({stroke:"none",fill:h[t%h.length]},C),silent:!0}))},this),I0(p,function(e,t){this.group.add(mte(e,{style:A0({fill:"none",stroke:f[t%f.length]},A),silent:!0}))},this)}function T(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(doe),mve=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return e0(t,e),t}(Ade),vve=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=P0(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,r=new mve(n,new lce);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,a=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(i=u,s=l,o=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=C4(n[0],r),this.cy=C4(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(F0(o)||B0(o))&&(o=[0,o]),this.r0=C4(o[0],a),this.r=C4(o[1],a),I0(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;I0(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var a=t.getData();I0(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get("splitNumber"),a=new lce;a.setExtent(0,i),a.setInterval(1),I0(n,function(e,t){Tme(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return null},e.prototype.convertFromPixel=function(e,t,n){return null},e.prototype.containPoint=function(e){return!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])}),r},e.dimensions=[],e}();function gve(e){e.registerCoordinateSystem("radar",vve),e.registerComponentModel(fve),e.registerComponentView(pve),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var yve="\0_ec_interaction_mutex";function bve(e,t){return!!wve(e)[t]}function wve(e){return e[yve]||(e[yve]={})}rue({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},f1);var xve=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=R0(n._mousedownHandler,n),i=R0(n._mousemoveHandler,n),a=R0(n._mouseupHandler,n),o=R0(n._mousewheelHandler,n),s=R0(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=A0(x0(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",s)},n}return e0(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!e2(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&kve("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!bve(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&$1(e.event),_ve(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){e2(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=kve("zoomOnMouseWheel",e,this._opt),n=kve("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;Sve(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r);Sve(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){bve(this._zr,"globalPan")||Sve(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(D1);function Sve(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&($1(r.event),_ve(e,t,n,r,i))}function _ve(e,t,n,r,i){i.isAvailableBehavior=R0(kve,null,n,r),e.trigger(t,i)}function kve(e,t,n){var r=n[e];return!e||r&&(!F0(r)||t.event[r+"Key"])}function Ave(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Cve(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Tve,Ove={axisPointer:1,tooltip:1,brush:1};function Ive(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Ove.hasOwnProperty(r.mainType)&&i&&i.model!==n}function Pve(e){F0(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Eve={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Mve=D0(Eve),Dve={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Rve=D0(Dve),Lve=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Pve(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new y4;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Vve(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var d=Xve(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=o&&null!=s&&(u=Zve(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;(r=new y4).add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return t.ignoreRootClip||null==o||null==s||r.setClipPath(new k9({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=t;else{if(!i){var u=Tve[s];if(u&&d1(Tve,s)){o=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:o};n.push(d),"g"===s&&(l=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:o});t.add(o)}}var f=Nve[s];if(f&&d1(Nve,s)){var h=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=h)}}if(o&&o.isGroup)for(var m=e.firstChild;m;)1===m.nodeType?this._parseNode(m,o,n,l,i,a):3===m.nodeType&&a&&this._parseText(m,o),m=m.nextSibling},e.prototype._parseText=function(e,t){var n=new p9({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=void(Tve={g:function(e,t){var n=new y4;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new k9;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new aee;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Mee;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new see;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=Bve(r));var i=new Tee({shape:{points:n||[]},silent:!0});return zve(t,i),Vve(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=Bve(r));var i=new Iee({shape:{points:n||[]},silent:!0});return zve(t,i),Vve(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new g9;return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new y4;return zve(t,o),Vve(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",o=new y4;return zve(t,o),Vve(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=nee(e.getAttribute("d")||"");return zve(t,n),Vve(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),Nve={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Vee(t,n,r,i);return jve(e,a),Fve(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Hee(t,n,r);return jve(e,i),Fve(e,i),i}};function jve(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function Fve(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};qve(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function zve(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),A0(t.__inheritedStyle,e.__inheritedStyle))}function Bve(e){for(var t=Xve(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function Vve(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Gve,function(e,t,n){return r.push(t,n),""});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=Xve(o);switch(i=i||i2(),s){case"translate":l2(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":c2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":u2(i,i,-parseFloat(l[0])*Yve,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":s2(i,[1,0,Math.tan(parseFloat(l[0])*Yve),1,0,0],i);break;case"skewY":s2(i,[1,Math.tan(parseFloat(l[0])*Yve),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}t.setLocalTransform(i)}}(e,t),qve(e,o,s),r||function(e,t,n){for(var r=0;r<Mve.length;r++){var i=Mve[r];null!=(a=e.getAttribute(i))&&(t[Eve[i]]=a)}for(r=0;r<Rve.length;r++){var a;i=Rve[r];null!=(a=e.getAttribute(i))&&(n[Dve[i]]=a)}}(e,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=Wve(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=Wve(a,"stroke",o.stroke,n)),I0(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=o[e]&&(a.style[e]=parseFloat(o[e]))}),I0(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=o[e]&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=P0(Xve(o.lineDash),function(e){return parseFloat(e)})),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}var Hve=/^url\(\s*#(.*?)\)/;function Wve(e,t,n,r){var i=n&&n.match(Hve);if(!i)return"none"===n&&(n=null),n;var a=e1(i[1]);r.push([e,t,a])}var Uve=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xve(e){return e.match(Uve)||[]}var Gve=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Yve=Math.PI/180;var Kve=/([^\s:;]+)\s*:\s*([^:;]+)/g;function qve(e,t,n){var r,i=e.getAttribute("style");if(i)for(Kve.lastIndex=0;null!=(r=Kve.exec(i));){var a=r[1],o=d1(Eve,a)?Eve[a]:null;o&&(t[o]=r[2]);var s=d1(Dve,a)?Dve[a]:null;s&&(n[s]=r[2])}}function Zve(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}var Jve=s1(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Qve=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=s1(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Pve(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=s1();return I0(e,function(e){if(null==e.namedFrom){var r=new cde(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{$0(null!=(n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new Lve).parse(r,i))||{}).root))}catch(kJe){throw new Error("Invalid svg format\n"+kJe.message)}var a=new y4;a.add(n),a.isGeoSVGGraphicRoot=!0;var o=t.width,s=t.height,l=t.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,d=void 0,f=void 0,h=void 0;if(null!=o?(c=0,f=o):l&&(c=l.x,f=l.width),null!=s?(d=0,h=s):l&&(d=l.y,h=l.height),null==c||null==d){var p=n.getBoundingRect();null==c&&(c=p.x,f=p.width),null==d&&(d=p.y,h=p.height)}u=this._boundingRect=new x2(c,d,f,h)}if(l){var m=Zve(l,u);n.scaleX=n.scaleY=m.scale,n.x=m.x,n.y=m.y}a.setClipPath(new k9({shape:u.plain()}));var v=[];return I0(t.named,function(e){var t;null!=Jve.get(e.svgNodeTagLower)&&(v.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:a,boundingRect:u,named:v}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var $ve=[126,25],ege="\u5357\u6d77\u8bf8\u5c9b",tge=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],nge=0;nge<tge.length;nge++)for(var rge=0;rge<tge[nge].length;rge++)tge[nge][rge][0]/=10.5,tge[nge][rge][1]/=-14,tge[nge][rge][0]+=$ve[0],tge[nge][rge][1]+=$ve[1];var ige={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};var age=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var oge=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=s1(),this._mapName=e,this._specialAreas=n,this._geoJSON=F0(r=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:sge(r)})}var i=s1(),a=[];return I0(n.regions,function(t){var n=t.name;e&&d1(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new x2(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?hde(r,e):[]}catch(kJe){throw new Error("Invalid geoJson format\n"+kJe.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===ege)return;t.push(new ude(ege,P0(tge,function(e){return{type:"polygon",exterior:e}}),$ve))}}(n,t),I0(t,function(e){var t=e.name;!function(e,t){if("china"===e){var n=ige[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"\u53f0\u6e7e"===t.name&&t.geometries.push({type:"polygon",exterior:age[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function sge(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var lge=s1();const uge=function(e,t,n){if(t.svg){var r=new Qve(e,t.svg);lge.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new oge(e,i,n);lge.set(e,r)}},cge=function(e){return lge.get(e)},dge=function(e){var t=lge.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},fge=function(e,t,n){var r=lge.get(e);if(r)return r.load(t,n)};var hge=["rect","circle","line","ellipse","polygon","polyline","path"],pge=s1(hge),mge=s1(hge.concat(["g"])),vge=s1(hge.concat(["g"])),gge=b8();function yge(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function bge(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var wge=function(){function e(e){var t=new y4;this.uid=lne("ec_map_draw"),this._controller=new xve(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new y4),t.add(this._svgGroup=new y4)}return e.prototype.draw=function(e,t,n,r,i){var a="geo"===e.mainType,o=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(t){o||t.getHostGeoModel()!==e||(o=t.getData())});var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,f=c.roam;!l.childAt(0)||i?(u.x=f.x,u.y=f.y,u.scaleX=f.scaleX,u.scaleY=f.scaleY,u.dirty()):$ee(u,f,e);var h=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:h,isGeo:a,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=s1(),n=s1(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var i=u(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:c(e)}}}r.removeAll(),I0(e.geo.regions,function(i){var c=i.name,f=t.get(c),h=n.get(c)||{},p=h.dataIdx,m=h.regionModel;if(!f){f=t.set(c,new y4),r.add(f),p=o?o.indexOfName(c):null;var v=(m=e.isGeo?a.getRegionModel(c):o?o.getItemModel(p):null).get("silent",!0);null!=v&&(f.silent=v),n.set(c,{dataIdx:p,regionModel:m})}var g=[],y=[];I0(i.geometries,function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=Cge(t,l)),I0(t,function(e){g.push(new Tee(d(e)))})}else{var n=e.points;l&&(n=Cge(n,l,!0)),I0(n,function(e){y.push(new Iee(d(e)))})}});var b=u(i.getCenter(),s&&s.project);function w(t,n){if(t.length){var r=new zee({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),xge(e,r,p,m),Sge(e,r,c,m,a,p,b),n&&(bge(r),I0(r.states,bge))}}w(g),w(y,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;_ge(e,t,r,s,a,o),kge(e,t,r,s,a),Age(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=s1(),i=!1;I0(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,u=o?o.indexOfName(n):null,c=a.getRegionModel(n);null!=pge.get(s)&&l instanceof u6&&xge(e,l,u,c),l instanceof u6&&(l.culling=!0);var d=c.get("silent",!0);(null!=d&&(l.silent=d),l.z2EmphasisLift=0,t.namedFrom)||(null!=vge.get(s)&&Sge(e,l,n,c,a,u,null),_ge(e,l,n,c,a,u),kge(e,l,n,c,a),null!=mge.get(s)&&("self"===Age(e,l,n,c,a)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){f7(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=cge(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=cge(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}i.off("pan").on("pan",function(e){this._mouseDownFlag=!1,Ave(a,e.dx,e.dy),n.dispatchAction(k0(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,Cve(a,e.scale,e.originX,e.originY),n.dispatchAction(k0(s(),{totalZoom:a.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(t,i,a){return r.containPoint([i,a])&&!Ive(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=gge(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function xge(e,t,n,r){var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=yge(i),u=yge(a),c=yge(s),d=yge(o),f=e.data;if(f){var h=f.getItemVisual(n,"style"),p=f.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=ele(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,f7(t)}function Sge(e,t,n,r,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var d=l?n:a,f=void 0;(!s||a>=0)&&(f=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Nte(t,jte(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},h);var p=t.getTextContent();if(p&&(gge(p).ignore=p.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function _ge(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):B9(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function kge(e,t,n,r,i){e.data||Ite({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Age(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return I7(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&function(e,t,n){var r=B9(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),o}function Cge(e,t,n){var r,i=[];function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),I0(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),i}var Tge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(a=this._mapDraw)&&i.add(a.group);else if(e.needsDrawMap){var a=this._mapDraw||new wge(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new aee({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),d=u.indexOfName(c),f=r.getItemModel(n),h=f.getModel("label"),p=u.getItemGraphicEl(d);Nte(l,jte(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){c7(l,e)}}i.add(l)}}})},t.type="map",t}(moe),Oge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return e0(t,e),t.prototype.getInitialData=function(e){for(var t=eme(this,{coordDimensions:["value"],encodeDefaulter:L0(Dre,this)}),n=s1(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return I0(fge(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i,a=e.name,o=n.get(a),s=e.properties&&e.properties.echartsStyle;null==o?(i={name:a},r.push(i)):i=t.getRawDataItem(o),s&&S0(i,s)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),c=r.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return Vae("section",{header:s.join(", "),noHeader:!s.length,blocks:[Vae("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Tse(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(roe);function Ige(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),I0(t,function(e,t){for(var n,r,i,a=(n=P0(e,function(e){return e.getData()}),r=e[0].get("mapValueCalculation"),i={},I0(n,function(e){e.each(e.mapDimension("value"),function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)})}),n[0].map(n[0].mapDimension("value"),function(e,t){for(var a="ec-"+n[0].getName(t),o=0,s=1/0,l=-1/0,u=i[a].length,c=0;c<u;c++)s=Math.min(s,i[a][c]),l=Math.max(l,i[a][c]),o+=i[a][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?o/u:o})),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(a.cloneShallow()),e[o].mainSeries=e[0]})}function Pge(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};I0(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=i[a]||0,l=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:l,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var Ege=O1,Mge=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Z5,n._rawTransformable=new Z5,n.name=t,n}return e0(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new x2(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new x2(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new x2(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[C4(e[0],t.getWidth()),C4(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=O1([],r,e),n=O1([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),o2(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],d2(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Z5;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?Ege(n,e,r):m1(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Ege([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=Dge(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Dge(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Z5);function Dge(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Rge={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Lge=["lng","lat"],Nge=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=Lge,i.type="geo",i._nameCoordMap=s1(),i.map=n;var a,o=r.projection,s=fge(n,r.nameMap,r.nameProperty),l=cge(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,d=Rge[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,o&&("geoSVG"===u&&(Z4("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(Z4("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o,o)for(var f=0;f<c.length;f++){var h=c[f].getBoundingRect(o);(a=a||h.clone()).union(h)}else a=s.boundingRect;return i.setBoundingRect(a.x,a.y,a.width,a.height),i.aspectScale=o?1:q0(r.aspectScale,d.aspectScale),i._invertLongitute=!o&&d.invertLongitute,i}return e0(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new x2(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(F0(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=jge(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=jge(t);return r===this?r.pointToData(n):null},t}(Mge);function jge(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",_8).models[0]||{}).coordinateSystem:null}function Fge(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,o){for(var s=n-e,l=o-t,u=0;u<=100;u++){var c=u/100,d=a.project([e+s*c,t+l*c]);I1(r,r,d),P1(i,i,d)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else;}var d,f,h,p=this.getBoundingRect(),m=e.get("layoutCenter"),v=e.get("layoutSize"),g=t.getWidth(),y=t.getHeight(),b=p.width/p.height*this.aspectScale,w=!1;if(m&&v&&(d=[C4(m[0],g),C4(m[1],y)],f=C4(v,Math.min(g,y)),isNaN(d[0])||isNaN(d[1])||isNaN(f)||(w=!0)),w)h={},b>1?(h.width=f,h.height=f/b):(h.height=f,h.width=f*b),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var x=e.getBoxLayoutParams();x.aspect=b,h=lre(x,{width:g,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}T0(Nge,Mge);var zge=new(function(){function e(){this.dimensions=Lge}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",function(e,i){var a=e.get("map"),o=new Nge(a+i,a,k0({nameMap:e.get("nameMap")},r(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=Fge,o.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var i={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),I0(i,function(e,i){var a=P0(e,function(e){return e.get("nameMap")}),o=new Nge(i,i,k0({nameMap:_0(a)},r(e[0])));o.zoomLimit=K0.apply(null,P0(e,function(e){return e.get("scaleLimit")})),n.push(o),o.resize=Fge,o.resize(e[0],t),I0(e,function(e){e.coordinateSystem=o,function(e,t){I0(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=s1(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return I0(fge(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&S0(n,r)}),i},e}()),Bge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(e,t,n){var r=cge(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),o8(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=zge.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=E0(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new one(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},s1()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new one(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return j0(r)?(i.status=t,r(i)):F0(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(mre);function Vge(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function Hge(e,t,n,r){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Vge(e,s),r)),null!=o){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(Vge(e,s),r),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Wge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return e0(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new wge(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;mse(e.target,function(e){return null!=(t=B9(e).eventData)},!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=B9(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(doe);function Uge(e,t,n){uge(e,t,n)}function Xge(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),I0(n.coordinateSystem.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var a=[];I0(r,function(e,t){r[t]&&a.push(t)}),i.push({geoIndex:n.componentIndex,name:a})}),{selected:r,allSelected:i,name:e.name}})}e.registerCoordinateSystem("geo",zge),e.registerComponentModel(Bge),e.registerComponentView(Wge),e.registerImpl("registerMap",Uge),e.registerImpl("getMap",function(e){return dge(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(t){var i=t.coordinateSystem;if("geo"===i.type){var a=Hge(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===r&&I0(t.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})}function Gge(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=Zge(s),a=Jge(a),s&&a;){i=Zge(i),o=Jge(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-u+r(s,a);f>0&&($ge(Qge(s,e,n),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!Zge(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),a&&!Jge(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Yge(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Kge(e){return arguments.length?e:eye}function qge(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Zge(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Jge(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Qge(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function $ge(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function eye(e,t){return e.parentNode===t.parentNode?1:2}var tye=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),nye=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tye},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=C4(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(o[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[l]=a[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var h=n[f];e.moveTo(h[0],h[1]),d[l]=h[l],e.lineTo(d[0],d[1])}},t}(f9),rye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new y4,n}return e0(t,e),t.prototype.init=function(e,t){this._controller=new xve(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;"radial"===e.get("layout")?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var o=this._data;r.diff(o).add(function(t){iye(r,t)&&aye(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);iye(r,t)?aye(r,t,i,a,e):i&&lye(o,n,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&lye(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl(function(t,r){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])});var i=[],a=[];w6(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var l=e.coordinateSystem=new Mge;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!Ive(t,n,e)}),i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(t){Ave(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Cve(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(moe);function iye(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function aye(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",c=e.tree.root,d=o.parentNode===c?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:h,m=o.getLayout();a?((n=new Dhe(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,$ee(n,{x:m.x,y:m.y},i);var v=n.getSymbolPath();if("radial"===i.get("layout")){var g=c.children[0],y=g.getLayout(),b=g.children.length,w=void 0,x=void 0;if(m.x===y.x&&!0===o.isExpand&&g.children.length){var S={x:(g.children[0].getLayout().x+g.children[b-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[b-1].getLayout().y)/2};(w=Math.atan2(S.y-y.y,S.x-y.x))<0&&(w=2*Math.PI+w),(x=S.x<y.x)&&(w-=Math.PI)}else(w=Math.atan2(m.y-y.y,m.x-y.x))<0&&(w=2*Math.PI+w),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(x=m.x<y.x)&&(w-=Math.PI):(x=m.x>y.x)||(w-=Math.PI);var _=x?"left":"right",k=s.getModel("label"),A=k.get("rotate"),C=A*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:k.get("position")||_,rotation:null==A?-w:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),I="relative"===O?l1(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===O?o.getAncestorsIndices():"descendant"===O?o.getDescendantIndices():null;I&&(B9(n).focus=I),function(e,t,n,r,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new Nee({shape:uye(c,d,f,i,i)})),$ee(m,{shape:uye(c,d,f,a,o)},e));else if("polyline"===u){if("orthogonal"!==c)throw new Error("The polyline edgeShape can only be used in orthogonal layout");if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,g=[],y=0;y<v.length;y++){var b=v[y].getLayout();g.push([b.x,b.y])}m||(m=r.__edge=new nye({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:h}})),$ee(m,{shape:{parentPoint:[o.x,o.y],childPoints:g}},e)}}m&&("polyline"!==u||t.isExpand)&&(m.useStyle(A0({strokeNoScale:!0,fill:null},p)),D7(m,l,"lineStyle"),f7(m),s.add(m))}(i,o,c,n,p,h,m,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&1===r.hoverState||c7(n.__edge,t)}})}function oye(e,t,n,r,i){var a=sye(t.tree.root,e),o=a.source,s=a.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(o.dataIndex).__edge,c=l.__edge||(!1===o.isExpand||1===o.children.length?u:void 0),d=r.get("edgeShape"),f=r.get("layout"),h=r.get("orient"),p=r.get(["lineStyle","curveness"]);c&&("curve"===d?nte(c,{shape:uye(f,h,p,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===d&&"orthogonal"===r.get("layout")&&nte(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function sye(e,t){for(var n,r=t.parentNode===e?t:t.parentNode||t;null==(n=r.getLayout());)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function lye(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=sye(e.tree.root,a).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};nte(n,{x:o.x+1,y:o.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),a.children.forEach(function(t){oye(t,e,r,i,s)}),oye(a,e,r,i,s)}function uye(e,t,n,r,i){var a,o,s,l,u,c,d,f;if("radial"===e){u=r.rawX,d=r.rawY,c=i.rawX,f=i.rawY;var h=qge(u,d),p=qge(u,d+(f-d)*n),m=qge(c,f+(d-f)*n),v=qge(c,f);return{x1:h.x||0,y1:h.y||0,x2:v.x||0,y2:v.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:m.x||0,cpy2:m.y||0}}return u=r.x,d=r.y,c=i.x,f=i.y,"LR"!==t&&"RL"!==t||(a=u+(c-u)*n,o=d,s=c+(u-c)*n,l=f),"TB"!==t&&"BT"!==t||(a=u,o=d+(f-d)*n,s=c,l=f+(d-f)*n),{x1:u,y1:d,x2:c,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var cye=b8();function dye(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,gye(t,n,e),I0(n,function(n){I0(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,L0(fye,e))})}),t.wrapMethod("cloneShallow",L0(pye,e)),I0(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,L0(hye,e))}),$0(n[t.dataType]===t)}function fye(e,t){if(cye(r=this).mainData===r){var n=k0({},cye(this).datas);n[this.dataType]=t,gye(t,n,e)}else yye(t,this.dataType,cye(this).mainData,e);var r;return t}function hye(e,t){return e.struct&&e.struct.update(),t}function pye(e,t){return I0(cye(t).datas,function(n,r){n!==t&&yye(n.cloneShallow(),r,t,e)}),t}function mye(e){var t=cye(this).mainData;return null==e||null==t?t:cye(t).datas[e]}function vye(){var e=cye(this).mainData;return null==e?[{data:e}]:P0(D0(cye(e).datas),function(t){return{type:t,data:cye(e).datas[t]}})}function gye(e,t,n){cye(e).datas={},I0(t,function(t,r){yye(t,r,e,n)})}function yye(e,t,n,r){cye(n).datas[t]=e,cye(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=mye,e.getLinkedDataAll=vye}var bye=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){j0(e)&&(n=t,t=e,e=null),F0(e=e||{})&&(e={order:e});var r,i=e.order||"preorder",a=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),wye=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;!function e(t,n){var r=t.value;o=Math.max(o,N0(r)?r.length:1),a.push(t);var s=new bye(h8(t.name,""),i);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):i.root=s,i._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)e(l[u],s)}(t),i.root.updateDepthAndHeight(0);var s=zue(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,l=new Fue(s,n);return l.initData(a),r&&r(l),dye({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},e}();function xye(e,t,n){if(e&&C0(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(F0(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function Sye(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function _ye(e,t){return C0(Sye(e),t)>=0}function kye(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Aye=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e0(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new one(n,this,this.ecModel),i=wye.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e})});var a=0;i.eachNode("preorder",function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=o}),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+"."+s,a=a.parentNode;return Vae("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=kye(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(roe);function Cye(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function Tye(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=function(e,t){return lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=Kge(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(i=n.width,a=n.height,o=Kge());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var a=r.length-1;a>=0;a--){var o=r[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}(s),function(e,t,n){for(var r,i=[e],a=[];r=i.pop();)if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;r=a.pop();)t(r,n)}(l,Gge,o),s.hierNode.modifier=-l.hierNode.prelim,Cye(l,Yge);var u=l,c=l,d=l;Cye(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,m=0,v=0,g=0;if("radial"===r)p=i/(c.getLayout().x+f+h),m=a/(d.depth-1||1),Cye(l,function(e){v=(e.getLayout().x+h)*p,g=(e.depth-1)*m;var t=qge(v,g);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:g},!0)});else{var y=e.getOrient();"RL"===y||"LR"===y?(m=a/(c.getLayout().x+f+h),p=i/(d.depth-1||1),Cye(l,function(e){g=(e.getLayout().x+h)*m,v="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:v,y:g},!0)})):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+f+h),m=a/(d.depth-1||1),Cye(l,function(e){v=(e.getLayout().x+h)*p,g="TB"===y?(e.depth-1)*m:a-(e.depth-1)*m,e.setLayout({x:v,y:g},!0)}))}}}(e,t)})}function Oye(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();k0(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)})})}var Iye=["treemapZoomToNode","treemapRender","treemapMove"];function Pye(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=Ure(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",i)})}var Eye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return e0(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Mye(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new one({itemStyle:i},this,t);r=e.levels=function(e,t){var n,r,i=a8(t.get("color")),a=a8(t.get(["aria","decal","decals"]));if(!i)return;e=e||[],I0(e,function(e){var t=new one(e),i=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(r=!0)});var o=e[0]||(e[0]={});n||(o.color=i.slice());!r&&a&&(o.decal=a.slice());return e}(r,t);var o=P0(r||[],function(e){return new one(e,a,t)},this),s=wye.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t),r=n?o[n.depth]:null;return e.parentModel=r||a,e})});return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Vae("nameValue",{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=kye(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},k0(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s1(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Pye(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(roe);function Mye(e){var t=0;I0(e.children,function(e){Mye(e);var n=e.value;N0(n)&&(n=n[0]),t+=n});var n=e.value;N0(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),N0(e.value)?e.value[0]=n:e.value=n}var Dye=function(){function e(e){this.group=new y4,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,o,s,l,u,r),ure(a,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=h8(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o){for(var s,l,u,c,d,f,h,p,m,v=0,g=t.emptyItemWidth,y=e.get(["breadcrumb","height"]),b=(s=t.pos,l=t.box,c=l.width,d=l.height,f=C4(s.left,c),h=C4(s.top,d),p=C4(s.right,c),m=C4(s.bottom,d),(isNaN(f)||isNaN(parseFloat(s.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(s.right)))&&(p=c),(isNaN(h)||isNaN(parseFloat(s.top)))&&(h=0),(isNaN(m)||isNaN(parseFloat(s.bottom)))&&(m=d),u=Zne(u||0),{width:Math.max(p-f-u[1]-u[3],0),height:Math.max(m-h-u[0]-u[2],0)}),w=t.totalWidth,x=t.renderList,S=r.getModel("itemStyle").getItemStyle(),_=x.length-1;_>=0;_--){var k=x[_],A=k.node,C=k.width,T=k.text;w>b.width&&(w-=C-g,C=g,T=null);var O=new Tee({shape:{points:Rye(v,0,C,y,_===x.length-1,0===_)},style:A0(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new T9({style:Fte(i,{text:T})}),textConfig:{position:"inside"},z2:1e5,onclick:L0(o,A)});O.disableLabelAnimation=!0,O.getTextContent().ensureState("emphasis").style=Fte(a,{text:T}),O.ensureState("emphasis").style=S,I7(O,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(O),Lye(O,e,A),v+=C+8}},e.prototype.remove=function(){this.group.removeAll()},e}();function Rye(e,t,n,r,i,a){var o=[[i?e:e-5,t],[e+n,t],[e+n,t+r],[i?e:e-5,t+r]];return!a&&o.splice(2,0,[e+n+5,t+r/2]),!i&&o.push([e,t+r/2]),o}function Lye(e,t,n){B9(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&kye(n,t)}}var Nye=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var jye=y4,Fye=k9,zye="label",Bye="upperLabel",Vye=F8([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Hye=function(e){var t=Vye(e);return t.stroke=t.fill=t.lineWidth=null,t},Wye=b8(),Uye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return e0(t,e),t.prototype.render=function(e,t,n,r){if(!(C0(t.findComponents({mainType:"series",subType:"treemap",query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=xye(r,["treemapZoomToNode","treemapRootToNode"],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===a&&i&&l?{rootNodeGroup:l.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,c=this._giveContainerGroup(o),d=e.get("animation"),f=this._doRender(c,e,u);!d||s||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?f.renderFinally():this._doAnimation(c,f,e,u),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new jye,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a={nodeGroup:[],background:[],content:[]},o={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(e,r,i,u){return function(e,t,n,r,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,m=c.borderWidth,v=c.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,x=b&&b.length,S=f.getModel("itemStyle"),_=f.getModel(["emphasis","itemStyle"]),k=f.getModel(["blur","itemStyle"]),A=f.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,T=V("nodeGroup",jye);if(!T)return;if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),Wye(T).nodeWidth=h,Wye(T).nodeHeight=p,c.isAboveViewRoot)return T;var O=V("background",Fye,u,20);O&&N(T,O,x&&c.upperLabelHeight);var I=f.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),M=I.get("disabled"),D="ancestor"===P?o.getAncestorsIndices():"descendant"===P?o.getDescendantIndices():P;if(x)L7(T)&&R7(T,!1),O&&(R7(O,!M),d.setItemGraphicEl(o.dataIndex,O),P7(O,D,E));else{var R=V("content",Fye,u,30);R&&j(T,R),O.disableMorphing=!0,O&&L7(O)&&R7(O,!1),R7(T,!M),d.setItemGraphicEl(o.dataIndex,T);var L=f.getShallow("cursor");L&&R.attr("cursor",L),P7(T,D,E)}return T;function N(t,n,r){var i=B9(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:p,r:C}),v)F(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=Hye(S);l.fill=s;var u=Vye(_);u.fill=_.get("borderColor");var c=Vye(k);c.fill=k.get("borderColor");var d=Vye(A);if(d.fill=A.get("borderColor"),r){var f=h-2*m;z(n,s,a.opacity,{x:m,y:0,width:f,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,f7(n)}t.add(n)}function j(t,n){var r=B9(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*m,0),a=Math.max(p-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:a,r:C}),v)F(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=Hye(S);u.fill=l,u.decal=s.decal;var c=Vye(_),d=Vye(k),f=Vye(A);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=f,f7(n)}t.add(n)}function F(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?Bye:zye),s=h8(f.get("name"),null),l=a.getShallow("show");Nte(t,jte(f,i?Bye:zye),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var u=t.getTextContent();if(u){var d=u.style,h=Q0(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,i,c);var p=u.getState("emphasis");B(p?p.style:null,i,c)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function V(e,r,a,o){var s=null!=y&&n[e][y],l=i[e];return s?(n[e][y]=null,H(l,s)):v||((s=new r)instanceof u6&&(s.z2=function(e,t){return 100*e+t}(a,o)),W(l,s)),t[e][g]=s}function H(e,t){var n=e[g]={};t instanceof jye?(n.oldX=t.x,n.oldY=t.y):n.oldShape=k0({},t.shape)}function W(e,t){var n=e[g]={},a=o.parentNode,s=t instanceof y4;if(a&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[a.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(t,o,s,n,a,l,e,r,i,u)}!function e(t,n,r,i,a){i?(n=t,I0(t,function(e,t){!e.isRemoved()&&s(t,t)})):new pue(n,t,o,o).add(s).update(s).remove(L0(s,null)).execute();function o(e){return e.getId()}function s(o,s){var l=null!=o?t[o]:null,c=null!=s?n[s]:null,d=u(l,c,r,a);d&&e(l&&l.viewChildren||[],c&&c.viewChildren||[],d,i,a+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var c,d,f=(d={nodeGroup:[],background:[],content:[]},(c=s)&&I0(c,function(e,t){var n=d[t];I0(e,function(e){e&&(n.push(e),Wye(e).willDelete=!0)})}),d);if(this._oldTree=r,this._storage=o,this._controllerHost){var h=this.seriesModel.layoutInfo,p=r.root.getLayout();p.width===h.width&&p.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:f,renderFinally:function(){I0(f,function(e){I0(e,function(e){e.parent&&e.parent.remove(e)})}),I0(l,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(j0(i)?0:i)||0,s=(j0(a)?null:a)||"cubicOut",l=new Nye;I0(t.willDeleteEls,function(e,t){I0(e,function(e,n){if(!e.invisible){var i,a=e.parent,u=Wye(a);if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),i="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}i&&l.add(e,i,o,0,s)}})}),I0(this._storage,function(e,n){I0(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof y4?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=k0({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),l.add(e,a,o,0,s))})},this),this._state="animating",l.finished(R0(function(){this._state="ready",t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||((t=this._controller=new xve(e.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",R0(this._onPan,this)),t.on("zoom",R0(this._onZoom,this)));var r=new x2(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,n){return r.contain(t,n)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o,s=new x2(a.x,a.y,a.width,a.height),l=this._controllerHost;o=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,o){var c=o.min||0,d=o.max||1/0;u=Math.max(Math.min(d,u),c)}var f=u/l.zoom;l.zoom=u;var h=this.seriesModel.layoutInfo,p=[1,0,0,1,0,0];l2(p,p,[-(t-=h.x),-(n-=h.y)]),c2(p,p,[f,f]),l2(p,p,[t,n]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&nre(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Dye(this.group))).render(e,t,n.node,function(t){"animating"!==r._state&&(_ye(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}},this),n},t.type="treemap",t}(moe);var Xye=I0,Gye=V0,Yye=-1,Kye=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=x0(t);this.type=r,this.mappingMethod=n,this._normalizeData=ibe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(qye(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,I0(t,function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)})}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Xye(t,function(e,t){n[e]=t}),!N0(r)){var i=[];V0(r)?Xye(r,function(e,t){var r=n[t];i[null!=r?r:Yye]=e}):i[-1]=r,r=rbe(e,i)}for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}(i):qye(i,!0):($0("linear"!==n||i.dataExtent),qye(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return R0(this._normalizeData,this)},e.listVisualTypes=function(){return D0(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){V0(e)?I0(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=N0(t)?[]:V0(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n,r={};return t&&Xye(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(e){if(N0(e))e=e.slice();else{if(!Gye(e))return[];var t=[];Xye(e,function(e,n){t.push(n)}),e=t}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(null!=s){if(s===e||F0(s)&&s===e+"")return a;n&&d(s,a)}}for(a=0,o=t.length;a<o;a++){var l=t[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(abe(c[1],e,u[1]))return a}else if(u[1]===1/0){if(abe(c[0],u[0],e))return a}else if(abe(c[0],u[0],e)&&abe(c[1],e,u[1]))return a;n&&d(u[0],a),n&&d(u[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:Qye("color"),getColorMapper:function(){var e=this.option;return R0("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),$ye.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=L3(t,e.parsedVisual,r),i?r:F3(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return F3(L3(e,this.option.parsedVisual),"rgba")},category:$ye,piecewise:function(e,t){var n=nbe.call(this,t);return null==n&&(n=F3(L3(e,this.option.parsedVisual),"rgba")),n},fixed:ebe}},colorHue:Zye(function(e,t){return N3(e,t)}),colorSaturation:Zye(function(e,t){return N3(e,null,t)}),colorLightness:Zye(function(e,t){return N3(e,null,null,t)}),colorAlpha:Zye(function(e,t){return j3(e,t)}),decal:{applyVisual:Qye("decal"),_normalizedToVisual:{linear:null,category:$ye,piecewise:null,fixed:null}},opacity:{applyVisual:Qye("opacity"),_normalizedToVisual:tbe([0,1])},liftZ:{applyVisual:Qye("liftZ"),_normalizedToVisual:{linear:ebe,category:ebe,piecewise:ebe,fixed:ebe}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:Jye,category:$ye,piecewise:function(e,t){var n=nbe.call(this,t);return null==n&&(n=Jye.call(this,e)),n},fixed:ebe}},symbolSize:{applyVisual:Qye("symbolSize"),_normalizedToVisual:tbe([0,1])}},e}();function qye(e,t){var n=e.visual,r=[];V0(n)?Xye(n,function(e){r.push(e)}):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),rbe(e,r)}function Zye(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:tbe([0,1])}}function Jye(e){var t=this.option.visual;return t[Math.round(A4(e,[0,1],[0,t.length-1],!0))]||{}}function Qye(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function $ye(e){var t=this.option.visual;return t[this.option.loop&&e!==Yye?e%t.length:e]}function ebe(){return this.option.visual[0]}function tbe(e){return{linear:function(t){return A4(t,e,this.option.visual,!0)},category:$ye,piecewise:function(t,n){var r=nbe.call(this,n);return null==r&&(r=A4(t,e,this.option.visual,!0)),r},fixed:ebe}}function nbe(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[Kye.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function rbe(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=P0(t,function(e){var t=M3(e);return t||Z4("'"+e+"' is an illegal color, fallback to '#000000'",!0),t||[0,0,0,1]})),t}var ibe={linear:function(e){return A4(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Kye.findPieceIndex(e,t,!0);if(null!=n)return A4(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Yye:t},fixed:f1};function abe(e,t,n){return e?t<=n:t<n}var obe=b8();const sbe={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||lbe(t,{},e.getViewRoot().getAncestors(),e)}};function lbe(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=i.getModel("itemStyle"),u=function(e,t,n){var r=k0({},t),i=n.designatedVisualItemStyle;return I0(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)}),r}(l,t,r),c=o.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),f=l.get("borderColorSaturation");null!=f&&(d=function(e,t){return null!=t?N3(t,null,null,e):null}(f,s=ube(u))),c.stroke=d;var h=e.viewChildren;if(h&&h.length){var p=function(e,t,n,r,i,a){if(!a||!a.length)return;var o=dbe(t,"color")||null!=i.color&&"none"!==i.color&&(dbe(t,"colorAlpha")||dbe(t,"colorSaturation"));if(!o)return;var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new Kye(d);return obe(f).drColorMappingBy=c,f}(0,i,a,0,u,h);I0(h,function(e,t){if(e.depth>=n.length||e===n[e.depth]){var a=function(e,t,n,r,i,a){var o=k0({},t);if(i){var s=i.type,l="color"===s&&obe(i).drColorMappingBy,u="index"===l?r:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}(i,u,e,t,p,r);lbe(e,a,n,r)}})}else s=ube(u),c.fill=s}}function ube(e){var t=cbe(e,"color");if(t){var n=cbe(e,"colorAlpha"),r=cbe(e,"colorSaturation");return r&&(t=N3(t,null,null,r)),n&&(t=j3(t,n)),t}}function cbe(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function dbe(e,t){var n=e.get(t);return N0(n)&&n.length?{name:t,range:n}:null}var fbe=Math.max,hbe=Math.min,pbe=K0,mbe=I0,vbe=["itemStyle","borderWidth"],gbe=["itemStyle","gapWidth"],ybe=["upperLabel","show"],bbe=["upperLabel","height"];const wbe={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,s=lre(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=C4(pbe(s.width,l[0]),i),c=C4(pbe(s.height,l[1]),a),d=r&&r.type,f=xye(r,["treemapZoomToNode","treemapRootToNode"],e),h="treemapRender"===d||"treemapMove"===d?r.rootRect:null,p=e.getViewRoot(),m=Sye(p);if("treemapMove"!==d){var v="treemapZoomToNode"===d?function(e,t,n,r,i){var a,o=(t||{}).node,s=[r,i];if(!o||o===n)return s;var l=r*i,u=l*e.option.zoomToNodeRatio;for(;a=o.parentNode;){for(var c=0,d=a.children,f=0,h=d.length;f<h;f++)c+=d[f].getValue();var p=o.getValue();if(0===p)return s;u*=c/p;var m=a.getModel(),v=m.get(vbe);(u+=4*v*v+(3*v+Math.max(v,Abe(m)))*Math.pow(u,.5))>D4&&(u=D4),o=a}u<l&&(u=l);var g=Math.pow(u/l,.5);return[r*g,i*g]}(e,f,p,u,c):h?[h.width,h.height]:[u,c],g=o.sort;g&&"asc"!==g&&"desc"!==g&&(g="desc");var y={squareRatio:o.squareRatio,sort:g,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};p.setLayout(b),xbe(p,y,!1,0),b=p.getLayout(),mbe(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(k0({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))})}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;var o=[a.width/2,a.height/2],s=i;for(;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}(s,h,f),!0),e.setLayoutInfo(s),kbe(w,new x2(-s.x,-s.y,i,a),m,p,0)}};function xbe(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(vbe),u=s.get(gbe)/2,c=Abe(s),d=Math.max(l,c),f=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0);var p=(i=fbe(i-2*f,0))*(a=fbe(a-f-h,0)),m=function(e,t,n,r,i,a){var o=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=M0(o,function(e){return!e.isRemoved()}),function(e,t){t&&e.sort(function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})}(o,s);var u=function(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],mbe(t,function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)})):o=[NaN,NaN];return{sum:r,dataExtent:o}}(t,o,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=function(e,t,n,r,i){if(!r)return n;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i["asc"===r?o-l-1:l].getValue();u/n*t<a&&(s=l,n-=u)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}(t,n,u.sum,s,o),0===u.sum)return e.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var f=o[c].getValue()/u.sum*n;o[c].setLayout({area:f})}l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0);return e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}(e,s,p,t,n,r);if(m.length){var v={x:f,y:h,width:i,height:a},g=hbe(i,a),y=1/0,b=[];b.area=0;for(var w=0,x=m.length;w<x;){var S=m[w];b.push(S),b.area+=S.getLayout().area;var _=Sbe(b,g,t.squareRatio);_<=y?(w++,y=_):(b.area-=b.pop().getLayout().area,_be(b,g,v,u,!1),g=hbe(v.width,v.height),b.length=b.area=0,y=1/0)}if(b.length&&_be(b,g,v,u,!0),!n){var k=s.get("childrenVisibleMin");null!=k&&p<k&&(n=!0)}for(w=0,x=m.length;w<x;w++)xbe(m[w],t,n,r+1)}}}function Sbe(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)(o=e[a].getLayout().area)&&(o<i&&(i=o),o>r&&(r=o));var l=e.area*e.area,u=t*t*n;return l?fbe(u*r/l,l/(u*i)):1/0}function _be(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=t?e.area/t:0;(i||c>n[l[o]])&&(c=n[l[o]]);for(var d=0,f=e.length;d<f;d++){var h=e[d],p={},m=c?h.getLayout().area/c:0,v=p[l[o]]=fbe(c-2*r,0),g=n[s[a]]+n[l[a]]-u,y=d===f-1||g<m?g:m,b=p[l[a]]=fbe(y-2*r,0);p[s[o]]=n[s[o]]+hbe(r,v/2),p[s[a]]=u+hbe(r,b/2),u+=y,h.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function kbe(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new x2(t.x-a.x,t.y-a.y,t.width,t.height);mbe(e.viewChildren||[],function(e){kbe(e,l,n,r,i+1)})}}function Abe(e){return e.get(ybe)?e.get(bbe):0}function Cbe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){B0(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function Tbe(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){F0(t)&&(t=i["ec-"+t]);var a=n.getItemVisual(t,"style");k0(r.ensureUniqueItemVisual(e,"style"),a);for(var o=["symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function Obe(e){return e instanceof Array||(e=[e,e]),e}function Ibe(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Obe(e.get("edgeSymbol")),i=Obe(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Obe(r.getShallow("symbol",!0)),o=Obe(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(k0(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])})})}var Pbe="--\x3e",Ebe=function(e){return e.get("autoCurveness")||null},Mbe=function(e,t){var n=Ebe(e),r=20,i=[];if(B0(n))r=n;else if(N0(n))return void(e.__curvenessList=n);t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},Dbe=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(Pbe)},Rbe=function(e){var t=e.split(Pbe);return[t[0],t[2],t[1]].join(Pbe)},Lbe=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Nbe(e,t,n,r){var i=Ebe(t),a=N0(i);if(!i)return null;var o=function(e,t){var n=Dbe(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=function(e,t){return Lbe(Dbe(e.node1,e.node2,t),t)+Lbe(Dbe(e.node2,e.node1,t),t)}(e,t);Mbe(t,u),e.lineStyle=e.lineStyle||{};var c=Dbe(e.node1,e.node2,t),d=t.__curvenessList,f=a||u%2?0:1;if(o.isForward)return d[f+s];var h=Rbe(c),p=Lbe(h,t),m=d[s+p+f];return r?a?i&&0===i[0]?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}function jbe(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),Fbe(n,e)}}function Fbe(e,t){e.eachEdge(function(e,n){var r=Z0(e.getModel().get(["lineStyle","curveness"]),-Nbe(e,t,n,!0),0),i=v1(e.node1.getLayout()),a=v1(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function zbe(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];I0(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],a);isNaN(u)||(s=!0),o.push(u)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}Fbe(r.graph,e)}else t&&"none"!==t||jbe(e)})}function Bbe(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function Vbe(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Hbe=Math.PI,Wbe=[];function Ube(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:l,cy:u}),d){if(n){var f=i.pointToData(r),h=f[0],p=f[1],m=[h-l,p-u];_1(m,m),S1(m,m,c),n.setLayout([l+m[0],u+m[1]],!0),Gbe(n,e.get(["circular","rotateLabel"]),l,u)}Xbe[t](e,s,o,c,l,u,d),s.eachEdge(function(t,n){var r,i=Z0(t.getModel().get(["lineStyle","curveness"]),Nbe(t,e,n),0),a=v1(t.node1.getLayout()),o=v1(t.node2.getLayout()),s=(a[0]+o[0])/2,c=(a[1]+o[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),t.setLayout([a,o,r])})}}}var Xbe={value:function(e,t,n,r,i,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);t.eachNode(function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;Wbe.length=o;var l=Bbe(e);t.eachNode(function(e){var t=Vbe(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=Hbe/2),Wbe[e.dataIndex]=n,s+=2*n});var u=(2*Hbe-s)/o/2,c=0;t.eachNode(function(e){var t=u+Wbe[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=t})}};function Gbe(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get(["label","rotate"])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";o.setTextConfig({rotation:-l,position:c,origin:"center"});var d=o.ensureState("emphasis");k0(d.textConfig||(d.textConfig={}),{position:c})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function Ybe(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&Ube(e,"symbolSize")})}var Kbe=b1;function qbe(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&Ube(e,"value"):jbe(e);var l=i.getDataExtent("value"),u=a.getDataExtent("value"),c=o.get("repulsion"),d=o.get("edgeLength"),f=N0(c)?c:[c,c],h=N0(d)?d:[d,d];h=[h[1],h[0]];var p=i.mapArray("value",function(e,t){var n=i.getItemLayout(t),r=A4(e,l,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),m=a.mapArray("value",function(t,n){var i=r.getEdgeByIndex(n),a=A4(t,u,h);isNaN(a)&&(a=(h[0]+h[1])/2);var o=i.getModel(),s=Z0(i.getModel().get(["lineStyle","curveness"]),-Nbe(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}}),v=t.getBoundingRect(),g=function(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var d=r[c];d.p||(d.p=p1(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=v1(d.p),d.edges=null}var f,h,p=null==n.friction?.6:n.friction,m=p;return{warmUp:function(){m=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){f=e},afterStep:function(e){h=e},step:function(e){f&&f(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1;w1(t,(v=o.n2).p,s.p);var c=x1(t)-o.d,d=v.w/(s.w+v.w);isNaN(d)&&(d=0),_1(t,t),!s.fixed&&Kbe(s.p,s.p,t,d*c*m),!v.fixed&&Kbe(v.p,v.p,t,-(1-d)*c*m)}}for(a=0;a<n;a++)(b=r[a]).fixed||(w1(t,l,b.p),Kbe(b.p,b.p,t,u*m));for(a=0;a<n;a++){s=r[a];for(var p=a+1;p<n;p++){var v;w1(t,(v=r[p]).p,s.p),0===(c=x1(t))&&(g1(t,Math.random()-.5,Math.random()-.5),c=1);var g=(s.rep+v.rep)/c/c;!s.fixed&&Kbe(s.pp,s.pp,t,g),!v.fixed&&Kbe(v.pp,v.pp,t,-g)}}var y=[];for(a=0;a<n;a++){var b;(b=r[a]).fixed||(w1(y,b.p,b.pp),Kbe(b.p,b.p,y,m),m1(b.pp,b.p))}var w=(m*=.992)<.01;h&&h(r,i,w),e&&e(w)}}}(p,m,{rect:v,gravity:o.get("gravity"),friction:o.get("friction")});g.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&m1(e[n].p,r.getNodeByIndex(n).getLayout())}),g.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],u=r.getEdgeByIndex(o),c=l.n1.p,d=l.n2.p,f=u.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],m1(f[0],c),m1(f[1],d),+l.curveness&&(f[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(f)}}),e.forceLayout=g,e.preservedPoints=n,g.step()}else e.forceLayout=null})}function Zbe(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),a=[],o=[];w6(i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]}),a,o),o[0]-a[0]===0&&(o[0]+=1,a[0]-=1),o[1]-a[1]===0&&(o[1]+=1,a[1]-=1);var s=(o[0]-a[0])/(o[1]-a[1]),l=function(e,t,n){return lre(k0(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(a=[l.x,l.y],o=[l.x+l.width,l.y+l.height]);var u=o[0]-a[0],c=o[1]-a[1],d=l.width,f=l.height,h=e.coordinateSystem=new Mge;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(a[0],a[1],u,c),h.setViewRect(l.x,l.y,d,f),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),n.push(h)}}),n}var Jbe=Mee.prototype,Qbe=Nee.prototype,$be=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();function ewe(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}e0(t,e)}($be);var twe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return e0(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $be},t.prototype.buildPath=function(e,t){ewe(t)?Jbe.buildPath.call(this,e,t):Qbe.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return ewe(this.shape)?Jbe.pointAt.call(this,e):Qbe.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=ewe(t)?[t.x2-t.x1,t.y2-t.y1]:Qbe.tangentAt.call(this,e);return _1(n,n)},t}(f9),nwe=["fromSymbol","toSymbol"];function rwe(e){return"_"+e+"Type"}function iwe(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Ose(i);return r+l+Ise(o||0,l)+(a||"")+(s||"")}function awe(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Ose(i),u=Ise(o||0,l),c=Tse(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function owe(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var swe=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return e0(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new twe({name:"line",subPixelOptimize:!0});return owe(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,ete(i,{shape:{percent:1}},r,t),this.add(i),I0(nwe,function(n){var r=awe(n,e,t);this.add(r),this[rwe(n)]=iwe(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};owe(o.shape,a),$ee(i,o,r,t),I0(nwe,function(n){var r=iwe(n,e,t),i=rwe(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=awe(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),h=f.getModel("emphasis");a=h.getModel("lineStyle").getLineStyle(),o=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),u=h.get("disabled"),c=h.get("focus"),d=h.get("blurScope"),l=jte(f)}var p=e.getItemVisual(t,"style"),m=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=s,I0(nwe,function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=p.opacity;for(var n=0;n<G9.length;n++){var r=G9[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}},this);var v=r.getRawValue(t);Nte(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:m||"#000",defaultOpacity:p.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?T4(v):v)+""});var g=this.getTextContent();if(g){var y=l.normal;g.__align=g.style.align,g.__verticalAlign=g.style.verticalAlign,g.__position=y.get("position")||"middle";var b=y.get("distance");N0(b)||(b=[b,b]),g.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),I7(this,c,d,u)},t.prototype.highlight=function(){m7(this)},t.prototype.downplay=function(){v7(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");owe(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=w1([],u,l);if(_1(c,c),t&&(t.setPosition(l),_(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),_(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,f=void 0,h=r.__labelDistance,p=h[0]*i,m=h[1]*i,v=s/2,g=o.tangentAt(v),y=[g[1],-g[0]],b=o.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var w=g[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(g[1],g[0]);u[0]<l[0]&&(x=Math.PI+x),r.rotation=x}var S=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-m,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=m,f="top";break;default:S=0,f="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*m+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*m+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*w+l[0],r.y=l[1]+S,d=g[0]<0?"right":"left",r.originX=-p*w,r.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+S,d="center",r.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*w+u[0],r.y=u[1]+S,d=g[0]>=0?"right":"left",r.originX=p*w,r.originY=-S}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||d})}}}function _(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(y4),lwe=function(){function e(e){this.group=new y4,this._LineCtor=e||swe}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=uwe(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=uwe(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(dwe(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(dwe(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);dwe(t.getItemLayout(r))?(a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},e}();function uwe(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:jte(t)}}function cwe(e){return isNaN(e[0])||isNaN(e[1])}function dwe(e){return e&&!cwe(e[0])&&!cwe(e[1])}var fwe=[],hwe=[],pwe=[],mwe=l3,vwe=C1,gwe=Math.abs;function ywe(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){fwe[0]=mwe(i[0],a[0],o[0],c),fwe[1]=mwe(i[1],a[1],o[1],c),(h=gwe(vwe(fwe,t)-l))<s&&(s=h,r=c)}for(var d=0;d<32;d++){var f=r+u;hwe[0]=mwe(i[0],a[0],o[0],r),hwe[1]=mwe(i[1],a[1],o[1],r),pwe[0]=mwe(i[0],a[0],o[0],f),pwe[1]=mwe(i[1],a[1],o[1],f);var h=vwe(hwe,t)-l;if(gwe(h)<.01)break;var p=vwe(pwe,t)-l;u/=2,h<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function bwe(e,t){var n=[],r=d3,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[v1(l[0]),v1(l[1])],l[2]&&l.__original.push(v1(l[2])));var d=l.__original;if(null!=l[2]){if(m1(i[0],d[0]),m1(i[1],d[2]),m1(i[2],d[1]),u&&"none"!==u){var f=Vbe(e.node1),h=ywe(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=Vbe(e.node2),h=ywe(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}m1(l[0],i[0]),m1(l[1],i[2]),m1(l[2],i[1])}else{if(m1(a[0],d[0]),m1(a[1],d[1]),w1(o,a[1],a[0]),_1(o,o),u&&"none"!==u){f=Vbe(e.node1);b1(a[0],a[0],o,f*t)}if(c&&"none"!==c){f=Vbe(e.node2);b1(a[1],a[1],o,-f*t)}m1(l[0],a[0]),m1(l[1],a[1])}})}function wwe(e){return"view"===e.type}var xwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(e,t){var n=new Fhe,r=new lwe,i=this.group;this._controller=new xve(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(wwe(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):$ee(s,l,e)}bwe(e.getGraph(),Bbe(e));var u=e.getData();a.updateData(u);var c=e.getEdgeData();o.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var h=e.get("layout");u.graph.eachNode(function(t){var n=t.dataIndex,i=t.getGraphicEl(),a=t.getModel();if(i){i.off("drag").off("dragend");var o=a.get("draggable");o&&i.on("drag",function(a){switch(h){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),Ube(e,"symbolSize",t,[a.offsetX,a.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(n,[i.x,i.y]),Fbe(e.getGraph(),e),r.updateLayout(e)}}).on("dragend",function(){d&&d.setUnfixed(n)}),i.setDraggable(o,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&(B9(i).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(B9(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode(function(e){Gbe(e,p,m,v)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())})}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!Ive(t,n,e)}),wwe(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(t){Ave(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Cve(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),bwe(e.getGraph(),Bbe(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()})):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Bbe(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){bwe(e.getGraph(),Bbe(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(moe);function Swe(e){return"_EC_"+e}var _we=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[Swe(e)]){var r=new kwe(e,t);return r.hostGraph=this,this.nodes.push(r),n[Swe(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[Swe(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(B0(e)&&(e=this.nodes[e]),B0(t)&&(t=this.nodes[t]),e instanceof kwe||(e=r[Swe(e)]),t instanceof kwe||(t=r[Swe(t)]),e&&t){var a=e.id+"-"+t.id,o=new Awe(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof kwe&&(e=e.id),t instanceof kwe&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof kwe||(t=this._nodesMap[Swe(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;){var s=o.shift(),l=s[i];for(a=0;a<l.length;a++){var u=l[a],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;o.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),kwe=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=s1(),t=s1(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var i=[r.node1],a=[r.node2],o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(o=0;o<a.length;){var u=a[o];o++,t.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),a.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),Awe=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=s1(),t=s1();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(i=0;i<r.length;){var s=r[i];i++,t.set(s.dataIndex,!0);for(o=0;o<s.outEdges.length;o++)e.set(s.outEdges[o].dataIndex,!0),r.push(s.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function Cwe(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}function Twe(e,t,n,r,i){for(var a=new _we(r),o=0;o<e.length;o++)a.addNode(K0(e[o].id,e[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<t.length;o++){var c=t[o],d=c.source,f=c.target;a.addEdge(d,f,u)&&(l.push(c),s.push(K0(h8(c.id,null),d+" > "+f)),u++)}var h,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)h=Yue(e,n);else{var m=rie.get(p),v=m&&m.dimensions||[];C0(v,"value")<0&&v.concat(["value"]);var g=zue(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(h=new Fue(g,n)).initData(e)}var y=new Fue(["value"],n);return y.initData(l,s),i&&i(h,y),dye({mainData:h,struct:a,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}T0(kwe,Cwe("hostGraph","data")),T0(Awe,Cwe("hostGraph","edgeData"));var Owe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return e0(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new tme(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),o8(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&r){Ebe(n=this)&&(n.__curvenessList=[],n.__edgeMap={},Mbe(n));var o=Twe(i,r,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=a._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=one.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",function(e){return e.resolveParentPath=i,e.getModel=r,e})});return I0(o.edges,function(e){!function(e,t,n,r){if(Ebe(n)){var i=Dbe(e,t,n),a=n.__edgeMap,o=a[Rbe(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)},this),o.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Vae("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return $ae({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=P0(this.option.categories||[],function(e){return null!=e.value?e:k0({value:0},e)}),t=new Fue(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(roe),Iwe={type:"graphRoam",event:"graphRoam",update:"none"};var Pwe=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),Ewe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new Pwe},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),l=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,l)},t}(f9);function Mwe(e,t){var n=null==e?"":e+"";return t&&(F0(t)?n=t.replace("{value}",n):j0(t)&&(n=t(e))),n}var Dwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:C4(n[0],t.getWidth()),cy:C4(n[1],t.getHeight()),r:C4(e.get("radius"),a/2)}}(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap")?ype:See,d=u.get("show"),f=u.getModel("lineStyle"),h=f.get("width"),p=[s,l];U6(p,!o);for(var m=(l=p[1])-(s=p[0]),v=s,g=[],y=0;d&&y<r.length;y++){var b=new c({shape:{startAngle:v,endAngle:l=s+m*Math.min(Math.max(r[y][0],0),1),cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-h,r:i.r},silent:!0});b.setStyle({fill:r[y][1]}),b.setStyle(f.getLineStyle(["color","width"])),g.push(b),v=l}g.reverse(),I0(g,function(e){return a.add(e)});var w=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,w,i,s,l,o,h),this._renderTitleAndDetail(e,t,n,w,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,w,i,s,l,o,h)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,l){for(var u,c,d=this.group,f=i.cx,h=i.cy,p=i.r,m=+e.get("min"),v=+e.get("max"),g=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),x=y.get("splitNumber"),S=C4(g.get("length"),p),_=C4(y.get("length"),p),k=a,A=(o-a)/w,C=A/x,T=g.getModel("lineStyle").getLineStyle(),O=y.getModel("lineStyle").getLineStyle(),I=g.get("distance"),P=0;P<=w;P++){if(u=Math.cos(k),c=Math.sin(k),g.get("show")){var E=new Mee({shape:{x1:u*(p-(M=I?I+l:l))+f,y1:c*(p-M)+h,x2:u*(p-S-M)+f,y2:c*(p-S-M)+h},style:T,silent:!0});"auto"===T.stroke&&E.setStyle({stroke:r(P/w)}),d.add(E)}if(b.get("show")){var M=b.get("distance")+I,D=Mwe(T4(P/w*(v-m)+m),b.get("formatter")),R=r(P/w),L=u*(p-S-M)+f,N=c*(p-S-M)+h,j=b.get("rotate"),F=0;"radial"===j?(F=-k+2*Math.PI)>Math.PI/2&&(F+=Math.PI):"tangential"===j?F=-k-Math.PI/2:B0(j)&&(F=j*Math.PI/180),0===F?d.add(new T9({style:Fte(b,{text:D,x:L,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):d.add(new T9({style:Fte(b,{text:D,x:L,y:N,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:L,originY:N,rotation:F}))}if(y.get("show")&&P!==w){M=(M=y.get("distance"))?M+l:l;for(var z=0;z<=x;z++){u=Math.cos(k),c=Math.sin(k);var B=new Mee({shape:{x1:u*(p-M)+f,y1:c*(p-M)+h,x2:u*(p-_-M)+f,y2:c*(p-_-M)+h},silent:!0,style:O});"auto"===O.stroke&&B.setStyle({stroke:r((P+z/x)/w)}),d.add(B),k+=C}k-=C}else k+=A}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,l){var u=this.group,c=this._data,d=this._progressEls,f=[],h=e.get(["pointer","show"]),p=e.getModel("progress"),m=p.get("show"),v=e.getData(),g=v.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),w=[y,b],x=[a,o];function S(t,n){var r,a=v.getItemModel(t).getModel("pointer"),o=C4(a.get("width"),i.r),s=C4(a.get("length"),i.r),l=e.get(["pointer","icon"]),u=a.get("offsetCenter"),c=C4(u[0],i.r),d=C4(u[1],i.r),f=a.get("keepAspect");return(r=l?Tse(l,c-o/2,d-s,o,s,null,f):new Ewe({shape:{angle:-Math.PI/2,width:o,r:s,x:c,y:d}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function _(e,t){var n=p.get("roundCap")?ype:See,r=p.get("overlap"),o=r?p.get("width"):l/v.count(),u=r?i.r-o:i.r-(e+1)*o,c=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return r&&(d.z2=A4(v.get(g,e),[y,b],[100,0],!0)),d}(m||h)&&(v.diff(c).add(function(t){var n=v.get(g,t);if(h){var r=S(t,a);ete(r,{rotation:-((isNaN(+n)?x[0]:A4(n,w,x,!0))+Math.PI/2)},e),u.add(r),v.setItemGraphicEl(t,r)}if(m){var i=_(t,a),o=p.get("clip");ete(i,{shape:{endAngle:A4(n,w,x,o)}},e),u.add(i),V9(e.seriesIndex,v.dataType,t,i),f[t]=i}}).update(function(t,n){var r=v.get(g,t);if(h){var i=c.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,$ee(s,{rotation:-((isNaN(+r)?x[0]:A4(r,w,x,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=d[n],y=_(t,l?l.shape.endAngle:a),b=p.get("clip");$ee(y,{shape:{endAngle:A4(r,w,x,b)}},e),u.add(y),V9(e.seriesIndex,v.dataType,t,y),f[t]=y}}).execute(),v.each(function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(h){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof g9){var c=s.style;s.useStyle(k0({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(A4(v.get(g,e),w,[0,1],!0))),s.z2EmphasisLift=0,D7(s,t),I7(s,i,a,o)}if(m){var d=f[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,D7(d,t),I7(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),a=n.get("offsetCenter"),o=n.get("keepAspect"),s=Tse(i,t.cx-r/2+C4(a[0],t.r),t.cy-r/2+C4(a[1],t.r),r,r,null,o);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new y4,d=[],f=[],h=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);o.diff(this._data).add(function(e){d[e]=new T9({silent:!0}),f[e]=new T9({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),m=new y4,v=r(A4(a,[l,u],[0,1],!0)),g=n.getModel("title");if(g.get("show")){var y=g.get("offsetCenter"),b=i.cx+C4(y[0],i.r),w=i.cy+C4(y[1],i.r);(O=d[t]).attr({z2:p?0:2,style:Fte(g,{x:b,y:w,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),m.add(O)}var x=n.getModel("detail");if(x.get("show")){var S=x.get("offsetCenter"),_=i.cx+C4(S[0],i.r),k=i.cy+C4(S[1],i.r),A=C4(x.get("width"),i.r),C=C4(x.get("height"),i.r),T=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:v,O=f[t],I=x.get("formatter");O.attr({z2:p?0:2,style:Fte(x,{x:_,y:k,text:Mwe(a,I),width:isNaN(A)?null:A,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:T})}),Gte(O,{normal:x},a,function(e){return Mwe(e,I)}),h&&Yte(O,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return Mwe(o?o.interpolatedValue:a,I)}}),m.add(O)}c.add(m)}),this.group.add(c),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(moe),Rwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return e0(t,e),t.prototype.getInitialData=function(e,t){return eme(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(roe);var Lwe=["itemStyle","opacity"],Nwe=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Iee,o=new T9;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return e0(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel("emphasis"),l=a.get(Lwe);l=null==l?1:l,n||ate(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,ete(r,{style:{opacity:l}},i,t)):$ee(r,{style:{opacity:l},shape:{points:o.points}},i,t),D7(r,a),this._updateLabel(e,t),I7(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"style"),u=l.fill;Nte(i,jte(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:l.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;r.setShape({points:c}),n.textGuideLineConfig={anchor:c?new f2(c[0][0],c[0][1]):null},$ee(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),qde(n,Zde(o),{stroke:u})},t}(Tee),jwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new Nwe(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){ite(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(moe),Fwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tme(R0(this.getData,this),R0(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return eme(this,{coordDimensions:["value"],encodeDefaulter:L0(Dre,this)})},t.prototype._defaultLabelLine=function(e){o8(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(roe);function zwe(e,t){e.eachSeriesByType("funnel",function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=function(e,t){return lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),o=e.get("orient"),s=a.width,l=a.height,u=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(e){return e}),i=[],a="ascending"===t,o=0,s=e.count();o<s;o++)i[o]=o;return j0(t)?i.sort(t):"none"!==t&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}(n,i),c=a.x,d=a.y,f="horizontal"===o?[C4(e.get("minSize"),l),C4(e.get("maxSize"),l)]:[C4(e.get("minSize"),s),C4(e.get("maxSize"),s)],h=n.getDataExtent(r),p=e.get("min"),m=e.get("max");null==p&&(p=Math.min(h[0],0)),null==m&&(m=h[1]);var v=e.get("funnelAlign"),g=e.get("gap"),y=(("horizontal"===o?s:l)-g*(n.count()-1))/n.count(),b=function(e,t){if("horizontal"===o){var i=A4(n.get(r,e)||0,[p,m],f,!0),a=void 0;switch(v){case"top":a=d;break;case"center":a=d+(l-i)/2;break;case"bottom":a=d+(l-i)}return[[t,a],[t,a+i]]}var u,h=A4(n.get(r,e)||0,[p,m],f,!0);switch(v){case"left":u=c;break;case"center":u=c+(s-h)/2;break;case"right":u=c+s-h}return[[u,t],[u+h,t]]};"ascending"===i&&(y=-y,g=-g,"horizontal"===o?c+=s:d+=l,u=u.reverse());for(var w=0;w<u.length;w++){var x=u[w],S=u[w+1],_=n.getItemModel(x);if("horizontal"===o){var k=_.get(["itemStyle","width"]);null==k?k=y:(k=C4(k,s),"ascending"===i&&(k=-k));var A=b(x,c),C=b(S,c+k);c+=k+g,n.setItemLayout(x,{points:A.concat(C.slice().reverse())})}else{var T=_.get(["itemStyle","height"]);null==T?T=y:(T=C4(T,l),"ascending"===i&&(T=-T));A=b(x,d),C=b(S,d+T);d+=T+g,n.setItemLayout(x,{points:A.concat(C.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each(function(n){var r,i,a,o,s=e.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=e.getItemLayout(n),d=c.points,f="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(f)"insideLeft"===l?(i=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===l?(i=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,r="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var h=void 0,p=void 0,m=void 0,v=void 0,g=u.get("length");"vertical"===t&&["top","bottom"].indexOf(l)>-1&&(l="left"),"horizontal"===t&&["left","right"].indexOf(l)>-1&&(l="bottom"),"left"===l?(h=(d[3][0]+d[0][0])/2,p=(d[3][1]+d[0][1])/2,i=(m=h-g)-5,r="right"):"right"===l?(h=(d[1][0]+d[2][0])/2,p=(d[1][1]+d[2][1])/2,i=(m=h+g)+5,r="left"):"top"===l?(h=(d[3][0]+d[0][0])/2,a=(v=(p=(d[3][1]+d[0][1])/2)-g)-5,r="center"):"bottom"===l?(h=(d[1][0]+d[2][0])/2,a=(v=(p=(d[1][1]+d[2][1])/2)+g)+5,r="center"):"rightTop"===l?(h="horizontal"===t?d[3][0]:d[1][0],p="horizontal"===t?d[3][1]:d[1][1],"horizontal"===t?(a=(v=p-g)-5,r="center"):(i=(m=h+g)+5,r="top")):"rightBottom"===l?(h=d[2][0],p=d[2][1],"horizontal"===t?(a=(v=p+g)+5,r="center"):(i=(m=h+g)+5,r="bottom")):"leftTop"===l?(h=d[0][0],p="horizontal"===t?d[0][1]:d[1][1],"horizontal"===t?(a=(v=p-g)-5,r="center"):(i=(m=h-g)-5,r="right")):"leftBottom"===l?(h="horizontal"===t?d[1][0]:d[3][0],p="horizontal"===t?d[1][1]:d[2][1],"horizontal"===t?(a=(v=p+g)+5,r="center"):(i=(m=h-g)-5,r="right")):(h=(d[1][0]+d[2][0])/2,p=(d[1][1]+d[2][1])/2,"horizontal"===t?(a=(v=p+g)+5,r="center"):(i=(m=h+g)+5,r="left")),"horizontal"===t?i=m=h:a=v=p,o=[[h,p],[m,v]]}c.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:f}})}(n)})}var Bwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new y4,n._initialized=!1,n}return e0(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,u=Wwe(e);if(a.diff(o).add(function(e){Uwe(Hwe(a,i,e,l,s),a,e,u)}).update(function(t,n){var r=o.getItemGraphicEl(n),i=Vwe(a,t,l,s);a.setItemGraphicEl(t,r),$ee(r,{shape:{points:i}},e,t),ate(r),Uwe(r,a,t,u)}).remove(function(e){var t=o.getItemGraphicEl(e);i.remove(t)}).execute(),!this._initialized){this._initialized=!0;var c=function(e,t,n){var r=e.model,i=e.getRect(),a=new k9({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),ete(a,{shape:{width:i.width,height:i.height}},t,n),a}(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(c)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=Wwe(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=Hwe(r,this._dataGroup,l,a,i);u.incremental=!0,Uwe(u,r,l,o),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(moe);function Vwe(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);Xwe(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function Hwe(e,t,n,r,i){var a=Vwe(e,n,r,i),o=new Iee({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function Wwe(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),Y0(t=H4(t))&&(t=0),{smooth:t}}function Uwe(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),a=i.getModel("emphasis");D7(e,i,"lineStyle"),I7(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Xwe(e,t){return"category"===t?null==e:null==e||isNaN(e)}var Gwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e0(t,e),t.prototype.getInitialData=function(e,t){return Yue(null,this,{useEncodeDefaulter:R0(Ywe,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(roe);function Ywe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return I0(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var Kwe=["lineStyle","opacity"],qwe={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(Kwe,!0);null!=a&&(i=a)}t.ensureUniqueItemVisual(n,"style").opacity=i},e.start,e.end)}}}};function Zwe(e){!function(e){if(e.parallel)return;var t=!1;I0(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}(e),function(e){var t=a8(e.parallelAxis);I0(t,function(t){if(V0(t)){var n=t.parallelIndex||0,r=a8(e.parallel)[n];r&&r.parallelAxisDefault&&S0(t,r.parallelAxisDefault,!1)}})}(e)}var Jwe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},I0(Qwe,function(e,t){n.getZr().on(t,this._handlers[t]=R0(e,this))},this)),Aoe(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Coe(this,"_throttledDispatchExpand"),I0(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(k0({type:"parallelAxisExpand"},e))},t.type="parallel",t}(doe),Qwe={mousedown:function(e){$we(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if($we(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&$we(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function $we(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var exe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&S0(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){I0(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];I0(M0(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this),function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(mre),txe=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return e0(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ade);function nxe(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=ixe(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=ixe(s,[0,o]),i=a=ixe(s,[i,a]),r=0}t[0]=ixe(t[0],n),t[1]=ixe(t[1],n);var l=rxe(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=ixe(t[r],d),u=rxe(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=rxe(t,r),null!=a&&u.span>a&&(t[1-r]=t[r]+u.sign*a),t}function rxe(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function ixe(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var axe=I0,oxe=Math.min,sxe=Math.max,lxe=Math.floor,uxe=Math.ceil,cxe=T4,dxe=Math.PI,fxe=function(){function e(e,t,n){this.type="parallel",this._axesMap=s1(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;axe(r,function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new txe(e,Yce(a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();axe(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Gce(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],u=this.dimensions.length,c=hxe(t.get("axisExpandWidth"),l),d=hxe(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=t.get("axisExpandWindow");h?(e=hxe(h[1]-h[0],l),h[1]=h[0]+e):(e=hxe(c*(d-1),l),(h=[c*(t.get("axisExpandCenter")||lxe(u/2))-e/2])[1]=h[0]+e);var p=(s-e)/(u-d);p<3&&(p=0);var m=[lxe(cxe(h[0]/c,1))+1,uxe(cxe(h[1]/c,1))-1],v=p/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),axe(n,function(t,n){var a=(r.axisExpandable?mxe:pxe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:dxe/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],u=s[i],c=[1,0,0,1,0,0];u2(c,c,u),l2(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],s=[];I0(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var d=e.getValues(o,u),f=0,h=a.length;f<h;f++){if("inactive"===s[f].getActiveState(d[f])){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return wte([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return x0(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<i*c[0]?(l="jump",o=s-i*c[2]):d&&u&&s>i*(1-c[0])?(l="jump",o=s-i*(1-c[2])):(o=s-i*c[1])>=0&&(o=s-i*(1-c[1]))<=0&&(o=0),(o*=t.axisExpandWidth/u)?nxe(o,r,a,"all"):l="none";else{var f=r[1]-r[0];(r=[sxe(0,a[1]*s/f-f/2)])[1]=oxe(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},e}();function hxe(e,t){return oxe(sxe(e,t[0]),t[1])}function pxe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function mxe(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],u=a,c=!0):(n=i-(o-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var vxe={create:function(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var a=new fxe(r,e,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",_8).models[0];e.coordinateSystem=t.coordinateSystem}}),n}},gxe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return e0(t,e),t.prototype.getAreaSelectStyle=function(){return F8([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=x0(e);if(t)for(var n=t.length-1;n>=0;n--)O4(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(mre);T0(gxe,ede);var yxe=!0,bxe=Math.min,wxe=Math.max,xxe=Math.pow,Sxe="globalPan",_xe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},kxe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Axe={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Cxe=0,Txe=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},$0(t),n._zr=t,n.group=new y4,n._uid="brushController_"+Cxe++,I0(eSe,function(e,t){this._handlers[t]=R0(e,this)},n),n}return e0(t,e),t.prototype.enableBrush=function(e){return $0(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){wve(e)[t]=n}(t,Sxe,this._uid),I0(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=S0(x0(Axe),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=wve(e);r[t]===n&&(r[t]=null)}(e,Sxe,this._uid),I0(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};I0(e,function(e){t[e.panelId]=x0(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){$0(this._mounted),e=P0(e,function(e){return S0(x0(Axe),e,!0)});var t=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new pue(t,e,function(e,t){return a(e.__brushOption,t)},a).add(o).update(o).remove(function(e){t[e]!==i&&r.group.remove(t[e])}).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function o(a,o){var s=e[a];if(null!=o&&t[o]===i)n[a]=t[o];else{var l=n[a]=null!=o?(t[o].__brushOption=s,t[o]):Ixe(r,Oxe(r,s));Mxe(r,l)}}},t.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),Nxe(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(D1);function Oxe(e,t){var n=nSe[t.brushType].createCover(e,t);return n.__brushOption=t,Exe(n,t),e.group.add(n),n}function Ixe(e,t){var n=Dxe(t);return n.endCreating&&(n.endCreating(e,t),Exe(t,t.__brushOption)),t}function Pxe(e,t){var n=t.__brushOption;Dxe(t).updateCoverShape(e,t,n.range,n)}function Exe(e,t){var n=t.z;null==n&&(n=1e4),e.traverse(function(e){e.z=n,e.z2=n})}function Mxe(e,t){Dxe(t).updateCommon(e,t),Pxe(e,t)}function Dxe(e){return nSe[e.__brushOption.brushType]}function Rxe(e,t,n){var r,i=e._panels;if(!i)return yxe;var a=e._transform;return I0(i,function(e){e.isTargetByCursor(t,n,a)&&(r=e)}),r}function Lxe(e,t){var n=e._panels;if(!n)return yxe;var r=t.__brushOption.panelId;return null!=r?n[r]:yxe}function Nxe(e){var t=e._covers,n=t.length;return I0(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function jxe(e,t){var n=P0(e._covers,function(e){var t=e.__brushOption,n=x0(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Fxe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function zxe(e,t,n,r){var i=new y4;return i.add(new k9({name:"main",style:Wxe(n),silent:!0,draggable:!0,cursor:"move",drift:L0(Gxe,e,t,i,["n","s","w","e"]),ondragend:L0(jxe,t,{isEnd:!0})})),I0(r,function(n){i.add(new k9({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:L0(Gxe,e,t,i,n),ondragend:L0(jxe,t,{isEnd:!0})}))}),i}function Bxe(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=wxe(i,6),o=n[0][0],s=n[1][0],l=o-i/2,u=s-i/2,c=n[0][1],d=n[1][1],f=c-a+i/2,h=d-a+i/2,p=c-o,m=d-s,v=p+i,g=m+i;Hxe(e,t,"main",o,s,p,m),r.transformable&&(Hxe(e,t,"w",l,u,a,g),Hxe(e,t,"e",f,u,a,g),Hxe(e,t,"n",l,u,v,a),Hxe(e,t,"s",l,h,v,a),Hxe(e,t,"nw",l,u,a,a),Hxe(e,t,"ne",f,u,a,a),Hxe(e,t,"sw",l,h,a,a),Hxe(e,t,"se",f,h,a,a))}function Vxe(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Wxe(n)),i.attr({silent:!r,cursor:r?"move":"default"}),I0([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=t.childOfName(n.join("")),a=1===n.length?Xxe(e,n[0]):function(e,t){var n=[Xxe(e,t[0]),Xxe(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?kxe[a]+"-resize":null})})}function Hxe(e,t,n,r,i,a,o){var s,l,u,c,d,f=t.childOfName(n);f&&f.setShape((s=qxe(e,t,[[r,i],[r+a,i+o]]),l=bxe(s[0][0],s[1][0]),u=bxe(s[0][1],s[1][1]),c=wxe(s[0][0],s[1][0]),d=wxe(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:d-u}))}function Wxe(e){return A0({strokeNoScale:!0},e.brushStyle)}function Uxe(e,t,n,r){var i=[bxe(e,n),bxe(t,r)],a=[wxe(e,n),wxe(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function Xxe(e,t){var n=xte({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return bte(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Gxe(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),l=Kxe(t,i,a);I0(r,function(e){var t=_xe[e];s[t[0]][t[1]]+=l[t[0]]}),o.range=e.fromRectRange(Uxe(s[0][0],s[1][0],s[0][1],s[1][1])),Mxe(t,n),jxe(t,{isEnd:!1})}function Yxe(e,t,n,r){var i=t.__brushOption.range,a=Kxe(e,n,r);I0(i,function(e){e[0]+=a[0],e[1]+=a[1]}),Mxe(e,t),jxe(e,{isEnd:!1})}function Kxe(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qxe(e,t,n){var r=Lxe(e,t);return r&&r!==yxe?r.clipPath(n,e._transform):x0(n)}function Zxe(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Jxe(e,t,n){return e.childOfName("main").contain(t,n)}function Qxe(e,t,n,r){var i,a=e._creatingCover,o=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return xxe(i*i+a*a,.5)>6}(e)||a){if(o&&!a){"single"===s.brushMode&&Nxe(e);var l=x0(s);l.brushType=$xe(l.brushType,o),l.panelId=o===yxe?null:o.panelId,a=e._creatingCover=Oxe(e,l),e._covers.push(a)}if(a){var u=nSe[$xe(e._brushType,o)];a.__brushOption.range=u.getCreatingRange(qxe(e,a,e._track)),r&&(Ixe(e,a),u.updateCommon(e,a)),Pxe(e,a),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&Rxe(e,t,n)&&Nxe(e)&&(i={isEnd:r,removeOnClick:!0});return i}function $xe(e,t){return"auto"===e?($0(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var eSe={mousedown:function(e){if(this._dragging)tSe(this,e);else if(!e.target||!e.target.draggable){Zxe(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Rxe(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=Rxe(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===yxe||s.panelId===a.panelId)&&nSe[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){Zxe(e);var i=Qxe(this,e,r,!1);i&&jxe(this,i)}},mouseup:function(e){tSe(this,e)}};function tSe(e,t){if(e._dragging){Zxe(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),a=Qxe(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&jxe(e,a)}}var nSe={lineX:rSe(0),lineY:rSe(1),rect:{createCover:function(e,t){function n(e){return e}return zxe({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Fxe(e);return Uxe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Bxe(e,t,n,r)},updateCommon:Vxe,contain:Jxe},polygon:{createCover:function(e,t){var n=new y4;return n.add(new Iee({name:"main",style:Wxe(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Tee({name:"main",draggable:!0,drift:L0(Yxe,e,t),ondragend:L0(jxe,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:qxe(e,t,n)})},updateCommon:Vxe,contain:Jxe}};function rSe(e){return{createCover:function(t,n){return zxe({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Fxe(t);return[bxe(n[0][e],n[1][e]),wxe(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=Lxe(t,n);if(o!==yxe&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,a];e&&l.reverse(),Bxe(t,n,l,i)},updateCommon:Vxe,contain:Jxe}}function iSe(e){return e=sSe(e),function(t){return kte(t,e)}}function aSe(e,t){return e=sSe(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function oSe(e,t,n){var r=sSe(e);return function(e,i){return r.contain(i[0],i[1])&&!Ive(e,t,n)}}function sSe(e){return x2.create(e)}var lSe=["axisLine","axisTickLabel","axisName"],uSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Txe(n.getZr())).on("brush",R0(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new y4,this.group.add(this._axisGroup),e.get("show")){var a=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=k0({strokeContainThreshold:l},o.getAxisLayout(u)),d=new Dme(e,c);I0(lSe,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,s,e,a,l,n),_te(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=x2.create({x:o[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:iSe(u),isTargetByCursor:oSe(u,a,r),getLinearBrushOtherExtent:aSe(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return P0(e.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=P0(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(doe);var cSe={type:"axisAreaSelect",event:"axisAreaSelected"};var dSe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fSe(e){e.registerComponentView(Jwe),e.registerComponentModel(exe),e.registerCoordinateSystem("parallel",vxe),e.registerPreprocessor(Zwe),e.registerComponentModel(gxe),e.registerComponentView(uSe),vme(e,"parallel",gxe,dSe),function(e){e.registerAction(cSe,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}(e)}var hSe=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}}(),pSe=function(e){function t(t){return e.call(this,t)||this}return e0(t,e),t.prototype.getDefaultShape=function(){return new hSe},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){m7(this)},t.prototype.downplay=function(){v7(this)},t}(f9),mSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,l=o.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge(function(t){var n=new pSe,r=B9(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,u,f,h,p,m,v,g=t.getModel(),y=g.getModel("lineStyle"),b=y.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),S=x.get("localX"),_=x.get("localY"),k=t.node2.getLayout(),A=t.node2.getModel(),C=A.get("localX"),T=A.get("localY"),O=t.getLayout();n.shape.extent=Math.max(1,O.dy),n.shape.orient=d,"vertical"===d?(i=(null!=S?S*s:w.x)+O.sy,o=(null!=_?_*l:w.y)+w.dy,u=(null!=C?C*s:k.x)+O.ty,h=i,p=o*(1-b)+(f=null!=T?T*l:k.y)*b,m=u,v=o*b+f*(1-b)):(i=(null!=S?S*s:w.x)+w.dx,o=(null!=_?_*l:w.y)+O.sy,h=i*(1-b)+(u=null!=C?C*s:k.x)*b,p=o,m=i*b+u*(1-b),v=f=(null!=T?T*l:k.y)+O.ty),n.setShape({x1:i,y1:o,x2:u,y2:f,cpx1:h,cpy1:p,cpx2:m,cpy2:v}),n.useStyle(y.getItemStyle()),vSe(n.style,d,t);var I=""+g.get("value"),P=jte(g,"edgeLabel");Nte(n,P,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,"edge",i,Z0(a,P.normal&&P.normal.get("formatter"),I),o)}},labelDataIndex:t.dataIndex,defaultText:I}),n.setTextConfig({position:"inside"});var E=g.getModel("emphasis");D7(n,g,"lineStyle",function(e){var n=e.getItemStyle();return vSe(n,d,t),n}),a.add(n),c.setItemGraphicEl(t.dataIndex,n);var M=E.get("focus");I7(n,"adjacency"===M?t.getAdjacentDataIndices():"trajectory"===M?t.getTrajectoryDataIndices():M,E.get("blurScope"),E.get("disabled"))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),c=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,f=new k9({shape:{x:null!=i?i*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});Nte(f,jte(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle("fill",t.getVisual("color")),f.setStyle("decal",t.getVisual("style").decal),D7(f,r),a.add(f),u.setItemGraphicEl(t.dataIndex,f),B9(f).dataType="node";var h=c.get("focus");I7(f,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))}),u.eachItemGraphicEl(function(t,i){u.getItemModel(i).get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(function(e,t,n){var r=new k9({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ete(r,{shape:{width:e.width+20}},t,n),r}(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(moe);function vSe(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");F0(r)&&F0(i)&&(e.fill=new Vee(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}var gSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++){if(!(null!=i[o].depth&&i[o].depth>=0))throw new Error("levels[i].depth is mandatory and should be natural number");a[i[o].depth]=new one(i[o],this,t)}return Twe(r,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value;return Vae("nameValue",{name:a.source+" -- "+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return Vae("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=i}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(roe);function ySe(e,t){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=function(e,t){return lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var a=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;!function(e){I0(e,function(e){var t=OSe(e.outEdges,TSe),n=OSe(e.inEdges,TSe),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}(l),function(e,t,n,r,i,a,o,s,l){(function(e,t,n,r,i,a,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f<t.length;f++)s[f]=1;for(f=0;f<e.length;f++)l[f]=e[f].inEdges.length,0===l[f]&&u.push(e[f]);var h=-1;for(;u.length;){for(var p=0;p<u.length;p++){var m=u[p],v=m.hostGraph.data.getRawDataItem(m.dataIndex),g=null!=v.depth&&v.depth>=0;g&&v.depth>h&&(h=v.depth),m.setLayout({depth:g?v.depth:d},!0),"vertical"===a?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var y=0;y<m.outEdges.length;y++){var b=m.outEdges[y];s[t.indexOf(b)]=0;var w=b.node2;0===--l[e.indexOf(w)]&&c.indexOf(w)<0&&c.push(w)}}++d,u=c,c=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var x=h>d-1?h:d-1;o&&"left"!==o&&function(e,t,n,r){if("right"===t){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}I0(e,function(e){bSe(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){I0(e,function(e){bSe(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,r)}(e,o,0,x);var S="vertical"===a?(i-n)/x:(r-n)/x;!function(e,t,n){I0(e,function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}(e,S,a)})(e,t,n,i,a,s,l),function(e,t,n,r,i,a,o){var s=function(e,t){var n=[],r="vertical"===t?"y":"x",i=T8(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),I0(i.keys,function(e){n.push(i.buckets.get(e))}),n}(e,o);(function(e,t,n,r,i,a){var o=1/0;I0(e,function(e){var t=e.length,s=0;I0(e,function(e){s+=e.getLayout().value});var l="vertical"===a?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l<o&&(o=l)}),I0(e,function(e){I0(e,function(e,t){var n=e.getLayout().value*o;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),I0(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})})(s,t,n,r,i,o),wSe(s,i,n,r,o);for(var l=1;a>0;a--)xSe(s,l*=.99,o),wSe(s,i,n,r,o),ISe(s,l,o),wSe(s,i,n,r,o)}(e,t,a,i,r,o,s),function(e,t){var n="vertical"===t?"x":"y";I0(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),I0(e,function(e){var t=0,n=0;I0(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),I0(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}(e,s)}(l,u,n,r,a,o,0!==M0(l,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function bSe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function wSe(e,t,n,r,i){var a="vertical"===i?"x":"y";I0(e,function(e){var o,s,l;e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var u=0,c=e.length,d="vertical"===i?"dx":"dy",f=0;f<c;f++)(l=u-(s=e[f]).getLayout()[a])>0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[d]+t;if((l=u-t-("vertical"===i?r:n))>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(f=c-2;f>=0;--f)(l=(s=e[f]).getLayout()[a]+s.getLayout()[d]+t-u)>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}})}function xSe(e,t,n){I0(e.slice().reverse(),function(e){I0(e,function(e){if(e.outEdges.length){var r=OSe(e.outEdges,SSe,n)/OSe(e.outEdges,TSe);if(isNaN(r)){var i=e.outEdges.length;r=i?OSe(e.outEdges,_Se,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-CSe(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-CSe(e,n))*t;e.setLayout({y:o},!0)}}})})}function SSe(e,t){return CSe(e.node2,t)*e.getValue()}function _Se(e,t){return CSe(e.node2,t)}function kSe(e,t){return CSe(e.node1,t)*e.getValue()}function ASe(e,t){return CSe(e.node1,t)}function CSe(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function TSe(e){return e.getValue()}function OSe(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function ISe(e,t,n){I0(e,function(e){I0(e,function(e){if(e.inEdges.length){var r=OSe(e.inEdges,kSe,n)/OSe(e.inEdges,TSe);if(isNaN(r)){var i=e.inEdges.length;r=i?OSe(e.inEdges,ASe,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-CSe(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-CSe(e,n))*t;e.setLayout({y:o},!0)}}})})}function PSe(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;I0(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),I0(n,function(t){var n=new Kye({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))})}r.length&&I0(r,function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)})})}var ESe=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type");"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=a.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],f=[i,a],h=f[u].get("type"),p=f[1-u].get("type"),m=e.data;if(m&&r){var v=[];I0(m,function(e,t){var n;N0(e)?(n=e.slice(),e.unshift(t)):N0(e.value)?((n=k0({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)}),e.data=v}var g=this.defaultValueDimensions,y=[{name:c,type:gue(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:gue(p),dimsDef:g.slice()}];return eme(this,{coordDimensions:y,dimensionsCount:g.length+1,encodeDefaulter:L0(Mre,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),MSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e0(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(roe);T0(MSe,ESe,!0);var DSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add(function(e){if(r.hasValue(e)){var t=NSe(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(ate(n),jSe(s,n,r,e)):n=NSe(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type="boxplot",t}(moe),RSe=function(){return function(){}}(),LSe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new RSe},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(f9);function NSe(e,t,n,r,i){var a=e.ends,o=new LSe({shape:{points:i?FSe(a,r,e):a}});return jSe(e,o,t,n,i),o}function jSe(e,t,n,r,i){var a=n.hostModel;(0,Mte[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=n.getItemModel(r),s=o.getModel("emphasis");D7(t,o),I7(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function FSe(e,t,n){return P0(e,function(e){return(e=e.slice())[t]=n.initBaseline,e})}var zSe=I0;function BSe(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var r=e.getBaseAxis(),i=C0(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}(e);zSe(t,function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,r=e.seriesModels,i=r.length,a=e.boxWidthList=[],o=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;zSe(r,function(e){l=Math.max(l,e.getData().count())});var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}zSe(r,function(e){var n=e.get("boxWidth");N0(n)||(n=[n,n]),s.push([C4(n[0],t)||0,C4(n[1],t)||0])});var c=.8*t-2,d=c/i*.3,f=(c-d*(i-1))/i,h=f/2-c/2;zSe(r,function(e,t){o.push(h),h+=d+f,a.push(Math.min(Math.max(f,s[t][0]),s[t][1]))})}(e),zSe(t,function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(u,d),h=b(f,c[2],d),p=b(f,c[0],d),m=b(f,c[1],d),v=b(f,c[3],d),g=b(f,c[4],d),y=[];w(y,m,!1),w(y,v,!0),y.push(p,m,g,v),x(y,p),x(y,g),x(y,h),i.setItemLayout(d,{initBaseline:h[s],ends:y})}function b(e,n,a){var l,u=i.get(n,a),c=[];return c[o]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[o]+=t,l}function w(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var VSe={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==xre){t8(e8("source data is not applicable for this boxplot transform. Expect number[][]."))}var n=function(e,t){for(var n=[],r=[],i=(t=t||{}).boundIQR,a="none"===i||0===i,o=0;o<e.length;o++){var s=O4(e[o].slice()),l=B4(s,.25),u=B4(s,.5),c=B4(s,.75),d=s[0],f=s[s.length-1],h=(null==i?1.5:i)*(c-l),p=a?d:Math.max(d,l-h),m=a?f:Math.min(f,c+h),v=t.itemNameFormatter,g=j0(v)?v({value:o}):F0(v)?v.replace("{value}",o+""):o+"";n.push([g,p,l,u,c,m]);for(var y=0;y<s.length;y++){var b=s[y];if(b<p||b>m){var w=[g,b];r.push(w)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var HSe=["itemStyle","borderColor"],WSe=["itemStyle","borderColor0"],USe=["itemStyle","borderColorDoji"],XSe=["itemStyle","color"],GSe=["itemStyle","color0"];function YSe(e,t){return t.get(e>0?XSe:GSe)}function KSe(e,t){return t.get(0===e?USe:e>0?HSe:WSe)}var qSe={seriesType:"candlestick",plan:foe(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=YSe(i,r),a.stroke=KSe(i,r)||a.fill,k0(t.ensureUniqueItemVisual(n,"style"),a)}}}}},ZSe=["color","borderColor"],JSe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&t_e(s,o))return;var l=e_e(o,n,!0);ete(l,{shape:{points:o.ends}},e,n),n_e(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}}).update(function(o,l){var u=n.getItemGraphicEl(l);if(t.hasValue(o)){var c=t.getItemLayout(o);a&&t_e(s,c)?r.remove(u):(u?($ee(u,{shape:{points:c.ends}},e,o),ate(u)):u=e_e(c),n_e(u,t,o,i),r.add(u),t.setItemGraphicEl(o,u))}else r.remove(u)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),o_e(e,this.group);var t=e.get("clip",!0)?Jhe(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var a=e_e(r.getItemLayout(n));n_e(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){o_e(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(moe),QSe=function(){return function(){}}(),$Se=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new QSe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(f9);function e_e(e,t,n){var r=e.ends;return new $Se({shape:{points:n?r_e(r,e):r},z2:100})}function t_e(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function n_e(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,D7(e,i);var a=t.getItemLayout(n).sign;I0(e.states,function(e,t){var n=i.getModel(t),r=YSe(a,n),o=KSe(a,n)||r,s=e.style||(e.style={});r&&(s.fill=r),o&&(s.stroke=o)});var o=i.getModel("emphasis");I7(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function r_e(e,t){return P0(e,function(e){return(e=e.slice())[1]=t.initBaseline,e})}var i_e=function(){return function(){}}(),a_e=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return e0(t,e),t.prototype.getDefaultShape=function(){return new i_e},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(f9);function o_e(e,t,n,r){var i=e.getData().getLayout("largePoints"),a=new a_e({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(a);var o=new a_e({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(o);var s=new a_e({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(s),s_e(1,a,e),s_e(-1,o,e),s_e(0,s,e),r&&(a.incremental=!0,o.incremental=!0),n&&n.push(a,o)}function s_e(e,t,n,r){var i=KSe(e,n)||YSe(e,n),a=n.getModel("itemStyle").getItemStyle(ZSe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var l_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e0(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(roe);function u_e(e){e&&N0(e.series)&&I0(e.series,function(e){V0(e)&&"k"===e.type&&(e.type="candlestick")})}T0(l_e,ESe,!0);var c_e={seriesType:"candlestick",plan:foe(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=C4(q0(e.get("barMaxWidth"),i),i),o=C4(q0(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?C4(s,i):Math.max(Math.min(i/2,a),o)}(e,n),i=["x","y"],a=n.getDimensionIndex(n.mapDimension(i[0])),o=P0(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=o[0],l=o[1],u=o[2],c=o[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(a<0||o.length<4))return{progress:e.pipelineContext.large?function(n,r){var i,o,d=dce(4*n.count),f=0,h=[],p=[],m=r.getStore(),v=!!e.get(["itemStyle","borderColorDoji"]);for(;null!=(o=n.next());){var g=m.get(a,o),y=m.get(s,o),b=m.get(l,o),w=m.get(u,o),x=m.get(c,o);isNaN(g)||isNaN(w)||isNaN(x)?(d[f++]=NaN,f+=3):(d[f++]=d_e(m,o,y,b,l,v),h[0]=g,h[1]=w,i=t.dataToPoint(h,null,p),d[f++]=i?i[0]:NaN,d[f++]=i?i[1]:NaN,h[1]=x,i=t.dataToPoint(h,null,p),d[f++]=i?i[1]:NaN)}r.setLayout("largePoints",d)}:function(e,n){var i,o=n.getStore();for(;null!=(i=e.next());){var d=o.get(a,i),f=o.get(s,i),h=o.get(l,i),p=o.get(u,i),m=o.get(c,i),v=Math.min(f,h),g=Math.max(f,h),y=k(v,d),b=k(g,d),w=k(p,d),x=k(m,d),S=[];A(S,b,0),A(S,y,1),S.push(T(x),T(b),T(w),T(y));var _=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:d_e(o,i,f,h,l,_),initBaseline:f>h?b[1]:y[1],ends:S,brushRect:C(p,m,d)})}function k(e,n){var r=[];return r[0]=n,r[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function A(e,t,n){var i=t.slice(),a=t.slice();i[0]=yte(i[0]+r/2,1,!1),a[0]=yte(a[0]-r/2,1,!0),n?e.push(i,a):e.push(a,i)}function C(e,t,n){var i=k(e,n),a=k(t,n);return i[0]-=r/2,a[0]-=r/2,{x:i[0],y:i[1],width:r,height:a[1]-i[1]}}function T(e){return e[0]=yte(e[0],1),e}}}}};function d_e(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function f_e(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})})}var h_e=function(e){function t(t,n){var r=e.call(this)||this,i=new Dhe(t,n),a=new y4;return r.add(i),r.add(a),r.updateData(t,n),r}return e0(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=Tse(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}f_e(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}f_e(n,e)},t.prototype.highlight=function(){m7(this)},t.prototype.downplay=function(){v7(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=Ose(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=a.getModel("emphasis");i.setScale(s),i.traverse(function(e){e.setStyle("fill",u)});var d=Ise(e.getItemVisual(t,"symbolOffset"),s);d&&(i.x=d[0],i.y=d[1]);var f=e.getItemVisual(t,"symbolRotate");i.rotation=(f||0)*Math.PI/180||0;var h={};h.showEffectOn=r.get("showEffectOn"),h.rippleScale=a.get(["rippleEffect","scale"]),h.brushType=a.get(["rippleEffect","brushType"]),h.period=1e3*a.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=o,h.color=u,h.rippleEffectColor=a.get(["rippleEffect","color"]),h.rippleNumber=a.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,I7(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(y4),p_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(){this._symbolDraw=new Fhe(h_e)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=dpe("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t,n,r=e.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=(t=r.getRoamTransform(),o2(n=[1,0,0,1,0,0],t),n),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(moe),m_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return e0(t,e),t.prototype.getInitialData=function(e,t){return Yue(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(roe);var v_e=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return e0(t,e),t.prototype.createLine=function(e,t,n){return new swe(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");N0(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),o=n.get("color")||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=Tse(i,-.5,-.5,1,1,o)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",o),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=1e3*t.get("period"),o=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=K0(t.get("delay"),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(a=this._getLineLength(r)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=j0(u)?u(n):u,r.__t>0&&(c=-a*r.__t),this._animateSymbol(r,a,c,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return A1(e.__p1,e.__cp1)+A1(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=l3,l=u3;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var u=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),c=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*A1(o,a),1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*A1(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(y4),g_e=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return e0(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Iee({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;$ee(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=i.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,I7(this,o,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(y4),y_e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e0(t,e),t.prototype.createLine=function(e,t,n){return new g_e(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=A1(a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(t<this._lastFramePercent){for(a=Math.min(o+1,i-1);a>=0&&!(r[a]<=t);a--);a=Math.min(a,i-2)}else{for(a=o;a<i&&!(r[a]>t);a++);a=Math.min(a-1,i-2)}var s=(t-r[a])/(r[a+1]-r[a]),l=n[a],u=n[a+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var c=e.__t<1?u[0]-l[0]:l[0]-u[0],d=e.__t<1?u[1]-l[1]:l[1]-u[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(v_e),b_e=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),w_e=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e0(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new b_e},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var a=r[n++];if(a>0){e.moveTo(r[n++],r[n++]);for(var o=1;o<a;o++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(e.moveTo(s,l),i>0){var d=(s+u)/2-(l-c)*i,f=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,f,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],d=1;d<l;d++){if(G6(u,c,f=r[s++],h=r[s++],a,e,t))return o}o++}else for(o=0,s=0;s<r.length;){u=r[s++],c=r[s++];var f=r[s++],h=r[s++];if(i>0){if(K6(u,c,(u+f)/2-(c-h)*i,(c+h)/2-(f-u)*i,f,h,a,e,t))return o}else if(G6(u,c,f,h,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],l=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),a=Math.max(l,a)}e=this._rect=new x2(n,r,i,a)}return e},t}(f9),x_e=function(){function e(){this.group=new y4}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new w_e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var a=B9(e);a.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),S_e={seriesType:"lines",plan:foe(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,f=[];for(c=i.start;c<i.end;c++){var h=e.getLineCoords(c,o);n&&(s[d++]=h);for(var p=0;p<h;p++)f=t.dataToPoint(o[p],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var m=a.getItemModel(c),v=(h=e.getLineCoords(c,o),[]);if(n)for(var g=0;g<h;g++)v.push(t.dataToPoint(o[g]));else{v[0]=t.dataToPoint(o[0]),v[1]=t.dataToPoint(o[1]);var y=m.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}a.setItemLayout(c,v)}}}}J4("The lines series must have a coordinate system.")}},__e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&Jhe(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=S_e.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new x_e:new lwe(i?r?y_e:g_e:r?v_e:swe),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(moe),k_e="undefined"==typeof Uint32Array?Array:Uint32Array,A_e="undefined"==typeof Float64Array?Array:Float64Array;function C_e(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=P0(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),_0([t,e[0],e[1]])}))}var T_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e0(t,e),t.prototype.init=function(t){t.data=t.data||[],C_e(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(C_e(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=l1(this._flatCoords,t.flatCoords),this._flatCoordsOffset=l1(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");if(!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),B0(e[0])){for(var n=e.length,r=new k_e(n),i=new A_e(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=e[l++];r[o++]=a+t,r[o++]=u;for(var c=0;c<u;c++){var d=e[l++],f=e[l++];if(i[a++]=d,i[a++]=f,l>n)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if(!rie.get(e.coordinateSystem))throw new Error("Unknown coordinate system "+e.coordinateSystem);var n=new Fue(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get("name");if(i)return i;var a=r.get("fromName"),o=r.get("toName"),s=[];return null!=a&&s.push(a),null!=o&&s.push(o),Vae("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(roe);function O_e(e){return e instanceof Array||(e=[e,e]),e}var I_e={seriesType:"lines",reset:function(e){var t=O_e(e.get("symbol")),n=O_e(e.get("symbolSize")),r=e.getData();return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(e,t){var n=e.getItemModel(t),r=O_e(n.getShallow("symbol",!0)),i=O_e(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}:null}}};var P_e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=o0.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),f=e.length;c.width=t,c.height=n;for(var h=0;h<f;++h){var p=e[h],m=p[0],v=p[1],g=r(p[2]);d.globalAlpha=g,d.drawImage(o,m-u,v-u)}if(!c.width||!c.height)return c;for(var y=d.getImageData(0,0,c.width,c.height),b=y.data,w=0,x=b.length,S=this.minOpacity,_=this.maxOpacity-S;w<x;){g=b[w+3]/256;var k=4*Math.floor(255*g);if(g>0){var A=a(g)?s:l;g>0&&(g=g*_+S),b[w++]=A[k],b[w++]=A[k+1],b[w++]=A[k+2],b[w++]=A[k+3]*g*256}else w+=4}return d.putImageData(y,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=o0.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function E_e(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var M_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r;if(t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),!r)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):E_e(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(E_e(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,l,u=e.coordinateSystem,c=Qhe(u,"cartesian2d");if(c){var d=u.getAxis("x"),f=u.getAxis("y");if("category"!==d.type||"category"!==f.type)throw new Error("Heatmap on cartesian must have two category axes");if(!d.onBand||!f.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");a=d.getBandWidth()+.5,o=f.getBandWidth()+.5,s=d.scale.getExtent(),l=f.scale.getExtent()}for(var h=this.group,p=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),g=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=jte(e),w=e.getModel("emphasis"),x=w.get("focus"),S=w.get("blurScope"),_=w.get("disabled"),k=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],A=n;A<r;A++){var C=void 0,T=p.getItemVisual(A,"style");if(c){var O=p.get(k[0],A),I=p.get(k[1],A);if(isNaN(p.get(k[2],A))||isNaN(O)||isNaN(I)||O<s[0]||O>s[1]||I<l[0]||I>l[1])continue;var P=u.dataToPoint([O,I]);C=new k9({shape:{x:P[0]-a/2,y:P[1]-o/2,width:a,height:o},style:T})}else{if(isNaN(p.get(k[1],A)))continue;C=new k9({z2:1,shape:u.dataToRect([p.get(k[0],A)]).contentShape,style:T})}if(p.hasItemOption){var E=p.getItemModel(A),M=E.getModel("emphasis");m=M.getModel("itemStyle").getItemStyle(),v=E.getModel(["blur","itemStyle"]).getItemStyle(),g=E.getModel(["select","itemStyle"]).getItemStyle(),y=E.get(["itemStyle","borderRadius"]),x=M.get("focus"),S=M.get("blurScope"),_=M.get("disabled"),b=jte(E)}C.shape.r=y;var D=e.getRawValue(A),R="-";D&&null!=D[2]&&(R=D[2]+""),Nte(C,b,{labelFetcher:e,labelDataIndex:A,defaultOpacity:T.opacity,defaultText:R}),C.ensureState("emphasis").style=m,C.ensureState("blur").style=v,C.ensureState("select").style=g,I7(C,x,S,_),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),h.add(C),p.setItemGraphicEl(A,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new P_e;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),f=Math.min(l.width+l.x,r.getWidth()),h=Math.min(l.height+l.y,r.getHeight()),p=f-c,m=h-d,v=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],g=o.mapArray(v,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=d,i.push(r),i}),y=n.getExtent(),b="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var r=e[1]-e[0],i=(t=P0(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}})).length,a=0;return function(e){var r;for(r=a;r<i;r++)if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}if(r===i)for(r=a-1;r>=0;r--){var o;if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}(y,n.getPieceList(),n.option.selected);s.update(g,p,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},b);var w=new g9({style:{width:p,height:m,x:c,y:d,image:s.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(moe),D_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.getInitialData=function(e,t){return Yue(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=rie.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(roe);var R_e=["itemStyle","borderWidth"],L_e=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],N_e=new aee,j_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),l=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:L_e[+s],categoryDim:L_e[1-+s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=X_e(i,e),n=F_e(i,e,t,u),a=K_e(i,u,n);i.setItemGraphicEl(e,a),r.add(a),$_e(a,u,n)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=X_e(i,e),s=F_e(i,e,o,u),l=Z_e(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;$ee(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?V_e(e,t,n,!0):H_e(e,t,n,!0);W_e(e,n,!0),U_e(e,t,n,!0)}(n,u,s):n=K_e(i,u,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),$_e(n,u,s)}else r.remove(n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&q_e(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var c=e.get("clip",!0)?Jhe(e.coordinateSystem,!1,e):null;return c?r.setClipPath(c):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl(function(t){q_e(r,B9(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(moe);function F_e(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,r,i){var a,o=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[o.wh]<=0);if(N0(s)){var d=[z_e(l,s[0])-u,z_e(l,s[1])-u];d[1]<d[0]&&d.reverse(),a=d[c]}else a=null!=s?z_e(l,s)-u:t?r.coordSysExtent[o.index][c]-u:n[o.wh];i.boundingLength=a,t&&(i.repeatCutLength=n[o.wh]);var f="x"===o.xy,h=l.inverse;i.pxSign=f&&!h||!f&&h?a>=0?1:-1:a>0?1:-1}(n,a,i,r,d),function(e,t,n,r,i,a,o,s,l,u){var c,d=l.valueDim,f=l.categoryDim,h=Math.abs(n[f.wh]),p=e.getItemVisual(t,"symbolSize");c=N0(p)?p.slice():null==p?["100%","100%"]:[p,p];c[f.index]=C4(c[f.index],h),c[d.index]=C4(c[d.index],r?h:Math.abs(a)),u.symbolSize=c;var m=u.symbolScale=[c[0]/s,c[1]/s];m[d.index]*=(l.isHorizontal?-1:1)*o}(e,t,i,a,0,d.boundingLength,d.pxSign,u,r,d),function(e,t,n,r,i){var a=e.get(R_e)||0;a&&(N_e.attr({scaleX:t[0],scaleY:t[1],rotation:n}),N_e.updateTransform(),a/=N_e.getLineScale(),a*=t[r.valueDim.index]);i.valueLineWidth=a||0}(n,d.symbolScale,l,r,d);var f=d.symbolSize,h=Ise(n.get("symbolOffset"),f);return function(e,t,n,r,i,a,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,m=Math.max(t[h.index]+s,0),v=m;if(r){var g=Math.abs(l),y=K0(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var w=C4(y,t[h.index]),x=Math.max(m+2*w,0),S=b?0:2*w,_=W4(r),k=_?r:eke((g+S)/x);x=m+2*(w=(g-k*m)/2/(b?k:Math.max(k-1,1))),S=b?0:2*w,_||"fixed"===r||(k=u?eke((Math.abs(u)+S)/x):0),v=k*x-S,d.repeatTimes=k,d.symbolMargin=w}var A=p*(v/2),C=d.pathPosition=[];C[f.index]=n[f.wh]/2,C[h.index]="start"===o?A:"end"===o?l-A:l/2,a&&(C[0]+=a[0],C[1]+=a[1]);var T=d.bundlePosition=[];T[f.index]=n[f.xy],T[h.index]=n[h.xy];var O=d.barRectShape=k0({},n);O[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(C[h.index]+A)),O[f.wh]=n[f.wh];var I=d.clipShape={};I[f.xy]=-n[f.xy],I[f.wh]=c.ecSize[f.wh],I[h.xy]=0,I[h.wh]=n[h.wh]}(n,f,i,a,0,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function z_e(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function B_e(e){var t=e.symbolPatternSize,n=Tse(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function V_e(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=a[t.valueDim.index]+o+2*n.symbolMargin;for(J_e(e,function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?Q_e(e,null,p(c),n,r):Q_e(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),c++});c<u;c++){var f=B_e(n);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,i.add(f);var h=p(c);Q_e(f,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function H_e(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Q_e(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=B_e(n),i.add(a),Q_e(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function W_e(e,t,n){var r=k0({},t.barRectShape),i=e.__pictorialBarRect;i?Q_e(i,null,{shape:r},t,n):((i=e.__pictorialBarRect=new k9({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(i))}function U_e(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=k0({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(i)$ee(i,{shape:a},s,l);else{a[o.wh]=0,i=new k9({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=n.clipShape[o.wh],Mte[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function X_e(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=G_e,n.isAnimationEnabled=Y_e,n}function G_e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Y_e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function K_e(e,t,n,r){var i=new y4,a=new y4;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?V_e(i,t,n):H_e(i,0,n),W_e(i,n,r),U_e(i,t,n,r),i.__pictorialShapeStr=Z_e(e,n),i.__pictorialSymbolMeta=n,i}function q_e(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];J_e(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),I0(a,function(e){nte(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function Z_e(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function J_e(e,t,n){I0(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Q_e(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Mte[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function $_e(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),d=a.get("blurScope"),f=a.get("scale");J_e(e,function(e){if(e instanceof g9){var t=e.style;e.useStyle(k0({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,f&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;p.ignoreClip=!0,Nte(p,jte(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Ehe(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),I7(e,c,d,a.get("disabled"))}function eke(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var tke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e0(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=une(mpe.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(mpe);var nke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return e0(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}a.x=0,a.y=l.y+u[0];var d=new pue(this._layersSeries||[],o,c,c),f=[];function h(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=o[n].indices,m=0;m<p.length;m++){var v=r.getItemLayout(p[m]),g=v.x,y=v.y0,b=v.y;d.push(g,y),h.push(g,y+b),u=r.getItemVisual(p[m],"style")}var w=r.getItemLayout(p[0]),x=e.getModel("label").get("margin"),S=e.getModel("emphasis");if("add"===t){var _=f[n]=new y4;c=new Khe({shape:{points:d,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),_.add(c),a.add(_),e.isAnimationEnabled()&&c.setClipPath(function(e,t,n){var r=new k9({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ete(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(c.getBoundingRect(),e,function(){c.removeClipPath()}))}else{_=l[s];c=_.childAt(0),a.add(_),f[n]=_,$ee(c,{shape:{points:d,stackedOnPoints:h}},e),ate(c)}Nte(c,jte(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var k=c.getTextContent();k&&(k.x=w.x-x,k.y=w.y0+w.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),D7(c,e),I7(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else a.remove(l[n])}d.add(R0(h,this,"add")).update(R0(h,this,"update")).remove(R0(h,this,"remove")).execute(),this._layersSeries=o,this._layers=f},t.type="themeRiver",t}(moe);var rke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tme(R0(this.getData,this),R0(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=T8(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,l=0;l<i[o].dataList.length;++l){var u=i[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",_8).models[0].get("type"),r=M0(e.data,function(e){return void 0!==e[2]}),i=this.fixData(r||[]),a=[],o=this.nameMap=s1(),s=0,l=0;l<i.length;++l)a.push(i[l][2]),o.get(i[l][2])||(o.set(i[l][2],s),s++);var u=zue(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:gue(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new Fue(u,this);return c.initData(i),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),a=T8(n,function(t){return e.get("name",t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){N0(e)||(e=e?[e]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=a[l].indices.length,f=0;f<d;++f){var h=i.get(e[0],a[l].indices[f]),p=Math.abs(h-t);p<=u&&(r=h,u=p,c=a[l].indices[f])}o.push(c)}return{dataIndices:o,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return Vae("nameValue",{name:r.getName(e),value:r.get(r.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(roe);function ike(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get("boundaryGap"),o=n.getAxis();(r.boundaryGap=a,"horizontal"===o.orient)?(a[0]=C4(a[0],i.height),a[1]=C4(a[1],i.height),ake(t,e,i.height-a[0]-a[1])):(a[0]=C4(a[0],i.width),a[1]=C4(a[1],i.width),ake(t,e,i.width-a[0]-a[1]));t.setLayout("layoutInfo",r)})}function ake(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=P0(a,function(t){return P0(t.indices,function(t){var n=i.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n})}),u=function(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<n;++c){var d=r[c]+i[c];d>a&&(a=d)}return{y0:i,max:a}}(l),c=u.y0,d=n/u.max,f=a.length,h=a[0].indices.length,p=0;p<h;++p){r=c[p]*d,e.setItemLayout(a[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:r,y:l[0][p][1]*d});for(var m=1;m<f;++m)r+=l[m-1][p][1]*d,e.setItemLayout(a[m].indices[p],{layerIndex:m,x:l[m][p][0],y0:r,y:l[m][p][1]*d})}}var oke=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=2,a.textConfig={inside:!0},B9(a).seriesIndex=n.seriesIndex;var o=new T9({z2:4,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return e0(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;B9(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),u=k0({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=ele(d,i));var f=xpe(o.getModel("itemStyle"),u,!0);k0(u,f),I0(G9,function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=xpe(n,u);r&&(t.shape=r)}),e?(a.setShape(u),a.shape.r=l.r0,ete(a,{shape:{r:l.r}},n,t.dataIndex)):($ee(a,{shape:u},n),ate(a)),a.useStyle(c),this._updateLabel(n);var h=o.getShallow("cursor");h&&a.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus");I7(this,"relative"===p?l1(t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,c=u.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,h=r.get("show")&&!(null!=f&&Math.abs(a)<f);function p(e,t){var n=e.get(t);return null==n?r.get(t):n}c.ignore=!h,I0(Y9,function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),h="normal"===r,m=h?c:c.ensureState(r),v=e.getFormattedLabel(d,r);h&&(v=v||t.node.name),m.style=Fte(f,{},null,"normal"!==r,!0),v&&(m.style.text=v);var g=f.get("show");null==g||h||(m.ignore=!g);var y,b=p(f,"position"),w=h?u:u.states[r],x=w.style.fill;w.textConfig={outsideFill:"inherit"===f.get("color")?x:null,inside:"outside"!==b};var S=p(f,"distance")||0,_=p(f,"align"),k=p(f,"rotate"),A=.5*Math.PI,C=1.5*Math.PI,T=Z6("tangential"===k?Math.PI/2-o:o),O=T>A&&!L4(T-A)&&T<C;"outside"===b?(y=i.r+S,_=O?"right":"left"):_&&"center"!==_?"left"===_?(y=i.r0+S,_=O?"right":"left"):"right"===_&&(y=i.r-S,_=O?"left":"right"):(y=a===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,_="center"),m.style.align=_,m.style.verticalAlign=p(f,"verticalAlign")||"middle",m.x=y*s+i.cx,m.y=y*l+i.cy;var I=0;"radial"===k?I=Z6(-o)+(O?Math.PI:0):"tangential"===k?I=Z6(Math.PI/2-o)+(O?Math.PI:0):B0(k)&&(I=k*Math.PI/180),m.rotation=Z6(I)}),c.dirtyStyle()},t}(See),ske="sunburstRootToNode",lke="sunburstHighlight";var uke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode(function(e){c.push(e)});var d,f,h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(e){return e.getId()}function c(s,c){!function(r,i){u||!r||r.getValue()||(r=null);if(r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):function(e){if(!e)return;e.piece&&(l.remove(e.piece),e.piece=null)}(i);else if(r){var s=new oke(r,e,t,n);l.add(s),a.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}new pue(i,r,s,s).add(c).update(c).remove(L0(c,null)).execute()}(c,h),d=o,(f=s).depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,d,e,t,n):(i.virtualPiece=new oke(d,e,t,n),l.add(i.virtualPiece)),f.piece.off("click"),i.virtualPiece.on("click",function(e){i._rootToNode(f.parentNode)})):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o)nre(o,a.get("target",!0)||"_blank")}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ske,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="sunburst",t}(moe),cke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return e0(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};dke(n);var r=this._levelModels=P0(e.levels||[],function(e){return new one(e,this,t)},this),i=wye.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e})});return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=kye(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Pye(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(roe);function dke(e){var t=0;I0(e.children,function(e){dke(e);var n=e.value;N0(n)&&(n=n[0]),t+=n});var n=e.value;N0(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),N0(e.value)?e.value[0]=n:e.value=n}var fke=Math.PI/180;function hke(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),r=e.get("radius");N0(r)||(r=[0,r]),N0(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=C4(t[0],i),l=C4(t[1],a),u=C4(r[0],o/2),c=C4(r[1],o/2),d=-e.get("startAngle")*fke,f=e.get("minAngle")*fke,h=e.getData().tree.root,p=e.getViewRoot(),m=p.depth,v=e.get("sort");null!=v&&pke(p,v);var g=0;I0(p.children,function(e){!isNaN(e.getValue())&&g++});var y=p.getValue(),b=Math.PI/(y||g)*2,w=p.depth>0,x=p.height-(w?-1:1),S=(c-u)/(x||1),_=e.get("clockwise"),k=e.get("stillShowZeroSum"),A=_?1:-1,C=function(t,n){if(t){var r=n;if(t!==h){var i=t.getValue(),a=0===y&&k?b:i*b;a<f&&(a=f),r=n+A*a;var c=t.depth-m-(w?-1:1),d=u+S*c,p=u+S*(c+1),v=e.getLevelModel(t);if(v){var g=v.get("r0",!0),x=v.get("r",!0),T=v.get("radius",!0);null!=T&&(g=T[0],x=T[1]),null!=g&&(d=C4(g,o/2)),null!=x&&(p=C4(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:_,cx:s,cy:l,r0:d,r:p})}if(t.children&&t.children.length){var O=0;I0(t.children,function(e){O+=C(e,n+O)})}return r-n}};if(w){var T=u,O=u+S,I=2*Math.PI;h.setLayout({angle:I,startAngle:d,endAngle:d+I,clockwise:_,cx:s,cy:l,r0:T,r:O})}C(p,d)})}function pke(e,t){var n=e.children||[];e.children=function(e,t){if(j0(t)){var n=P0(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),P0(n,function(t){return e[t.index]})}var r="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}(n,t),n.length&&I0(e.children,function(e){pke(e,t)})}function mke(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var a=i.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=function(e,n,r){for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&F0(a)&&(a=R3(a,(e.depth-1)/(r-1)*.5)),a}(i,e,r.root.height)),k0(n.ensureUniqueItemVisual(i.dataIndex,"style"),a)})})}var vke={color:"fill",borderColor:"stroke"},gke={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},yke=b8(),bke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Yue(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=yke(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(roe);function wke(e,t){return t=t||[0,0],P0(["x","y"],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function xke(e,t){return t=t||[0,0],P0([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function Ske(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function _ke(e,t){return t=t||[0,0],P0(["Radius","Angle"],function(n,r){var i=this["get"+n+"Axis"](),a=t[r],o=e[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o));return"Angle"===n&&(s=s*Math.PI/180),s},this)}var kke={};function Ake(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||d1(e,"text")))}function Cke(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},d1(o,"text")&&(a.text=o.text),d1(o,"rich")&&(a.rich=o.rich),d1(o,"textFill")&&(a.fill=o.textFill),d1(o,"textStroke")&&(a.stroke=o.textStroke),d1(o,"fontFamily")&&(a.fontFamily=o.fontFamily),d1(o,"fontSize")&&(a.fontSize=o.fontSize),d1(o,"fontStyle")&&(a.fontStyle=o.fontStyle),d1(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,silent:!0},r={};var s=d1(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),d1(o,"textPosition")&&(r.position=o.textPosition),d1(o,"textOffset")&&(r.offset=o.textOffset),d1(o,"textRotation")&&(r.rotation=o.textRotation),d1(o,"textDistance")&&(r.distance=o.textDistance)}return Tke(a,e),I0(a.rich,function(e){Tke(e,e)}),{textConfig:r,textContent:i}}function Tke(e,t){t&&(t.font=t.textFont||t.font,d1(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),d1(t,"textAlign")&&(e.align=t.textAlign),d1(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),d1(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),d1(t,"textWidth")&&(e.width=t.textWidth),d1(t,"textHeight")&&(e.height=t.textHeight),d1(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),d1(t,"textPadding")&&(e.padding=t.textPadding),d1(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),d1(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),d1(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),d1(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),d1(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),d1(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),d1(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Oke(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=e.fill||"#000";Ike(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,I0(t.rich,function(e){Ike(e,e)}),r}function Ike(e,t){t&&(d1(t,"fill")&&(e.textFill=t.fill),d1(t,"stroke")&&(e.textStroke=t.fill),d1(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),d1(t,"font")&&(e.font=t.font),d1(t,"fontStyle")&&(e.fontStyle=t.fontStyle),d1(t,"fontWeight")&&(e.fontWeight=t.fontWeight),d1(t,"fontSize")&&(e.fontSize=t.fontSize),d1(t,"fontFamily")&&(e.fontFamily=t.fontFamily),d1(t,"align")&&(e.textAlign=t.align),d1(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),d1(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),d1(t,"width")&&(e.textWidth=t.width),d1(t,"height")&&(e.textHeight=t.height),d1(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),d1(t,"padding")&&(e.textPadding=t.padding),d1(t,"borderColor")&&(e.textBorderColor=t.borderColor),d1(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),d1(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),d1(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),d1(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),d1(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),d1(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),d1(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),d1(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),d1(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),d1(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Pke(e,t){var n=e+"^_^"+t;kke[n]||(kke[n]=!0)}var Eke={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Mke=D0(Eke),Dke=E0(J5,function(e,t){return e[t]=1,e},{}),Rke=J5.join(", "),Lke=["","style","shape","extra"],Nke=b8();function jke(e,t,n,r,i){var a=e+"Animation",o=Jee(e,r,i)||{},s=Nke(t).userDuring;return o.duration>0&&(o.during=s?R0(Gke,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),k0(o,n[a]),o}function Fke(e,t,n,r){var i=(r=r||{}).dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Nke(e),u=t.style;l.userDuring=t.during;var c={},d={};if(function(e,t,n){for(var r=0;r<Mke.length;r++){var i=Mke[r],a=Eke[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<J5.length;r++){var s=J5[r];null!=t[s]&&(n[s]=t[s])}}(0,t,d),Kke("shape",t,d),Kke("extra",t,d),!a&&s&&(function(e,t,n){for(var r=t.transition,i=Vke(r)?J5:a8(r||[]),a=0;a<i.length;a++){var o=i[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=e[o];Hke(o,"el.transition"),n[o]=s}}}(e,t,c),Yke("shape",e,t,c),Yke("extra",e,t,c),function(e,t,n,r){if(!n)return;var i,a=e.style;if(a){var o=n.transition,s=t.transition;if(o&&!Vke(o)){var l=a8(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=a[p=l[u]];i[p]=c}}else if(e.getAnimationStyleProps&&(Vke(s)||Vke(o)||C0(s,"style")>=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!i&&(i=r.style={});var h=D0(n);for(u=0;u<h.length;u++){var p;if(f[p=h[u]]){c=a[p];i[p]=c}}}}}}(e,t,u,c)),d.style=u,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,d,o),function(e,t){d1(t,"silent")&&(e.silent=t.silent),d1(t,"ignore")&&(e.ignore=t.ignore),e instanceof u6&&d1(t,"invisible")&&(e.invisible=t.invisible);e instanceof f9&&d1(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(a){var f={};I0(Lke,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),k0(e?f[e]:f,n.enterFrom))});var h=jke("enter",e,t,n,i);h.duration>0&&e.animateFrom(f,h)}else!function(e,t,n,r,i){if(i){var a=jke("update",e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}(e,t,i||0,n,c);zke(e,t),u?e.dirty():e.markRedraw()}function zke(e,t){for(var n=Nke(e).leaveToProps,r=0;r<Lke.length;r++){var i=Lke[r],a=i?t[i]:t;a&&a.leaveTo&&(n||(n=Nke(e).leaveToProps={}),i&&(n[i]=n[i]||{}),k0(i?n[i]:n,a.leaveTo))}}function Bke(e,t,n,r){if(e){var i=e.parent,a=Nke(e).leaveToProps;if(a){var o=jke("update",e,t,n,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function Vke(e){return"all"===e}var Hke,Wke={},Uke={setTransform:function(e,t){return $0(d1(Dke,e),"Only "+Rke+" available in `setTransform`."),Wke.el[e]=t,this},getTransform:function(e){return $0(d1(Dke,e),"Only "+Rke+" available in `getTransform`."),Wke.el[e]},setShape:function(e,t){Xke(e);var n=Wke.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){Xke(e);var t=Wke.el.shape;if(t)return t[e]},setStyle:function(e,t){Xke(e);var n=Wke.el,r=n.style;return r&&(Y0(t)&&Z4("style."+e+" must not be assigned with NaN."),r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){Xke(e);var t=Wke.el.style;if(t)return t[e]},setExtra:function(e,t){return Xke(e),(Wke.el.extra||(Wke.el.extra={}))[e]=t,this},getExtra:function(e){Xke(e);var t=Wke.el.extra;if(t)return t[e]}};function Xke(e){if("transition"===e||"enterFrom"===e||"leaveTo"===e)throw new Error('key must not be "'+e+'"')}function Gke(){var e=this,t=e.el;if(t){var n=Nke(t).userDuring,r=e.userDuring;n===r?(Wke.el=t,r(Uke)):e.el=e.userDuring=null}}function Yke(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[e]={}),Vke(l))k0(a,o);else for(var u=a8(l),c=0;c<u.length;c++){var d=o[h=u[c]];a[h]=d}else if(Vke(s)||C0(s,e)>=0){!a&&(a=r[e]={});var f=D0(o);for(c=0;c<f.length;c++){var h;d=o[h=f[c]];qke(i[h],d)&&(a[h]=d)}}}}}function Kke(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=D0(r),o=0;o<a.length;o++){var s=a[o];i[s]=d5(r[s])}}function qke(e,t){return O0(e)?e!==t:null!=e&&isFinite(e)}Hke=function(e,t){d1(Dke,e)||Z4("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+D0(Dke).join("`, `")+"` are permitted.")};var Zke=b8(),Jke=["percent","easing","shape","style","extra"];function Qke(e){e.stopAnimation("keyframe"),e.attr(Zke(e))}function $ke(e,t,n){if(n.isAnimationEnabled()&&t)if(N0(t))I0(t,function(t){$ke(e,t,n)});else{var r=t.keyframes,i=t.duration;if(n&&null==i){var a=Jee("enter",n,0);i=a&&a.duration}if(r&&i){var o=Zke(e);I0(Lke,function(n){if(!n||e[n]){var a,s=!1;r.sort(function(e,t){return e.percent-t.percent}),I0(r,function(r){var l=e.animators,u=n?r[n]:r;if(r.percent>=1&&(s=!0),u){var c=D0(u);if(n||(c=M0(c,function(e){return C0(Jke,e)<0})),c.length){a||((a=e.animate(n,t.loop,!0)).scope="keyframe");for(var d=0;d<l.length;d++)l[d]!==a&&l[d].targetName===a.targetName&&l[d].stopTracks(c);n&&(o[n]=o[n]||{});var f=n?o[n]:o;I0(c,function(t){f[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,u,c,r.easing)}}}),a&&(s||Z4("End frame with percent: 1 is missing in the keyframeAnimation.",!0),a.delay(t.delay||0).duration(i).start(t.easing))}})}}}var eAe="emphasis",tAe="normal",nAe="blur",rAe="select",iAe=[tAe,eAe,nAe,rAe],aAe={normal:["itemStyle"],emphasis:[eAe,"itemStyle"],blur:[nAe,"itemStyle"],select:[rAe,"itemStyle"]},oAe={normal:["label"],emphasis:[eAe,"label"],blur:[nAe,"label"],select:[rAe,"label"]},sAe=["x","y"],lAe={normal:{},emphasis:{},blur:{},select:{}},uAe={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R0(wke,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:R0(xke,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R0(Ske,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:R0(_ke,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function cAe(e){return e instanceof f9}function dAe(e){return e instanceof u6}var fAe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=gAe(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){bAe(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Bke(n,yke(n).option,e)}).update(function(t,l){var u=i.getItemGraphicEl(l);bAe(n,u,t,s(t,r),e,o,a)}).execute();var l=e.get("clip",!0)?Jhe(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=gAe(t,a,n,r),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=bAe(null,null,u,o(u,i),t,this.group,a);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){Ete(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type="custom",t}(moe);function hAe(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=IAe(r);t=fte(a,null,i,r.layout||"center"),yke(t).customPathData=a}else if("image"===n)t=new g9({}),yke(t).customImagePath=e.style.image;else if("text"===n)t=new T9({});else if("group"===n)t=new y4;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=dte(n);if(!o){t8('graphic type "'+n+'" can not be found.')}t=new o}return yke(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function pAe(e,t,n,r,i,a,o){Qke(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&null==r.transition&&(r.transition=sAe);var l=r&&r.style;if(l){if("text"===t.type){var u=l;d1(u,"textFill")&&(u.fill=u.textFill),d1(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=cAe(t)?l.decal:null;e&&d&&(d.dirty=!0,c=ele(d,e)),l.__decalPattern=c}dAe(t)&&(l&&(c=l.__decalPattern)&&(l.decal=c));Fke(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),$ke(t,r.keyframeAnimation,a)}function mAe(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(!1===r){var l=a.getState(e);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),f7(a)}}function vAe(e,t,n){var r=n===tAe,i=r?t:_Ae(t,n),a=i?i.z2:null;null!=a&&((r?e:e.ensureState(n)).z2=a||0)}function gAe(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&($0(i,"series.render is required."),$0(a.prepareCustoms||uAe[a.type],"This coordSys does not support custom series."),o=a.prepareCustoms?a.prepareCustoms(a):uAe[a.type](a));for(var s,l,u=A0({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,r){Pke("api.style","Please write literal style directly instead."),null==r&&(r=s);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,l=y(r,tAe).getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var u={inheritColor:F0(a)?a:"#000"},c=b(r,tAe),d=Fte(c,null,u,!1,!0);d.text=c.getShallow("show")?q0(e.getFormattedLabel(r,tAe),Ehe(t,r)):null;var f=zte(c,u,!1);return x(n,l),l=Oke(l,d,f),n&&w(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a},styleEmphasis:function(n,r){Pke("api.styleEmphasis","Please write literal style directly instead."),null==r&&(r=s);var i=y(r,eAe).getItemStyle(),a=b(r,eAe),o=Fte(a,null,null,!0,!0);o.text=a.getShallow("show")?Z0(e.getFormattedLabel(r,eAe),e.getFormattedLabel(r,tAe),Ehe(t,r)):null;var l=zte(a,null,!0);return x(n,i),i=Oke(i,o,l),n&&w(i,n),i.legacy=!0,i},visual:function(e,n){if(null==n&&(n=s),d1(vke,e)){var r=t.getItemVisual(n,"style");return r?r[vke[e]]:null}if(d1(gke,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===a.type){return function(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(A0({bandWidth:i,axisKey:r,stackId:fce+a},e));var o=gce(t),s=[];for(a=0;a<e.count;a++){var l=o[r][fce+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(A0({axis:a.getBaseAxis()},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return Ute(e,n)}},o.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:yAe(e.getData())},d={},f={},h={},p={},m=0;m<iAe.length;m++){var v=iAe[m];h[v]=e.getModel(aAe[v]),p[v]=e.getModel(oAe[v])}function g(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=g(e).getModel(aAe[n])):g(e).getModel(aAe[n]):h[n]}function b(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=g(e).getModel(oAe[n])):g(e).getModel(oAe[n]):p[n]}return function(e,n){return s=e,l=null,d={},f={},i&&i(A0({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function w(e,t){for(var n in t)d1(t,n)&&(e[n]=t[n])}function x(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function yAe(e){var t={};return I0(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(t[i]=t[i]||[])[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function bAe(e,t,n,r,i,a,o){if(r){var s=wAe(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&I7(s,r.focus,r.blurScope,r.emphasisDisabled),s}a.remove(t)}function wAe(e,t,n,r,i,a){$0(r,"should not have an null/undefined element setting");var o=-1,s=t;t&&xAe(t,r,i)&&(o=C0(a.childrenRef(),t),t=null);var l,u,c=!t,d=t;d?d.clearStates():(d=hAe(r),s&&(l=s,(u=d).copyTransform(l),dAe(u)&&dAe(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,cAe(u)&&cAe(l)&&u.setShape(l.shape)))),!1===r.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),lAe.normal.cfg=lAe.normal.conOpt=lAe.emphasis.cfg=lAe.emphasis.conOpt=lAe.blur.cfg=lAe.blur.conOpt=lAe.select.cfg=lAe.select.conOpt=null,lAe.isLegacy=!1,function(e,t,n,r,i,a){if(e.isGroup)return;SAe(n,null,a),SAe(n,eAe,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=hAe(o),e.setTextContent(c)),pAe(null,c,t,o,null,r,i);for(var d=o&&o.style,f=0;f<iAe.length;f++){var h=iAe[f];if(h!==tAe){var p=a[h].conOpt;mAe(h,c,0,kAe(o,p,h),null)}}d?c.dirty():c.markRedraw()}}}(d,n,r,i,c,lAe),function(e,t,n,r,i){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&xAe(o,a,r)&&(o=null),o||($0(cAe(o=hAe(a)),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),pAe(null,o,t,a,null,r,i)}}(d,n,r,i,c),pAe(e,d,n,r,lAe,i,c),d1(r,"info")&&(yke(d).info=r.info);for(var f=0;f<iAe.length;f++){var h=iAe[f];if(h!==tAe){var p=_Ae(r,h);mAe(h,d,0,kAe(r,p,h),lAe)}}return function(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;null!=o&&(r.z2=o||0);for(var s=0;s<iAe.length;s++)vAe(r,t,iAe[s])}}(d,r,i),"group"===r.type&&function(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!o&&!l&&!u)return;if(l)return c={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t},void new pue(c.oldChildren,c.newChildren,CAe,CAe,c).add(TAe).update(TAe).remove(OAe).execute();var c;u&&t.removeAll();for(var d=0;d<o;d++){var f=a[d],h=t.childAt(d);f?(null==f.ignore&&(f.ignore=!1),wAe(e,h,n,f,i,t)):($0(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var p=t.childCount()-1;p>=d;p--){var m=t.childAt(p);AAe(t,m,i)}}(e,d,n,r,i),o>=0?a.replaceAt(d,o):a.add(d),d}function xAe(e,t,n){var r,i=yke(e),a=t.type,o=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&((r=o)&&(d1(r,"pathData")||d1(r,"d")))&&IAe(o)!==i.customPathData||"image"===a&&d1(s,"image")&&s.image!==i.customImagePath}function SAe(e,t,n){var r=t?_Ae(e,t):e,i=t?kAe(e,r,eAe):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?_Ae(s,t):s:null;if(i&&(n.isLegacy||Ake(i,a,!!o,!!l))){n.isLegacy=!0;var u=Cke(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),$0("text"===c.type,'textContent.type must be "text"')}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=l}function _Ae(e,t){return t?e?e[t]:null:e}function kAe(e,t,n){var r=t&&t.style;return null==r&&n===eAe&&e&&(r=e.styleEmphasis),r}function AAe(e,t,n){t&&Bke(t,yke(e).option,n)}function CAe(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function TAe(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;wAe(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function OAe(e){var t=this.context,n=t.oldChildren[e];n&&Bke(n,yke(n).option,t.seriesModel)}function IAe(e){return e&&(e.pathData||e.d)}var PAe=b8(),EAe=x0,MAe=R0,DAe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=L0(RAe,t,c);this.updatePointerEl(o,l,d),this.updateLabelEl(o,l,d,t)}else o=this._group=new y4,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);FAe(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=Vme(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=PAe(e).pointerEl=new Mte[i.type](EAe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=PAe(e).labelEl=new T9(EAe(t.label));e.add(i),NAe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=PAe(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=PAe(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),NAe(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Ate(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){$1(e.event)},onmousedown:MAe(this._onHandleDragMove,this,0,0),drift:MAe(this._onHandleDragMove,this),ondragend:MAe(this._onHandleDragEnd,this)}),r.add(i)),FAe(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");N0(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Aoe(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){RAe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,jAe(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(jAe(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(jAe(r)),PAe(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Coe(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function RAe(e,t,n,r){LAe(PAe(n).lastProp,r)||(PAe(n).lastProp=r,t?$ee(n,r,e):(n.stopAnimation(),n.attr(r)))}function LAe(e,t){if(V0(e)&&V0(t)){var n=!0;return I0(t,function(t,r){n=n&&LAe(e[r],t)}),!!n}return e===t}function NAe(e,t){e[t.get(["label","show"])?"show":"hide"]()}function jAe(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function FAe(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}function zAe(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function BAe(e,t,n,r,i){var a=VAe(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),o=n.getModel("label"),s=Zne(o.get("padding")||0),l=o.getFont(),u=n4(a,l),c=i.position,d=u.width+s[1]+s[3],f=u.height+s[0]+s[2],h=i.align;"right"===h&&(c[0]-=d),"center"===h&&(c[0]-=d/2);var p=i.verticalAlign;"bottom"===p&&(c[1]-=f),"middle"===p&&(c[1]-=f/2),function(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,f,r);var m=o.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Fte(o,{text:a,font:l,fill:o.getTextColor(),padding:s,backgroundColor:m}),z2:10}}function VAe(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:qce(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I0(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),F0(o)?a=o.replace("{value}",a):j0(o)&&(a=o(s))}return a}function HAe(e,t,n){var r=[1,0,0,1,0,0];return u2(r,r,n.rotation),l2(r,r,n.position),wte([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function WAe(e,t,n,r,i,a){var o=Dme.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),BAe(t,r,i,a,{position:HAe(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function UAe(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function XAe(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function GAe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var YAe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=KAe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var c=zAe(r),d=qAe[s](a,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}WAe(t,e,_me(o.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=_me(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=HAe(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=KAe(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(DAe);function KAe(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var qAe={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:UAe([t,n[0]],[t,n[1]],ZAe(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:XAe([t-r/2,n[0]],[r,i],ZAe(e))}}};function ZAe(e){return"x"===e.dim?0:1}var JAe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(mre),QAe=b8(),$Ae=I0;function eCe(e,t,n){if(!n0.node){var r=t.getZr();QAe(r).records||(QAe(r).records={}),function(e,t){if(QAe(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);$Ae(QAe(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}QAe(e).initialized=!0,n("click",L0(nCe,"click")),n("mousemove",L0(nCe,"mousemove")),n("globalout",tCe)}(r,t),(QAe(r).records[e]||(QAe(r).records[e]={})).handler=n}}function tCe(e,t,n){e.handler("leave",null,n)}function nCe(e,t,n,r){t.handler(e,n,r)}function rCe(e,t){if(!n0.node){var n=t.getZr();(QAe(n).records||{})[e]&&(QAe(n).records[e]=null)}}var iCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";eCe("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){rCe("axisPointer",t)},t.prototype.dispose=function(e,t){rCe("axisPointer",t)},t.type="axisPointer",t}(doe);function aCe(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=y8(a,e);if(null==o||o<0||N0(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,f="x"===c||"radius"===c?1:0,h=a.mapDimension(d),p=[];p[f]=a.get(h,o),p[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(P0(l.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var oCe=b8();function sCe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R0(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){fCe(i)&&(i=aCe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=fCe(i),u=a.axesInfo,c=s.axesInfo,d="leave"===r||fCe(i),f={},h={},p={list:[],map:{}},m={showPointer:L0(uCe,h),showTooltip:L0(cCe,p)};I0(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);I0(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!d&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=r.pointToData(i)),null!=o&&lCe(e,o,m,!1,f)}})});var v={};return I0(c,function(e,t){var n=e.linkGroup;n&&!h[t]&&I0(n.axesInfo,function(t,r){var i=h[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,dCe(t),dCe(e)))),v[e.key]=a}})}),I0(v,function(e,t){lCe(c[t],e,m,!0,f)}),function(e,t,n){var r=n.axesInfo=[];I0(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(h,c,f),function(e,t,n,r){if(fCe(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(p,i,e,o),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=oCe(r)[i]||{},o=oCe(r)[i]={};I0(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&I0(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e})});var s=[],l=[];I0(a,function(e,t){!o[t]&&l.push(e)}),I0(o,function(e,t){!a[t]&&s.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),f}}function lCe(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=function(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I0(t.seriesModels,function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);c=f.dataIndices,u=f.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,p=Math.abs(h);p<=o&&((p<o||h>=0&&s<0)&&(o=p,s=h,i=u,a.length=0),I0(c,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==i.seriesIndex&&k0(i,s[0]),!r&&e.snap&&a.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}else n.showPointer(e,t)}function uCe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function cCe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=Wme(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function dCe(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function fCe(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function hCe(e){Xme.registerAxisPointerClass("CartesianAxisPointer",YAe),e.registerComponentModel(JAe),e.registerComponentView(iCe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N0(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=zme(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sCe)}var pCe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=r.get("type");if(u&&"none"!==u){var c=zAe(r),d=mCe[u](a,o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var f=function(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===a.dim){var f=[1,0,0,1,0,0];u2(f,f,s),l2(f,f,[r.cx,r.cy]),l=wte([o,-i],f);var h=t.getModel("axisLabel").get("rotate")||0,p=Dme.innerTextLayout(s,h*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var m=d[1];l=r.coordToPoint([m+i,o]);var v=r.cx,g=r.cy;u=Math.abs(l[0]-v)/m<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-g)/m<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(t,n,0,o,r.get(["label","margin"]));BAe(e,n,r,i,f)},t}(DAe);var mCe={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:UAe(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:GAe(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:GAe(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},vCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(mre),gCe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",_8).models[0]},t.type="polarAxis",t}(mre);T0(gCe,ede);var yCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="angleAxis",t}(gCe),bCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="radiusAxis",t}(gCe),wCe=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return e0(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ade);wCe.prototype.dataToRadius=Ade.prototype.dataToCoord,wCe.prototype.radiusToData=Ade.prototype.coordToData;var xCe=b8(),SCe=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return e0(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),l=n4(null==a?"":a+"",t.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),d=xCe(e.model),f=d.lastAutoInterval,h=d.lastTickCount;return null!=f&&null!=h&&Math.abs(f-c)<=1&&Math.abs(h-i)<=1&&f>c?c=f:(d.lastTickCount=i,d.lastAutoInterval=c),c},t}(Ade);SCe.prototype.dataToAngle=Ade.prototype.dataToCoord,SCe.prototype.angleToData=Ade.prototype.coordToData;var _Ce=["radius","angle"],kCe=function(){function e(e){this.dimensions=_Ce,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new wCe,this._angleAxis=new SCe,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<a?1:-1;l<a||l>o;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return ACe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ACe(t)===this?this.pointToData(n):null},e}();function ACe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function CCe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();I0($ce(t,"radius"),function(e){i.scale.unionExtentFromData(t,e)}),I0($ce(t,"angle"),function(e){r.scale.unionExtentFromData(t,e)})}}),Gce(r.scale,r.model),Gce(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function TCe(e,t){var n;if(e.type=t.get("type"),e.scale=Yce(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var OCe={dimensions:_Ce,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,r){var i=new kCe(r+"");i.update=CCe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");TCe(a,s),TCe(o,l),function(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=C4(r[0],i),e.cy=C4(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");null==l?l=[0,"100%"]:N0(l)||(l=[0,l]);var u=[C4(l[0],s),C4(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",_8).models[0];if(!t)throw new Error('Polar "'+K0(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=t.coordinateSystem}}),n}},ICe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function PCe(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function ECe(e){return e.getRadiusAxis().inverse?0:1}function MCe(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var DCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return e0(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=P0(n.getViewLabels(),function(e){e=x0(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});MCe(s),MCe(a),I0(ICe,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||RCe[t](this.group,e,r,a,o,i,s)},this)}},t.type="angleAxis",t}(Xme),RCe={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),d=ECe(n),f=d?0:1,h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(o=0===a[f]?new Mte[h]({shape:{cx:n.cx,cy:n.cy,r:a[d],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new kee({shape:{cx:n.cx,cy:n.cy,r:a[d],r0:a[f]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(o)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[ECe(n)],u=P0(r,function(e){return new Mee({shape:PCe(n,[l,l+s],e.coord)})});e.add(mte(u,{style:A0(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[ECe(n)],c=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)c.push(new Mee({shape:PCe(n,[u,u+l],i[d][f].coord)}));e.add(mte(c,{style:A0(s.getModel("lineStyle").getLineStyle(),A0(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");I0(o,function(r,i){var o=l,d=r.tickValue,f=a[ECe(n)],h=n.coordToPoint([f+u,r.coord]),p=n.cx,m=n.cy,v=Math.abs(h[0]-p)/f<.3?"center":h[0]>p?"left":"right",g=Math.abs(h[1]-m)/f<.3?"middle":h[1]>m?"top":"bottom";if(s&&s[d]){var y=s[d];V0(y)&&y.textStyle&&(o=new one(y.textStyle,l,l.ecModel))}var b=new T9({silent:Dme.isLabelSilent(t),style:Fte(o,{x:h[0],y:h[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:g})});if(e.add(b),c){var w=Dme.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,B9(b).eventData=w}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new Mee({shape:PCe(n,a,r[c].coord)}))}for(c=0;c<u.length;c++)e.add(mte(u[c],{style:A0({stroke:s[c%s.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new Mee({shape:PCe(n,a,i[l][u].coord)}));e.add(mte(s,{style:o.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,d=-r[0].coord*c,f=Math.min(a[0],a[1]),h=Math.max(a[0],a[1]),p=t.get("clockwise"),m=1,v=r.length;m<=v;m++){var g=m===v?r[0].coord:r[m].coord,y=l++%s.length;u[y]=u[y]||[],u[y].push(new See({shape:{cx:n.cx,cy:n.cy,r0:f,r:h,startAngle:d,endAngle:-g*c,clockwise:p},silent:!0})),d=-g*c}for(m=0;m<u.length;m++)e.add(mte(u[m],{style:A0({fill:s[m%s.length]},o.getAreaStyle()),silent:!0}))}}},LCe=["axisLine","axisTickLabel","axisName"],NCe=["splitLine","splitArea","minorSplitLine"],jCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return e0(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new y4;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=o.getExtent()[0],c=i.getExtent(),d=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(a,e,u),f=new Dme(e,d);I0(LCe,f.add,f),r.add(f.getGroup()),_te(n,r,e),I0(NCe,function(t){e.get([t,"show"])&&!i.scale.isBlank()&&FCe[t](this.group,e,a,u,c,s,l)},this)}},t.type="radiusAxis",t}(Xme),FCe={splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],p=0;p<a.length;p++){var m=l++%s.length;h[m]=h[m]||[],h[m].push(new Mte[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[p].coord,0),startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse}}))}for(p=0;p<h.length;p++)e.add(mte(h[p],{style:A0({stroke:s[p%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new aee({shape:{cx:n.cx,cy:n.cy,r:o[u][c].coord}}));e.add(mte(l,{style:A0({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=a[0].coord,d=1;d<a.length;d++){var f=l++%s.length;u[f]=u[f]||[],u[f].push(new See({shape:{cx:n.cx,cy:n.cy,r0:c,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=a[d].coord}for(d=0;d<u.length;d++)e.add(mte(u[d],{style:A0({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function zCe(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function BCe(e,t){return t.dim+e.model.componentIndex}function VCe(e,t,n){var r={},i=function(e){var t={};I0(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=BCe(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[o]=u;var d=zCe(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var f=C4(e.get("barWidth"),l),h=C4(e.get("barMaxWidth"),l),p=e.get("barGap"),m=e.get("barCategoryGap");f&&!c[d].width&&(f=Math.min(u.remainedWidth,f),c[d].width=f,u.remainedWidth-=f),h&&(c[d].maxWidth=h),null!=p&&(u.gap=p),null!=m&&(u.categoryGap=m)});var n={};return I0(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=C4(e.categoryGap,i),o=C4(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),I0(r,function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)}),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var c,d=0;I0(r,function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+o)}),c&&(d-=c.width*o);var f=-d/2;I0(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}(M0(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}));t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=BCe(n,a),s=zCe(e),l=i[o][s],u=l.offset,c=l.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,h=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,m=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=t.mapDimension(d.dim),g=t.mapDimension(a.dim),y=Xue(t,v),b="radius"!==a.dim||!e.get("roundCap",!0),w=d.model.get("startValue"),x=d.dataToCoord(w||0),S=0,_=t.count();S<_;S++){var k=t.get(v,S),A=t.get(g,S),C=k>=0?"p":"n",T=x;y&&(r[s][A]||(r[s][A]={p:x,n:x}),T=r[s][A][C]);var O=void 0,I=void 0,P=void 0,E=void 0;if("radius"===d.dim){var M=d.dataToCoord(k)-x,D=a.dataToCoord(A);Math.abs(M)<p&&(M=(M<0?-1:1)*p),O=T,I=T+M,E=(P=D-u)-c,y&&(r[s][A][C]=I)}else{var R=d.dataToCoord(k,b)-x,L=a.dataToCoord(A);Math.abs(R)<m&&(R=(R<0?-1:1)*m),I=(O=L+u)+c,P=T,E=T+R,y&&(r[s][A][C]=E)}t.setItemLayout(S,{cx:f,cy:h,r0:O,r:I,startAngle:-P*Math.PI/180,endAngle:-E*Math.PI/180,clockwise:P>=E})}}})}var HCe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},WCe={splitNumber:5},UCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="polar",t}(doe);function XCe(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),K0(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=t.rotate;return null==c&&(c=e.get(["axisLabel","rotate"])),i.labelRotation="top"===a?-c:c,i.z2=1,i}var GCe=["axisLine","axisTickLabel","axisName"],YCe=["splitArea","splitLine"],KCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return e0(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new y4;var s=XCe(t),l=new Dme(t,s);I0(GCe,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),I0(YCe,function(e){t.get([e,"show"])&&qCe[e](this,this.group,this._axisGroup,t)},this),_te(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){Kme(this)},t.type="singleAxis",t}(Xme),qCe={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),d=[],f=0,h=i.getTicksCoords({tickModel:a}),p=[],m=[],v=0;v<h.length;++v){var g=i.toGlobalCoord(h[v].coord);c?(p[0]=g,p[1]=u.y,m[0]=g,m[1]=u.y+u.height):(p[0]=u.x,p[1]=g,m[0]=u.x+u.width,m[1]=g);var y=new Mee({shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},silent:!0});gte(y.shape,l);var b=f++%s.length;d[b]=d[b]||[],d[b].push(y)}var w=o.getLineStyle(["color"]);for(v=0;v<d.length;++v)t.add(mte(d[v],{style:A0({stroke:s[v%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){Yme(e,n,r,r)}},ZCe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(mre);T0(ZCe,ede.prototype);var JCe=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}return e0(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Ade),QCe=["single"],$Ce=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=QCe,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new JCe(r,Yce(e),[0,0],e.get("type"),e.get("position")),a="category"===i.type;i.onBand=a&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();I0(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),Gce(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=lre({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return eTe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return eTe(t)===this?this.pointToData(n):null},e}();function eTe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var tTe={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var a=new $Ce(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",_8).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:QCe},nTe=["x","y"],rTe=["width","height"],iTe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=sTe(o,1-oTe(a)),l=o.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=zAe(r),d=aTe[u](a,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}WAe(t,e,XCe(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=XCe(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=HAe(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=oTe(i),s=sTe(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=sTe(a,1-o),c=(u[1]+u[0])/2,d=[c,c];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(DAe),aTe={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:UAe([t,n[0]],[t,n[1]],oTe(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:XAe([t-r/2,n[0]],[r,i],oTe(e))}}};function oTe(e){return e.isHorizontal()?0:1}function sTe(e,t){var n=e.getRect();return[n[nTe[t]],n[nTe[t]]+n[rTe[t]]]}var lTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="single",t}(doe);var uTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(t,n,r){var i=fre(t);e.prototype.init.apply(this,arguments),cTe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),cTe(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(mre);function cTe(e,t){var n,r=e.cellSize;1===(n=N0(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=P0([0,1],function(e){return function(e,t){return null!=e[are[t][0]]||null!=e[are[t][1]]&&null!=e[are[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});dre(e,t,{type:"box",ignoreSize:i})}var dTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new k9({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){f(u.formatedDate),0===c&&(u=a.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=a.getDateInfo(d)}function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}f(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Iee({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return F0(e)&&e?(n=e,I0(t,function(e,t){n=n.replace("{"+t+"}",e)}),n):j0(e)?e(t):t.nameMap;var n},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var h=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:f},m=this._formatterLabel(h,p),v=new T9({z2:30,style:Fte(i,{text:m}),silent:i.get("silent")});v.attr(this._yearTextPositionControl(v,d[o],n,o,a)),r.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];a&&!F0(a)||(a&&(t=gne(a)||t),a=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;o="start"===s?-o:o;for(var f="center"===l,h=i.get("silent"),p=0;p<u[c].length-1;p++){var m=u[c][p].slice(),v=this._firstDayOfMonth[p];if(f){var g=this._firstDayPoints[p];m[d]=(g[d]+u[0][p+1][d])/2}var y=i.get("formatter"),b=a[+v.m-1],w={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},x=this._formatterLabel(y,w),S=new T9({z2:30,style:k0(Fte(i,{text:x}),this._monthTextPositionControl(m,f,n,s,o)),silent:h});r.add(S)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a="center",o="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,a=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel("dayLabel");if(a.get("show")){var o=e.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),c=o.getFirstDayOfWeek();if(!l||F0(l))l&&(t=gne(l)||t),l=t.get(["time","dayOfWeekShort"])||P0(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]});var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];u=C4(u,Math.min(f[1],f[0])),"start"===s&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var h=a.get("silent"),p=0;p<7;p++){var m,v=o.getNextNDay(d,p),g=o.dataToRect([v.time],!1).center;m=Math.abs((p+c)%7);var y=new T9({z2:30,style:k0(Fte(a,{text:l[m]}),this._weekTextPositionControl(g,r,s,u,f)),silent:h});i.add(y)}}},t.type="calendar",t}(doe),fTe=864e5,hTe=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=j4(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),a=i<10?"0"+i:""+i,o=e.getDay();return{y:t+"",m:r,d:a,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];I0([0,1],function(e){u(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=lre(a,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}I0([0,1],function(e){u(i,e)||(i[e]=l[r[e]]/o[e])}),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){N0(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+fTe))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=pTe(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=pTe(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(N0(t)&&1===t.length&&(t=t[0]),N0(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);e=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return w0("Invalid date range."),t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/fTe)-Math.floor(n[0].time/fTe)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(t){var n=new e(t);r.push(n),t.coordinateSystem=n}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function pTe(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function mTe(e,t){var n;return I0(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var vTe=["transition","enterFrom","leaveTo"],gTe=vTe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yTe(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?vTe:gTe,i=0;i<r.length;i++){var a=r[i];null==e[a]&&null!=t[a]&&(e[a]=t[a])}}var bTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return e0(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=c8(i,a,"normalMerge"),s=this._elOptionsToUpdate=[];I0(o,function(e,t){var n=e.newOption;$0(V0(n)||e.existing,"Empty graphic option definition"),n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=k0({},n),i=e[t],a=n.$action||"merge";if("merge"===a)if(i){var o=n.type;$0(!o||i.type===o,'Please set $action: "replace" to change `type`'),S0(i,r,!0),dre(i,r,{ignoreSize:!0}),hre(n,i),yTe(n,i),yTe(n,i,"shape"),yTe(n,i,"style"),yTe(n,i,"extra"),n.clipPath=i.clipPath}else e[t]=r;else"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[mTe(t,["left","right"]),mTe(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))},this),n.elements=M0(i,function(e){return e&&delete e.$action,null!=e})},t.prototype._flatten=function(e,t,n){I0(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(mre),wTe={path:null,compoundPath:null,group:y4,image:g9,text:T9},xTe=b8(),STe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(){this._elMap=s1()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),a=e.get("zlevel");I0(t,function(t){var o=h8(t.id,null),s=null!=o?n.get(o):null,l=h8(t.parentId,null),u=null!=l?n.get(l):r,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,h=t.textConfig;if(d&&Ake(d,c,!!h,!!f)){var p=Cke(d,c,!0);!h&&p.textConfig&&(h=t.textConfig=p.textConfig),!f&&p.textContent&&(f=p.textContent)}var m=function(e){return e=k0({},e),I0(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ire),function(t){delete e[t]}),e}(t);s&&$0(u===s.parent,"Changing parent is not supported.");var v=t.$action||"merge",g="merge"===v,y="replace"===v;if(g){var b=s;(C=!s)?b=kTe(o,u,t.type,n):(b&&(xTe(b).isNew=!1),Qke(b)),b&&(Fke(b,m,e,{isInit:C}),CTe(b,t,i,a))}else if(y){ATe(s,t,n,e);var w=kTe(o,u,t.type,n);w&&(Fke(w,m,e,{isInit:!0}),CTe(w,t,i,a))}else"remove"===v&&(zke(s,t),ATe(s,t,n,e));var x=n.get(o);if(x&&f)if(g){var S=x.getTextContent();S?S.attr(f):x.setTextContent(new T9(f))}else y&&x.setTextContent(new T9(f));if(x){var _=t.clipPath;if(_){var k=_.type,A=void 0,C=!1;if(g){var T=x.getClipPath();A=(C=!T||xTe(T).type!==k)?_Te(k):T}else y&&(C=!0,A=_Te(k));x.setClipPath(A),Fke(A,_,e,{isInit:C}),$ke(A,_.keyframeAnimation,e)}var O=xTe(x);x.setTextConfig(h),O.option=t,function(e,t,n){var r=B9(e).eventData;e.silent||e.ignore||r||(r=B9(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(x,e,t),Ite({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),$ke(x,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((p=null!=(h=h8((f=n[l]).id,null))?i.get(h):null)&&p.isGroup){var u=(m=p.parent)===r,c=xTe(p),d=xTe(m);c.width=C4(c.option.width,u?a:d.width)||0,c.height=C4(c.option.height,u?o:d.height)||0}}for(l=n.length-1;l>=0;l--){var f,h,p;if(p=null!=(h=h8((f=n[l]).id,null))?i.get(h):null){var m=p.parent,v=(d=xTe(m),{}),g=ure(p,f,m===r?{width:a,height:o}:{width:d.width,height:d.height},null,{hv:f.hv,boundingMode:f.bounding},v);if(!xTe(p).isNew&&g){for(var y=f.transition,b={},w=0;w<s.length;w++){var x=s[w],S=v[x];y&&(Vke(y)||C0(y,x)>=0)?b[x]=S:p[x]=S}$ee(p,b,e,0)}else p.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){ATe(n,xTe(n).option,t,e._lastGraphicModel)}),this._elMap=s1()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(doe);function _Te(e){$0(e,"graphic type MUST be set");var t=d1(wTe,e)?wTe[e]:dte(e);$0(t,"graphic type "+e+" can not be found");var n=new t({});return xTe(n).type=e,n}function kTe(e,t,n,r){var i=_Te(n);return t.add(i),r.set(e,i),xTe(i).id=e,xTe(i).isNew=!0,i}function ATe(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse(function(e){ATe(e,t,n,r)}),Bke(e,t,r),n.removeKey(xTe(e).id))}function CTe(e,t,n,r){e.isGroup||I0([["cursor",u6.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(n){var r=n[0];d1(t,r)?e[r]=q0(t[r],n[1]):null==e[r]&&(e[r]=n[1])}),I0(D0(t),function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=j0(r)?r:null}}),d1(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var TTe=["x","y","radius","angle","single"],OTe=["cartesian2d","polar","singleAxis"];function ITe(e){return $0(e),e+"Axis"}function PTe(e,t){var n,r=s1(),i=[],a=s1();e.eachComponent({mainType:"dataZoom",query:t},function(e){a.get(e.uid)||s(e)});do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)}),t}(e)&&(s(e),n=!0)}function s(e){a.set(e.uid,!0),i.push(e),e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}return i}function ETe(e){var t=e.ecModel,n={infoList:[],infoMap:s1()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(ITe(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var MTe=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),DTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e0(t,e),t.prototype.init=function(e,t,n){var r=RTe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=RTe(e);S0(this.option,e,!0),S0(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;I0([["start","startValue"],["end","endValue"]],function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=s1();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return I0(TTe,function(n){var r=this.getReferringComponents(ITe(n),k8);if(r.specified){t=!0;var i=new MTe;I0(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";a(n.findComponents({mainType:i+"Axis"}),i)}r&&a(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function a(t,n){var i=t[0];if(i){var a=new MTe;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",_8).models[0];o&&I0(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",_8).models[0]&&a.add(e.componentIndex)})}}}r&&I0(TTe,function(t){if(r){var i=n.findComponents({mainType:ITe(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new MTe;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");I0([["start","startValue"],["end","endValue"]],function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){null==e&&(e=this.ecModel.getComponent(ITe(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){I0(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){$0(e&&null!=t);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(ITe(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;I0([["start","startValue"],["end","endValue"]],function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;I0(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return $0(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(mre);function RTe(e){var t={};return I0(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var LTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="dataZoom.select",t}(DTe),NTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(doe),jTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="dataZoom.select",t}(NTe),FTe=I0,zTe=O4,BTe=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){var t=e.get("coordinateSystem");return C0(OTe,t)>=0}(t)){var n=ITe(this._dimName),r=t.getReferringComponents(n,_8).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return x0(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[];FTe(["start","end"],function(l,u){var c=e[l],d=e[l+"Value"];"percent"===i[u]?(null==c&&(c=a[u]),d=r.parse(A4(c,a,n))):(t=!0,c=A4(d=null==d?n[u]:r.parse(d),n,a)),s[u]=null==d||isNaN(d)?n[u]:d,o[u]=null==c||isNaN(c)?a[u]:c}),zTe(s),zTe(o);var l=this._minMaxSpan;function u(e,t,n,i,a){var o=a?"Span":"ValueSpan";nxe(0,e,n,"all",l["min"+o],l["max"+o]);for(var s=0;s<2;s++)t[s]=A4(e[s],n,i,!0),a&&(t[s]=r.parse(t[s]))}return t?u(s,o,n,a,!1):u(o,s,a,n,!0),{valueWindow:s,percentWindow:o}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];FTe(n,function(e){!function(e,t,n){t&&I0($ce(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}(r,e.getData(),t)});var i=e.getAxisModel(),a=Wce(i.axis.scale,i,r).calculate();return[a.min,a.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),a=this._valueWindow;"none"!==i&&FTe(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var o=t.getStore(),s=P0(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,l=0;l<r.length;l++){var u=o.get(s[l],e),c=!isNaN(u),d=u<a[0],f=u>a[1];if(c&&!d&&!f)return!0;c&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else FTe(r,function(n){if("empty"===i)e.setData(t=t.map(n,function(e){return function(e){return e>=a[0]&&e<=a[1]}(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});FTe(r,function(e){t.setApproximateExtent(a,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;FTe(["min","max"],function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=A4(n[0]+a,n,[0,100],!0):null!=i&&(a=A4(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=E4(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();var VTe={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){var a=e.getComponent(ITe(r),i);t(r,i,a,n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new BTe(t,r,a,e),n.push(i.__dzAxisProxy))});var r=s1();return I0(n,function(e){I0(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var HTe=!1;function WTe(e){HTe||(HTe=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,VTe),function(e){e.registerAction("dataZoom",function(e,t){I0(PTe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function UTe(e){e.registerComponentModel(LTe),e.registerComponentView(jTe),WTe(e)}var XTe=function(){return function(){}}(),GTe={};function YTe(e,t){GTe[e]=t}function KTe(e){return GTe[e]}var qTe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;I0(this.option.feature,function(e,n){var r=KTe(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),S0(e,r.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(mre);function ZTe(e,t){var n=Zne(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new k9({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var JTe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];I0(s,function(e,t){u.push(t)}),new pue(this._featureNames||[],u).add(c).update(c).remove(L0(c,null)).execute(),this._featureNames=u,function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=lre(r,a,i);sre(t.get("orient"),e,t.get("itemGap"),o.width,o.height),ure(e,r,a,i)}(i,e,n),i.add(ZTe(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!j0(l)&&t){var u=l.style||(l.style={}),c=n4(t,T9.makeFont(u)),d=e.x+i.x,f=!1;e.y+i.y+a+c.height>n.getHeight()&&(o.position="top",f=!0);var h=f?-5-c.height:a+10;d+c.width/2>n.getWidth()?(o.position=["100%",h],u.align="right"):d-c.width/2<0&&(o.position=[0,h],u.align="left")}})}function c(c,d){var f,h=u[c],p=u[d],m=s[h],v=new one(m,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===h&&(m.title=r.newTitle),h&&!p){if(function(e){return 0===e.indexOf("my")}(h))f={onclick:v.option.onclick,featureName:h};else{var g=KTe(h);if(!g)return;f=new g}l[h]=f}else if(!(f=l[p]))return;f.uid=lne("toolbox-feature"),f.model=v,f.ecModel=t,f.api=n;var y=f instanceof XTe;h||!p?!v.get("show")||y&&f.unusable?y&&f.remove&&f.remove(t,n):(!function(r,s,l){var u,c,d=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),h=s instanceof XTe&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};F0(h)?(u={})[l]=h:u=h;F0(p)?(c={})[l]=p:c=p;var m=r.iconPaths={};I0(u,function(l,u){var h=Ate(l,{},{x:-a/2,y:-a/2,width:a,height:a});h.setStyle(d.getItemStyle()),h.ensureState("emphasis").style=f.getItemStyle();var p=new T9({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:Ute({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});h.setTextContent(p),Ite({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",function(){var t=f.getItemStyle(),r=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";p.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),h.setTextConfig({position:f.get("textPosition")||r}),p.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),p.hide()}),("emphasis"===r.get(["iconStatus",u])?m7:v7)(h),i.add(h),h.on("click",R0(s.onclick,s,t,n,u)),m[u]=h})}(v,f,h),v.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?m7:v7)(r[e])},f instanceof XTe&&f.render&&f.render(v,t,n,r)):y&&f.dispose&&f.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){I0(this._features,function(e){e instanceof XTe&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){I0(this._features,function(n){n instanceof XTe&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){I0(this._features,function(n){n instanceof XTe&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(doe);var QTe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=n0.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=o.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var f=c.length,h=new Uint8Array(f);f--;)h[f]=c.charCodeAt(f);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var v=m.contentWindow,g=v.document;g.open("image/svg+xml","replace"),g.write(c),g.close(),v.focus(),g.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',w=window.open();w.document.write(b),w.document.title=r}else{var x=document.createElement("a");x.download=r+"."+a,x.target="_blank",x.href=o;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(S)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(XTe),$Te="__ec_magicType_stack__",eOe=[["line","bar"],["stack"]],tOe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return I0(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(nOe[n]){var a,o={series:[]};I0(eOe,function(e){C0(e,n)>=0&&I0(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,a=nOe[n](t,i,e,r);a&&(A0(a,e.option),o.series.push(a));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,_8).models[0].componentIndex;o[u]=o[u]||[];for(var d=0;d<=c;d++)o[u][c]=o[u][c]||{};o[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(a=S0({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:o,newTitle:a,featureName:"magicType"})}},t}(XTe),nOe={line:function(e,t,n,r){if("bar"===e)return S0({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return S0({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===$Te;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),S0({id:t,stack:i?"":$Te},r.get(["option","stack"])||{},!0)}};rue({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var rOe=new Array(60).join("-"),iOe="\t";function aOe(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var oOe=new RegExp("[\t]+","g");function sOe(e,t){var n=e.split(new RegExp("\n*"+rOe+"\n*","g")),r={series:[]};return I0(n,function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(iOe)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=P0(aOe(t.shift()).split(oOe),function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var a=aOe(t[i]).split(oOe);n.push(a.shift());for(var o=0;o<a.length;o++)r[o]&&(r[o].data[i]=a[o])}return{series:r,categories:n}}(e),a=t[n],o=a.axisDim+"Axis";a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=aOe(t.shift()),r=[],i=0;i<t.length;i++){var a=aOe(t[i]);if(a){var o=a.split(oOe),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(e);r.series.push(i)}}),r}var lOe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=function(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:M0([(n=i.seriesGroupByCategoryAxis,r=[],I0(n,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,a=[" "].concat(P0(e.series,function(e){return e.name})),o=[n.model.getCategories()];I0(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(iOe)],l=0;l<o[0].length;l++){for(var u=[],c=0;c<o.length;c++)u.push(o[c][l]);s.push(u.join(iOe))}r.push(s.join("\n"))}),r.join("\n\n"+rOe+"\n\n")),(t=i.other,P0(t,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+iOe:"")+r.join(iOe))}),n.join("\n")}).join("\n\n"+rOe+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+rOe+"\n\n"),meta:i.meta}}(e);if(j0(u)){var f=u(t.getOption());F0(f)?s.innerHTML=f:U0(f)&&s.appendChild(f)}else{l.readOnly=r.get("readOnly");var h=l.style;h.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",h.color=r.get("textColor"),h.borderColor=r.get("textareaBorderColor"),h.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var p=d.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var b=this;function w(){n.removeChild(i),b._dom=null}J1(g,"click",w),J1(y,"click",function(){if(null==c&&null!=u||null!=c&&null==u)return Z4("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void w();var e;try{e=j0(c)?c(s,t.getOption()):sOe(l.value,p)}catch(kJe){throw w(),new Error("Data view format error "+kJe)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}),g.innerHTML=o[1],y.innerHTML=o[2],y.style.cssText=g.style.cssText=v,!r.get("readOnly")&&m.appendChild(y),m.appendChild(g),i.appendChild(a),i.appendChild(s),i.appendChild(m),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(XTe);function uOe(e,t){return P0(e,function(e,n){var r=t&&t[n];if(V0(r)&&!N0(r)){V0(e)&&!N0(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=A0(e,r),i&&delete e.name,e}return e})}rue({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];I0(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:uOe(e.data,i)})}else n.push(k0({type:"scatter"},e))}),t.mergeOption(A0({series:n},e.newOption))});var cOe=I0,dOe=b8();function fOe(e){var t=dOe(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var hOe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.onclick=function(e,t){!function(e){dOe(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(XTe);rue({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var pOe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],mOe=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=gOe(t,e);I0(yOe,function(e,t){(!n||!n.include||C0(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=xOe[e.brushType](0,n,t);e.__rangeOffset={offset:_Oe[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){I0(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&I0(r.coordSyses,function(r){var i=xOe[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){I0(e,function(e){var n,r,i,a,o,s=this.findTargetInfo(e,t);if($0(!s||!0===s||e.coordRange,"coordRange must be specified when coord index specified."),$0(!s||!0!==s||e.range,"range must be specified in global brush."),e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=xOe[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?_Oe[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=AOe(n),a=AOe(r),o=[i[0]/a[0],i[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return P0(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:iSe(r),isTargetByCursor:oSe(r,e,n.coordSysModel),getLinearBrushOtherExtent:aSe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&C0(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=gOe(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<bOe.length;s++)if(bOe[s](r,a))return a}return!0},e}();function vOe(e){return e[0]>e[1]&&e.reverse(),e}function gOe(e,t){return x8(e,t,{includeMainTypes:pOe})}var yOe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=s1(),o={},s={};(n||r||i)&&(I0(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),I0(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),I0(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];I0(i.getCartesians(),function(e,t){(C0(n,e.getAxis("x").model)>=0||C0(r,e.getAxis("y").model)>=0)&&a.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:wOe.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){I0(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:wOe.geo})})}},bOe=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],wOe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(bte(e)),t}},xOe={lineX:L0(SOe,0),lineY:L0(SOe,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[vOe([i[0],a[0]]),vOe([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:P0(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function SOe(e,t,n,r){$0("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][e]),a=vOe(P0([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var _Oe={lineX:L0(kOe,0),lineY:L0(kOe,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return P0(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function kOe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function AOe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var COe,TOe,OOe=I0,IOe=i8+"toolbox-dataZoom_",POe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Txe(n.getZr()),this._brushController.on("brush",R0(this._onBrush,this)).mount()),function(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new mOe(MOe(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return fOe(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){EOe[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new mOe(MOe(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}}),function(e,t){var n=fOe(e);cOe(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var a=t.getAxis(e),o=a.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}(e,o,r),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=nxe(0,i.slice(),a.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];OOe(e,function(e,n){t.push(x0(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(XTe),EOe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=fOe(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return cOe(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}}),r}(this.ecModel))}};function MOe(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}COe="dataZoom",TOe=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],a=x8(e,MOe(r));return OOe(a.xAxisModels,function(e){return o(e,"xAxis","xAxisIndex")}),OOe(a.yAxisModels,function(e){return o(e,"yAxis","yAxisIndex")}),i}function o(e,t,n){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:IOe+t+a};o[n]=a,i.push(o)}},$0(null==jre.get(COe)&&TOe),jre.set(COe,TOe);var DOe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(mre);function ROe(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function LOe(e){if(n0.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var NOe=LOe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function jOe(e,t){if(!e)return t;t=qne(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var FOe=jOe(LOe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),zOe=jOe(NOe,"transform"),BOe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(n0.transform3dSupported?"will-change:transform;":"");function VOe(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!n0.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=n0.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+zOe+":"+o+";":[["top",0],["left",0],[NOe,o]]}function HOe(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Jae(e,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=n0.transformSupported?","+zOe+r:",left"+r+",top"+r),FOe+":"+i}(i,n)),a&&r.push("background-color:"+a),I0(["width","color","radius"],function(t){var n="border-"+t,i=qne(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=q0(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),I0(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(c)),null!=d&&r.push("padding:"+Zne(d).join("px ")+"px"),r.join(";")+";"}function WOe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&function(e,t,n,r,i){z1(F1,t,r,i,!0)&&z1(e,n,F1[0],F1[1])}(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var UOe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,n0.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(F0(i)?document.querySelector(i):U0(i)?i:j0(i)&&i(e.getDom()));WOe(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=r.handler;Z1(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(a="position",(o=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?o[a]:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,a,o,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=BOe+HOe(e,!this._firstShow,this._longHide)+VOe(i[0],i[1],!0)+"border-color:"+tre(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(null!=e){var o="";if(F0(i)&&"item"===n.get("trigger")&&!ROe(n)&&(o=function(e,t,n){if(!F0(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=tre(t);var a,o,s="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=zOe+":";C0(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var d=o*Math.PI/180,f=l+i,h=f*Math.abs(Math.cos(d))+f*Math.abs(Math.sin(d)),p=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),F0(e))a.innerHTML=e+o;else if(e){a.innerHTML="",N0(e)||(e=[e]);for(var s=0;s<e.length;s++)U0(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(WOe(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;I0(VOe(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",n0.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R0(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),XOe=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),KOe(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;V0(e)&&t8("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new T9({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Jae(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I0(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){a.el.style[e]=n.get(e)}),I0(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=YOe(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;KOe(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=GOe(i.borderWidth||0),o=YOe(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R0(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function GOe(e){return Math.max(0,e)}function YOe(e){var t=GOe(e.shadowBlur||0),n=GOe(e.shadowOffsetX||0),r=GOe(e.shadowOffsetY||0);return{left:GOe(t-n),right:GOe(t+n),top:GOe(t-r),bottom:GOe(t+r)}}function KOe(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qOe=new k9({shape:{x:-1,y:-1,width:2,height:2}}),ZOe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(e,t){if(!n0.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?n0.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new XOe(t):new UOe(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!n0.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Aoe(this,"_updatePosition",50,"fixRate"):Coe(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");eCe("itemTooltip",this._api,R0(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!n0.node&&n.getDom()){var i=QOe(r,n);this._ticket="";var a=r.dataByCoordSys,o=function(e,t,n){var r=S8(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var a=A8(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!o)return;var s,l=n.getViewOfComponentModel(o);if(l.group.traverse(function(t){var n=B9(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:o.componentIndex,el:s}}(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=qOe;l.x=r.x,l.y=r.y,l.update(),B9(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=aCe(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(QOe(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s)if("axis"===JOe([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,a;if("legend"===B9(n).ssrType)return;this._lastDataByCoordSys=null,mse(n,function(e){return null!=B9(e).dataIndex?(i=e,!0):null!=B9(e).tooltipConfig?(a=e,!0):void 0},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=R0(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=JOe([t.tooltipOption],r),o=this._renderMode,s=[],l=Vae("section",{blocks:[],noHeader:!0}),u=[],c=new Qae;I0(e,function(e){I0(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var a=VAe(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Vae("section",{header:a,noHeader:!e1(a),sortBlocks:!0,blocks:[]});l.blocks.push(d),I0(e.seriesDataIndices,function(l){var f=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,p=f.getDataParams(h);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=qce(t.axis,{value:i}),p.axisValueLabel=a,p.marker=c.makeTooltipMarker("item",tre(p.color),o);var m=tae(f.formatTooltip(h,!0,null)),v=m.frag;if(v){var g=JOe([f],r).get("valueFormatter");d.blocks.push(g?k0({valueFormatter:g},v):v)}m.text&&u.push(m.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var d=t.position,f=a.get("order"),h=Yae(l,c,o,f,n.get("useUTC"),a.get("textStyle"));h&&u.unshift(h);var p="richText"===o?"\n\n":"<br/>",m=u.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+"",i[0],i[1],d,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=B9(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,f=e.positionDefault,h=JOe([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=h.get("trigger");if(null==p||"item"===p){var m=s.getDataParams(l,u),v=new Qae;m.marker=v.makeTooltipMarker("item",tre(m.color),d);var g=tae(s.formatTooltip(l,!1,u)),y=h.get("order"),b=h.get("valueFormatter"),w=g.frag,x=w?Yae(b?k0({valueFormatter:b},w):w,v,d,y,r.get("useUTC"),h.get("textStyle")):g.text,S="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,x,m,S,e.offsetX,e.offsetY,e.position,e.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=B9(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(F0(a)){a={content:a,formatter:a},o=!0}o&&r&&a.content&&((a=x0(a)).content=W1(a.content));var s=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:a.content});var u=e.positionDefault,c=JOe(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),f=Math.random()+"",h=new Qae;this._showOrMove(c,function(){var n=x0(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,f,e.offsetX,e.offsetY,e.position,t,h)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");o=o||e.get("position");var d=t,f=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(F0(c)){var h=e.ecModel.get("useUTC"),p=N0(n)?n[0]:n;d=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(d=Ene(p.axisValue,d,h)),d=ere(d,n,!0)}else if(j0(c)){var m=R0(function(t,r){t===this._ticket&&(u.setContent(r,l,e,f,o),this._updatePosition(e,o,i,a,u,n,s))},this);this._ticket=r,d=c(n,r,m)}else d=c;u.setContent(d,l,e,f,o),u.show(e,f),this._updatePosition(e,o,i,a,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||N0(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:N0(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),j0(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),N0(t))n=C4(t[0],s),r=C4(t[1],l);else if(V0(t)){var h=t;h.width=u[0],h.height=u[1];var p=lre(h,{width:s,height:l});n=p.x,r=p.y,c=null,d=null}else if(F0(t)&&o){var m=function(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}(t,f,u,e.get("borderWidth"));n=m[0],r=m[1]}else{m=function(e,t,n,r,i,a,o){var s=n.getSize(),l=s[0],u=s[1];null!=a&&(e+l+a+2>r?e-=l+a:e+=a);null!=o&&(t+u+o>i?t-=u+o:t+=o);return[e,t]}(n,r,i,s,l,c?null:20,d?null:20);n=m[0],r=m[1]}if(c&&(n-=$Oe(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=$Oe(d)?u[1]/2:"bottom"===d?u[1]:0),ROe(e)){m=function(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=m[0],r=m[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&I0(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];(i=i&&o.length===s.length)&&I0(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],l=a.seriesDataIndices||[];(i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===l.length)&&I0(o,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&I0(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!n0.node&&t.getDom()&&(Coe(this,"_updatePosition"),this._tooltipContent.dispose(),rCe("itemTooltip",t))},t.type="tooltip",t}(doe);function JOe(e,t,n){var r,i=t.ecModel;n?(r=new one(n,i,i),r=new one(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof one&&(o=o.get("tooltip",!0)),F0(o)&&(o={formatter:o}),o&&(r=new one(o,r,i)))}return r}function QOe(e,t){return e.dispatchAction||R0(t.dispatchAction,t)}function $Oe(e){return"center"===e||"middle"===e}var eIe=["rect","polygon","keep","clear"];function tIe(e,t){var n=a8(e?e.brush:[]);if(n.length){var r=[];I0(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;N0(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a,o,s=i.feature||(i.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,r),o={},I0(a=u,function(e){o[e]=1}),a.length=0,I0(o,function(e,t){a.push(t)}),t&&!u.length&&u.push.apply(u,eIe)}}var nIe=I0;function rIe(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function iIe(e,t,n){var r={};return nIe(t,function(t){var i,a=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);nIe(e[t],function(e,r){if(Kye.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new Kye(i),"opacity"===r&&((i=x0(i)).type="colorAlpha",a.__hidden.__alphaForOpacity=new Kye(i))}})}),r}function aIe(e,t,n){var r;I0(n,function(e){t.hasOwnProperty(e)&&rIe(t[e])&&(r=!0)}),r&&I0(n,function(n){t.hasOwnProperty(n)&&rIe(t[n])?e[n]=x0(t[n]):delete e[n]})}var oIe={lineX:sIe(0),lineY:sIe(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&nde(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=r[0];return!!(nde(r,i,a)||nde(r,i+o,a)||nde(r,i,a+s)||nde(r,i+o,a+s)||x2.create(e).contain(l[0],l[1])||Cte(i,a,i+o,a,r)||Cte(i,a,i,a+s,r)||Cte(i+o,a,i+o,a+s,r)||Cte(i,a+s,i+o,a+s,r))||void 0}}};function sIe(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return lIe(t[e],i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),lIe(s[0],o)||lIe(s[1],o)||lIe(o[0],s)||lIe(o[1],s)}}}}function lIe(e,t){return t[0]<=e&&e<=t[1]}var uIe=["inBrush","outOfBrush"],cIe="__ecBrushSelect",dIe="__ecInBrushSelectEvent";function fIe(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new mOe(t.option,e)).setInputRanges(t.areas,e)})}function hIe(e,t,n){var r,i,a=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),fIe(e),e.eachComponent({mainType:"brush"},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:x0(t.areas),selected:[]};a.push(o);var s=t.option,l=s.brushLink,u=[],c=[],d=[],f=!1;n||(r=s.throttleType,i=s.throttleDelay);var h=P0(t.areas,function(e){var t=vIe[e.brushType],n=A0({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return oIe[t].point(r,n,e)},rect:function(r){return oIe[t].rect(r,n,e)}};return n}(n),n}),p=iIe(t.option,uIe,function(e){e.mappingMethod="fixed"});function m(e){return"all"===l||!!u[e]}function v(e){return!!e.length}N0(l)&&I0(l,function(e){u[e]=1}),e.eachSeries(function(n,r){var i=d[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;f=f||n.hasAxisBrushed(),m(t)&&n.eachActiveState(e.getData(),function(e,t){"active"===e&&(c[t]=1)})}(n,r):function(n,r,i){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(N0(n)?C0(n,t)<0:t!==n)}(t,r))return;if(I0(h,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f=f||v(i)}),m(r)&&v(i)){var a=n.getData();a.each(function(e){mIe(n,i,a,e)&&(c[e]=1)})}}(n,r,i)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=m(t)?function(e){return c[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return mIe(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(m(t)?f:v(r))&&function(e,t,n,r,i){var a,o={};function s(e){return cse(n,a,e)}function l(e,t){fse(n,a,e,t)}I0(e,function(e){var n=Kye.prepareVisualTypes(t[e]);o[e]=n}),n.each(function(e,u){a=e;var c=n.getRawDataItem(a);if(!c||!1!==c.visualMap)for(var d=r.call(i,e),f=t[d],h=o[d],p=0,m=h.length;p<m;p++){var v=h[p];f[v]&&f[v].applyVisual(e,s,l)}})}(uIe,p,i,a)})}),function(e,t,n,r,i){if(!i)return;var a=e.getZr();if(a[dIe])return;a[cIe]||(a[cIe]=pIe);var o=Aoe(a,cIe,n,t);o(e,r)}(t,r,i,a,n)}function pIe(e,t){if(!e.isDisposed()){var n=e.getZr();n[dIe]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[dIe]=!1}}function mIe(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}var vIe={rect:function(e){return gIe(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&gIe(t)}};function gIe(e){return new x2(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var yIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Txe(t.getZr())).on("brush",R0(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){fIe(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:x0(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:x0(n),$from:t})},t.type="brush",t}(doe),bIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return e0(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aIe(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){$0(N0(e)),I0(e,function(e){$0(e.brushType,"Illegal areas")}),e&&(this.areas=P0(e,function(e){return wIe(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=wIe(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(mre);function wIe(e,t){return S0({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new one(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var xIe=["rect","polygon","lineX","lineY","keep","clear"],SIe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e0(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length}),this._brushType=r,this._brushMode=i,I0(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return I0(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){return{show:!0,type:xIe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(XTe);var _Ie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e0(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(mre),kIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),s=q0(e.get("textBaseline"),e.get("textVerticalAlign")),l=new T9({style:Fte(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new T9({style:Fte(a,{text:c,fill:a.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),h=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!f&&!p,d.silent=!h&&!p,f&&l.on("click",function(){nre(f,"_"+e.get("target"))}),h&&d.on("click",function(){nre(h,"_"+e.get("subtarget"))}),B9(l).eventData=B9(d).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var m=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var g=lre(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||("middle"===(o=e.get("left")||e.get("right"))&&(o="center"),"right"===o?g.x+=g.width:"center"===o&&(g.x+=g.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?g.y+=g.height:"middle"===s&&(g.y+=g.height/2),s=s||"top"),r.x=g.x,r.y=g.y,r.markRedraw();var y={align:o,verticalAlign:s};l.setStyle(y),d.setStyle(y),m=r.getBoundingRect();var b=g.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new k9({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(doe);var AIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return e0(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],I0(n,function(t,n){var r,a=h8(l8(t),"");V0(t)?(r=x0(t)).value=n:r=n,e.push(r),i.push(a)})):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new Fue([{name:"value",type:a}],this)).initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(mre),CIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="timeline.slider",t.defaultOption=une(AIe.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(AIe);T0(CIe,eae.prototype);var TIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="timeline",t}(doe),OIe=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return e0(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ade),IIe=Math.PI,PIe=b8(),EIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return Vae("nameValue",{noName:!0,value:o.scale.getLabel({value:e})})},I0(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,i,a,o=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return lre(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),u={horizontal:"center",vertical:(n=null==o||"auto"===o?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":F0(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][o]:o)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:IIe/2},f="vertical"===s?l.height:l.width,h=e.getModel("controlStyle"),p=h.get("show",!0),m=p?h.get("itemSize"):0,v=p?h.get("itemGap"):0,g=m+v,y=e.get(["label","rotate"])||0;y=y*IIe/180;var b=h.get("position",!0),w=p&&h.get("showPlayBtn",!0),x=p&&h.get("showPrevBtn",!0),S=p&&h.get("showNextBtn",!0),_=0,k=f;"left"===b||"bottom"===b?(w&&(r=[0,0],_+=g),x&&(i=[_,0],_+=g),S&&(a=[k-m,0],k-=g)):(w&&(r=[k-m,0],k-=g),x&&(i=[0,0],_+=g),S&&(a=[k-m,0],k-=g));var A=[_,k];return e.get("inverse")&&A.reverse(),{viewRect:l,mainLength:f,orient:s,rotation:d[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:a,axisExtent:A,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=[1,0,0,1,0,0],o=i.x,s=i.y+i.height;l2(a,a,[-o,-s]),u2(a,a,-IIe/2),l2(a,a,[o,s]),(i=i.clone()).applyTransform(a)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=l[0][0];var h,p=e.labelPosOpt;null==p||F0(p)?(g(d,u,l,1,h="+"===p?0:1),g(f,c,l,1,1-h)):(g(d,u,l,1,h=p>=0?0:1),f[1]=d[1]+p);function m(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function g(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,m(n),m(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=function(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new oce({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Sce({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new lce}}(t,r);i.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new OIe("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new y4;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Mee({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:k0({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Mee({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:A0({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],I0(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:o,y:0,onclick:R0(i._changeTimeline,i,e.value)},f=MIe(s,l,t,d);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),O7(f);var h=B9(f);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,i._tickSymbols.push(f)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get("show")){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],I0(o,function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),f=new T9({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:R0(i._changeTimeline,i,o),silent:!1,style:Fte(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Fte(u),f.ensureState("progress").style=Fte(c),t.add(f),O7(f),PIe(f).dataIndex=o,i._tickLabels.push(f)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(e,n,l,u){if(e){var c=o4(q0(r.get(["controlStyle",n+"BtnSize"]),i),i),d=function(e,t,n,r){var i=r.style,a=Ate(e.get(["controlStyle",t]),r||{},new x2(n[0],n[1],n[2],n[3]));i&&a.setStyle(i);return a}(r,n+"Icon",[0,-c/2,c,c],{x:e[0],y:e[1],originX:i/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:l});d.ensureState("emphasis").style=s,t.add(d),O7(d)}}c(e.nextBtnPosition,"next",R0(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",R0(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",R0(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=R0(s._handlePointerDrag,s),e.ondragend=R0(s._handlePointerDragend,s),DIe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){DIe(e,s._progressLine,a,n,r)}};this._currentPointer=MIe(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=O4(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var a=this._findNearestTick(n),o=this.model;(t||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return wte(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=a)}),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",PIe(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(TIe);function MIe(e,t,n,r,i,a){var o=t.get("color");i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):((i=Tse(e.get("symbol"),-1,-1,2,2,o)).setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle(["color"]);i.setStyle(s),r=S0({rectHover:!0,z2:100},r,!0);var l=Ose(e.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=Ise(e.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var c=e.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function DIe(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function RIe(e){var t=e&&e.timeline;N0(t)||(t=t?[t]:[]),I0(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(LIe(e),NIe(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});NIe(r,"position")||(r.position=e.controlPosition),"none"!==r.position||NIe(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}I0(e.data||[],function(e){V0(e)&&!N0(e)&&(!NIe(e,"value")&&NIe(e,"name")&&(e.value=e.name),LIe(e))})}(e)})}function LIe(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};I0(r,function(e,t){a[t]||NIe(i,t)||(i[t]=e)}),n.label&&!NIe(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function NIe(e,t){return e.hasOwnProperty(t)}function jIe(e,t){if(!e)return!1;for(var n=N0(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function FIe(e){o8(e,"label",["show"])}var zIe=b8(),BIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return e0(t,e),t.prototype.init=function(e,t,n){if("marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(n0.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=zIe(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&FIe(n),I0(n.data,function(e){e instanceof Array?(FIe(e[0]),FIe(e[1])):FIe(e)}),k0(a=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),zIe(e)[i]=a):zIe(e)[i]=null},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Vae("section",{header:this.name,blocks:[Vae("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=eae.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return zIe(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(mre);T0(BIe,eae.prototype);var VIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(BIe);function HIe(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function WIe(e,t,n,r,i,a){var o=[],s=Xue(t,r)?t.getCalculationInfo("stackResultDimension"):r,l=qIe(t,s,e),u=t.indicesOfNearest(s,l)[0];o[i]=t.get(n,u),o[a]=t.get(s,u);var c=t.get(r,u),d=I4(t.get(r,u));return(d=Math.min(d,20))>=0&&(o[a]=+o[a].toFixed(d)),[o,c]}var UIe={min:L0(WIe,"min"),max:L0(WIe,"max"),average:L0(WIe,"average"),median:L0(WIe,"median")};function XIe(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!N0(t.coord)&&N0(i)){var a=GIe(t,n,r,e);if((t=x0(t)).type&&UIe[t.type]&&a.baseAxis&&a.valueAxis){var o=C0(i,a.baseAxis.dim),s=C0(i,a.valueAxis.dim),l=UIe[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&N0(i))for(var u=t.coord,c=0;c<2;c++)UIe[u[c]]&&(u[c]=qIe(n,n.mapDimension(i[c]),u[c]));else t.coord=[];return t}}function GIe(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function YIe(e,t){return!(e&&e.containData&&t.coord&&!HIe(t))||e.containData(t.coord)}function KIe(e,t){return e?function(e,n,r,i){return aae(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return aae(e.value,t[i])}}function qIe(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var ZIe=b8(),JIe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.init=function(){this.markerGroupMap=s1()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){ZIe(e).keep=!1}),t.eachSeries(function(e){var i=BIe.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!ZIe(e).keep&&r.group.remove(e.group)})},t.prototype.markKeep=function(e){ZIe(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;I0(e,function(e){var r=BIe.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?g7(e):y7(e))})})},t.type="marker",t}(doe);function QIe(e,t,n){var r=t.coordinateSystem;e.each(function(i){var a,o=e.getItemModel(i),s=C4(o.get("x"),n.getWidth()),l=C4(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)})}var $Ie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=BIe.getMarkerModelFromSeries(e,"markPoint");t&&(QIe(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Fhe),u=function(e,t,n){var r;r=e?P0(e&&e.dimensions,function(e){return k0(k0({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new Fue(r,n),a=P0(n.get("data"),L0(XIe,t));e&&(a=M0(a,L0(YIe,e)));var o=KIe(!!e,r);return i.initData(a,null,o),i}(i,e,t);t.setData(u),QIe(t.getData(),e,r),u.each(function(e){var n=u.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(j0(r)||j0(i)||j0(a)||j0(s)){var c=t.getRawValue(e),d=t.getDataParams(e);j0(r)&&(r=r(c,d)),j0(i)&&(i=i(c,d)),j0(a)&&(a=a(c,d)),j0(s)&&(s=s(c,d))}var f=n.getModel("itemStyle").getItemStyle(),h=dse(o,"color");f.fill||(f.fill=h),u.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:f})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(e){e.traverse(function(e){B9(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(JIe);var ePe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(BIe),tPe=b8(),nPe=function(e,t,n,r){var i,a=e.getData();if(N0(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=K0(r.yAxis,r.xAxis);else{var u=GIe(r,a,t,e);s=u.valueAxis,l=qIe(a,Gue(a,u.valueDataDim),o)}var c="x"===s.dim?0:1,d=1-c,f=x0(r),h={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,h.coord[d]=1/0;var p=n.get("precision");p>=0&&B0(l)&&(l=+l.toFixed(Math.min(p,20))),f.coord[c]=h.coord[c]=l,i=[f,h,{type:o,valueIndex:r.valueIndex,value:l}]}else w0("Invalid markLine data."),i=[]}var m=[XIe(e,i[0]),XIe(e,i[1]),k0({},i[2])];return m[2].type=m[2].type||null,S0(m[2],m[0]),S0(m[2],m[1]),m};function rPe(e){return!isNaN(e)&&!isFinite(e)}function iPe(e,t,n,r){var i=1-e,a=r.dimensions[e];return rPe(t[i])&&rPe(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function aPe(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(iPe(1,n,r,e)||iPe(0,n,r,e)))return!0}return YIe(e,t[0])&&YIe(e,t[1])}function oPe(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=C4(s.get("x"),i.getWidth()),u=C4(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);a=o.dataToPoint([d,f])}if(Qhe(o,"cartesian2d")){var h=o.getAxis("x"),p=o.getAxis("y");c=o.dimensions;rPe(e.get(c[0],t))?a[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):rPe(e.get(c[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];e.setItemLayout(t,a)}var sPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=BIe.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=tPe(t).from,a=tPe(t).to;i.each(function(t){oPe(i,t,!0,e,n),oPe(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new lwe);this.group.add(l.group);var u=function(e,t,n){var r;r=e?P0(e&&e.dimensions,function(e){return k0(k0({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new Fue(r,n),a=new Fue(r,n),o=new Fue([],n),s=P0(n.get("data"),L0(nPe,t,e,n));e&&(s=M0(s,L0(aPe,e)));var l=KIe(!!e,r);return i.initData(P0(s,function(e){return e[0]}),null,l),a.initData(P0(s,function(e){return e[1]}),null,l),o.initData(P0(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}(i,e,t),c=u.from,d=u.to,f=u.line;tPe(t).from=c,tPe(t).to=d,t.setData(f);var h=t.get("symbol"),p=t.get("symbolSize"),m=t.get("symbolRotate"),v=t.get("symbolOffset");function g(t,n,i){var a=t.getItemModel(n);oPe(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=dse(o,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:q0(a.get("symbolOffset",!0),v[i?0:1]),symbolRotate:q0(a.get("symbolRotate",!0),m[i?0:1]),symbolSize:q0(a.get("symbolSize"),p[i?0:1]),symbol:q0(a.get("symbol",!0),h[i?0:1]),style:s})}N0(h)||(h=[h,h]),N0(p)||(p=[p,p]),N0(m)||(m=[m,m]),N0(v)||(v=[v,v]),u.from.each(function(e){g(c,e,!0),g(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})}),l.updateData(f),u.line.eachItemGraphicEl(function(e){B9(e).dataModel=t,e.traverse(function(e){B9(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(JIe);var lPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(BIe),uPe=b8(),cPe=function(e,t,n,r){var i=r[0],a=r[1];if(i&&a){var o=XIe(e,i),s=XIe(e,a),l=o.coord,u=s.coord;l[0]=K0(l[0],-1/0),l[1]=K0(l[1],-1/0),u[0]=K0(u[0],1/0),u[1]=K0(u[1],1/0);var c=_0([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function dPe(e){return!isNaN(e)&&!isFinite(e)}function fPe(e,t,n,r){var i=1-e;return dPe(t[i])&&dPe(n[i])}function hPe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return Qhe(e,"cartesian2d")?!(!n||!r||!fPe(1,n,r)&&!fPe(0,n,r))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!HIe(t)&&!HIe(n))||e.containZone(t.coord,n.coord)}(e,i,a):YIe(e,i)||YIe(e,a)}function pPe(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=C4(s.get(n[0]),i.getWidth()),u=C4(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),f=o.clampData(c),h=o.clampData(d),p=[];"x0"===n[0]?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],"y0"===n[1]?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],a=r.getMarkerPosition(p,n,!0)}else{var m=[y=e.get(n[0],t),b=e.get(n[1],t)];o.clampData&&o.clampData(m,m),a=o.dataToPoint(m,!0)}if(Qhe(o,"cartesian2d")){var v=o.getAxis("x"),g=o.getAxis("y"),y=e.get(n[0],t),b=e.get(n[1],t);dPe(y)?a[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):dPe(b)&&(a[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var mPe=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=BIe.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each(function(t){var i=P0(mPe,function(i){return pPe(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape("points",i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new y4});this.group.add(l.group),this.markKeep(l);var u=function(e,t,n){var r,i,a=["x0","y0","x1","y1"];if(e){var o=P0(e&&e.dimensions,function(e){var n=t.getData();return k0(k0({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=P0(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new Fue(i,n)}else r=new Fue(i=[{name:"value",type:"float"}],n);var s=P0(n.get("data"),L0(cPe,t,e,n));e&&(s=M0(s,L0(hPe,e)));var l=e?function(e,t,n,r){return aae(e.coord[Math.floor(r/2)][r%2],i[r])}:function(e,t,n,r){return aae(e.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}(i,e,t);t.setData(u),u.each(function(t){var n=P0(mPe,function(n){return pPe(u,t,n,e,r)}),a=i.getAxis("x").scale,s=i.getAxis("y").scale,l=a.getExtent(),c=s.getExtent(),d=[a.parse(u.get("x0",t)),a.parse(u.get("x1",t))],f=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];O4(d),O4(f);var h=!!(l[0]>d[1]||l[1]<d[0]||c[0]>f[1]||c[1]<f[0]);u.setItemLayout(t,{points:n,allClipped:h});var p=u.getItemModel(t).getModel("itemStyle").getItemStyle(),m=dse(o,"color");p.fill||(p.fill=m,F0(p.fill)&&(p.fill=j3(p.fill,.4))),p.stroke||(p.stroke=m),u.setItemVisual(t,"style",p)}),u.diff(uPe(l).data).add(function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Tee({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}}).update(function(e,n){var r=uPe(l).data.getItemGraphicEl(n),i=u.getItemLayout(e);i.allClipped?r&&l.group.remove(r):(r?$ee(r,{shape:{points:i.points}},t,e):r=new Tee({shape:{points:i.points}}),u.setItemGraphicEl(e,r),l.group.add(r))}).remove(function(e){var t=uPe(l).data.getItemGraphicEl(e);l.group.remove(t)}).execute(),u.eachItemGraphicEl(function(e,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),Nte(e,jte(r),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:F0(i.fill)?j3(i.fill,1):"#000"}),D7(e,r),I7(e,null,null,r.get(["emphasis","disabled"])),B9(e).dataModel=t}),uPe(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(JIe);var gPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e0(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),N0(t)&&I0(t,function(e,r){F0(e)&&(e={type:e}),t[r]=S0(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):i=!0}else i=!0;i&&v8(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get("data")||t,i=s1(),a=P0(r,function(e){return(F0(e)||B0(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new one(e,this,this.ecModel))},this);this._data=M0(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&I0(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;I0(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;I0(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&C0(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(mre),yPe=L0,bPe=I0,wPe=y4,xPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return e0(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new wPe),this.group.add(this._selectorGroup=new wPe),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=lre(l,u,c),f=this.layoutInner(e,i,d,r,o,s),h=lre(A0({width:f.width,height:f.height},l),u,c);this.group.x=h.x-f.x,this.group.y=h.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ZTe(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),l=s1(),u=t.get("selectedMode"),c=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&c.push(e.id)}),bPe(t.getData(),function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var d=new wPe;return d.newline=!0,void s.add(d)}var f=n.getSeriesByName(o)[0];if(!l.get(o)){if(f){var h=f.getData(),p=h.getVisual("legendLineStyle")||{},m=h.getVisual("legendIcon"),v=h.getVisual("style"),g=this._createItem(f,o,a,i,t,e,p,v,m,u,r);g.on("click",yPe(SPe,o,null,r,c)).on("mouseover",yPe(kPe,f.name,null,r,c)).on("mouseout",yPe(APe,f.name,null,r,c)),n.ssr&&g.eachChild(function(e){var t=B9(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),l.set(o,!0)}else n.eachRawSeries(function(s){if(!l.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var f=d.indexOfName(o),h=d.getItemVisual(f,"style"),p=d.getItemVisual(f,"legendIcon"),m=M3(h.fill);m&&0===m[3]&&(m[3]=.2,h=k0(k0({},h),{fill:F3(m,"rgba")}));var v=this._createItem(s,o,a,i,t,e,{},h,p,u,r);v.on("click",yPe(SPe,null,o,r,c)).on("mouseover",yPe(kPe,null,o,r,c)).on("mouseout",yPe(APe,null,o,r,c)),n.ssr&&v.eachChild(function(e){var t=B9(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),l.set(o,!0)}},this);l.get(o)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();bPe(e,function(e){var r=e.type,i=new T9({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});a.add(i),Nte(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),O7(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,l,u,c){var d=e.visualDrawType,f=i.get("itemWidth"),h=i.get("itemHeight"),p=i.isSelected(t),m=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),g=r.get("icon"),y=function(e,t,n,r,i,a,o){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),bPe(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?ele(d,o):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!a){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(l=g||l||"roundRect",r,o,s,d,p,c),b=new wPe,w=r.getModel("textStyle");if(!j0(e.getLegendIcon)||g&&"inherit"!==g){var x="inherit"===g&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;b.add(function(e){var t=e.icon||"roundRect",n=Tse(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:f,itemHeight:h,icon:l,iconRotate:x,itemStyle:y.itemStyle,symbolKeepAspect:v}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:h,icon:l,iconRotate:m,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var S="left"===a?f+5:-5,_=a,k=i.get("formatter"),A=t;F0(k)&&k?A=k.replace("{name}",null!=t?t:""):j0(k)&&(A=k(t));var C=p?w.getTextColor():r.get("inactiveColor");b.add(new T9({style:Fte(w,{text:A,x:S,y:h/2,fill:C,align:_,verticalAlign:"middle"},{inheritColor:C})}));var T=new k9({shape:b.getBoundingRect(),style:{fill:"transparent"}}),O=r.getModel("tooltip");return O.get("show")&&Ite({el:T,componentModel:i,itemName:t,itemTooltipOption:O.option}),b.add(T),b.eachChild(function(e){e.silent=!0}),T.silent=!u,this.getContentGroup().add(b),O7(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();sre(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){sre("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",m=0===h?"height":"width",v=0===h?"y":"x";"end"===a?d[h]+=l[p]+f:u[h]+=c[p]+f,d[1-h]+=l[m]/2-c[m]/2,s.x=d[0],s.y=d[1],o.x=u[0],o.y=u[1];var g={x:0,y:0};return g[p]=l[p]+f+c[p],g[m]=Math.max(l[m],c[m]),g[v]=Math.min(0,c[v]+d[1-h]),g}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(doe);function SPe(e,t,n,r){APe(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),kPe(e,t,n,r)}function _Pe(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function kPe(e,t,n,r){_Pe(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function APe(e,t,n,r){_Pe(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function CPe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function TPe(e,t,n){var r="allSelect"===e||"inverseSelect"===e,i={},a=[];n.eachComponent({mainType:"legend",query:t},function(n){r?n[e]():n[e](t.name),OPe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent("legend",function(e){I0(i,function(t,n){e[t?"select":"unSelect"](n)}),OPe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function OPe(e,t){var n=t||{};return I0(e.getData(),function(t){var r=t.get("name");if("\n"!==r&&""!==r){var i=e.isSelected(r);d1(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function IPe(e){e.registerComponentModel(gPe),e.registerComponentView(xPe),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,CPe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",L0(TPe,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",L0(TPe,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",L0(TPe,"inverseSelect")),e.registerAction("legendSelect","legendselected",L0(TPe,"select")),e.registerAction("legendUnSelect","legendunselected",L0(TPe,"unSelect"))}(e)}var PPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=fre(t);e.prototype.init.call(this,t,n,r),EPe(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),EPe(this,this.option,t)},t.type="legend.scroll",t.defaultOption=une(gPe.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(gPe);function EPe(e,t,n){var r=[1,1];r[e.getOrient().index]=0,dre(t,n,{type:"box",ignoreSize:!!r})}var MPe=y4,DPe=["width","height"],RPe=["x","y"],LPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e0(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new MPe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new MPe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=N0(c)?c:[c,c];h("pagePrev",0);var f=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",a=Ate(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:R0(l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,u.add(a)}u.add(new T9({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,l=DPe[s],u=RPe[s],c=DPe[1-s],d=RPe[1-s];i&&sre("horizontal",o,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),h=o.getBoundingRect(),p=[-h.x,-h.y],m=x0(n);i&&(m[l]=n[l]-h[l]-f);var v=this._layoutContentAndController(e,r,m,s,l,c,d,u);if(i){if("end"===a)p[s]+=v[l]+f;else{var g=h[l]+f;p[s]-=g,v[u]-=g}v[l]+=h[l]+f,p[1-s]+=v[d]+v[c]/2-h[c]/2,v[c]=Math.max(v[c],h[c]),v[d]=Math.min(v[d],h[d]+p[1-s]),o.x=p[0],o.y=p[1],o.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;sre(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),sre("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),f=c.getBoundingRect(),h=this._showController=d[i]>n[i],p=[-d.x,-d.y];t||(p[r]=l[s]);var m=[0,0],v=[-f.x,-f.y],g=q0(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?v[r]+=n[i]-f[i]:m[r]+=f[i]+g);v[1-r]+=d[a]/2-f[a]/2,l.setPosition(p),u.setPosition(m),c.setPosition(v);var y={x:0,y:0};if(y[i]=h?n[i]:d[i],y[a]=Math.max(d[a],f[a]),y[o]=Math.min(0,f[o]+v[1-r]),u.__rectSize=n[i],h){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-g,0),b[a]=y[a],u.setClipPath(new k9({shape:b})),u.__rectSize=b[i]}else c.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return null!=w.pageIndex&&$ee(l,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;I0(["pagePrev","pageNext"],function(r){var i=null!=t[r+"DataIndex"],a=n.childOfName(r);a&&(a.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,s=t.pageCount;r&&i&&r.setStyle("text",F0(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=DPe[i],o=RPe[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var h=y(u);f.contentPosition[i]=-h.s;for(var p=s+1,m=h,v=h,g=null;p<=c;++p)(!(g=y(l[p]))&&v.e>m.s+r||g&&!b(g,m.s))&&(m=v.i>m.i?v:g)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),v=g;for(p=s-1,m=h,v=h,g=null;p>=-1;--p)(g=y(l[p]))&&b(v,g.s)||!(m.i<v.i)||(v=m,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=m.i),++f.pageCount,++f.pageIndex),m=g;return f;function y(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===e&&(t=i)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(xPe);function NPe(e){due(IPe),e.registerComponentModel(PPe),e.registerComponentView(LPe),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}(e)}var jPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="dataZoom.inside",t.defaultOption=une(DTe.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DTe),FPe=b8();function zPe(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function BPe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function VPe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function HPe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=FPe(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=s1());r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){I0(ETe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,function(e,t){var n={model:t,containsPoint:L0(VPe,t),dispatchAction:L0(BPe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new xve(e.getZr());return I0(["pan","zoom","scrollMove"],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}(t,n.model));(a.dataZoomInfoMap||(a.dataZoomInfoMap=s1())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");r[n+o]>r[n+t]&&(t=o),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),Aoe(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else zPe(r,e)})})}var WPe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e0(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){FPe(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}(r,t,{pan:R0(UPe.pan,this),zoom:R0(UPe.zoom,this),scrollMove:R0(UPe.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=FPe(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||zPe(n,o))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NTe),UPe={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=GPe[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return nxe(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:XPe(function(e,t,n,r,i,a){var o=GPe[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:XPe(function(e,t,n,r,i,a){return GPe[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function XPe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s)return nxe(e(o,s,t,n,r,i),o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}var GPe={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function YPe(e){WTe(e),e.registerComponentModel(jPe),e.registerComponentView(WPe),HPe(e)}var KPe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=une(DTe.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(DTe),qPe=k9,ZPe="horizontal",JPe="vertical",QPe=["line","bar","candlestick","scatter"],$Pe={easing:"cubicOut",duration:100,delay:0},eEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return e0(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=R0(this._onBrush,this),this._onBrushEnd=R0(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Aoe(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Coe(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new y4;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===ZPe?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},o=fre(e.option);I0(["right","top","width","height"],function(e){"ph"===o[e]&&(o[e]=a[e])});var s=lre(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===JPe&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==ZPe||i?n===ZPe&&i?{scaleY:o?1:-1,scaleX:-1}:n!==JPe||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new qPe({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new qPe({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:R0(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(o),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,f=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],m=[],v=h[1]/(i.count()-1),g=0,y=Math.round(i.count()/t[0]);i.each([o],function(e,t){if(y>0&&t%y)g+=v;else{var n=null==e||isNaN(e)||""===e,r=n?0:A4(e,u,f,!0);n&&!d&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=v,d=n}}),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,w=0;w<3;w++){var x=S(1===w);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function S(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new y4,r=new Tee({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Iee({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){I0(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&C0(QPe,e.get("type"))<0)){var o,s=r.getComponent(ITe(i),a).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:o}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,u=o.get("brushSelect"),c=t.filler=new qPe({silent:u,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new qPe({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),I0([0,1],function(t){var a=o.get("handleIcon");!kse[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a,Q4("handleIcon now needs 'path://' prefix when using a path string"));var s=Tse(a,-1,0,2,2,null,!0);s.attr({cursor:tEe(this._orient),draggable:!0,drift:R0(this._onDragMove,this,t),ondragend:R0(this._onDragEnd,this),onmouseover:R0(this._showDataInfo,this,!0),onmouseout:R0(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=o.get("handleSize");this._handleHeight=C4(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),O7(s);var c=o.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var d=o.getModel("textStyle"),f=(o.get("handleLabel")||{}).show||!1;e.add(r[t]=new T9({silent:!0,invisible:!f,style:Fte(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=c;if(u){var f=C4(o.get("moveHandleSize"),a[1]),h=t.moveHandle=new k9({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),p=.8*f,m=t.moveHandleIcon=Tse(o.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=a[1]+f/2-.5,h.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(a[1]/2,Math.max(f,10));(d=t.moveZone=new k9({invisible:!0,shape:{y:a[1]-v,height:f+v}})).on("mouseover",function(){s.enterEmphasis(h)}).on("mouseout",function(){s.leaveEmphasis(h)}),i.add(h),i.add(m),i.add(d)}d.attr({draggable:!0,cursor:tEe(this._orient),drift:R0(this._onDragMove,this,"all"),ondragstart:R0(this._showDataInfo,this,!0),ondragend:R0(this._onDragEnd,this),onmouseover:R0(this._showDataInfo,this,!0),onmouseout:R0(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[A4(e[0],[0,100],t,!0),A4(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];nxe(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?A4(a.minSpan,o,i,!0):null,null!=a.maxSpan?A4(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=O4([A4(r[0],i,o,!0),A4(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=O4(n.slice()),i=this._size;I0([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<o.length;l++){var u=o[l],c=u.getClipPath();c||(c=new k9,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,u=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=O4(this._handleEnds.slice());function d(e){var t=bte(n.handles[e].parent,this.group),o=xte(0===e?"right":"left",t),s=this._handleWidth/2+5,l=wte([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===ZPe?"middle":o,align:i===ZPe?o:"center",text:a[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return j0(r)?r(e,a):F0(r)?r.replace("{value}",a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),i.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,$1(r.event);var i=wte([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),a=this._updateInterval(e,i[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new f2(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=O4([A4(n.x,r,i,!0),A4(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&($1(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new qPe({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?$Pe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=ETe(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(NTe);function tEe(e){return"vertical"===e?"ns-resize":"ew-resize"}function nEe(e){e.registerComponentModel(KPe),e.registerComponentView(eEe),WTe(e)}var rEe=function(e,t,n){var r=x0((iEe[e]||{})[t]);return n&&N0(r)?r[r.length-1]:r},iEe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},aEe=Kye.mapVisual,oEe=Kye.eachVisual,sEe=N0,lEe=I0,uEe=O4,cEe=A4,dEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e0(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aIe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=R0(e,this),this.controllerVisuals=iIe(this.option.controller,t,e),this.targetVisuals=iIe(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries(function(e,n){t.push(n)}):t=a8(e),t},t.prototype.eachTargetSeries=function(e,t){I0(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,s=i.formatter;n=n||["<",">"],N0(e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return F0(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):j0(s)?r?s(e[0],e[1]):s(e):r?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=uEe([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});S0(r,n),S0(i,n);var a=this.isCategory();function o(n){sEe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}o.call(this,r),o.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},lEe(r,function(e,t){if(Kye.isValidType(t)){var n=rEe(t,"inactive",a);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}}))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";lEe(this.stateList,function(o){var s=this.itemSize,l=e[o];l||(l=e[o]={color:a?r:[r]}),null==l.symbol&&(l.symbol=t&&x0(t)||(a?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&x0(n)||(a?s[0]:[s[0],s[0]])),l.symbol=aEe(l.symbol,function(e){return"none"===e?i:e});var u=l.symbolSize;if(null!=u){var c=-1/0;oEe(u,function(e){e>c&&(c=e)}),l.symbolSize=aEe(u,function(e){return cEe(e,[0,c],[0,s[0]],!0)})}},this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(mre),fEe=[20,140],hEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=fEe[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=fEe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):N0(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),I0(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=O4((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=pEe(this,"outOfRange",this.getExtent()),n=pEe(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[o],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=une(dEe.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(dEe);function pEe(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],a=[],o=0;o<=200&&i<n[1];o++)a.push(i),i+=r;return a.push(n[1]),a}var mEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e0(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Zne(t.get("padding")||0),r=e.getBoundingRect();e.add(new k9({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,a={};if("color"===t){var o=i.get("contentColor");a.color=o}function s(e){return a[e]}function l(e,t){a[e]=t}var u=i.controllerVisuals[r||i.getValueState(e)];return I0(Kye.prepareVisualTypes(u),function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),Kye.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;ure(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(doe),vEe=[["left","right","width"],["top","bottom","height"]];function gEe(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o="horizontal"===r.orient?1:0,s=vEe[o],l=[0,null,10],u={},c=0;c<3;c++)u[vEe[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][o],f=lre(u,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*a[d[1]]?0:1]}function yEe(e,t){return I0(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var bEe=A4,wEe=I0,xEe=Math.min,SEe=Math.max,_Ee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e0(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=R0(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=R0(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new T9({style:Fte(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=gEe(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),l=new y4;s.add(l),l.add(n.outOfRange=kEe()),l.add(n.inRange=kEe(null,a?CEe(this._orient):null,R0(this._dragHandle,this,"all",!1),R0(this._dragHandle,this,"all",!0))),l.setClipPath(new k9({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("\u56fd"),c=SEe(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=R0(this._dragHandle,this,n,!1),s=R0(this._dragHandle,this,n,!0),l=o4(e.get("handleSize"),r[0]),u=Tse(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=CEe(this._orient);u.attr({cursor:c,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){$1(e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),R7(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,f=new T9({cursor:c,draggable:!0,drift:o,onmousemove:function(e){$1(e.event)},ondragend:s,style:Fte(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var h=[l,0],p=this._shapes;p.handleThumbs[n]=u,p.handleLabelPoints[n]=h,p.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=o4(e.get("indicatorSize"),n[0]),o=Tse(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(o instanceof g9){var l=o.style;o.useStyle(k0({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);t.add(o);var u=this.visualMapModel.textStyleModel,c=new T9({silent:!0,invisible:!0,style:Fte(u,{x:0,y:0,text:""})});this.group.add(c);var d=[("horizontal"===i?r/2:6)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=c,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():AEe(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[bEe(t[0],n,r,!0),bEe(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];nxe(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[bEe(r[0],i,a,!0),bEe(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new Vee(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var a=e[0]+r*i;if(a>e[1])break;n.push({color:this.getControllerVisual(a,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new y4("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);wEe([0,1],function(u){var c=i[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var d=bEe(e[u],[0,o[1]],s,!0),f=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=f/o[0],c.x=o[0]-f/2;var h=wte(n.handleLabelPoints[u],bte(c,this.group));if("horizontal"===this._orient){var p="left"===l||"top"===l?(o[0]-f)/2:(o[0]-f)/-2;h[1]+=p}a[u].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),f=bEe(e,a,s,!0),h=o[0]-d/2,p={x:u.x,y:u.y};u.y=f,u.x=h;var m=wte(l.indicatorLabelPoint,bte(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var g=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:y?g:"middle",align:y?"center":g});var b={x:h,y:f,style:{fill:c}},w={style:{x:m[0],y:m[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(b,x),v.animateTo(w,x)}else u.attr(b),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var _=0;_<S.length;_++)this.api.enterBlur(S[_])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=xEe(SEe(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=xEe(SEe(i[0],e),i[1]);var o=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=bEe(i,t,n,!0)/2);return r}(n,a,i),s=[e-o,e+o],l=bEe(e,i,a,!0),u=[bEe(s[0],i,a,!0),bEe(s[1],i,a,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"\u2248 ",o));var c=this._hoverLinkDataIndices,d=[];(t||AEe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=h8(e[r].seriesId,null);if(null==a)return;for(var o=a8(e[r].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(t[a]||(t[a]={}))[c]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,d);this._dispatchHighDown("downplay",yEe(f[0],n)),this._dispatchHighDown("highlight",yEe(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(mse(e.target,function(e){var n=B9(e);if(null!=n.dataIndex)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",yEe(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=bte(t,r?null:this.group);return N0(e)?wte(e,i,n):xte(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(mEe);function kEe(e,t,n,r){return new Tee({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){$1(e.event)},ondragend:r})}function AEe(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function CEe(e){return"vertical"===e?"ns-resize":"ew-resize"}var TEe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},OEe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},IEe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(t){var r,i,a,o,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((r=t.stateList,i=t.targetVisuals,a=R0(t.getValueState,t),o=t.getDataDimensionIndex(e.getData()),s={},I0(r,function(e){var t=Kye.prepareVisualTypes(i[e]);s[e]=t}),{progress:function(e,t){var n,r;function l(e){return cse(t,r,e)}function u(e,n){fse(t,r,e,n)}null!=o&&(n=t.getDimensionIndex(o));for(var c=t.getStore();null!=(r=e.next());){var d=t.getRawDataItem(r);if(!d||!1!==d.visualMap)for(var f=null!=o?c.get(n,r):r,h=a(f),p=i[h],m=s[h],v=0,g=m.length;v<g;v++){var y=m[v];p[y]&&p[y].applyVisual(f,l,u)}}}}))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(R0(PEe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function PEe(e,t,n,r){for(var i=t.targetVisuals[r],a=Kye.prepareVisualTypes(i),o={color:dse(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var EEe=I0;function MEe(e){var t=e&&e.visualMap;N0(t)||(t=t?[t]:[]),EEe(t,function(e){if(e){DEe(e,"splitList")&&!DEe(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&N0(t)&&EEe(t,function(e){V0(e)&&(DEe(e,"start")&&!DEe(e,"min")&&(e.min=e.start),DEe(e,"end")&&!DEe(e,"max")&&(e.max=e.end))})}})}function DEe(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var REe=!1;function LEe(e){REe||(REe=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(TEe,OEe),I0(IEe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(MEe))}function NEe(e){e.registerComponentModel(hEe),e.registerComponentView(_Ee),LEe(e)}var jEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return e0(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],FEe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=x0(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=P0(this._pieceList,function(e){return e=x0(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=Kye.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}I0(t.pieces,function(e){I0(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),I0(n,function(e,n){var r=!1;I0(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&I0(this.stateList,function(e){(t[e]||(t[e]={}))[n]=rEe(n,"inRange"===e?"active":"inactive",i)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,I0(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),"single"===n.selectedMode){var a=!1;I0(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=x0(e)},t.prototype.getValueState=function(e){var t=Kye.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){Kye.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),(a=i[i.length-1].interval[1])!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return I0(i,function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])},this),{stops:t,outerColors:n}}function s(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=une(dEe.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(dEe),FEe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var l=o===i-1?r[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),V4(e),I0(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;I0(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),zEe(t,e)},pieces:function(e){var t=this.option;I0(t.pieces,function(t,n){V0(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&null==a[c];f++)a[c]=t[d[f]],o[c]=s[f],u[c]=2===f;null==a[c]&&(a[c]=l[c])}u[0]&&a[1]===1/0&&(o[0]=0),u[1]&&a[0]===-1/0&&(o[1]=0),a[0],a[1],a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=Kye.retrieveVisuals(t),e.push(r)},this),zEe(t,e),V4(e),I0(e,function(e){var t=e.close,n=[["<","\u2264"][t[1]],[">","\u2265"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)},this)}};function zEe(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var BEe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return e0(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=K0(t.get("showLabel",!0),!u),d=!t.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,o),I0(l.viewPieceList,function(r){var l=r.piece,u=new y4;u.onclick=R0(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var f=t.getRepresentValue(l);if(this._createItemSymbol(u,f,[0,0,s[0],s[1]],d),c){var h=this.visualMapModel.getValueState(f);u.add(new T9({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===h?.5:1},silent:d}))}e.add(u)},this),u&&this._renderEndsText(e,u[1],s,c,o),sre(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:yEe(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return gEe(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new y4,o=this.visualMapModel.textStyleModel;a.add(new T9({style:Fte(o,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=P0(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Tse(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=x0(n.selected),a=t.getSelectedMapKey(e);"single"===r||!0===r?(i[a]=!0,I0(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(mEe);function VEe(e){e.registerComponentModel(jEe),e.registerComponentView(BEe),LEe(e)}var HEe={label:{enabled:!0},decal:{show:!1}},WEe=b8(),UEe={};function XEe(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=x0(HEe);S0(r.label,e.getLocaleModel().get("aria"),!1),S0(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=s1();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),WEe(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t))if(j0(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Ure(t.ecModel,t.name,UEe,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var a=t.getRawData(),o={},s=WEe(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var l=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+"",c=Ure(t.ecModel,i,s,l),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(d,c))})}}function u(e,t){var n=e?k0(k0({},t),e):t;return n.dirty=!0,n}})}}(),function(){var r=t.getZr().dom;if(!r)return;var a=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=A0(o.option,a),!o.get("enabled"))return;if(r.setAttribute("role","img"),o.get("description"))return void r.setAttribute("aria-label",o.get("description"));var s,l=e.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,d=Math.min(l,c);if(l<1)return;var f=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();s=f?i(o.get(["general","withTitle"]),{title:f}):o.get(["general","withoutTitle"]);var h=[];s+=i(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),e.eachSeries(function(t,n){if(n<d){var r=void 0,a=t.get("name")?"withName":"withoutName";r=i(r=l>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(w=t.subType,x=e.getLocaleModel().get(["series","typeNames"]),x[w]||x.chart)});var s=t.getData();if(s.count()>u)r+=i(o.get(["data","partialData"]),{displayCnt:u});else r+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),f=o.get(["data","separator","end"]),p=o.get(["data","excludeDimensionId"]),m=[],v=0;v<s.count();v++)if(v<u){var g=s.getName(v),y=p?M0(s.getValues(v),function(e,t){return-1===C0(p,t)}):s.getValues(v),b=o.get(["data",g?"withName":"withoutName"]);m.push(i(b,{name:g,value:y.join(c)}))}r+=m.join(c)+f,h.push(r)}var w,x});var p=o.getModel(["series","multiple","separator"]),m=p.get("middle"),v=p.get("end");s+=h.join(m)+v,r.setAttribute("aria-label",s)}()}function i(e,t){if(!F0(e))return e;var n=e;return I0(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function GEe(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},I0(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var YEe={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},KEe=function(){function e(e){if(null==(this._condVal=F0(e)?new RegExp(e):G0(e)?e:null)){t8(e8("Illegal regexp",e,"in"))}}return e.prototype.evaluate=function(e){var t=typeof e;return F0(t)?this._condVal.test(e):!!B0(t)&&this._condVal.test(e+"")},e}(),qEe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ZEe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),JEe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),QEe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),$Ee=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();function eMe(e,t){if(!0===e||!1===e){var n=new qEe;return n.value=e,n}return nMe(e)||t8(e8("Illegal config. Expect a plain object but actually",e)),e.and?tMe("and",e,t):e.or?tMe("or",e,t):e.not?function(e,t){var n=e.not,r="";r=e8('"not" condition should only be `not: {}`.',"Illegal condition:",e),nMe(n)||t8(r);var i=new QEe;i.child=eMe(n,t),i.child||t8(r);return i}(e,t):function(e,t){for(var n=t.prepareGetValue(e),r=[],i=D0(e),a=e.parser,o=a?sae(a):null,s=0;s<i.length;s++){var l=i[s];if("parser"!==l&&!t.valueGetterAttrMap.get(l)){var u=d1(YEe,l)?YEe[l]:l,c=e[l],d=o?o(c):c,f=fae(u,d)||"reg"===u&&new KEe(d);f||t8(e8('Illegal relational operation: "'+l+'" in condition:',e)),r.push(f)}}r.length||t8(e8("Relational condition must have at least one operator.","Illegal condition:",e));var h=new $Ee;return h.valueGetterParam=n,h.valueParser=o,h.getValue=t.getValue,h.subCondList=r,h}(e,t)}function tMe(e,t,n){var r,i=t[e];r=e8('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t),N0(i)||t8(r),i.length||t8(r);var a="and"===e?new ZEe:new JEe;return a.children=P0(i,function(e){return eMe(e,n)}),a.children.length||t8(r),a}function nMe(e){return V0(e)&&!O0(e)}var rMe=function(){function e(e,t){this._cond=eMe(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var iMe,aMe={type:"echarts:filter",transform:function(e){for(var t,n,r,i=e.upstream,a=(n=e.config,r={valueGetterAttrMap:s1({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;d1(e,"dimension")||t8(e8('Relation condition must has prop "dimension" specified.',"Illegal condition:",e));var n=i.getDimensionInfo(t);return n||t8(e8("Can not find dimension info via: "+t+".\n","Existing dimensions: ",i.cloneAllDimensionInfo(),".\n","Illegal condition:",e,".\n")),{dimIdx:n.index}},getValue:function(e){return i.retrieveValueFromItem(t,e.dimIdx)}},new rMe(n,r)),o=[],s=0,l=i.count();s<l;s++)t=i.getRawDataItem(s),a.evaluate()&&o.push(t);return{data:o}}};iMe=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var oMe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r=a8(n);r.length||t8("Empty `config` in sort transform.");var i=[];I0(r,function(e){var n=e.dimension,r=e.order,a=e.parser,o=e.incomparable;if(null==n&&t8('Sort transform config must has "dimension" specified.'+iMe),"asc"!==r&&"desc"!==r&&t8('Sort transform config must has "order" specified.'+iMe),o&&"min"!==o&&"max"!==o){t8('incomparable must be "min" or "max" rather than "'+o+'".')}if("asc"!==r&&"desc"!==r){t8('order must be "asc" or "desc" rather than "'+r+'".')}var s=t.getDimensionInfo(n);s||t8(e8("Can not find dimension info via: "+n+".\n","Existing dimensions: ",t.cloneAllDimensionInfo(),".\n","Illegal config:",e,".\n"));var l=a?sae(a):null;a&&!l&&t8(e8("Invalid parser name "+a+".\n","Illegal config:",e,".\n")),i.push({dimIdx:s.index,parser:l,comparator:new cae(r,o)})});var a=t.sourceFormat;a!==xre&&a!==Sre&&t8('sourceFormat "'+a+'" is not supported yet');for(var o=[],s=0,l=t.count();s<l;s++)o.push(t.getRawDataItem(s));return o.sort(function(e,n){for(var r=0;r<i.length;r++){var a=i[r],o=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(o=a.parser(o),s=a.parser(s));var l=a.comparator.evaluate(o,s);if(0!==l)return l}return 0}),{data:o}}};var sMe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return e0(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Dae(this),Rae(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Rae(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Cre},t}(mre),lMe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return e0(t,e),t.type="dataset",t}(doe);var uMe=X6.CMD;function cMe(e,t){return Math.abs(e-t)<1e-5}function dMe(e){var t,n,r,i,a,o=e.data,s=e.len(),l=[],u=0,c=0,d=0,f=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){cMe(e,r)&&cMe(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),f=Math.cos(n),h=Math.sin(n),p=c*a+r,m=d*o+i,v=f*a+r,g=h*o+i,y=a*l*u,b=o*l*u;t.push(p-y*d,m+b*c,v+y*h,g-b*f,v,g)}for(var v=0;v<s;){var g=o[v++],y=1===v;switch(y&&(d=u=o[v],f=c=o[v+1],g!==uMe.L&&g!==uMe.C&&g!==uMe.Q||(t=[d,f])),g){case uMe.M:u=d=o[v++],c=f=o[v++],h(d,f);break;case uMe.L:p(u,c,n=o[v++],r=o[v++]),u=n,c=r;break;case uMe.C:t.push(o[v++],o[v++],o[v++],o[v++],u=o[v++],c=o[v++]);break;case uMe.Q:n=o[v++],r=o[v++],i=o[v++],a=o[v++],t.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),a+2/3*(r-a),i,a),u=i,c=a;break;case uMe.A:var b=o[v++],w=o[v++],x=o[v++],S=o[v++],_=o[v++],k=o[v++]+_;v+=1;var A=!o[v++];n=Math.cos(_)*x+b,r=Math.sin(_)*S+w,y?h(d=n,f=r):p(u,c,n,r),u=Math.cos(k)*x+b,c=Math.sin(k)*S+w;for(var C=(A?-1:1)*Math.PI/2,T=_;A?T>k:T<k;T+=C){m(T,A?Math.max(T+C,k):Math.min(T+C,k),b,w,x,S)}break;case uMe.R:d=u=o[v++],f=c=o[v++],n=d+o[v++],r=f+o[v++],h(n,f),p(n,f,n,r),p(n,r,d,r),p(d,r,d,f),p(d,f,n,f);break;case uMe.Z:t&&p(u,c,d,f),u=d,c=f}}return t&&t.length>2&&l.push(t),l}function fMe(e,t,n,r,i,a,o,s,l,u){if(cMe(e,n)&&cMe(t,r)&&cMe(i,o)&&cMe(a,s))l.push(o,s);else{var c=2/u,d=c*c,f=o-e,h=s-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var m=n-e,v=r-t,g=i-o,y=a-s,b=m*m+v*v,w=g*g+y*y;if(b<d&&w<d)l.push(o,s);else{var x=f*m+h*v,S=-f*g-h*y;if(b-x*x<d&&x>=0&&w-S*S<d&&S>=0)l.push(o,s);else{var _=[],k=[];a3(e,n,i,o,.5,_),a3(t,r,a,s,.5,k),fMe(_[0],k[0],_[1],k[1],_[2],k[2],_[3],k[3],l,u),fMe(_[4],k[4],_[5],k[5],_[6],k[6],_[7],k[7],l,u)}}}}function hMe(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=n-o*s;if(c>0)for(u=0;u<c;u++)l[u%o]+=1;return l}function pMe(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-r,c=l>Math.abs(u),d=hMe([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;h<d.length;h++)for(var p=(c?u:s)/d[h],m=0;m<d[h];m++){var v={};c?(v.startAngle=a+f*h,v.endAngle=a+f*(h+1),v.r0=r+p*m,v.r=r+p*(m+1)):(v.startAngle=a+p*m,v.endAngle=a+p*(m+1),v.r0=r+f*h,v.r=r+f*(h+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function mMe(e,t,n,r){return e*r-n*t}function vMe(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,f=mMe(c,d,l,u);if(Math.abs(f)<1e-6)return null;var h=mMe(e-i,t-a,c,d)/f;return h<0||h>1?null:new f2(h*l+e,h*u+t)}function gMe(e,t,n){var r=new f2;f2.sub(r,n,t),r.normalize();var i=new f2;return f2.sub(i,e,t),i.dot(r)}function yMe(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function bMe(e){var t=e.points,n=[],r=[];w6(t,n,r);var i=new x2(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new f2,c=new f2;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),function(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],l=vMe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:gMe(l,t,n),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var f=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[f],m=[h];for(a=u.idx+1;a<=c.idx;a++)yMe(p,e[a].slice());for(yMe(p,h),yMe(p,f),a=c.idx+1;a<=u.idx+r;a++)yMe(m,e[a%r].slice());return yMe(m,f),yMe(m,h),[{points:p},{points:m}]}(t,u,c)}function wMe(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),a=e(t);wMe(e,a[0],i,r),wMe(e,a[1],n-i,r)}return r}function xMe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function SMe(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=hMe([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",d=e[s]/o.length,f=0;f<o.length;f++)for(var h=e[l]/o[f],p=0;p<o[f];p++){var m={};m[u]=f*d,m[c]=p*h,m[s]=d,m[l]=h,m.x+=e.x,m.y+=e.y,n.push(m)}}(i,t,r),n=k9;break;case"sector":pMe(i,t,r),n=See;break;case"circle":pMe({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=See;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=P0(function(e,t){var n=dMe(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],d=a[u++],f=a[u++],h=a[u++],p=a[u++],m=a[u++];fMe(s,l,c,d,f,h,p,m,o,t),s=p,l=m}r.push(o)}return r}(e.getUpdatedPathProxy(),o),function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)}),l=s.length;if(0===l)wMe(bMe,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=P0(s,function(e){var t=[],n=[];w6(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return c+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});var f=t;for(u=0;u<l;u++){var h=d[u];if(f<=0)break;var p=u===l-1?f:Math.ceil(h.area/c*t);p<0||(wMe(bMe,{points:h.poly},p,r),f-=p)}}n=Tee}if(!n)return function(e,t){for(var n=[],r=0;r<t;r++)n.push(ree(e));return n}(e,t);var m=[];for(u=0;u<r.length;u++){var v=new n;v.setShape(r[u]),xMe(e,v),m.push(v)}return m}function _Me(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],f=l,h=2;h<s;){var p=o[h-2],m=o[h-1],v=o[h++],g=o[h++],y=o[h++],b=o[h++],w=o[h++],x=o[h++];if(f<=0)d.push(v,g,y,b,w,x);else{for(var S=Math.min(f,c-1)+1,_=1;_<=S;_++){var k=_/S;a3(p,v,y,w,k,i),a3(m,g,b,x,k,a),p=i[3],m=a[3],d.push(i[1],a[1],i[2],a[2],p,m),v=i[5],g=a[5],y=i[6],b=a[6]}f-=S-1}}return o===e?[d,t]:[e,d]}function kMe(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function AMe(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],d=s*c-u*l;t+=d,n+=(s+u)*d,r+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function CMe(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=6*u,d=0,f=0;f<s;f+=2){var h=0===f?c:(c+f-2)%l+2,p=e[h]-n[0],m=e[h+1]-n[1],v=t[f]-r[0]-p,g=t[f+1]-r[1]-m;d+=v*v+g*g}d<a&&(a=d,o=u)}return o}function TMe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function OMe(e){return e.__isCombineMorphing}var IMe="__mOriginal_";function PMe(e,t,n){var r=IMe+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=a?a.apply(this,t):i.apply(this,t),o&&o.apply(this,t),e}}function EMe(e,t){var n=IMe+t;e[n]&&(e[t]=e[n],e[n]=null)}function MMe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function DMe(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=function(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(r=c=(n=_Me(l,u))[0],i=d=n[1]):(d=kMe(i||l,l),c=l):(c=kMe(r||u,u),d=u),a.push(c),o.push(d)}return[a,o]}(dMe(n),dMe(r)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&MMe(a,s),l&&MMe(o,l),PMe(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=function(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],u=AMe(s),c=AMe(l);null==i&&(i=u[2]<0!=c[2]<0);var d=[],f=[],h=0,p=1/0,m=[],v=s.length;i&&(s=TMe(s));for(var g=6*CMe(s,l,u,c),y=v-2,b=0;b<y;b+=2){var w=(g+b)%y+2;d[b+2]=s[w]-u[0],d[b+3]=s[w+1]-u[1]}d[0]=s[g]-u[0],d[1]=s[g+1]-u[1];for(var x=r/n,S=-r/2;S<=r/2;S+=x){var _=Math.sin(S),k=Math.cos(S),A=0;for(b=0;b<s.length;b+=2){var C=d[b],T=d[b+1],O=l[b]-c[0],I=l[b+1]-c[1],P=O*k-I*_,E=O*_+I*k;m[b]=P,m[b+1]=E;var M=P-C,D=E-T;A+=M*M+D*D}if(A<p){p=A,h=S;for(var R=0;R<m.length;R++)f[R]=m[R]}}a.push({from:d,to:f,fromCp:u,toCp:c,rotation:-h})}return a}(a,o,10,Math.PI),c=[];PMe(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,l=o.to,d=o.rotation*n,f=o.fromCp,h=o.toCp,p=Math.sin(d),m=Math.cos(d);T1(i,f,h,n);for(var v=0;v<s.length;v+=2){var g=s[v],y=s[v+1],b=g*r+(_=l[v])*n,w=y*r+(k=l[v+1])*n;c[v]=b*m-w*p+i[0],c[v+1]=b*p+w*m+i[1]}var x=c[0],S=c[1];e.moveTo(x,S);for(v=2;v<s.length;){var _=c[v++],k=c[v++],A=c[v++],C=c[v++],T=c[v++],O=c[v++];x===_&&S===k&&A===T&&C===O?e.lineTo(T,O):e.bezierCurveTo(_,k,A,C,T,O),x=T,S=O}}}})}function RMe(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;return DMe(e,t),t.__morphT=0,t.animateTo({__morphT:1},A0({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){EMe(t,"buildPath"),EMe(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function LMe(e,t,n,r,i,a){e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var o,s=0,l=32768;l>0;l/=2){var u=0,c=0;(e&l)>0&&(u=1),(t&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(e=l-1-e,t=l-1-t),o=e,e=t,t=o)}return s}function NMe(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=P0(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]});return P0(a,function(a,o){return{cp:a,z:LMe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function jMe(e){return SMe(e.path,e.count)}function FMe(e){return N0(e[0])}function zMe(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[i].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var BMe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=ree(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function VMe(e,t,n,r,i,a){if(e.length&&t.length){var o=Jee("update",r,i);if(o&&o.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},o);FMe(e)&&(s=e,l=t),FMe(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,f=s?zMe(l,s):zMe(d?t:e,[d?e:t]),h=0,p=0;p<f.length;p++)h+=f[p].many.length;var m=0;for(p=0;p<f.length;p++)v(f[p],d,m,h),m+=f[p].many.length}}function v(e,t,r,i,o){var s=e.many,l=e.one;if(1!==s.length||o)for(var d=A0({dividePath:BMe[n],individualDelay:u&&function(e,t,n,a){return u(e+r,i)}},c),f=t?function(e,t,n){var r=[];!function e(t){for(var n=0;n<t.length;n++){var i=t[n];OMe(i)?e(i.childrenRef()):i instanceof f9&&r.push(i)}}(e);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var a=(n.dividePath||jMe)({path:t,count:i});if(a.length!==i)return{fromIndividuals:[],toIndividuals:[],count:0};r=NMe(r),a=NMe(a);for(var o=n.done,s=n.during,l=n.individualDelay,u=new Z5,c=0;c<i;c++){var d=r[c],f=a[c];f.parent=t,f.copyTransform(u),l||DMe(d,f)}function h(e){for(var t=0;t<a.length;t++)a[t].addSelfToZr(e)}function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,EMe(t,"addSelfToZr"),EMe(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return a},PMe(t,"addSelfToZr",{after:function(e){h(e)}}),PMe(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<a.length;t++)a[t].removeSelfFromZr(e)}});var m=a.length;if(l){var v=m,g=function(){0===--v&&(p(),o&&o())};for(c=0;c<m;c++){var y=l?A0({delay:(n.delay||0)+l(c,m,r[c],a[c]),done:g},n):n;RMe(r[c],a[c],y)}}else t.__morphT=0,t.animateTo({__morphT:1},A0({during:function(e){for(var n=0;n<m;n++){var r=a[n];r.__morphT=t.__morphT,r.dirtyShape()}s&&s(e)},done:function(){p();for(var t=0;t<e.length;t++)EMe(e[t],"updateTransform");o&&o()}},n));return t.__zr&&h(t.__zr),{fromIndividuals:r,toIndividuals:a,count:m}}(s,l,d):function(e,t,n){var r=t.length,i=[],a=n.dividePath||jMe;if(OMe(e)){!function e(t){for(var n=0;n<t.length;n++){var r=t[n];OMe(r)?e(r.childrenRef()):r instanceof f9&&i.push(r)}}(e.childrenRef());var o=i.length;if(o<r)for(var s=0,l=o;l<r;l++)i.push(ree(i[s++%o]));i.length=r}else{i=a({path:e,count:r});var u=e.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return{fromIndividuals:[],toIndividuals:[],count:0}}i=NMe(i),t=NMe(t);var c=n.individualDelay;for(l=0;l<r;l++){var d=c?A0({delay:(n.delay||0)+c(l,r,i[l],t[l])},n):n;RMe(i[l],t[l],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}(l,s,d),h=f.fromIndividuals,p=f.toIndividuals,m=h.length,g=0;g<m;g++){y=u?A0({delay:u(g,m)},c):c;a(h[g],p[g],t?s[g]:e.one,t?e.one:s[g],y)}else{var y,b=t?s[0]:l,w=t?l:s[0];if(OMe(b))v({many:[b],one:w},!0,r,i,!0);else RMe(b,w,y=u?A0({delay:u(r,i)},c):c),a(b,w,b,w,y)}}}function HMe(e){if(!e)return[];if(N0(e)){for(var t=[],n=0;n<e.length;n++)t.push(HMe(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof f9&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var WMe=b8();function UMe(e,t,n,r){var i=function(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&0===i.otherDims[t])return n[r]}}(e,r?"itemChildGroupId":"itemGroupId");if(i){var a=function(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+""}}(e,t,i);return a}var o=e.getRawDataItem(t),s=r?"childGroupId":"groupId";return o&&o[s]?o[s]+"":r?void 0:n||e.getId(t)}function XMe(e){var t=[];return I0(e,function(e){var n=e.data,r=e.dataGroupId;if(n.count()>1e4)Z4("Universal transition is disabled on large data > 10k.");else for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:UMe(n,a,r,!1),childGroupId:UMe(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function GMe(e,t,n){e.traverse(function(e){e instanceof f9&&ete(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function YMe(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function KMe(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function qMe(e,t,n){var r=Jee("update",n,t);r&&e.traverse(function(e){if(e instanceof u6){var t=function(e){return Zee(e).oldStyle}(e);t&&e.animateFrom({style:t},r)}})}function ZMe(e,t,n){var r=XMe(e),i=XMe(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?k0(k0({},n.style),e.style):e.style},i)}var o=!1,s=0,l=s1(),u=s1();r.forEach(function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)});for(var c=0;c<i.length;c++){var d=i[c].groupId;if(u.get(d)){s=1;break}var f=i[c].childGroupId;if(f&&l.get(f)){s=2;break}}function h(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var p=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}(r,i),m={};if(!p)for(c=0;c<i.length;c++){var v=i[c],g=v.data.getItemGraphicEl(v.dataIndex);g&&(m[g.id]=!0)}function y(e,t){var n=r[t],s=i[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&m[u.id]||c&&(KMe(c),u?(KMe(u),YMe(u),o=!0,VMe(HMe(u),HMe(c),s.divide,l,e,a)):GMe(c,l,e)):c&&qMe(c,s.dataIndex,l)}new pue(r,i,h(!0,p),h(!1,p),null,"multiple").update(y).updateManyToOne(function(e,t){var n=i[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=M0(P0(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==u&&!m[e.id]});u&&(KMe(u),c.length?(I0(c,function(e){KMe(e),YMe(e)}),o=!0,VMe(HMe(c),HMe(u),n.divide,l,e,a)):GMe(u,l,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!m[s.id]){var l=M0(P0(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),u=i[e[0]].data.hostModel;l.length&&(I0(l,function(e){return KMe(e)}),s?(KMe(s),YMe(s),o=!0,VMe(HMe(s),HMe(l),n.divide,u,e[0],a)):I0(l,function(t){return GMe(t,u,e[0])}))}}).updateManyToMany(function(e,t){new pue(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){y(e[n],t[r])}).execute()}).execute(),o&&I0(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Jee("update",t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof f9&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function JMe(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function QMe(e){return N0(e)?e.sort().join(","):e}function $Me(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function eDe(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}due([function(e){e.registerPainter("canvas",Ihe)}]),due([function(e){e.registerPainter("svg",She)}]),due([function(e){e.registerChartView(cpe),e.registerSeriesModel(Phe),e.registerLayout(dpe("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ppe("line"))},function(e){e.registerChartView(kpe),e.registerSeriesModel(vpe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,L0(yce,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bce("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ppe("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})},function(e){e.registerChartView($pe),e.registerSeriesModel(rme),hse("pie",e.registerAction),e.registerLayout(L0(Upe,"pie")),e.registerProcessor(Gpe("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(B0(r)&&!isNaN(r)&&r<0)})}})},function(e){due(rve),e.registerSeriesModel(ime),e.registerChartView(lme),e.registerLayout(dpe("scatter"))},function(e){due(gve),e.registerChartView(lve),e.registerSeriesModel(uve),e.registerLayout(ive),e.registerProcessor(Gpe("radar")),e.registerPreprocessor(sve)},function(e){due(Xge),e.registerChartView(Tge),e.registerSeriesModel(Oge),e.registerLayout(Pge),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ige),hse("map",e.registerAction)},function(e){e.registerChartView(rye),e.registerSeriesModel(Aye),e.registerLayout(Tye),e.registerVisual(Oye),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var r=Hge(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)})})}(e)},function(e){e.registerSeriesModel(Eye),e.registerChartView(Uye),e.registerVisual(sbe),e.registerLayout(wbe),function(e){for(var t=0;t<Iye.length;t++)e.registerAction({type:Iye[t],update:"updateView"},f1);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var r=xye(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=_ye(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})})}(e)},function(e){e.registerChartView(xwe),e.registerSeriesModel(Owe),e.registerProcessor(Cbe),e.registerVisual(Tbe),e.registerVisual(Ibe),e.registerLayout(zbe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Ybe),e.registerLayout(qbe),e.registerCoordinateSystem("graphView",{dimensions:Mge.dimensions,create:Zbe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},f1),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},f1),e.registerAction(Iwe,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(t){var r=Hge(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)})})},function(e){e.registerChartView(Dwe),e.registerSeriesModel(Rwe)},function(e){e.registerChartView(jwe),e.registerSeriesModel(Fwe),e.registerLayout(zwe),e.registerProcessor(Gpe("funnel"))},function(e){due(fSe),e.registerChartView(Bwe),e.registerSeriesModel(Gwe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qwe)},function(e){e.registerChartView(mSe),e.registerSeriesModel(gSe),e.registerLayout(ySe),e.registerVisual(PSe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(e){e.registerSeriesModel(MSe),e.registerChartView(DSe),e.registerLayout(BSe),e.registerTransform(VSe)},function(e){e.registerChartView(JSe),e.registerSeriesModel(l_e),e.registerPreprocessor(u_e),e.registerVisual(qSe),e.registerLayout(c_e)},function(e){e.registerChartView(p_e),e.registerSeriesModel(m_e),e.registerLayout(dpe("effectScatter"))},function(e){e.registerChartView(__e),e.registerSeriesModel(T_e),e.registerLayout(S_e),e.registerVisual(I_e)},function(e){e.registerChartView(M_e),e.registerSeriesModel(D_e)},function(e){e.registerChartView(j_e),e.registerSeriesModel(tke),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,L0(yce,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bce("pictorialBar"))},function(e){e.registerChartView(nke),e.registerSeriesModel(rke),e.registerLayout(ike),e.registerProcessor(Gpe("themeRiver"))},function(e){e.registerChartView(uke),e.registerSeriesModel(cke),e.registerLayout(L0(hke,"sunburst")),e.registerProcessor(L0(Gpe,"sunburst")),e.registerVisual(mke),function(e){e.registerAction({type:ske,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var r=xye(e,[ske],t);if(r){var i=t.getViewRoot();i&&(e.direction=_ye(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})}),e.registerAction({type:lke,update:"none"},function(e,t,n){e=k0({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=xye(e,[lke],t);n&&(e.dataIndex=n.node.dataIndex)}),$4("sunburstHighlight","highlight"),n.dispatchAction(k0(e,{type:"highlight"}))}),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,n){e=k0({},e),$4("sunburstUnhighlight","downplay"),n.dispatchAction(k0(e,{type:"downplay"}))})}(e)},function(e){e.registerChartView(fAe),e.registerSeriesModel(bke)}]),due(function(e){due(rve),due(hCe)}),due(function(e){due(hCe),Xme.registerAxisPointerClass("PolarAxisPointer",pCe),e.registerCoordinateSystem("polar",OCe),e.registerComponentModel(vCe),e.registerComponentView(UCe),vme(e,"angle",yCe,HCe),vme(e,"radius",bCe,WCe),e.registerComponentView(DCe),e.registerComponentView(jCe),e.registerLayout(L0(VCe,"bar"))}),due(Xge),due(function(e){due(hCe),Xme.registerAxisPointerClass("SingleAxisPointer",iTe),e.registerComponentView(lTe),e.registerComponentView(KCe),e.registerComponentModel(ZCe),vme(e,"single",ZCe,ZCe.defaultOption),e.registerCoordinateSystem("single",tTe)}),due(fSe),due(function(e){e.registerComponentModel(uTe),e.registerComponentView(dTe),e.registerCoordinateSystem("calendar",hTe)}),due(function(e){e.registerComponentModel(bTe),e.registerComponentView(STe),e.registerPreprocessor(function(e){var t=e.graphic;N0(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),due(function(e){e.registerComponentModel(qTe),e.registerComponentView(JTe),YTe("saveAsImage",QTe),YTe("magicType",tOe),YTe("dataView",lOe),YTe("dataZoom",POe),YTe("restore",hOe),due(UTe)}),due(function(e){due(hCe),e.registerComponentModel(DOe),e.registerComponentView(ZOe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},f1),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},f1)}),due(hCe),due(function(e){e.registerComponentView(yIe),e.registerComponentModel(bIe),e.registerPreprocessor(tIe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,hIe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},f1),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},f1),YTe("brush",SIe)}),due(function(e){e.registerComponentModel(_Ie),e.registerComponentView(kIe)}),due(function(e){e.registerComponentModel(CIe),e.registerComponentView(EIe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),A0({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)})}(e),e.registerPreprocessor(RIe)}),due(function(e){e.registerComponentModel(VIe),e.registerComponentView($Ie),e.registerPreprocessor(function(e){jIe(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),due(function(e){e.registerComponentModel(ePe),e.registerComponentView(sPe),e.registerPreprocessor(function(e){jIe(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),due(function(e){e.registerComponentModel(lPe),e.registerComponentView(vPe),e.registerPreprocessor(function(e){jIe(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),due(function(e){due(IPe),due(NPe)}),due(function(e){due(YPe),due(nEe)}),due(YPe),due(nEe),due(function(e){due(NEe),due(VEe)}),due(NEe),due(VEe),due(function(e){e.registerPreprocessor(GEe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,XEe)}),due(function(e){e.registerTransform(aMe),e.registerTransform(oMe)}),due(function(e){e.registerComponentModel(sMe),e.registerComponentView(lMe)}),due(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){I0(a8(n.seriesTransition),function(e){I0(a8(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][noe]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var r=WMe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)I0(a8(i),function(e){!function(e,t,n,r){var i=[],a=[];I0(a8(e.from),function(e){var n=eDe(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:$Me(t.oldData[n]),groupIdDim:e.dimension})}),I0(a8(e.to),function(e){var r=eDe(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:$Me(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&ZMe(i,a,r)}(e,r,n,t)});else{var a=function(e,t){var n=s1(),r=s1(),i=s1();function a(e){n.get(e)&&Z4("Duplicated seriesKey in universalTransition "+e)}return I0(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=JMe(t),l=QMe(s);r.set(l,{dataGroupId:a,data:o}),N0(s)&&I0(s,function(e){i.set(e,{key:l,dataGroupId:a,data:o})})}),I0(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),s=JMe(e),l=QMe(s),u=r.get(l);if(u)a(l),n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:$Me(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:$Me(o),data:o}]});else if(N0(s)){a(l);var c=[];I0(s,function(e){var t=r.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:$Me(t.data),data:t.data})}),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:$Me(o)}]})}else{var d=i.get(s);if(d){var f=n.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:$Me(d.data)}],newSeries:[]},n.set(d.key,f)),f.newSeries.push({dataGroupId:t,data:o,divide:$Me(o)})}}}}),n}(r,n);I0(a.keys(),function(e){var n=a.get(e);ZMe(n.oldSeries,n.newSeries,t)})}I0(n.updatedSeries,function(e){e[noe]&&(e[noe]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<o.length;c++){var d=o[c].getData();d.count()<1e4&&(s.push(o[c]),l.push(o[c].get("dataGroupId")),u.push(d))}})}),due(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=cfe(t).labelManager;r||(r=cfe(t).labelManager=new ufe),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=cfe(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})});var tDe,nDe={exports:{}};var rDe=(tDe||(tDe=1,function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,o=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:f,h:o,m:a,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",S=function(e){return e instanceof C||!(!e||!e[x])},_=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();w[a]&&(i=a),n&&(w[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},A=y;A.l=_,A.i=S,A.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function v(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!A.u(t)||t,c=A.p(e),h=function(e,t){var i=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return A.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?h(1,0):h(31,11);case u:return r?h(1,v):h(0,v+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return h(r?g-w:g+(6-w),v);case s:case f:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=A.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[o]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[h](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[A.p(e)]()},g.add=function(r,c){var f,h=this;r=Number(r);var p=A.p(c),m=function(e){var t=k(h);return A.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===s)return m(1);if(p===l)return m(7);var v=(f={},f[a]=t,f[o]=n,f[i]=e,f)[p]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return A.s(a%12||12,e,"0")},p=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return A.s(t.$y,4,"0");case"M":return s+1;case"MM":return A.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return A.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return A.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return A.s(o,2,"0");case"s":return String(t.$s);case"ss":return A.s(t.$s,2,"0");case"SSS":return A.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,h){var p,m=this,v=A.p(f),g=k(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return A.m(m,g)};switch(v){case d:p=w()/12;break;case u:p=w();break;case c:p=w()/3;break;case l:p=(b-y)/6048e5;break;case s:p=(b-y)/864e5;break;case o:p=b/n;break;case a:p=b/t;break;case i:p=b/e;break;default:p=b}return h?p:A.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),T=C.prototype;return k.prototype=T,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",u],["$y",d],["$D",f]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,C,k),e.$i=!0),k},k.locale=_,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[b],k.Ls=w,k.p={},k}()}(nDe)),nDe.exports);const iDe=xg(rDe),aDe=e=>({result:!isNaN(e),message:nf.global.t("error.inputNumber"),type:"error"}),oDe=function(e,t=""){if(""!==e&&null!=e){const n=(e=String(e)).split(".").map(e=>e.replace(/(\d)(?=(\d{3})+$)/g,"$1,")).join(".");return t?t+n:n}return"N/A"},sDe=function(e,t=""){return""!==e&&null!=e?(e=(Number(e)/1e5).toFixed(2),oDe(e,t)):"N/A"},lDe=(e,t)=>{let n="";t.forEach(e=>{let t=e.value;void 0===e.value||null===e.value?t="-":"score"===e.valueType?t=function(e){return null==e?"N/A":parseFloat((~~e/10).toFixed(2))}(e.value):"amount"===e.valueType?(t=sDe(e.value),e.unit&&(t=e.unit+t)):"percent"===e.valueType?t=function(e,t=!1){if(null==e)return"N/A";const n=(parseInt(`${e}`)/100).toFixed(2);let r="";return t?(r=+e>=0?"+":"",`${r+n}%`):`${n}%`}(e.value):/^\d+(\.\d+)?$/.test(e.value)&&(t=oDe(e.value)),n+=`\n      <div class="content-item">\n        <span class="marker" style="background:${e.color};"></span>\n        <span class="label">${e.label}</span>\n        <span class="value">${t}</span>\n      </div>\n    `});return`\n    <div class="my-chart-tooltip">\n      <div class="title">${e}</div>\n      <div class="content">${n}</div>\n    </div>\n  `};const uDe=yr({name:"td-chart",props:{id:String,dates:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},cursorType:{type:Boolean,default:()=>!1}},setup(e){const t=function(e,t,n){let r=[...e],i=[];for(let a=0;a<n;a++)i.push(null);return r.splice(t,0,...i),r};let n=null;ta(()=>e.dates,r=>{var i,a;r.length&&(i=e.dates,a=e.data,n&&n.dispose(),fn(()=>{const r=document.getElementById("td-chart"+e.id);r.style.width="120px",r.style.height="64px",n=Qle(r);const o=i,s=a.map(e=>e||0);let l={tooltip:{trigger:"axis",formatter:e=>{let t=e[0].axisValue;t=t?iDe(t).format(nf.global.t("tools.dateFormat")):"";let n=a[e[0].dataIndex]||"N/A";return lDe(t,[{label:nf.global.t("productBasicInfo.searchVolume"),value:n,color:"#FD963C"}])}},grid:{left:0,right:0,top:0,bottom:0},color:["#FD963C","#919EF4"],xAxis:{show:!1,type:"category",data:o},yAxis:{type:"value",show:!1,boundaryGap:["1%","1%"]},series:[{data:t(s.slice(0,s.length-1),s.length,1),symbol:"none",type:"line",lineStyle:{width:1},areaStyle:{color:new Vee(0,0,0,1,[{offset:0,color:"#FDDFC2"},{offset:1,color:"#FFFFFF"}])},connectNulls:!0},{data:t(s.slice(s.length-2),0,s.length-2),symbol:"none",type:"line",lineStyle:{width:1},areaStyle:{color:new Vee(0,0,0,1,[{offset:0,color:"#BAC3FF"},{offset:1,color:"#FFFFFF"}])},connectNulls:!0}]};n.setOption(l)}))},{immediate:!0})},render(){return Na("div",{class:"td-chart",id:"td-chart"+this.id},null)}}),cDe=yr({__name:"KeyWordChatAll",props:{keyWordCaht:Boolean,id:Number,dates:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},name:{type:Object,default:()=>({name:"",nameCh:""})}},emits:["close"],setup(e,{emit:t}){const{t:n}=Zd(),r=e;Er(()=>{ea(()=>{r.id&&l(r.dates,r.data)})});const i=Et(!0),a=t,o=()=>{i.value=!1,a("close")};let s=null;const l=(e,t)=>{const r=function(e,t,n){let r=[...e],i=[];for(let a=0;a<n;a++)i.push(null);return r.splice(t,0,...i),r},i=e,a=t.map(e=>e||0);(e=>{s&&s.dispose();const t=document.getElementById("key-word-chat-all");t.style.width="1116px",t.style.height="380px",s=Qle(t,"vintage"),s.setOption(e)})({tooltip:{trigger:"axis",formatter:e=>{let r=e[0].axisValue;r=r?iDe(r).format(n("tools.dateFormat")):"";let i=t[e[0].dataIndex]||"N/A";return lDe(r,[{label:n("productBasicInfo.searchVolume"),value:i,color:"#FD963C"}])}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},color:["#FD963C","#919EF4"],xAxis:{type:"category",data:i},yAxis:{type:"value",name:n("productBasicInfo.searchVolume")},series:[{data:r(a.slice(0,a.length-1),a.length,1),symbol:"none",type:"line",lineStyle:{width:1},areaStyle:{color:new Vee(0,0,0,1,[{offset:0,color:"#FDDFC2"},{offset:1,color:"#FFFFFF"}])},connectNulls:!0},{data:r(a.slice(a.length-2),0,a.length-2),symbol:"none",type:"line",lineStyle:{width:1},areaStyle:{color:new Vee(0,0,0,1,[{offset:0,color:"#BAC3FF"},{offset:1,color:"#FFFFFF"}])},connectNulls:!0}]})};return(t,r)=>{const a=PG;return Aa(),Pa(a,{visible:i.value,"onUpdate:visible":r[0]||(r[0]=e=>i.value=e),placement:"center",width:"1200",destroyOnClose:"",header:`${Lt(n)("info.searchTrend")} ${e.name.name}(${e.name.nameCh??"N/A"})`,footer:!1,preventScrollThrough:!1,"on-close":o},{body:Wn(()=>r[1]||(r[1]=[La("div",{class:"key-word-chat-all",id:"key-word-chat-all"},null,-1)])),_:1},8,["visible","header"])}}}),dDe={class:"keyword"},fDe={class:"key",style:{"justify-content":"center","margin-right":"12px"}},hDe={class:"keywordContain"},pDe={style:{"text-align":"left","line-height":"17px"}},mDe={class:"headerIcon"},vDe=["innerHTML"],gDe={class:"keywordBody"},yDe={class:"keywordBodyItem"},bDe={class:"tdItem"},wDe={class:"tdItem"},xDe={key:0,style:{color:"rgba(0, 0, 0, 0.4)","font-size":"13px"}},SDe={class:"keywordBodyItem"},_De={class:"tdItem"},kDe={class:"keywordBodyItem"},ADe={class:"tdItem",style:{cursor:"pointer"}},CDe={class:"keywordBodyItem"},TDe={class:"tdItem"},ODe={class:"tdItem"},IDe={class:"tdItem"},PDe={class:"keywordBodyItem"},EDe={class:"tdItem"},MDe={class:"tdItem"},DDe={class:"keywordBodyItem"},RDe={key:1,class:"desc"},LDe={class:"button"},NDe={key:2,class:"desc"},jDe={class:"button"},FDe={class:"keywordBodyItem"},zDe={class:"tdItem"},BDe={key:0,style:{"font-size":"16px"}},VDe={class:"keywordBodyItem"},HDe={class:"keywordBodyItem"},WDe={class:"tdItem"},UDe={key:0},XDe={class:"tdItem"},GDe={key:0,class:"tdItemValue"},YDe={class:"tdItem"},KDe={key:0,class:"tdItemValue"},qDe={class:"keywordBodyItem"},ZDe={class:"tdItem"},JDe={key:0},QDe={class:"tdItem"},$De={key:0,class:"tdItemValue"},eRe={class:"keywordBodyItem"},tRe={key:0},nRe=yr({__name:"keyword",props:{params:Object},setup(e){const{t:t}=Zd(),n=(e,n=null)=>t(`style.keyword.${e}`,n),r=Gb();Et(!1);const i=e,a=Et(),o=vo(()=>r.getters["user/isLogin"]),s=vo(()=>r.getters["user/description"]),l=Et(!1),u=Et(),c=Et([]),d=Et([]),f=Et({name:"",nameCh:""}),h=()=>{a.value?.id&&(f.value={name:a.value.keyword,nameCh:a.value.keywordCh},d.value=[],u.value=a.value.keywordId,l.value=!0,oQ("/keyword/searchVolume/graph",{id:a.value.keywordId,site:i.params.site}).then(e=>{e&&(c.value=e.dates,d.value=e.searchVolumes)}))},p=Et(!1),m=vo(()=>{const e=r.state.product.shopeeList.listData.totalCount;let t="N/A";return void 0===a.value.avgSearchVolume||null===e||e&&(t=(a.value.avgSearchVolume/e).toFixed(2)),{totalCount:e??"-",ratio:t}});Pr(()=>{o.value&&s.value&&(p.value=!1,oQ("/keyword/exactSearch",{keyword:i.params.keywordName,site:i.params.site}).then(e=>{a.value=e,p.value=!0,a.value.searchVolumeIncRate=e?.searchVolumeIncRate||0===e?.searchVolumeIncRate?(e?.searchVolumeIncRate/100).toFixed(2)+"%":"N/A",a.value.avgRating=e?.avgRating||0===e?.avgRating?(e?.avgRating/10).toFixed(2):"N/A",a.value.avgPrice=e?.avgPrice??0===e?.avgPrice?sQ.value[i.params.site].localUnit+(e?.avgPrice/1e5).toFixed(2):"N/A"}).catch(()=>{p.value=!0}))});const v=()=>{window.open(`https://www.shopdora.com/my/keyword?site=${i.params.site}&keyword=${i.params.keywordName}&matchMode=1`,"_blank")},g=()=>{window.open("https://www.shopdora.com/price","_blank")},y=()=>{window.open(`https://www.shopdora.com/my/keyword?site=${i.params.site}&keyword=${i.params.keywordName}`,"_blank")},b=vo(()=>[{title:[t("info.keyword")],tips:t("info.keyword")},{title:[t("info.cate")],tips:`${t("info.tipCate")}\n    ${t("info.updateDataWeek")}`},{title:[t("info.searchTrend")],tips:`${t("info.tipSearchTrend")})}\n    ${t("info.updateDataWeek")}\n    `},{title:[t("info.searchVolume30D"),t("info.avgDailySearches"),t("info.moMSearchGrowth")],tips:`${t("info.tipSearchVolume30D_1")}<br>\n    ${t("info.tipSearchVolume30D_2")}<br>\n    ${t("info.tipSearchVolume30D_3")}<br>\n    ${t("info.tipSearchVolume30D_4")}\n    `},{title:[t("info.productCount"),t("info.supplyDemandRatio")],tips:`\n    ${t("info.tipProductCount_1")}<br>\n    ${t("info.tipProductCount_2")}<br>\n    ${t("info.tipProductCount_3")}\n    `},{title:[t("info.ppcBid")],tips:`\n    ${t("info.tipPpcBid_1")}\n    ${t("info.tipPpcBid_2")}\n    `}]),{header:w}=Ft({header:b});return(r,i)=>{const b=VO,x=wD;return Aa(),Ia("div",dDe,[La("div",{class:"keywordTitle",style:V({width:n("keywordTitleWidth")})},[La("div",fDe,[La("span",null,ne(Lt(t)("info.keyword")),1)]),Na(b,{onClick:y},{default:Wn(()=>[za(ne(Lt(t)("keywordPage.keywordMining")),1)]),_:1}),Va('      <t-button style="background: white; color: #FD6012" @click="collection = !collection">'),Va('        <span style="align-items: center; display: flex">'),Va('          <img v-if="collection" src="@/public/assets/star-filled2.png"'),Va('               style="width: 20px; height: 20px; margin-right: 4px; cursor: pointer" />'),Va('          <img v-else src="@/public/assets/star2.png"'),Va('               style="width: 20px; height: 20px; margin-right: 4px; cursor: pointer" />'),Va("          {{ collection ? t('keywordPage.collected') : t('keywordPage.collection') }}"),Va("        </span>"),Va("      </t-button>")],4),La("div",{class:"keyword_crx",style:V({height:n("keywordCrxHeight")})},[La("div",hDe,[La("div",{class:"keywordHeader",style:V({height:n("keywordHeaderHeight")})},[(Aa(!0),Ia(ba,null,Gr(Lt(w),(e,t)=>(Aa(),Ia("div",{key:t,class:"headerItem"},[La("div",pDe,[(Aa(!0),Ia(ba,null,Gr(e.title,(e,t)=>(Aa(),Ia("div",{key:t},ne(e),1))),128))]),La("div",mDe,[Na(x,{overlayClassName:"icon-custom-pop",placement:"top","show-arrow":""},{content:Wn(()=>[La("div",{innerHTML:e.tips},null,8,vDe)]),default:Wn(()=>[Na(Lt(hv),{size:"14px"})]),_:2},1024)])]))),128))],4),La("div",gDe,[La("div",yDe,[La("div",bDe,[La("span",null,ne(e.params.keywordName),1),Va("              <t-popup :content=\"t('keyword.copyTips')\">"),La("span",{class:"copy-icon",onClick:i[0]||(i[0]=t=>Lt(fJ)(e.params.keywordName))},i[10]||(i[10]=[La("img",{src:Q$,style:{width:"14px",height:"14px",display:"inline-block","margin-left":"3px",cursor:"pointer"}},null,-1)])),Va("              </t-popup>")]),La("div",wDe,[a.value?.id?(Aa(),Ia("span",xDe,ne(a.value.keywordCh??""),1)):Va("v-if",!0)])]),o.value?!a.value?.id&&p.value?(Aa(),Ia("div",RDe,[La("div",LDe,[La("p",null,ne(Lt(t)("error.keywordNotFound")),1),Na(b,{onClick:v},{default:Wn(()=>[za(ne(Lt(t)("common.jumpNow")),1)]),_:1})])])):o.value&&!s.value?(Aa(),Ia("div",NDe,[La("div",jDe,[La("p",null,ne(Lt(t)("common.productSkuTipsName")),1),Na(b,{onClick:g},{default:Wn(()=>[za(ne(Lt(t)("common.upgradePackage")),1)]),_:1})])])):o.value&&s.value?(Aa(),Ia(ba,{key:3},[La("div",FDe,[La("div",zDe,[a.value?.id?(Aa(),Ia("span",BDe,ne(a.value[Lt(t)("keywordPage.cateNameType")]??"N/A"),1)):Va("v-if",!0)])]),La("div",VDe,[Na(x,{class:"placement bottom center",content:Lt(t)("common.allTrends"),placement:"bottom","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("div",{class:"tdItem",style:{cursor:"pointer"},onClick:bs(h,["stop"])},[a.value?.id?(Aa(),Pa(Lt(uDe),{key:0,id:e.params.keywordName,dates:a.value.dates,cursorType:"",data:a.value.searchVolumeList,site:e.params.site},null,8,["id","dates","data","site"])):Va("v-if",!0)])]),_:1},8,["content"])]),La("div",HDe,[La("div",WDe,[a.value?.id?(Aa(),Ia("span",UDe,ne(a.value.searchVolume??"N/A"),1)):Va("v-if",!0)]),La("div",XDe,[a.value?.id?(Aa(),Ia("span",GDe,ne(a.value.avgSearchVolume??"N/A"),1)):Va("v-if",!0)]),La("div",YDe,[a.value?.id?(Aa(),Ia("span",KDe,ne(a.value.searchVolumeIncRate??"N/A"),1)):Va("v-if",!0)])]),La("div",qDe,[La("div",ZDe,[a.value?.id?(Aa(),Ia("span",JDe,ne(m.value.totalCount??"N/A"),1)):Va("v-if",!0)]),La("div",QDe,[a.value?.id?(Aa(),Ia("span",$De,ne(m.value.ratio??"N/A"),1)):Va("v-if",!0)])]),Va('          <div class="keywordBodyItem">'),Va('            <div class="tdItem">'),Va("              <span v-if=\"keywordList?.id\">{{ keywordList.avgPrice ?? 'N/A' }}</span>"),Va("            </div>"),Va('            <div class="tdItem">'),Va("              <span v-if=\"keywordList?.id\">{{ keywordList.avgCommentNum ?? 'N/A' }}</span>"),Va("            </div>"),Va('            <div class="tdItem">'),Va("              <span v-if=\"keywordList?.id\">{{ keywordList.avgRating ?? 'N/A' }}</span>"),Va("            </div>"),Va("          </div>"),La("div",eRe,[a.value?.id?(Aa(),Ia("span",tRe,ne(a.value.recommendPrice??"N/A"),1)):Va("v-if",!0)])],64)):Va("v-if",!0):(Aa(),Ia(ba,{key:0},[La("div",SDe,[La("div",_De,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[1]||(i[1]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])])]),La("div",kDe,[La("div",ADe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[2]||(i[2]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])])]),La("div",CDe,[La("div",TDe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[3]||(i[3]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])]),La("div",ODe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[4]||(i[4]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])]),La("div",IDe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[5]||(i[5]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])])]),La("div",PDe,[La("div",EDe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[6]||(i[6]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])]),La("div",MDe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[7]||(i[7]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])])]),Va('            <div class="keywordBodyItem">'),Va('              <div class="tdItem">'),Va("                <t-popup"),Va('                  class=""'),Va("                  :content=\"t('common.clickLogin')\""),Va('                  placement="top"'),Va("                  show-arrow"),Va("                  destroy-on-close"),Va('                ><span @click="login" style="cursor: pointer; color: rgba(0, 0, 0, 0.6)">***</span>'),Va("                </t-popup>"),Va("              </div>"),Va('              <div class="tdItem">'),Va("                <t-popup"),Va('                  class=""'),Va("                  :content=\"t('common.clickLogin')\""),Va('                  placement="top"'),Va("                  show-arrow"),Va("                  destroy-on-close"),Va('                ><span @click="login" style="cursor: pointer; color: rgba(0, 0, 0, 0.6)">***</span>'),Va("                </t-popup>"),Va("              </div>"),Va('              <div class="tdItem">'),Va("                <t-popup"),Va('                  class=""'),Va("                  :content=\"t('common.clickLogin')\""),Va('                  placement="top"'),Va("                  show-arrow"),Va("                  destroy-on-close"),Va('                ><span @click="login" style="cursor: pointer; color: rgba(0, 0, 0, 0.6)">***</span>'),Va("                </t-popup>"),Va("              </div>"),Va("            </div>"),La("div",DDe,[Na(x,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:i[8]||(i[8]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])])],64))])]),l.value?(Aa(),Pa(cDe,{key:0,"key-word-caht":l.value,data:d.value,dates:c.value,id:u.value,name:f.value,onClose:i[9]||(i[9]=e=>l.value=!1)},null,8,["key-word-caht","data","dates","id","name"])):Va("v-if",!0)],4)])}}}),rRe={key:0,class:"HistoryKeywordAnalysis"},iRe={class:"historyKeywordHeader"},aRe={class:"keywordListTypeDetail"},oRe={class:"item"},sRe={class:"left"},lRe={class:"right"},uRe={class:"item"},cRe={class:"left"},dRe={class:"right"},fRe=["innerHTML"],hRe={class:"item"},pRe={class:"left"},mRe={class:"right"},vRe={class:"item"},gRe={class:"left"},yRe={class:"right"},bRe={class:"keywordListExport"},wRe=yr({__name:"HistoryKeywordAnalysisDialog",props:{params:Object,visible:Boolean},emits:["update:visible"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t={})=>n(`historyKeywordAnalysisDialog.${e}`,t),i=e,a=t,o=()=>{a("update:visible",!1),setTimeout(()=>{document.querySelector(".HistoryKeywordAnalysisDialog")?.remove()})},s=Et(!1),l=vo({get:()=>(s.value=!1,i.visible&&m(),i.visible),set(e){a("update:visible",e)}}),u=Et();let c=Et({sortBy:"f",descending:!0});const d=Et({name:{},createTime:""}),f=Et(""),h=()=>{oQ("/plugin/productTitleAnalysis/export",{id:i.params.id,site:i.params.site,sheetName:f.value??""}).then(e=>{e&&(location.href=e)})},p=(e,t)=>{c.value=e;let n=t.currentDataSource;u.value=n.map((e,t)=>({...e,index:t+1}))},m=()=>{oQ("/plugin/productTitleAnalysis/progress",{site:i.params.site,id:i.params.id}).then(e=>{if(c.value={sortBy:"f",descending:!0},u.value={},d.value.name=e.name?JSON.parse(e.name):{},d.value.createTime=e.createTime,f.value=d.value.name?.type_k_c+" ("+d.value.name?.name+") "+r("highFrequencyKeywords"),e.res){let t=JSON.parse(e.res);t.sort((e,t)=>t.f-e.f),u.value=t.map((e,t)=>({...e,index:t+1,s:e?.s??null}))}s.value=!0}).catch(()=>{})},v=bt([{colKey:"index",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[r("serialNumber")]),width:"80"},{colKey:"n",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[r("keyword")]),ellipsis:!0,width:"280"},{colKey:"f",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[r("frequency")]),sorter:(e,t)=>e.f-t.f,width:"120"},{colKey:"s",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[r("monthlySearchVolume")]),width:"120",sorter:(e,t)=>e.s-t.s,cell:(e,{row:t})=>t.s?Na("p",null,[t.s]):Na("p",null,[Na("span",null,[r("notInclude")]),Na("span",{style:"margin-left:4px;"},[Na(_D,{content:r("searchCountTip")},{default:()=>[" ",Na(hv,{size:"16"},null)]})])])}]);return(t,i)=>{const a=VO,m=UZ,g=PG;return Aa(),Ia(ba,null,[Va(' <div class="HistoryKeywordAnalysisDialog"> '),Na(g,{visible:l.value,"onUpdate:visible":i[0]||(i[0]=e=>l.value=e),class:"HistoryKeywordAnalysisDialog",width:"880px",header:f.value,footer:!1,attach:"#main",destroyOnClose:!0,preventScrollThrough:!1,closeOnOverlayClick:"",onClose:o},{body:Wn(()=>{return[s.value?(Aa(),Ia("div",rRe,[La("div",iRe,[La("div",aRe,[La("div",oRe,[La("span",sRe,ne(r("site"))+" : ",1),La("span",lRe,ne(Lt(sQ)[e.params.site].label),1)]),La("div",uRe,[La("span",cRe,ne(r("screening"))+" : ",1),La("span",dRe,[za(ne(d.value.name?.type??"")+" ",1),La("span",{innerHTML:(t=d.value,n("page.pageColorInfo",{page:t.name?.page??""}))},null,8,fRe)])]),La("div",hRe,[La("span",pRe,ne(r("products"))+" : ",1),La("span",mRe,ne(d.value.name?.totalCount??""),1)]),La("div",vRe,[La("span",gRe,ne(r("analyseTime"))+" : ",1),La("span",yRe,ne(d.value.createTime),1)])]),La("div",bRe,[Na(a,{variant:"outline",class:"downloand-btn",onClick:h},{icon:Wn(()=>[Na(Lt(uv))]),default:Wn(()=>[za(" "+ne(r("exportData")),1)]),_:1})])]),Na(m,{style:{"margin-top":"16px"},"row-key":"index",hideSortTips:"",size:"small",data:u.value,onSortChange:p,columns:v,sort:Lt(c),"max-height":"400"},null,8,["data","columns","sort"])])):Va("v-if",!0),i[1]||(i[1]=La("div",{class:"HistoryKeywordAnalysisLoding"},null,-1))];var t}),_:1},8,["visible","header"]),Va(" </div> ")],2112)}}}),xRe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABygAwAEAAAAAQAAABwAAAAAtjBMAwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAohJREFUSA3tlD1vE0EQhmfOdhJIEOJsI0TDhwIFQoICQYEoKAgFDRKCRHwoPiPSkZIOKeIn0IGwXdAkgSIFiF8QCkQBSuhQkChQYpsoUmIHx7l9mT1rL/bZMT5kd1nJmtvdeefZfb27RHutlw7Asc/0sr6ubRmAStnvFOib68Rfm7FeRB8IohsawISbmL0d6QVM1/SBDBQ9CFDhO2/cngN7BQjW9XcYnOhWHxMnD9bX6hiIdOJAvbCTbzjxJ2prbQ1p+6nJ/ycQU1OWO26/gFIrrmNn8Hi434h3i0ajCB5IKXpmctsCMXF0P34+/8AW3ZVTvE9EY9j4vYiHyWFTIBh9DfM9Ag3Jqa9YURozebsC4RxJovrnEym+Ak/IFUnuZ+ITcN0vcJKjpoiJDRrCIDOVmfk+v1qdMTktgXiUOA1sLcgKTxFDILTOVuQSCD9kpxX5DQJuRizOGosbNGQ00RHOrb41MB2bgCCOo6o+ywuQ9BJBBY5ZFzib/8pD8bOy21lZQElDJY56FqcPn2vQEOU9TSY/Xw/T36KpNTV+qADmhOnL1CYzlpj6rnJuubAzTqTt1DsUywb0OMDbsntt96b0lpibNUbftMPaBJfkz/7IsYGLQZie51xhhiOR89pi5VksMKai2D/Pfa017YDLssppPj45wi9/lU1iMHKm8F1bLOPTYlMZiub42OT1dpqGGtpSN2VDpeJiS7gW5lFoYakqhcOJxdnieqeaFsBOpf+XFw3K9LUQWxvuTjAnZP8yR6LXOLOyqHU7QGb/jZTTdytk0XbpcoOqC5LgXUEfCAtz8ow9kOO90U4ddq72LNJ7o/Mvvh6oPcrRqpnsTtyO6SvUnVp7VVo48BeUoAX9FkcgPgAAAABJRU5ErkJggg==",SRe={class:"custom-table-th"},_Re={key:0,class:"tips"},kRe=["innerHTML"],ARe={key:1,class:"sort-info"},CRe=yr({__name:"TheadItem",props:{titles:Array,semibold:Boolean,tips:String,sort:{type:Object,default:()=>{}},currentSort:String},emits:["sortChange"],setup(e,{emit:t}){const n=e,r=t,i=Et(0),a=e=>{n.sort&&n.sort.field&&(void 0===e?0===i.value?i.value=1:1==i.value||2==i.value&&(i.value=0):i.value===e?i.value=0:i.value=e,i.value?r("sortChange",{sortBy:n.sort.field,orderBy:i.value}):r("sortChange",{}))};return(t,n)=>{const r=_D;return Aa(),Ia("div",SRe,[(Aa(!0),Ia(ba,null,Gr(e.titles,(t,o)=>(Aa(),Ia("div",{class:"title-item",style:V({cursor:e.sort&&e.sort.field?"pointer":""}),key:o},[La("div",{onClick:n[0]||(n[0]=e=>1==i.value?a(2):a(1)),class:G({semibold:e.semibold||e.sort&&e.sort.field==e.currentSort&&i.value})},ne(t),3),0===o&&e.tips?(Aa(),Ia("div",_Re,[Na(r,{disabled:!e.tips,overlayClassName:"icon-custom-pop",placement:"top","show-arrow":""},{content:Wn(()=>[La("div",{innerHTML:e.tips},null,8,kRe)]),default:Wn(()=>[Na(Lt(hv),{color:"rgba(0,0,0,0.6)",size:"14px"})]),_:1},8,["disabled"])])):Va("v-if",!0),e.sort&&e.sort.field?(Aa(),Ia("div",ARe,[Na(Lt(Ym),{class:G({active:e.sort.field==e.currentSort&&2==i.value}),onClick:n[1]||(n[1]=e=>a(2))},null,8,["class"]),Na(Lt(Wm),{class:G({active:e.sort.field==e.currentSort&&1==i.value}),onClick:n[2]||(n[2]=e=>a(1))},null,8,["class"])])):Va("v-if",!0)],4))),128))])}}}),TRe={class:"td-goods-title"},ORe={class:"thumb-wrap"},IRe=["src"],PRe=["src"],ERe={key:1,class:"thumb",style:{"background-color":"#f3f3f3"}},MRe={class:"title-info"},DRe={class:"title"},RRe=yr({__name:"TdGoodsTitle",props:{item:{type:Object,default:()=>{}}},setup(e){const{t:t}=Zd(),n=(e,n=null)=>t(`style.tdGoodsTitle.${e}`,n);return(r,i)=>{const a=wD,o=_D;return Aa(),Ia("div",TRe,[La("div",ORe,[Na(a,{placement:"right",overlayClassName:"product-goods-img-pop"},{content:Wn(()=>[La("img",{width:"400",style:{display:"block"},src:e.item.imgUrl,alt:""},null,8,IRe)]),default:Wn(()=>[e.item.tinyImgUrl?(Aa(),Ia("img",{key:0,class:"thumb",src:e.item.tinyImgUrl,alt:""},null,8,PRe)):Va("v-if",!0)]),_:1}),e.item.imgUrl?(Aa(),Ia("div",{key:0,class:G(["imgSupply",n("imgSupply")])},[La("div",{class:"imgSupplyCrx",onClick:i[0]||(i[0]=t=>(e=>{const t=new URL("https://air.1688.com/app/1688-global/main-site-channel/landing-page.html"),n={bizType:"selectionTool",customerId:"xiaduola",outImageAddress:e},r=Object.entries(n).reduce((e,[t,n])=>(e.set(t,n),e),new URLSearchParams).toString();t.search=r,window.open(t.toString())})(e.item.imgUrl))},ne(Lt(t)("tools.imagesSupplyPage")),1)],2)):(Aa(),Ia("div",ERe))]),La("div",MRe,[Na(o,{class:"title-tips top center",content:e.item.name,placement:"top","show-arrow":""},{default:Wn(()=>[La("div",DRe,ne(e.item.name),1)]),_:1},8,["content"]),La("div",{class:"link-info",onClick:i[2]||(i[2]=t=>Lt(fJ)(e.item.itemid))},[La("span",null,ne(e.item.itemid),1),i[3]||(i[3]=La("img",{src:Q$,style:{width:"14px",height:"14px",display:"inline-block","margin-left":"3px",cursor:"pointer"}},null,-1)),Na(Lt(Iv),{style:{width:"14px",height:"14px",display:"inline-block","margin-left":"3px",cursor:"pointer"},onClick:i[1]||(i[1]=t=>((e,t)=>{const n=`/product/${e}/${t}`;window.open(n)})(e.item.shopid,e.item.itemid))})])])])}}});function LRe(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 NRe,jRe={exports:{}};
/*! ExcelJS 19-10-2023 */var FRe=(NRe||(NRe=1,function(e){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&LRe)return LRe(o);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=LRe,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){const r=e("fs"),i=e("fast-csv"),a=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),s=e("dayjs").extend(a).extend(o),l=e("../utils/stream-buf"),{fs:{exists:u}}=e("../utils/utils"),c={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!(await u(e)))throw new Error("File not found: "+e);const n=r.createReadStream(e),i=await this.read(n,t);return n.close(),i}read(e,t){return t=t||{},new Promise((n,r)=>{const a=this.workbook.addWorksheet(t.sheetName),o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],l=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const n=o.reduce((t,n)=>{if(t)return t;const r=s(e,n,!0);return r.isValid()?r:null},null);if(n)return new Date(n.valueOf());const r=c[e];return void 0!==r?r:e},u=i.parse(t.parserOptions).on("data",e=>{a.addRow(e.map(l))}).on("end",()=>{u.emit("worksheet",a)});u.on("worksheet",n).on("error",r),e.pipe(u)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise((n,r)=>{t=t||{};const a=this.workbook.getWorksheet(t.sheetName||t.sheetId),o=i.format(t.formatterOptions);e.on("finish",()=>{n()}),o.on("error",r),o.pipe(e);const{dateFormat:l,dateUTC:u}=t,c=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return l?u?s.utc(e).format(l):s(e).format(l):u?s.utc(e).format():s(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),d=void 0===t.includeEmptyRows||t.includeEmptyRows;let f=1;a&&a.eachRow((e,t)=>{if(d)for(;f++<t-1;)o.write([]);const{values:n}=e;n.shift(),o.write(n.map(c)),f=t}),o.end()})}writeFile(e,t){const n={encoding:(t=t||{}).encoding||"utf8"},i=r.createWriteStream(e,n);return this.write(i,t)}async writeBuffer(e){const t=new l;return await this.write(t,e),t.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,n){const r=e("../utils/col-cache");class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=r.decodeAddress(t);this.nativeCol=e.col+n,this.nativeColOff=0,this.nativeRow=e.row+n,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof i||null==e?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,n){const r=e("../utils/col-cache"),i=e("../utils/under-dash"),a=e("./enums"),{slideFormula:o}=e("../utils/shared-formula"),s=e("./note");class l{constructor(e,t,n){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,r.validateAddress(n),this._address=n,this._value=u.create(l.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,n){const r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);const i=e&&e.font||t&&t.font;i&&(n.font=i);const a=e&&e.alignment||t&&t.alignment;a&&(n.alignment=a);const o=e&&e.border||t&&t.border;o&&(n.border=o);const s=e&&e.fill||t&&t.fill;s&&(n.fill=s);const l=e&&e.protection||t&&t.protection;return l&&(n.protection=l),n}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(e,t){this._value.release(),this._value=u.create(l.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=u.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===l.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==l.Types.Merge?(this._value.release(),this._value=u.create(u.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new s(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===l.Types.String&&(this._value=u.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach(e=>{t.addEx(this.fullAddress,e)})}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){this._value.release(),this._value=u.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type&&(this._comment=s.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}l.Types=a.ValueType;const u={getType:e=>null==e?l.Types.Null:e instanceof String||"string"==typeof e?l.Types.String:"number"==typeof e?l.Types.Number:"boolean"==typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(e){this.model={address:e.address,type:l.Types.Null}}get value(){return null}set value(e){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:l.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},n=n=>{const r=e[n];r&&(t[n]=r)};return n("formula"),n("result"),n("ref"),n("shareType"),n("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(u.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return l.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?a.ValueType.Null:e instanceof String||"string"==typeof e?a.ValueType.String:"number"==typeof e?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,n){const r=this.types[e];if(!r)throw new Error("Could not create Value of type "+e);return new r(t,n)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){const r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache");class o{constructor(e,t,n){this._worksheet=e,this._number=t,!1!==n&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(e,r)=>{t(e.getCell(n),r)})}get values(){const e=[];return this.eachCell((t,n)=>{t&&t.type!==i.ValueType.Null&&(e[n]=t.value)}),e}set values(e){if(!e)return;const t=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((e,r)=>{this._worksheet.getCell(r+n,t).value=e})}_applyStyle(e,t){return this.style[e]=t,this.eachCell(n=>{n[e]=t}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let n=null;return e&&e.forEach((e,r)=>{e.isDefault?n&&(n=null):n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))}),t.length?t:void 0}static fromModel(e,t){const n=[];let r=1,i=0;for(t=(t=t||[]).sort(function(e,t){return e.min-t.min});i<t.length;){const a=t[i++];for(;r<a.min;)n.push(new o(e,r++));for(;r<=a.max;)n.push(new o(e,r++,a))}return n.length?n:null}}t.exports=o},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,n){const r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("../utils/cell-matrix"),o=e("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}add(e,t){const n=i.decodeEx(e);this.addEx(n,t)}addEx(e,t){const n=this.getMatrix(t);if(e.top)for(let r=e.left;r<=e.right;r++)for(let t=e.top;t<=e.bottom;t++){const a={sheetName:e.sheetName,address:i.n2l(r)+t,row:t,col:r};n.addCellEx(a)}else n.addCellEx(e)}remove(e,t){const n=i.decodeEx(e);this.removeEx(n,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){r.each(this.matrixMap,t=>{t.removeCellEx(e)})}forEach(e){r.each(this.matrixMap,(t,n)=>{t.forEach(t=>{e(n,t)})})}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return r.map(this.matrixMap,(t,n)=>t.findCellEx(e)&&n).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:n}=t,r=new o(t.row,t.col,t.row,t.col,n);let i,a;function s(i,a){const o=e.findCellAt(n,i,t.col);return!(!o||!o.mark||(r[a]=i,o.mark=!1,0))}for(a=t.row-1;s(a,"top");a--);for(a=t.row+1;s(a,"bottom");a++);function l(t,i){const o=[];for(a=r.top;a<=r.bottom;a++){const r=e.findCellAt(n,a,t);if(!r||!r.mark)return!1;o.push(r)}r[i]=t;for(let e=0;e<o.length;e++)o[e].mark=!1;return!0}for(i=t.col-1;l(i,"left");i--);for(i=t.col+1;l(i,"right");i++);return r}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach(e=>{e.mark=!0}),{name:e,ranges:t.map(e=>e.mark&&this._explore(t,e)).filter(Boolean).map(e=>e.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,(e,t,n)=>{e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))})}spliceRows(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceRows(e,t,n,i),this.normaliseMatrix(r,e)})}spliceColumns(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceColumns(e,t,n,i),this.normaliseMatrix(r,e)})}get model(){return r.map(this.matrixMap,(e,t)=>this.getRanges(t,e)).filter(e=>e.ranges.length)}set model(e){const t=this.matrixMap={};e.forEach(e=>{const n=t[e.name]=new a;e.ranges.forEach(e=>{s.test(e.split("!").pop()||"")&&n.addCell(e)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,n){const r=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(e){let{type:t,imageId:n,range:a,hyperlinks:o}=e;if(this.type=t,this.imageId=n,"image"===t)if("string"==typeof a){const e=r.decode(a);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:o||a.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){const r=e("../utils/under-dash");class i{constructor(e){this.note=e}get model(){let e=null;return e="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},r.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:n}=t;1===n.length&&1===Object.keys(n[0]).length?this.note=n[0].text:this.note=t}static fromModel(e){const t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){const r=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(e,t,n,i,a){if(arguments.length<4){const i=r.decodeAddress(e),o=r.decodeAddress(t);this.model={top:Math.min(i.row,o.row),left:Math.min(i.col,o.col),bottom:Math.max(i.row,o.row),right:Math.max(i.col,o.col),sheetName:n},this.setTLBR(i.row,i.col,o.row,o.col,a)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:a}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=r.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}expandRow(e){if(e){const{dimensions:t,number:n}=e;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(e){const t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return r.n2l(this.left)+this.top}get $t$l(){return`$${r.n2l(this.left)}$${this.top}`}get br(){return r.n2l(this.right)+this.bottom}get $b$r(){return`$${r.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}contains(e){const t=r.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){const r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),o=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const n=this._worksheet.getColumn(e.col);t=new o(this,n,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];const o=i.length-t,s=this._cells.length;let l,u,c;if(o<0)for(l=e+i.length;l<=s;l++)c=this._cells[l-1],u=this._cells[l-o-1],u?(c=this.getCell(l),c.value=u.value,c.style=u.style,c._comment=u._comment):c&&(c.value=null,c.style={},c._comment=void 0);else if(o>0)for(l=s;l>=n;l--)u=this._cells[l-1],u?(c=this.getCell(l+o),c.value=u.value,c.style=u.style,c._comment=u._comment):this._cells[l+o-1]=void 0;for(l=0;l<i.length;l++)c=this.getCell(e+l),c.value=i[l],c.style={},c._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let n=1;n<=e;n++)t(this.getCell(n),n)}else this._cells.forEach((e,n)=>{e&&e.type!==i.ValueType.Null&&t(e,n+1)})}addPageBreak(e,t){const n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};r&&(a.min=r),n.rowBreaks.push(a)}get values(){const e=[];return this._cells.forEach(t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach((e,n)=>{void 0!==e&&(this.getCellEx({address:a.encodeAddress(this._number,n+t),row:this._number,col:n+t}).value=e)})}else this._worksheet.eachColumnKey((t,n)=>{void 0!==e[n]&&(this.getCellEx({address:a.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[n])})}get hasValues(){return r.some(this._cells,e=>e&&e.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,t=0;return this._cells.forEach(n=>{n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))}),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach(n=>{n&&(n[e]=t)}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,n=0;return this._cells.forEach(r=>{if(r){const i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach(e=>{switch(e.type){case o.Types.Merge:break;default:{let n;if(e.address)n=a.decodeAddress(e.address);else if(t){const{row:e}=t,r=t.col+1;n={row:e,col:r,address:a.encodeAddress(e,r),$col$row:`$${a.n2l(r)}$${e}`}}t=n,this.getCellEx(n).model=e;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){const r=e("../utils/col-cache");class i{constructor(e,t,n){this.table=e,this.column=t,this.index=n}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this,t=(e,t,n)=>{void 0===e[t]&&(e[t]=n)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const n=(e,t)=>{if(!e)throw new Error(t)};n(e.ref,"Table must have ref"),n(e.columns,"Table must have column definitions"),n(e.rows,"Table must have row definitions"),e.tl=r.decodeAddress(e.ref);const{row:i,col:a}=e.tl;n(i>0,"Table must be on valid row"),n(a>0,"Table must be on valid col");const{width:o,filterHeight:s,tableHeight:l}=this;e.autoFilterRef=r.encode(i,a,i+s-1,a+o-1),e.tableRef=r.encode(i,a,i+l-1,a+o-1),e.columns.forEach((e,r)=>{n(e.name,`Column ${r} must have a name`),0===r?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))})}store(){const e=(e,t)=>{t&&Object.keys(t).forEach(n=>{e[n]=t[n]})},{worksheet:t,table:n}=this,{row:r,col:i}=n.tl;let a=0;if(n.headerRow){const o=t.getRow(r+a++);n.columns.forEach((t,n)=>{const{style:r,name:a}=t,s=o.getCell(i+n);s.value=a,e(s,r)})}if(n.rows.forEach(o=>{const s=t.getRow(r+a++);o.forEach((t,r)=>{const a=s.getCell(i+r);a.value=t,e(a,n.columns[r].style)})}),n.totalsRow){const o=t.getRow(r+a++);n.columns.forEach((t,n)=>{const r=o.getCell(i+n);if(0===n)r.value=t.totalsRowLabel;else{const e=this.getFormula(t);r.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(r,t.style)})}}load(e){const{table:t}=this,{row:n,col:r}=t.tl;let i=0;if(t.headerRow){const a=e.getRow(n+i++);t.columns.forEach((e,t)=>{a.getCell(r+t).value=e.name})}if(t.rows.forEach(t=>{const a=e.getRow(n+i++);t.forEach((e,t)=>{a.getCell(r+t).value=e})}),t.totalsRow){const a=e.getRow(n+i++);t.columns.forEach((e,t)=>{const n=a.getCell(r+t);0===t?n.value=e.totalsRowLabel:this.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)n.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,n){this.cacheState(),void 0===n?(this.table.columns.push(e),this.table.rows.forEach((e,n)=>{e.push(t[n])})):(this.table.columns.splice(n,0,e),this.table.rows.forEach((e,r)=>{e.splice(n,0,t[r])}))}removeColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(n=>{n.splice(e,t)})}_assign(e,t,n){this.cacheState(),e[t]=n}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,n){const r=e("./worksheet"),i=e("./defined-names"),a=e("../xlsx/xlsx"),o=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new o(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const n=this.nextId;t&&("string"==typeof t?t={properties:{tabColor:{argb:t}}}:(t.argb||t.theme||t.indexed)&&(t={properties:{tabColor:t}}));const i=this._worksheets.reduce((e,t)=>(t&&t.orderNo)>e?t.orderNo:e,0),a=Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}),o=new r(a);return this._worksheets[n]=o,o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(t=>t&&t.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(t=>{e(t,t.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(t=>{const{id:n,name:i,state:a}=t,o=e.sheets&&e.sheets.findIndex(e=>e.id===n);(this._worksheets[n]=new r({id:n,name:i,orderNo:o,state:a,workbook:this})).model=t}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){const r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("./range"),o=e("./row"),s=e("./column"),l=e("./enums"),u=e("./image"),c=e("./table"),d=e("./data-validations"),f=e("../utils/encryptor"),{copyStyle:h}=e("../utils/copy-style");t.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new d,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&e.length>31&&(e=e.substring(0,31)),this._workbook._worksheets.find(t=>t&&t.name.toLowerCase()===e.toLowerCase()))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new a;return this._rows.forEach(t=>{if(t){const n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}}),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce((e,t)=>{const n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)},0);let t=1;const n=this._columns=[];e.forEach(e=>{const r=new s(this,t++,!1);n.push(r),r.defn=e})}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){r.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new s(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const n=this._rows.length;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(i.length>0)for(let u=0;u<n;u++){const n=[e,t];i.forEach(e=>{n.push(e[u]||null)});const r=this.getRow(u+1);r.splice.apply(r,n)}else this._rows.forEach(n=>{n&&n.splice(e,t)});const o=i.length-t,s=e+t,l=this._columns.length;if(o<0)for(let u=e+i.length;u<=l;u++)this.getColumn(u).defn=this.getColumn(u-o).defn;else if(o>0)for(let u=l;u>=s;u--)this.getColumn(u+o).defn=this.getColumn(u).defn;for(let u=e;u<e+i.length;u++)this.getColumn(u).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,i.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow(t=>{e=Math.max(e,t.cellCount)}),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow(n=>{n.eachCell(n=>{let{col:r}=n;e[r]||(e[r]=!0,t++)})}),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow(()=>{e++}),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new o(this,e)),t}getRows(e,t){if(t<1)return;const n=[];for(let r=e;r<e+t;r++)n.push(this.getRow(r));return n}addRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,"i"===t[0]?t:"n"),r}addRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=[];return e.forEach(e=>{n.push(this.addRow(e,t))}),n}insertRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}insertRows(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==n)for(let r=0;r<t.length;r++)"o"===n[0]&&void 0!==this.findRow(t.length+e+r)?this._copyStyle(t.length+e+r,e+r,"+"===n[1]):"i"===n[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+r,"+"===n[1]);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.getRow(e),i=this.getRow(t);i.style=h(r.style),r.eachCell({includeEmpty:n},(e,t)=>{i.getCell(t).style=h(e.style)}),i.height=r.height}duplicateRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._rows[e-1],i=new Array(t).fill(r.values);this.spliceRows(e+1,n?0:t,...i);for(let a=0;a<t;a++){const t=this._rows[e+a];t.style=r.style,t.height=r.height,r.eachCell({includeEmpty:!0},(e,n)=>{t.getCell(n).style=e.style})}}spliceRows(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];const o=i.length,s=o-t,l=this._rows.length;let u,c;if(s<0)for(e===l&&(this._rows[l-1]=void 0),u=n;u<=l;u++)if(c=this._rows[u-1],c){const e=this.getRow(u+s);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(t,n)=>{e.getCell(n).style=t.style}),this._rows[u-1]=void 0}else this._rows[u+s-1]=void 0;else if(s>0)for(u=l;u>=n;u--)if(c=this._rows[u-1],c){const e=this.getRow(u+s);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(t,n)=>{if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+o).getCell(n),r=t._value._master,i=this.getRow(r._row._number+o).getCell(r._column._number);e.merge(i)}})}else this._rows[u+s-1]=void 0;for(u=0;u<o;u++){const t=this.getRow(e+u);t.style={},t.values=i[u]}this.workbook.definedNames.spliceRows(this.name,e,t,o)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let n=1;n<=e;n++)t(this.getRow(n),n)}else this._rows.forEach(e=>{e&&e.hasValues&&t(e,e.number)})}getSheetValues(){const e=[];return this._rows.forEach(t=>{t&&(e[t.number]=t.values)}),e}findCell(e,t){const n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}getCell(e,t){const n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}mergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);this._mergeCellsInternal(r)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);this._mergeCellsInternal(r,!0)}_mergeCellsInternal(e,t){r.each(this._merges,t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")});const n=this.getCell(e.top,e.left);for(let r=e.top;r<=e.bottom;r++)for(let i=e.left;i<=e.right;i++)(r>e.top||i>e.left)&&this.getCell(r,i).merge(n,t);this._merges[n.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let n=t.left;n<=t.right;n++)this.getCell(e,n).unmerge();delete this._merges[e.address]}}get hasMerges(){return r.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);for(let i=r.top;i<=r.bottom;i++)for(let e=r.left;e<=r.right;e++){const t=this.findCell(i,e);t&&(t.type===l.ValueType.Merge?this._unMergeMaster(t.master):this._merges[t.address]&&this._unMergeMaster(t))}}fillFormula(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const a=i.decode(e),{top:o,left:s,bottom:l,right:u}=a,c=u-s+1,d=i.encodeAddress(o,s),f="shared"===r;let h;h="function"==typeof n?n:Array.isArray(n)?Array.isArray(n[0])?(e,t)=>n[e-o][t-s]:(e,t)=>n[(e-o)*c+(t-s)]:()=>{};let p=!0;for(let i=o;i<=l;i++)for(let n=s;n<=u;n++)p?(this.getCell(i,n).value={shareType:r,formula:t,ref:e,result:h(i,n)},p=!1):this.getCell(i,n).value=f?{sharedFormula:d,result:h(i,n)}:h(i,n)}addImage(e,t){const n={type:"image",imageId:e,range:t};this._media.push(new u(this,n))}getImages(){return this._media.filter(e=>"image"===e.type)}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new u(this,t))}getBackgroundImageId(){const e=this._media.find(e=>"background"===e.type);return e&&e.imageId}protect(e,t){return new Promise(n=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),n()})}unprotect(){this.sheetProtection=null}addTable(e){const t=new c(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return this.properties.tabColor}set tabColor(e){this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(e=>e.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(e=>e.model),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);const t=e.rows=[],n=e.dimensions=new a;return this._rows.forEach(e=>{const r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))}),e.merges=[],r.each(this._merges,t=>{e.merges.push(t.range)}),e}_parseRows(e){this._rows=[],e.rows.forEach(e=>{const t=new o(this,e.number);this._rows[t.number-1]=t,t.model=e})}_parseMergeCells(e){r.each(e.mergeCells,e=>{this.mergeCellsWithoutStyle(e)})}set model(e){this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new d(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(e=>new u(this,e)),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((e,t)=>{const n=new c;return n.model=t,e[t.name]=n,e},{}),this.conditionalFormattings=e.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const r={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(e=>{r[e]=i[e]}),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,n){const r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");n.bufferToString=function(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}},{}],17:[function(e,t,n){const r="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");n.stringToBuffer=function(e){return"string"!=typeof e?e:r?i.from(r.encode(e).buffer):i.from(e)}},{buffer:220}],18:[function(e,t,n){const r=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,n){const r=this.sheets[e],i=r&&r[t];return i&&i[n]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}getCellAt(e,t,n){const r=this.sheets[e]||(this.sheets[e]=[]),a=r[t]||(r[t]=[]);return a[n]||(a[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const n=this.findSheetRow(t,e);n&&delete n[e.col]}forEachInSheet(e,t){const n=this.sheets[e];n&&n.forEach((e,n)=>{e&&e.forEach((e,r)=>{e&&t(e,n,r)})})}forEach(e){r.each(this.sheets,(t,n)=>{this.forEachInSheet(n,e)})}map(e){const t=[];return this.forEach(n=>{t.push(e(n))}),t}findSheet(e,t){const n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}findSheetRow(e,t,n){const{row:r}=t;return e&&e[r]?e[r]:n?e[r]=[]:void 0}findRowCell(e,t,n){const{col:r}=t;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,n,r){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<r;t++)e.push([]);i.splice(t,n,...e)}}spliceColumns(e,t,n,i){const a=this.sheets[e];if(a){const e=[];for(let t=0;t<i;t++)e.push(null);r.each(a,r=>{r.splice(t,n,...e)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){const r=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,n,r,i,a,o=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)n=o-27,r=n%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)n=o-703,r=n%26,i=Math.floor(n/26)%26,a=Math.floor(n/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!r.test(e))throw new Error("Invalid Address: "+e);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let n=!1,r="",i=0,a=!1,o="",s=0;for(let u,c=0;c<e.length;c++)if(u=e.charCodeAt(c),!a&&u>=65&&u<=90)n=!0,r+=e[c],i=26*i+u-64;else if(u>=48&&u<=57)a=!0,o+=e[c],s=10*s+u-48;else if(a&&n&&36!==u)break;if(n){if(i>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else i=void 0;a||(s=void 0);const l={address:e=r+o,col:i,row:s,$col$row:`$${r}$${o}`};return i<=100&&s<=100&&(this._hash[e]=l,this._hash[l.$col$row]=l),l},getAddress(e,t){if(t){const n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),r={top:Math.min(e.row,n.row),left:Math.min(e.col,n.col),bottom:Math.max(e.row,n.row),right:Math.max(e.col,n.col)};return r.tl=this.n2l(r.left)+r.top,r.br=this.n2l(r.right)+r.bottom,r.dimensions=`${r.tl}:${r.br}`,r}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(":");if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]);const r=Math.min(e.row,t.row),a=Math.min(e.col,t.col),o=Math.max(e.row,t.row),s=Math.max(e.col,t.col);return e=this.n2l(a)+r,t=this.n2l(s)+o,{top:r,left:a,bottom:o,right:s,sheetName:n,tl:{address:e,col:a,row:r,$col$row:`$${this.n2l(a)}$${r}`,sheetName:n},br:{address:t,col:s,row:o,$col$row:`$${this.n2l(s)}$${o}`,sheetName:n},dimensions:`${e}:${t}`}}if(r.startsWith("#"))return n?{sheetName:n,error:r}:{error:r};const a=this.decodeAddress(r);return n?{sheetName:n,...a}:a},encodeAddress:(e,t)=>i.n2l(t)+e,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[n,r,,i,a]=e,[o,s]=t;return o>=n&&o<=i&&s>=r&&s<=a}};t.exports=i},{}],20:[function(e,t,n){const r=(e,t)=>({...e,...t.reduce((t,n)=>(e[n]&&(t[n]={...e[n]}),t),{})}),i=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))};n.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const n={...e};return i(e,n,"font",["color"]),i(e,n,"alignment"),i(e,n,"protection"),e.border&&(i(e,n,"border"),i(e.border,n.border,"top",["color"]),i(e.border,n.border,"left",["color"]),i(e.border,n.border,"bottom",["color"]),i(e.border,n.border,"right",["color"]),i(e.border,n.border,"diagonal",["color"])),e.fill&&(i(e,n,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(n.fill.stops=e.fill.stops.map(e=>r(e,["color"])))),n}},{}],21:[function(e,t,n){(function(n){(function(){const r=e("crypto"),i={hash(e){const t=r.createHash(e);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.update(n.concat(a)),t.digest()},convertPasswordToHash(e,t,i,a){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const o=n.from(e,"utf16le");let s=this.hash(t,n.from(i,"base64"),o);for(let r=0;r<a;r++){const e=n.alloc(4);e.writeUInt32LE(r,0),s=this.hash(t,s,e)}return s.toString("base64")},randomBytes:e=>r.randomBytes(e)};t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){const{SaxesParser:r}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:a}=e("./browser-buffer-decode");t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));const t=new r;let n;t.on("error",e=>{n=e});let o=[];t.on("opentag",e=>o.push({eventType:"opentag",value:e})),t.on("text",e=>o.push({eventType:"text",value:e})),t.on("closetag",e=>o.push({eventType:"closetag",value:e}));for await(const r of e){if(t.write(a(r)),n)throw n;yield o,o=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){const r=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,n){const o=r.decode(t),s=r.decode(n);return e.replace(i,(e,t,n,i,l)=>{if(l)return e;const u=a.exec(i);if(u){const n=u[1],i=u[2].toUpperCase(),a=u[3],l=u[4];if(i.length>3||3===i.length&&i>"XFD")return e;let c=r.l2n(i),d=parseInt(l,10);return n||(c+=s.col-o.col),a||(d+=s.row-o.row),(t||"")+(n||"")+r.n2l(c)+(a||"")+d}return e})}}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){const i=e("readable-stream"),a=e("./utils"),o=e("./string-buf");class s{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}toBuffer(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){return this._data._buf.copy(e,t,n,r)}toBuffer(){return this._data.toBuffer()}}class u{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){this._data.copy(e,t,n,r)}toBuffer(){return this._data}}class c{constructor(e){this.size=e,this.buffer=r.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,n){const r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}const d=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(d,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(e=>e.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new c(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map(function(t){return new Promise(n=>{t.write(e.toBuffer(),()=>{n()})})}))},_writeToBuffers(e){let t=0;const n=e.length;for(;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},async write(e,t,i){let c;if(t instanceof Function&&(i=t,t="utf8"),i=i||a.nop,e instanceof o)c=new l(e);else if(e instanceof r)c=new u(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");c=new s(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(c);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(c),n.nextTick(i)):(await this._pipe(c),i());else this.paused||this.emit("data",c.toBuffer()),this._writeToBuffers(c),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,n){const r=e=>{e?n(e):(this._flush(),this.pipes.forEach(e=>{e.end()}),this.emit("finish"))};e?this.write(e,t,r):r()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const n=this.buffers[0],r=n.read(e);e-=r.length,t.push(r),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map(e=>e.toBuffer()).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter(t=>t!==e)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=d}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let n=2*this._buf.length;for(;n<t;)n*=2;const r=e.alloc(n);this._buf.copy(r,0),this._buf=r}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,n){const{toString:r}=Object.prototype,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(n=>{t(e[n],n)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(n=>t(e[n],n)))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(n=>t(e[n],n)))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(n=>t(e[n],n)):[]},keyBy:(e,t)=>e.reduce((e,n)=>(e[n[t]]=n,e),{}),isEqual:function(e,t){const n=typeof e,r=typeof t,i=Array.isArray(e),o=Array.isArray(t);let s;if(n!==r)return!1;if("object"==typeof e){if(i||o)return!(!i||!o)&&e.length===t.length&&e.every((e,n)=>{const r=t[n];return a.isEqual(e,r)});if(null===e||null===t)return e===t;if(s=Object.keys(e),Object.keys(t).length!==s.length)return!1;for(const e of s)if(!t.hasOwnProperty(e))return!1;return a.every(e,(e,n)=>{const r=t[n];return a.isEqual(e,r)})}return e===t},escapeHtml(e){const t=i.exec(e);if(!t)return e;let n="",r="",a=0,o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':r="&quot;";break;case"&":r="&amp;";break;case"'":r="&apos;";break;case"<":r="&lt;";break;case">":r="&gt;";break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=r}return a!==o?n+e.substring(a,o):n},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===r.call(e),isObject:e=>"[object Object]"===r.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let n,r,i;function o(t,o){n=e[o],i=Array.isArray(t),a.isObject(t)||i?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&a.isObject(n)?n:{},e[o]=a.deepMerge(r,t)):a.isUndefined(t)||(e[o]=t)}for(let s=0;s<t;s++)a.each(arguments[s],o);return e}};t.exports=a},{}],27:[function(e,t,n){(function(n,r){(function(){const i=e("fs"),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop(){},promiseImmediate:e=>new Promise(t=>{n.setImmediate?r(()=>{t(e)}):setTimeout(()=>{t(e)},1)}),inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach(t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});const i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach(e=>{i[e]=Object.getOwnPropertyDescriptor(r,e)}),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=o.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=a.exec(e);if(!t)return e;let n="",r="",i=0,o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&apos;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 127:r="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){r="";break}continue}i!==o&&(n+=e.substring(i,o)),i=o+1,r&&(n+=r)}return i!==o?n+e.substring(i,o):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:e=>!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:e=>new Promise(t=>{i.access(e,i.constants.F_OK,e=>{t(!e)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};t.exports=o}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){const r=e("./under-dash"),i=e("./utils");function a(e,t,n){e.push(` ${t}="${i.xmlEncode(n.toString())}"`)}function o(e,t){if(t){const n=[];r.each(t,(e,t)=>{void 0!==e&&a(n,t,e)}),e.push(n.join(""))}}class s{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml"),o(t,e),t.push("?>\n")}openNode(e,t){const n=this.tos,r=this._xml;n&&this.open&&r.push(">"),this._stack.push(e),r.push("<"),r.push(e),o(r,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&a(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,n){this.openNode(e,t),void 0!==n&&this.writeText(n),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}s.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=s},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){const r=e("events"),i=e("jszip"),a=e("./stream-buf"),{stringToBuffer:o}=e("./browser-buffer-encode");class s extends r.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new i,this.stream=new a}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=o(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:s}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},28:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ja-jp":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":'yyyy"\ub144" mm"\uc6d4" dd"\uc77c"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65f6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uc2dc" mm"\ubd84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79d2"',"ko-kr":'h"\uc2dc" mm"\ubd84" ss"\ucd08"'},34:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},51:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},58:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,n){t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,n){const r=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof a?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:n}of t)if("opentag"===e)this.parseOpen(n);else if("text"===e)this.parseText(n);else if("closetag"===e&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(e){return this.parse(r(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;return this.render(t,e),t.xml}static toAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e.toString()}static toStringAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){const r=e("../base-xform"),i=e("../../../utils/col-cache");function a(e){try{return i.decodeEx(e),!0}catch(t){return!1}}function o(e){const t=[];let n=!1,r="";return e.split(",").forEach(e=>{if(!e)return;const i=(e.match(/'/g)||[]).length;if(!i)return void(n?r+=e+",":a(e)&&t.push(e));const o=i%2==0;!n&&o&&a(e)?t.push(e):n&&!o?(n=!1,a(r+e)&&t.push(r+e),r=""):(n=!0,r+=e+",")}),t}t.exports=class extends r{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:o(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,n){const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){const n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(n.visibility=t.visibility),e.leafNode("workbookView",n)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},n=function(e,n,r){const i=void 0!==n?t[e]=n:r;void 0!==i&&(t[e]=i)},r=function(e,n,r){const i=void 0!==n?t[e]=parseInt(n,10):r;void 0!==i&&(t[e]=i)};return r("x",e.attributes.xWindow,0),r("y",e.attributes.yWindow,0),r("width",e.attributes.windowWidth,25e3),r("height",e.attributes.windowHeight,1e4),n("visibility",e.attributes.visibility,"visible"),r("activeTab",e.attributes.activeTab,void 0),r("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../static-xform"),l=e("../list-xform"),u=e("./defined-name-xform"),c=e("./sheet-xform"),d=e("./workbook-view-xform"),f=e("./workbook-properties-xform"),h=e("./workbook-calc-properties-xform");class p extends o{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new l({tag:"bookViews",count:!1,childXform:new d}),sheets:new l({tag:"sheets",count:!1,childXform:new c}),definedNames:new l({tag:"definedNames",count:!1,childXform:new u}),calcPr:new h}}prepare(e){e.sheets=e.worksheets;const t=[];let n=0;e.sheets.forEach(e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(r=>{const i=r.split(":"),a={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:n};t.push(a)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const r=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:r,localSheetId:n};t.push(i)}n++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((e,t)=>{e.name=e.type+(t+1)})}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(e){const t=(e.workbookRels||[]).reduce((e,t)=>(e[t.Id]=t,e),{}),n=[];let a,o=0;(e.sheets||[]).forEach(r=>{const i=t[r.rId];i&&(a=e.worksheetHash["xl/"+i.Target.replace(/^(\s|\/xl\/)+/,"")],a&&(a.name=r.name,a.id=r.id,a.state=r.state,n[o++]=a))});const s=[];r.each(e.definedNames,e=>{if("_xlnm.Print_Area"===e.name){if(a=n[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=i.decodeEx(e.ranges[0]);a.pageSetup.printArea=a.pageSetup.printArea?`${a.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(a=n[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=e.ranges.join(","),n=/\$/g,r=/\$\d+:\$\d+/,i=t.match(r);if(i&&i.length){const e=i[0];a.pageSetup.printTitlesRow=e.replace(n,"")}const o=/\$[A-Z]+:\$[A-Z]+/,s=t.match(o);if(s&&s.length){const e=s[0];a.pageSetup.printTitlesColumn=e.replace(n,"")}}}else s.push(e)}),e.definedNames=s,e.media.forEach((e,t)=>{e.index=t})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,n){const r=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),a=e("../base-xform"),o=t.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach(t=>{this.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),a=e("../base-xform"),o=e("./comment-xform"),s=t.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(r.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(t=>{this.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,n){(t===n[2]||"x:SizeWithCells"===this.tag&&t===n[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,n,r,i,a,o,s,Math.floor(18*(e.bottom-s))]}getDefaultRect(e){const t=e.col,n=Math.max(e.row-2,0);return[t,6,n,14,t+2,2,n+4,16]}render(e,t){const n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,n.join(", "))}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,n){const r=e("../base-xform"),i=e("./vml-anchor-xform"),a=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),s=["twoCells","oneCells","absolute"];t.exports=class extends r{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:n,editAs:r}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,r,s),this.map["x:SizeWithCells"].render(e,r,s),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./vml-shape-xform");class o extends i{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,o.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach((t,n)=>{this.map["v:shape"].render(e,t,n)}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){const r=e("../base-xform"),i=e("./vml-textbox-xform"),a=e("./vml-client-data-xform");class o extends r{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,t,n){e.openNode("v:shape",o.V_SHAPE_ATTRIBUTES(t,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}o.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"v:textbox"}conversionUnit(e,t,n){return`${parseFloat(e)*t.toFixed(2)}${n}`}reverseConversionUnit(e){return(e||"").split(",").map(e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2)))}render(e,t){const n={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map(e=>this.conversionUnit(e,10,"mm")).join(",")),e&&(n.inset=e)}e.openNode("v:textbox",n),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],48:[function(e,t,n){const r=e("./base-xform");t.exports=class extends r{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(t=>{e.leafNode("vt:lpstr",void 0,t.name)}),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),s=e("./app-titles-of-parts-xform");class l extends i{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new s}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Properties",l.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform");class a extends i{render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Types",a.PROPERTY_ATTRIBUTES);const n={};(t.media||[]).forEach(t=>{if("image"===t.type){const r=t.extension;n[r]||(n[r]=!0,e.leafNode("Default",{Extension:r,ContentType:"image/"+r}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach(t=>{const n=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:n,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach(t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),t.drawings&&t.drawings.forEach(t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach(t=>{let{commentName:n}=t;e.leafNode("Override",{PartName:`/xl/${n}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/date-xform"),o=e("../simple/string-xform"),s=e("../simple/integer-xform");class l extends i{constructor(){super(),this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./relationship-xform");class o extends i{constructor(){super(),this.map={Relationship:new a}}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("Relationships",o.RELATIONSHIPS_ATTRIBUTES),t.forEach(t=>{this.map.Relationship.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=t.mediaIndex[e];return t.media[r]}}}}},{"../base-xform":32}],57:[function(e,t,n){const r=e("../base-xform"),i=e("./blip-xform");t.exports=class extends r{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],59:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],60:[function(e,t,n){const r=e("../base-xform"),i=e("./hlink-click-xform"),a=e("./ext-lst-xform");t.exports=class extends r{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,n){const r=e("../base-xform"),i=e("../simple/integer-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,n){const r=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("./two-cell-anchor-xform"),s=e("./one-cell-anchor-xform");class l extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s}}prepare(e){e.anchors.forEach((e,t)=>{var n;e.anchorType=("string"==typeof(n=e).range?r.decode(n.range):n.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor",this.map[e.anchorType].prepare(e,{index:t})})}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),t.anchors.forEach(t=>{this.map[t.anchorType].render(e,t)}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],64:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const n=Math.floor(9525*t.width),r=Math.floor(9525*t.height);e.addAttribute("cx",n),e.addAttribute("cy",r),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,n){const r=e("../base-xform"),i=e("./c-nv-pr-xform"),a=e("./c-nv-pic-pr-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,n){const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./ext-xform"),s=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){const r=e("../base-xform"),i=e("../static-xform"),a=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),s=e("./sp-pr");t.exports=class extends r{constructor(){super(),this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,n){t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,n){const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){const r=e("./base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:n}=this;e&&e.forEach((e,r)=>{t.index=r,n.prepare(e,t)})}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:n}=this;(t||[]).forEach((t,r)=>{n.render(e,t,r)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const{childXform:n}=this;e.forEach(e=>{n.reconcile(e,t)})}}}},{"./base-xform":32}],72:[function(e,t,n){const r=e("../../../utils/col-cache"),i=e("../base-xform");t.exports=class extends i{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const n=function(e){return"string"==typeof e?e:r.getAddress(e.row,e.column).address},i=n(t.from),a=n(t.to);i&&a&&e.leafNode("autoFilter",{ref:`${i}:${a}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){const r=e("../../../utils/utils"),i=e("../base-xform"),a=e("../../../doc/range"),o=e("../../../doc/enums"),s=e("../strings/rich-text-xform");function l(e){if(null==e)return o.ValueType.Null;if(e instanceof String||"string"==typeof e)return o.ValueType.String;if("number"==typeof e)return o.ValueType.Number;if("boolean"==typeof e)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends i{constructor(){super(),this.richTextXForm=new s}get tag(){return"c"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{},(r=e).type===o.ValueType.Formula?l(r.result):r.type);var r;switch(n&&(e.styleId=n),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const n=t.formulae[e.sharedFormula];if(!n)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===n.si?(n.shareType="shared",n.si=t.siFormulae++,n.range=new a(n.address,e.address)):n.range&&n.range.expandToAddress(e.address),e.si=n.si}}}renderFormula(e,t){let n=null;switch(t.shareType){case"shared":n={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":n={t:"array",ref:t.ref};break;default:void 0!==t.si&&(n={t:"shared",si:t.si})}switch(l(t.result)){case o.ValueType.Null:e.leafNode("f",n,t.formula);break;case o.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",n,t.formula),e.leafNode("v",null,r.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(t=>{this.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case o.ValueType.Date:e.leafNode("v",null,r.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=o.ValueType.Formula,e.value&&("str"===this.t?e.result=r.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=o.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String,e.value=r.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=o.ValueType.Error,e.value={error:e.value};break;default:e.type=o.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=o.ValueType.Null:e.type=o.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){const n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),void 0!==e.styleId&&(e.styleId=void 0),e.type){case o.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=o.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:void 0!==e.result&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);const a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,n){const{v4:r}=e("uuid"),i=e("../../base-xform"),a=e("../../composite-xform"),o=e("./databar-ext-xform"),s=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new s}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?o.isExt(e):!("iconSet"!==e.type||!e.custom&&!l[e.iconSet])}prepare(e){u.isExt(e)&&(e.x14Id=`{${r()}}`.toUpperCase())}render(e,t){if(u.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${r()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){const r=e("../../composite-xform"),i=e("./f-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){const r=e("../../composite-xform"),i=e("./sqref-ext-xform"),a=e("./cf-rule-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(e,t){t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach(t=>this.cfRule.render(e,t)),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,n){const r=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),a=e("./conditional-formatting-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(e=>e.rules.some(i.isExt))),e.hasExtContent}prepare(e,t){e.forEach(e=>{this.cfXform.prepare(e,t)})}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach(t=>this.cfXform.render(e,t)),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../style/color-xform"),o=e("./cfvo-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,"auto"),direction:r.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,"auto"),direction:r.toStringValue(t.direction,"leftToRight")}}onParserClose(e,t){const[,n]=e.split(":");"cfvo"===n?this.model.cfvo.push(t.model):this.model[n]=t.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,n){const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach((t,n)=>{t.iconId=n,this.cfIconXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}onParserClose(e,t){const[,n]=e.split(":");switch(n){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,n){const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../../../doc/range"),o=e("./databar-xform"),s=e("./ext-lst-ref-xform"),l=e("./formula-xform"),u=e("./color-scale-xform"),c=e("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=e=>{const{type:t,operator:n}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:n}}};class h extends i{constructor(){super(),this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new c}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!d[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(t=>{this.formulaXform.render(e,t)}),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){h.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,"containsText")});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:n}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${n})))`;case"containsBlanks":return`LEN(TRIM(${n}))=0`;case"notContainsBlanks":return`LEN(TRIM(${n}))>0`;case"containsErrors":return`ISERROR(${n})`;case"notContainsErrors":return`NOT(ISERROR(${n}))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:n}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${n},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${n},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${n},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${n},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${n},1)=TODAY()-1`;case"today":return`FLOOR(${n},1)=TODAY()`;case"tomorrow":return`FLOOR(${n},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${n},1)<=6,FLOOR(${n},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0-1)),YEAR(${n})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${n})=MONTH(TODAY()),YEAR(${n})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0+1)),YEAR(${n})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...f(t),dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,n){const r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.color.forEach(t=>{this.colorXform.render(e,t)}),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){const r=e("../../composite-xform"),i=e("./cf-rule-xform");t.exports=class extends r{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(n=>{i.isPrimitive(n)&&(n.ref=t.ref,this.map.cfRule.render(e,n))}),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){const r=e("../../base-xform"),i=e("./conditional-formatting-xform");t.exports=class extends r{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let n=e.reduce((e,t)=>Math.max(e,...t.rules.map(e=>e.priority||0)),1);e.forEach(e=>{e.rules.forEach(e=>{e.priority||(e.priority=n++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}render(e,t){t.forEach(t=>{this.cfXform.render(e,t)})}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(e,t){e.forEach(e=>{e.rules.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){const r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,n){const r=e("../../base-xform"),i=e("../../composite-xform");class a extends r{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class o extends i{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new o}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){const r=e("../../base-xform");t.exports=class extends r{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,n){const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{get tag(){return"col"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../../../utils/utils"),a=e("../../../utils/col-cache"),o=e("../base-xform"),s=e("../../../doc/range");function l(e,t,n,r){const i=t[n];void 0!==i?e[n]=i:void 0!==r&&(e[n]=r)}function u(e,t,n,r){const a=t[n];void 0!==a&&(e[n]=i.parseBoolean(a))}t.exports=class extends o{get tag(){return"dataValidations"}render(e,t){const n=function(e){const t=r.map(e,(e,t)=>({address:t,dataValidation:e,marked:!1})).sort((e,t)=>r.strcmp(e.address,t.address)),n=r.keyBy(t,"address"),i=(t,n,i)=>{for(let o=0;o<n;o++){const n=a.encodeAddress(t.row+o,i);if(!e[n]||!r.isEqual(e[t.address],e[n]))return!1}return!0};return t.map(t=>{if(!t.marked){const o=a.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let s=1,l=a.encodeAddress(o.row+s,o.col);for(;e[l]&&r.isEqual(t.dataValidation,e[l]);)s++,l=a.encodeAddress(o.row+s,o.col);let u=1;for(;i(o,s,o.col+u);)u++;for(let e=0;e<s;e++)for(let t=0;t<u;t++)l=a.encodeAddress(o.row+e,o.col+t),n[l].marked=!0;if(s>1||u>1){const e=o.row+(s-1),n=o.col+(u-1);return{...t.dataValidation,sqref:`${t.address}:${a.encodeAddress(e,n)}`}}return{...t.dataValidation,sqref:t.address}}return null}).filter(Boolean)}(t);n.length&&(e.openNode("dataValidations",{count:n.length}),n.forEach(t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((n,r)=>{e.openNode("formula"+(r+1)),"date"===t.type?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()}),e.closeNode()}),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&u(t,e.attributes,"allowBlank"),u(t,e.attributes,"showInputMessage"),u(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:l(t,e.attributes,"operator","between")}return l(t,e.attributes,"promptTitle"),l(t,e.attributes,"prompt"),l(t,e.attributes,"errorStyle"),l(t,e.attributes,"errorTitle"),l(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(e=>{e.includes(":")?new s(e).forEachAddress(e=>{this.model[e]=this._dataValidation}):this.model[e]=this._dataValidation}),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,n){const r=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class a extends r{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends r{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let n=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../../../doc/range"),a=e("../../../utils/col-cache"),o=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return r.map(this.merges,e=>e.range)}reconcile(e,t){r.each(e,e=>{const n=a.decode(e);for(let r=n.top;r<=n.bottom;r++){const e=t[r-1];for(let t=n.left;t<=n.right;t++){const i=e.cells[t-1];i?i.type===o.ValueType.Merge&&(i.master=n.tl):e.cells[t]={type:o.ValueType.Null,address:a.encodeAddress(r,t)}}}})}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){const r=e("../base-xform"),i=e=>void 0!==e;t.exports=class extends r{get tag(){return"outlinePr"}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"pageMargins"}render(e,t){if(t){const n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e){return e?"1":void 0}function o(e){if("overThenDown"===e)return e}function s(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function l(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=class extends i{get tag(){return"pageSetup"}render(e,t){if(t){const n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:a(t.blackAndWhite),draft:a(t.draft),cellComments:s(t.cellComments),errors:l(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:a(t.firstPageNumber),usePrinterDefaults:a(t.usePrinterDefaults),copies:t.copies};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e){return e?"1":void 0}t.exports=class extends i{get tag(){return"printOptions"}render(e,t){if(t){const n={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){const r=e("./page-breaks-xform"),i=e("../list-xform");t.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new r})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:n}=this;t.forEach(t=>{n.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){const r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./cell-xform");t.exports=class extends r{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(e,t){const n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);const r=this.map.c;e.cells.forEach(e=>{r.prepare(e,t)})}render(e,t,n){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const r=this.map.c;t.cells.forEach(t=>{r.render(e,t,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map(e=>parseInt(e,10)):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const n=this.map.c;e.cells.forEach(e=>{n.reconcile(e,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(n.customHeight="1"),r.some(n,e=>void 0!==e)&&e.leafNode("sheetFormatPr",n)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){const r=e("../base-xform"),i=e("../style/color-xform"),a=e("./page-setup-properties-xform"),o=e("./outline-properties-xform");t.exports=class extends r{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new a,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,n=this.map.outlinePr.render(e,t.outlineProperties)||n,n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e,t){return e?t:void 0}function o(e,t){return e===t||void 0}t.exports=class extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const n={sheet:a(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:a(t.formatCells,"0"),formatColumns:a(t.formatColumns,"0"),formatRows:a(t.formatRows,"0"),insertColumns:a(t.insertColumns,"0"),insertRows:a(t.insertRows,"0"),insertHyperlinks:a(t.insertHyperlinks,"0"),deleteColumns:a(t.deleteColumns,"0"),deleteRows:a(t.deleteRows,"0"),sort:a(t.sort,"0"),autoFilter:a(t.autoFilter,"0"),pivotTables:a(t.pivotTables,"0")};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=a(!1===t.objects,"1"),n.scenarios=a(!1===t.scenarios,"1")),r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={sheet:o(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:o(e.attributes.formatCells,"0"),formatColumns:o(e.attributes.formatColumns,"0"),formatRows:o(e.attributes.formatRows,"0"),insertColumns:o(e.attributes.insertColumns,"0"),insertRows:o(e.attributes.insertRows,"0"),insertHyperlinks:o(e.attributes.insertHyperlinks,"0"),deleteColumns:o(e.attributes.deleteColumns,"0"),deleteRows:o(e.attributes.deleteRows,"0"),sort:o(e.attributes.sort,"0"),autoFilter:o(e.attributes.autoFilter,"0"),pivotTables:o(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){const r=e("../../../utils/col-cache"),i=e("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const n=function(t,n,r){r&&e.addAttribute(t,n)};let i,a,o,s;switch(n("rightToLeft","1",!0===t.rightToLeft),n("tabSelected","1",t.tabSelected),n("showRuler","0",!1===t.showRuler),n("showRowColHeaders","0",!1===t.showRowColHeaders),n("showGridLines","0",!1===t.showGridLines),n("zoomScale",t.zoomScale,t.zoomScale),n("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),n("view",t.style,t.style),t.state){case"frozen":a=t.xSplit||0,o=t.ySplit||0,i=t.topLeftCell||r.getAddress(o+1,a+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,n;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),n=this.selections[this.pane.activePane],n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},n=this.selections.topLeft,n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../../rel-type"),s=e("./merges"),l=e("../base-xform"),u=e("../list-xform"),c=e("./row-xform"),d=e("./col-xform"),f=e("./dimension-xform"),h=e("./hyperlink-xform"),p=e("./merge-cell-xform"),m=e("./data-validations-xform"),v=e("./sheet-properties-xform"),g=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),b=e("./sheet-protection-xform"),w=e("./page-margins-xform"),x=e("./page-setup-xform"),S=e("./print-options-xform"),_=e("./auto-filter-xform"),k=e("./picture-xform"),A=e("./drawing-xform"),C=e("./table-part-xform"),T=e("./row-breaks-xform"),O=e("./header-footer-xform"),I=e("./cf/conditional-formattings-xform"),P=e("./ext-lst-xform"),E=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const n={},r={};return e.forEach(e=>{n[e.ref]=e,e.rules.forEach(e=>{const{x14Id:t}=e;t&&(r[t]=e)})}),t.forEach(t=>{t.rules.forEach(i=>{const a=r[i.x14Id];var o,s;a?(o=a,s=i,Object.keys(s).forEach(e=>{const t=o[e],n=s[e];void 0===t&&void 0!==n&&(o[e]=n)})):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})})}),e};class M extends l{constructor(e){super();const{maxRows:t,maxCols:n,ignoreNodes:r}=e||{};this.ignoreNodes=r||[],this.map={sheetPr:new v,dimension:new f,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new g,cols:new u({tag:"cols",count:!1,childXform:new d}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new c({maxItems:n}),maxItems:t}),autoFilter:new _,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new T,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new w,dataValidations:new m,pageSetup:new x,headerFooter:new O,printOptions:new S,picture:new k,drawing:new A,sheetProtection:new b,tableParts:new u({tag:"tableParts",count:!0,childXform:new C}),conditionalFormatting:new I,extLst:new P}}prepare(e,t){t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const n=e.rels=[];function r(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach(e=>{const t=r(n);e.rId=t,n.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})}),e.comments.length>0){const a={Id:r(n),Type:o.Comments,Target:`../comments${e.id}.xml`};n.push(a);const s={Id:r(n),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};n.push(s),e.comments.forEach(e=>{e.refAddress=i.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const a=[];let l;e.media.forEach(i=>{if("background"===i.type){const a=r(n);l=t.media[i.imageId],n.push({Id:a,Type:o.Image,Target:`../media/${l.name}.${l.extension}`}),e.background={rId:a},e.image=t.media[i.imageId]}else if("image"===i.type){let{drawing:s}=e;l=t.media[i.imageId],s||(s=e.drawing={rId:r(n),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(s),n.push({Id:s.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${s.name}.xml`}));let u=this.preImageId===i.imageId?a[i.imageId]:a[s.rels.length];u||(u=r(s.rels),a[s.rels.length]=u,s.rels.push({Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${l.name}.${l.extension}`}));const c={picture:{rId:u},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=r(s.rels);a[s.rels.length]=e,c.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},s.rels.push({Id:e,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId,s.anchors.push(c)}}),e.tables.forEach(e=>{const i=r(n);e.rId=i,n.push({Id:i,Type:o.Table,Target:"../tables/"+e.target}),e.columns.forEach(e=>{const{style:n}=e;n&&(e.dxfId=t.styles.addDxfStyle(n))})}),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("worksheet",M.WORKSHEET_ATTRIBUTES);const n=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(n.defaultColWidth=t.properties.defaultColWidth);const r={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},l=t.sheetProtection;this.map.sheetPr.render(e,r),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,s),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(t=>{t.Type===o.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(r.each(this.map,e=>{e.reset()}),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),r=E(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(e,t){const n=(e.relationships||[]).reduce((n,r)=>{if(n[r.Id]=r,r.Type===o.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===o.VmlDrawing&&e.comments&&e.comments.length){const n=t.vmlDrawings[r.Target].comments;e.comments.forEach((e,t)=>{e.note=Object.assign({},e.note,n[t])})}return n},{});if(t.commentsMap=(e.comments||[]).reduce((e,t)=>(t.ref&&(e[t.ref]=t),e),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((e,t)=>(t.rId&&(e[t.address]=n[t.rId].Target),e),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){const n=r[1];t.drawings[n].anchors.forEach(t=>{if(t.medium){const n={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}})}}const r=e.background&&n[e.background.rId];if(r){const n=r.Target.split("/media/")[1],i=t.mediaIndex&&t.mediaIndex[n];void 0!==i&&e.media.push({type:"background",imageId:i})}e.tables=(e.tables||[]).map(e=>{const r=n[e.rId];return t.tables[r.Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}M.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=M},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(t){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,n){const r=e("./base-xform"),i=e("../../utils/xml-stream");t.exports=class extends r{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new i;!function e(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach(n=>{e(t,n)}),n.t&&t.writeText(n.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){const r=e("./text-xform"),i=e("./rich-text-xform"),a=e("../base-xform");t.exports=class extends a{constructor(){super(),this.map={r:new i,t:new r}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:n}=this.map;t.richText.forEach(t=>{n.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){const r=e("./text-xform"),i=e("../style/font-xform"),a=e("../base-xform");class o extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new r)}get fontXform(){return this._fontXform||(this._fontXform=new i(o.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){const r=e("./text-xform"),i=e("./rich-text-xform"),a=e("./phonetic-text-xform"),o=e("../base-xform");t.exports=class extends o{constructor(e){super(),this.model=e,this.map={r:new i,t:new r,rPh:new a}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(t=>{this.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./shared-string-xform");t.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let n=this.rich[t];return void 0===n&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const n=this.sharedStringXform;t.values.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,n){const r=e("../../../doc/enums"),i=e("../../../utils/utils"),a=e("../base-xform"),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation:e=>"vertical"===e||(e=i.validInt(e))>=-90&&e<=90?e:void 0,indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return r.ReadingOrder.LeftToRight;case"rtl":return r.ReadingOrder.RightToLeft;default:return}}},s={toXml(e){if(e=o.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends a{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r("horizontal",o.horizontal(t.horizontal)),r("vertical",o.vertical(t.vertical)),r("wrapText",!!o.wrapText(t.wrapText)&&"1"),r("shrinkToFit",!!o.shrinkToFit(t.shrinkToFit)&&"1"),r("indent",o.indent(t.indent)),r("textRotation",s.toXml(t.textRotation)),r("readingOrder",o.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={};let n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,"horizontal",e.attributes.horizontal),r(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),r(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,"textRotation",s.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){const r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./color-xform");class o extends r{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,t,n){const r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r&&this.map.color.render(e,r)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return o.validStyleValues[e]}}o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,t)=>(e[t]=!0,e),{}),t.exports=class extends r{constructor(){super(),this.map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")}}render(e,t){const{color:n}=t;function r(r,i){r&&!r.color&&t.color&&(r={...r,color:t.color}),i.render(e,r,n)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,n,r){n&&(r&&Object.assign(n,r),e[t]=n)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,n){const r=e("../base-xform"),i=e("./alignment-xform"),a=e("./border-xform"),o=e("./fill-xform"),s=e("./font-xform"),l=e("./numfmt-xform"),u=e("./protection-xform");t.exports=class extends r{constructor(){super(),this.map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new l,protection:new u}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,n){const r=e("../base-xform"),i=e("./color-xform");class a extends r{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class o extends r{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class s extends r{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const n=this.map.stop;t.stops.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends r{constructor(){super(),this.map={patternFill:new o,gradientFill:new s}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return l.validPatternValues[e]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((e,t)=>(e[t]=!0,e),{}),l.StopXform=a,l.PatternFillXform=o,l.GradientFillXform=s,t.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){const r=e("./color-xform"),i=e("../simple/boolean-xform"),a=e("../simple/integer-xform"),o=e("../simple/string-xform"),s=e("./underline-xform"),l=e("../../../utils/under-dash"),u=e("../base-xform");class c extends u{constructor(e){super(),this.options=e||c.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new r},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:n}=this;e.openNode(this.options.tagName),l.each(this.map,(r,i)=>{n[i].xform.render(e,t[r.prop])}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}c.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=c},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,n){const r=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),a=e("../base-xform"),o=function(){const e={};return r.each(i,(t,n)=>{t.f&&(e[t.f]=parseInt(n,10))}),e}();class s extends a{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(e){return o[e]},s.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=s},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){const r=e("../base-xform"),i={boolean:(e,t)=>void 0===e?t:e};t.exports=class extends r{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let n=!1;function r(t,r){void 0!==r&&(e.addAttribute(t,r),n=!0)}r("locked",i.boolean(t.locked,!0)?void 0:"0"),r("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},n=!t.locked||t.hidden;this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,n){const r=e("../base-xform"),i=e("./alignment-xform"),a=e("./protection-xform");t.exports=class extends r{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new a}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){const r=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("../static-xform"),s=e("../list-xform"),l=e("./font-xform"),u=e("./fill-xform"),c=e("./border-xform"),d=e("./numfmt-xform"),f=e("./style-xform"),h=e("./dxf-xform");class p extends a{constructor(e){super(),this.map={numFmts:new s({tag:"numFmts",count:!0,childXform:new d}),fonts:new s({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new u}),borders:new s({tag:"borders",count:!0,childXform:new c}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new f}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new f({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new d,font:new l,fill:new u,border:new c,style:new f({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach(t=>{e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach(t=>{e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach(t=>{e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach(t=>{e[t.id]=t.formatCode})}return!1}return!0}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);const n={};if(t=t||r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr("General");break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);const i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||d.getDefaultFmtCode(t.numFmtId);e&&(n.numFmt=e)}function r(e,t,r){if(r||0===r){const i=t[r];i&&(n[e]=i)}}return r("font",this.model.fonts,t.fontId),r("border",this.model.borders,t.borderId),r("fill",this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let n=this.index.style[t];return void 0===n&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}_addNumFmtStr(e){let t=d.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}_addFont(e){const t=this.map.font.toXml(e);let n=this.index.font[t];return void 0===n&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}_addBorder(e){const t=this.map.border.toXml(e);let n=this.index.border[t];return void 0===n&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}_addFill(e){const t=this.map.fill.toXml(e);let n=this.index.fill[t];return void 0===n&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t===r.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){const r=e("../base-xform");class i extends r{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const n=i.Attributes[t];n&&e.leafNode("u",n)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,n){const r=e("../base-xform"),i=e("./filter-column-xform");t.exports=class extends r{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach((e,t)=>{this.map.filterColumn.prepare(e,{index:t})})}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(t=>{this.map.filterColumn.render(e,t)}),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,n){const r=e("../base-xform"),i=e("../list-xform"),a=e("./custom-filter-xform"),o=e("./filter-xform");t.exports=class extends r{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,n){const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,n){const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../list-xform"),o=e("./auto-filter-xform"),s=e("./table-column-xform"),l=e("./table-style-info-xform");class u extends i{constructor(){super(),this.map={autoFilter:new o,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new l}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:n}=e;return t===this.tag?(this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:"1"===n.totalsRowCount,headerRow:"1"===n.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((e,t)=>{this.model.columns[t].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(e,t){e.columns.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){const i=e("fs"),a=e("jszip"),{PassThrough:o}=e("readable-stream"),s=e("../utils/zip-stream"),l=e("../utils/stream-buf"),u=e("../utils/utils"),c=e("../utils/xml-stream"),{bufferToString:d}=e("../utils/browser-buffer-decode"),f=e("./xform/style/styles-xform"),h=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),m=e("./xform/core/relationships-xform"),v=e("./xform/core/content-types-xform"),g=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),b=e("./xform/sheet/worksheet-xform"),w=e("./xform/drawing/drawing-xform"),x=e("./xform/table/table-xform"),S=e("./xform/comment/comments-xform"),_=e("./xform/comment/vml-notes-xform"),k=e("./xml/theme1");class A{constructor(e){this.workbook=e}async readFile(e,t){if(!(await u.fs.exists(e)))throw new Error("File not found: "+e);const n=i.createReadStream(e);try{const e=await this.read(n,t);return n.close(),e}catch(r){throw n.close(),r}}parseRels(e){return(new m).parseStream(e)}parseWorkbook(e){return(new y).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const n=new y,r=new b(t),i=new w,a=new x;n.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(t=>{const n=e.drawings[t],r=e.drawingRels[t];r&&(o.rels=r.reduce((e,t)=>(e[t.Id]=t,e),{}),(n.anchors||[]).forEach(e=>{const t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)}),i.reconcile(n,o))});const s={styles:e.styles};Object.values(e.tables).forEach(e=>{a.reconcile(e,s)});const l={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach(t=>{t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,l)}),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,n,r,i){const a=new b(r),o=await a.parseStream(e);o.sheetNo=n,t.worksheetHash[i]=o,t.worksheets.push(o)}async _processCommentEntry(e,t,n){const r=new S,i=await r.parseStream(e);t.comments[`../${n}.xml`]=i}async _processTableEntry(e,t,n){const r=new x,i=await r.parseStream(e);t.tables[`../tables/${n}.xml`]=i}async _processWorksheetRelsEntry(e,t,n){const r=new m,i=await r.parseStream(e);t.worksheetRels[n]=i}async _processMediaEntry(e,t,n){const r=n.lastIndexOf(".");if(r>=1){const i=n.substr(r+1),a=n.substr(0,r);await new Promise((r,o)=>{const s=new l;s.on("finish",()=>{t.mediaIndex[n]=t.media.length,t.mediaIndex[a]=t.media.length;const e={type:"image",name:a,extension:i,buffer:s.toBuffer()};t.media.push(e),r()}),e.on("error",e=>{o(e)}),e.pipe(s)})}}async _processDrawingEntry(e,t,n){const r=new w,i=await r.parseStream(e);t.drawings[n]=i}async _processDrawingRelsEntry(e,t,n){const r=new m,i=await r.parseStream(e);t.drawingRels[n]=i}async _processVmlDrawingEntry(e,t,n){const r=new _,i=await r.parseStream(e);t.vmlDrawings[`../drawings/${n}.vml`]=i}async _processThemeEntry(e,t,n){await new Promise((r,i)=>{const a=new l;e.on("error",i),a.on("error",i),a.on("finish",()=>{t.themes[n]=a.read().toString(),r()}),e.pipe(a)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new o));const n=[];for await(const r of e)n.push(r);return this.load(r.concat(n),t)}async load(e,t){let i;i=t&&t.base64?r.from(e.toString(),"base64"):e;const s={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},l=await a.loadAsync(i);for(const r of Object.values(l.files))if(!r.dir){let e,i=r.name;if("/"===i[0]&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))e=new o,e.write(await r.async("nodebuffer"));else{let t;e=new o({writableObjectMode:!0,readableObjectMode:!0}),t=n.browser?d(await r.async("nodebuffer")):await r.async("string");const i=16384;for(let n=0;n<t.length;n+=i)e.write(t.substring(n,n+i))}switch(e.end(),i){case"_rels/.rels":s.globalRels=await this.parseRels(e);break;case"xl/workbook.xml":{const t=await this.parseWorkbook(e);s.sheets=t.sheets,s.definedNames=t.definedNames,s.views=t.views,s.properties=t.properties,s.calcProperties=t.calcProperties;break}case"xl/_rels/workbook.xml.rels":s.workbookRels=await this.parseRels(e);break;case"xl/sharedStrings.xml":s.sharedStrings=new p,await s.sharedStrings.parseStream(e);break;case"xl/styles.xml":s.styles=new f,await s.styles.parseStream(e);break;case"docProps/app.xml":{const t=new g,n=await t.parseStream(e);s.company=n.company,s.manager=n.manager;break}case"docProps/core.xml":{const t=new h,n=await t.parseStream(e);Object.assign(s,n);break}default:{let n=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(n){await this._processWorksheetEntry(e,s,n[1],t,i);break}if(n=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),n){await this._processWorksheetRelsEntry(e,s,n[1]);break}if(n=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),n){await this._processThemeEntry(e,s,n[1]);break}if(n=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),n){await this._processMediaEntry(e,s,n[1]);break}if(n=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),n){await this._processDrawingEntry(e,s,n[1]);break}if(n=i.match(/xl\/(comments\d+)[.]xml/),n){await this._processCommentEntry(e,s,n[1]);break}if(n=i.match(/xl\/tables\/(table\d+)[.]xml/),n){await this._processTableEntry(e,s,n[1]);break}if(n=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),n){await this._processDrawingRelsEntry(e,s,n[1]);break}if(n=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),n){await this._processVmlDrawingEntry(e,s,n[1]);break}}}}return this.reconcile(s,t),this.workbook.model=s,this.workbook}async addMedia(e,t){await Promise.all(t.media.map(async t=>{if("image"===t.type){const a=`xl/media/${t.name}.${t.extension}`;if(t.filename){const o=await(n=t.filename,new Promise((e,t)=>{i.readFile(n,r,(n,r)=>{n?t(n):e(r)})}));return e.append(o,{name:a})}if(t.buffer)return e.append(t.buffer,{name:a});if(t.base64){const n=t.base64,r=n.substring(n.indexOf(",")+1);return e.append(r,{name:a,base64:!0})}}var n,r;throw new Error("Unsupported media")}))}addDrawings(e,t){const n=new w,r=new m;t.worksheets.forEach(t=>{const{drawing:i}=t;if(i){n.prepare(i,{});let t=n.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=r.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}})}addTables(e,t){const n=new x;t.worksheets.forEach(t=>{const{tables:r}=t;r.forEach(t=>{n.prepare(t,{});const r=n.toXml(t);e.append(r,{name:"xl/tables/"+t.target})})})}async addContentTypes(e,t){const n=(new v).toXml(t);e.append(n,{name:"[Content_Types].xml"})}async addApp(e,t){const n=(new g).toXml(t);e.append(n,{name:"docProps/app.xml"})}async addCore(e,t){const n=new h;e.append(n.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const n=t.themes||{theme1:k};Object.keys(n).forEach(t=>{const r=n[t],i=`xl/theme/${t}.xml`;e.append(r,{name:i})})}async addOfficeRels(e){const t=(new m).toXml([{Id:"rId1",Type:A.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:A.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:A.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let n=1;const r=[{Id:"rId"+n++,Type:A.RelType.Styles,Target:"styles.xml"},{Id:"rId"+n++,Type:A.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&r.push({Id:"rId"+n++,Type:A.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach(e=>{e.rId="rId"+n++,r.push({Id:e.rId,Type:A.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})});const i=(new m).toXml(r);e.append(i,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:n}=t.styles;n&&e.append(n,{name:"xl/styles.xml"})}async addWorkbook(e,t){const n=new y;e.append(n.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const n=new b,r=new m,i=new S,a=new _;t.worksheets.forEach(t=>{let o=new c;n.render(o,t),e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(o=new c,r.render(o,t.rels),e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(o=new c,i.render(o,t),e.append(o.xml,{name:`xl/comments${t.id}.xml`}),o=new c,a.render(o,t),e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))})}_finalize(e){return new Promise((t,n)=>{e.on("finish",()=>{t(this)}),e.on("error",n),e.finalize()})}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new f(!0):new f.Mock;const n=new y,r=new b;n.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let a=0;e.tables=[],e.worksheets.forEach(t=>{t.tables.forEach(t=>{a++,t.target=`table${a}.xml`,t.id=a,e.tables.push(t)}),r.prepare(t,i)})}async write(e,t){t=t||{};const{model:n}=this.workbook,r=new s.ZipWriter(t.zip);return r.pipe(e),this.prepareModel(n,t),await this.addContentTypes(r,n),await this.addOfficeRels(r,n),await this.addWorkbookRels(r,n),await this.addWorksheets(r,n),await this.addSharedStrings(r,n),await this.addDrawings(r,n),await this.addTables(r,n),await Promise.all([this.addThemes(r,n),this.addStyles(r,n)]),await this.addMedia(r,n),await Promise.all([this.addApp(r,n),this.addCore(r,n)]),await this.addWorkbook(r,n),this._finalize(r)}writeFile(e,t){const n=i.createWriteStream(e);return new Promise((e,r)=>{n.on("finish",()=>{e()}),n.on("error",e=>{r(e)}),this.write(n,t).then(()=>{n.end()}).catch(e=>{r(e)})})}async writeBuffer(e){const t=new l;return await this.write(t,e),t.read()}}A.RelType=e("./rel-type"),t.exports=A}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,n){t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;const r=e("stream"),i=e("./formatter");class a extends r.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new i.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,n,r){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(e,n)=>e?(i=!0,r(e)):(n&&n.forEach(e=>{this.push(t.from(e,"utf8"))}),i=!0,r()))}catch(a){if(i)throw a;r(a)}}_flush(e){this.rowFormatter.finish((n,r)=>n?e(n):(r&&r.forEach(e=>{this.push(t.from(e,"utf8"))}),e()))}}n.CsvFormatterStream=a}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=e.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;const i=r(e("lodash.isboolean")),a=r(e("lodash.isnil")),o=r(e("lodash.escaperegexp"));n.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,null!==e.headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const t=`[${e.delimiter}${o.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){const n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:null!==this._headers&&n[this._headers[e]]}format(e,t,n){const r=(""+(a.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:i}=this;return""!==i.quote&&-1!==r.indexOf(i.quote)?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==r.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,n)?this.quoteField(r):r}quoteField(e){const{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;const i=r(e("lodash.isfunction")),a=r(e("lodash.isequal")),o=e("./FieldFormatter"),s=e("../types");class l{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new o.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return l.isRowHashArray(e)?e.map(e=>e[0]):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return s.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(i){return n(i)}return n(null,r)}:(t,n)=>{e(t,n)}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(e)}format(e,t){this.callTransformer(e,(n,r)=>{if(n)return t(n);if(!e)return t(null);const i=[];if(r){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(r);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(i.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(r);i.push(this.formatColumns(e,!1))}}return t(null,i)})}finish(e){const t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const t=l.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?l.isRowHashArray(e)?this.headers.map((t,n)=>{const r=e[n];return r?r[1]:""}):l.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map((t,n)=>e[n]):this.headers.map(t=>e[t])}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){const n=e.map((e,n)=>this.fieldFormatter.format(e,n,t)).join(this.formatterOptions.delimiter),{rowCount:r}=this;return this.rowCount+=1,r?[this.formatterOptions.rowDelimiter,n].join(""):n}}n.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;const s=e("util"),l=e("stream"),u=a(e("fs")),c=e("./FormatterOptions"),d=e("./CsvFormatterStream");o(e("./types"),n);var f=e("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var h=e("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return h.FormatterOptions}}),n.format=e=>new d.CsvFormatterStream(new c.FormatterOptions(e)),n.write=(e,t)=>{const r=n.format(t),i=s.promisify((e,t)=>{r.write(e,void 0,t)});return e.reduce((e,t)=>e.then(()=>i(t)),Promise.resolve()).then(()=>r.end()).catch(e=>{r.emit("error",e)}),r},n.writeToStream=(e,t,r)=>n.write(t,r).pipe(e),n.writeToBuffer=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],a=new l.Writable({write(e,t,n){i.push(e),n()}});return new Promise((o,s)=>{a.on("error",s).on("finish",()=>o(t.concat(i))),n.write(e,r).pipe(a)})},n.writeToString=(e,t)=>n.writeToBuffer(e,t).then(e=>e.toString()),n.writeToPath=(e,t,r)=>{const i=u.createWriteStream(e,{encoding:"utf8"});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;const r=e("string_decoder"),i=e("stream"),a=e("./transforms"),o=e("./parser");class s extends i.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new o.Parser(e),this.headerTransformer=new a.HeaderTransformer(e),this.decoder=new r.StringDecoder(e.encoding),this.rowTransformerValidator=new a.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return super.emit(e,...n)}_transform(e,t,n){if(this.hasHitRowLimit)return n();const r=s.wrapDoneCallback(n);try{const{lines:t}=this,n=t+this.decoder.write(e),i=this.parse(n,!0);return this.processRows(i,r)}catch(i){return r(i)}}_flush(e){const t=s.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),n=this.parse(e,!1);return this.processRows(n,t)}catch(n){return t(n)}}parse(e,t){if(!e)return[];const{line:n,rows:r}=this.parser.parse(e,t);return this.lines=n,r}processRows(e,n){const r=e.length,i=a=>{const o=e=>e?n(e):a%100!=0?i(a+1):void t(()=>i(a+1));if(this.checkAndEmitHeaders(),a>=r||this.hasHitRowLimit)return n();if(this.parsedLineCount+=1,this.shouldSkipLine)return o();const s=e[a];this.rowCount+=1,this.parsedRowCount+=1;const l=this.rowCount;return this.transformRow(s,(e,t)=>{if(e)return this.rowCount-=1,o(e);if(!t)return o(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,o)}else this.emit("data-invalid",t.row,l,t.reason);return o()})};i(0)}transformRow(e,t){try{this.headerTransformer.transform(e,(n,r)=>n?t(n):r?r.isValid?r.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(r.row,t):this.skipRow(t):(this.rowCount-=1,this.parsedRowCount-=1,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform")))}catch(n){t(n)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(n){t(n)}}static wrapDoneCallback(e){let t=!1;return function(n){if(n){if(t)throw n;return t=!0,void e(n)}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e(...i)}}}n.CsvParserStream=s}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;const i=r(e("lodash.escaperegexp")),a=r(e("lodash.isnil"));n.ParserOptions=class{constructor(e){var t;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,e||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(t=this.escape)&&void 0!==t?t:this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;const s=a(e("fs")),l=e("stream"),u=e("./ParserOptions"),c=e("./CsvParserStream");o(e("./types"),n);var d=e("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),n.parse=e=>new c.CsvParserStream(new u.ParserOptions(e)),n.parseStream=(e,t)=>e.pipe(new c.CsvParserStream(new u.ParserOptions(t))),n.parseFile=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new c.CsvParserStream(new u.ParserOptions(t)))},n.parseString=(e,t)=>{const n=new l.Readable;return n.push(e),n.push(null),n.pipe(new c.CsvParserStream(new u.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;const r=e("./Scanner"),i=e("./RowParser"),a=e("./Token");class o{constructor(e){this.parserOptions=e,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){const n=new r.Scanner({line:o.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){const t=[];let n=!0;for(;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){const{parserOptions:t}=this,n=[];for(let r=e.nextCharacterToken;null!==r;r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;const n=this.rowParser.parse(e);return null!==n&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}n.Parser=o},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;const r=e("./column"),i=e("./Token");n.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new r.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){const{parserOptions:t}=this,{hasMoreData:n}=e,r=e,a=[];let o=this.getStartToken(r,a);for(;o;){if(i.Token.isTokenRowDelimiter(o))return r.advancePastToken(o),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(o,t)&&n?null:(r.truncateToCursor(),a);if(!this.shouldSkipColumnParse(r,o,a)){const e=this.columnParser.parse(r);if(null===e)return null;a.push(e)}o=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),a)}getStartToken(e,t){const n=e.nextNonSpaceToken;return null!==n&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):n}shouldSkipColumnParse(e,t,n){const{parserOptions:r}=this;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);const a=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==a&&i.Token.isTokenRowDelimiter(a))return n.push(""),!0;if(null!==a&&i.Token.isTokenDelimiter(a,r))return n.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;const r=e("./Token"),i=/((?:\r\n)|\n|\r)/;n.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;const n=t.exec(e);if(null==n)return null;const i=n[1],a=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:a,endCursor:a+i.length-1})}get nextCharacterToken(){const{cursor:e,lineLength:t}=this;return t<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0,n.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){const t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;const r=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),a=e("../Token");n.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new i.QuotedColumnParser(e),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(e)}parse(e){const{nextNonSpaceToken:t}=e;return null!==t&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const{parserOptions:t}=this,n=[];let r=e.nextCharacterToken;for(;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const t=e.cursor,{foundClosingQuote:n,col:r}=this.gatherDataBetweenQuotes(e);if(!n){if(e.advanceTo(t),!e.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(e),r}gatherDataBetweenQuotes(e){const{parserOptions:t}=this;let n=!1,r=!1;const a=[];let o=e.nextCharacterToken;for(;!r&&null!==o;o=e.nextCharacterToken){const s=i.Token.isTokenQuote(o,t);if(!n&&s)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(o,t)){e.advancePastToken(o);const n=e.nextCharacterToken;null!==n&&(i.Token.isTokenQuote(n,t)||i.Token.isTokenEscapeCharacter(n,t))?(a.push(n.token),o=n):s?r=!0:a.push(o.token)}else s?r=!0:a.push(o.token);e.advancePastToken(o)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:r}}checkForMalformedColumn(e){const{parserOptions:t}=this,{nextNonSpaceToken:n}=e;if(n){const r=i.Token.isTokenDelimiter(n,t),a=i.Token.isTokenRowDelimiter(n);if(!r&&!a){const r=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${n.token}'. at '${r}`)}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}});var o=e("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return r.Parser}});var i=e("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var a=e("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return a.Scanner}});var o=e("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return o.Token}});var s=e("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;const i=r(e("lodash.isundefined")),a=r(e("lodash.isfunction")),o=r(e("lodash.uniq")),s=r(e("lodash.groupby"));n.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):a.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:t}=this;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:n,headersLength:r}=this;for(let a=0;a<r;a+=1){const r=n[a];if(!i.default(r)){const n=e[a];i.default(n)?t[r]="":t[r]=n}}return t}setHeaders(e){var t;const n=e.filter(e=>!!e);if(o.default(n).length!==n.length){const e=s.default(n),t=Object.keys(e).filter(t=>e[t].length>1);throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;const i=r(e("lodash.isfunction")),a=e("../types");class o{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return a.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(i){return n(i)}return n(null,r)}:e}static createValidator(e){return a.isSyncValidate(e)?(t,n)=>{n(null,{row:t,isValid:e(t)})}:(t,n)=>{e(t,(e,r,i)=>e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i}))}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=o.createTransform(e)}set rowValidator(e){if(!i.default(e))throw new TypeError("The validate should be a function");this._rowValidator=o.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,(e,n)=>e?t(e):n?this.callValidator(n,(e,r)=>e?t(e):r&&!r.isValid?t(null,{row:n,isValid:!1,reason:r.reason}):t(null,{row:n,isValid:!0})):t(null,{row:null,isValid:!0}))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}n.RowTransformerValidator=o},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length,n.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,n){const r=n;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,n){const r=e("./encoders"),i=e("./decoders"),a=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return a(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){const r=e("inherits"),i=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),n.DecoderBuffer=o,o.isDecoderBuffer=function(e){return e instanceof o||"object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){const r=n;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){const r=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,o=e("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,t={};c.forEach(function(n){t[n]=e[n]});const n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){const e=this._baseState;l.forEach(function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},u.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){const t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){u.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}}),u.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(l){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some(function(a){const o=e.save(),s=n.choice[a];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:a,value:n},i=!0}catch(l){return e.restore(o),!1}return!0},this),i?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},u.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},n))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(e,s,n,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},u.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){const r=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:440}],176:[function(e,t,n){function r(e){const t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n}),t}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){const r=n;r._reverse=function(e){const t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n}),t},r.der=e("./der")},{"./der":176}],178:[function(e,t,n){const r=e("inherits"),i=e("bn.js"),a=e("../base/buffer").DecoderBuffer,o=e("../base/node"),s=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.call(this,"der",e)}function c(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=s.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{let r=n;for(n=0;!(128&~r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(!(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let a=0;a<i;a++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}t.exports=l,l.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},r(u,o),u.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),i=c(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},u.prototype._decodeTag=function(e,t,n){const r=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=d(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){const n=c(e,t);if(e.isError(n))return n;const r=d(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},u.prototype._decodeList=function(e,t,n,r){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const a=n.decode(e,"der",r);if(e.isError(a)&&t)break;i.push(a)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,n){let r;const i=[];let a=0,o=0;for(;!e.isEmpty();)o=e.readUInt8(),a<<=7,a|=127&o,!(128&o)&&(i.push(a),a=0);128&o&&i.push(a);const s=i[0]/40|0,l=i[0]%40;if(r=n?i:[s,l].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},u.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,i,a,o,s,l;if("gentime"===t)r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),l=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,l,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){const n=e.raw();let r=new i(n);return t&&(r=t[r.toString(10)]||r),r},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,n){const r=e("inherits"),i=e("safer-buffer").Buffer,a=e("./der");function o(e){a.call(this,e),this.enc="pem"}r(o,a),t.exports=o,o.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,l=-1;for(let i=0;i<n.length;i++){const e=n[i].match(o);if(null!==e&&e[2]===r){if(-1!==s){if("END"!==e[1])break;l=i;break}if("BEGIN"!==e[1])break;s=i}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+r);const u=n.slice(s+1,l).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const c=i.from(u,"base64");return a.prototype.decode.call(this,c,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){const r=e("inherits"),i=e("safer-buffer").Buffer,a=e("../base/node"),o=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.call(this,"der",e)}function u(e){return e<10?"0"+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(l,a),l.prototype._encodeComposite=function(e,t,n,r){const a=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=o.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let s=1;for(let i=r.length;i>=256;i>>=8)s++;const l=i.alloc(2+s);l[0]=a,l[1]=128|s;for(let i=1+s,o=r.length;o>0;i--,o>>=8)l[i]=255&o;return this._createEncoderBuffer([l,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let i=0;i<e.length;i++){let t=e[i];for(r++;t>=128;t>>=7)r++}const a=i.alloc(r);let o=a.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];for(a[o--]=127&t;(t>>=7)>0;)a[o--]=128|127&t}return this._createEncoderBuffer(a)},l.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==r.defaultBuffer[i])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,n){const r=e("inherits"),i=e("./der");function a(e){i.call(this,e),this.enc="pem"}r(a,i),t.exports=a,a.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let i=0;i<n.length;i+=64)r.push(n.slice(i,i+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,n){!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(k){}function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,u=0,c=n;c<s;c+=r)u=l(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,l=o/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);r=0!=(a=s>>>24-i&16777215)||o!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,u=new e(a),c=this.clone();if(l){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s<a;s++)u[s]=0}else{for(s=0;s<a-i;s++)u[s]=0;for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[a-s-1]=o}return u},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,n){var r,i,a,o=e.words,s=t.words,l=n.words,u=0,c=0|o[0],d=8191&c,f=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],w=8191&b,x=b>>>13,S=0|o[4],_=8191&S,k=S>>>13,A=0|o[5],C=8191&A,T=A>>>13,O=0|o[6],I=8191&O,P=O>>>13,E=0|o[7],M=8191&E,D=E>>>13,R=0|o[8],L=8191&R,N=R>>>13,j=0|o[9],F=8191&j,z=j>>>13,B=0|s[0],V=8191&B,H=B>>>13,W=0|s[1],U=8191&W,X=W>>>13,G=0|s[2],Y=8191&G,K=G>>>13,q=0|s[3],Z=8191&q,J=q>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],le=8191&se,ue=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ve=(u+(r=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,V)|0))<<13)|0;u=((a=Math.imul(f,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(m,V)|0,a=Math.imul(m,H);var ge=(u+(r=r+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,U)|0))<<13)|0;u=((a=a+Math.imul(f,X)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,V),i=(i=Math.imul(g,H))+Math.imul(y,V)|0,a=Math.imul(y,H),r=r+Math.imul(p,U)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,U)|0,a=a+Math.imul(m,X)|0;var ye=(u+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;u=((a=a+Math.imul(f,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(x,V)|0,a=Math.imul(x,H),r=r+Math.imul(g,U)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,U)|0,a=a+Math.imul(y,X)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,a=a+Math.imul(m,K)|0;var be=(u+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,Z)|0))<<13)|0;u=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,V),i=(i=Math.imul(_,H))+Math.imul(k,V)|0,a=Math.imul(k,H),r=r+Math.imul(w,U)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,U)|0,a=a+Math.imul(x,X)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,K)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,J)|0;var we=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;u=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(T,V)|0,a=Math.imul(T,H),r=r+Math.imul(_,U)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(k,U)|0,a=a+Math.imul(k,X)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(x,Y)|0,a=a+Math.imul(x,K)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var xe=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;u=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,V),i=(i=Math.imul(I,H))+Math.imul(P,V)|0,a=Math.imul(P,H),r=r+Math.imul(C,U)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(T,U)|0,a=a+Math.imul(T,X)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,K)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,J)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var Se=(u+(r=r+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(f,ae)|0))<<13)|0;u=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,H))+Math.imul(D,V)|0,a=Math.imul(D,H),r=r+Math.imul(I,U)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(P,U)|0,a=a+Math.imul(P,X)|0,r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(T,Y)|0,a=a+Math.imul(T,K)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var _e=(u+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,le)|0))<<13)|0;u=((a=a+Math.imul(f,ue)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,H))+Math.imul(N,V)|0,a=Math.imul(N,H),r=r+Math.imul(M,U)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(D,U)|0,a=a+Math.imul(D,X)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,K)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(T,Z)|0,a=a+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(F,V),i=(i=Math.imul(F,H))+Math.imul(z,V)|0,a=Math.imul(z,H),r=r+Math.imul(L,U)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,U)|0,a=a+Math.imul(N,X)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(D,Y)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Z)|0,a=a+Math.imul(P,J)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(y,le)|0,a=a+Math.imul(y,ue)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,fe)|0;var Ae=(u+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;u=((a=a+Math.imul(f,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,U),i=(i=Math.imul(F,X))+Math.imul(z,U)|0,a=Math.imul(z,X),r=r+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(N,Y)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ue)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(y,de)|0,a=a+Math.imul(y,fe)|0;var Ce=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,K))+Math.imul(z,Y)|0,a=Math.imul(z,K),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(N,Z)|0,a=a+Math.imul(N,J)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,ue)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,fe)|0;var Te=(u+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;u=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,J))+Math.imul(z,Z)|0,a=Math.imul(z,J),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,$)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(T,le)|0,a=a+Math.imul(T,ue)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(k,de)|0,a=a+Math.imul(k,fe)|0;var Oe=(u+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(z,$)|0,a=Math.imul(z,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ue)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(T,de)|0,a=a+Math.imul(T,fe)|0;var Ie=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(k,pe)|0))<<13)|0;u=((a=a+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(z,ne)|0,a=Math.imul(z,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,r=r+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(D,le)|0,a=a+Math.imul(D,ue)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,fe)|0;var Pe=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((a=a+Math.imul(T,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,ae),i=(i=Math.imul(F,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,ue)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,ue)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(D,de)|0,a=a+Math.imul(D,fe)|0;var Ee=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(P,pe)|0))<<13)|0;u=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,le),i=(i=Math.imul(F,ue))+Math.imul(z,le)|0,a=Math.imul(z,ue),r=r+Math.imul(L,de)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(D,pe)|0))<<13)|0;u=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,de),i=(i=Math.imul(F,fe))+Math.imul(z,de)|0,a=Math.imul(z,fe);var De=(u+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;u=((a=a+Math.imul(N,me)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Re=(u+(r=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(z,pe)|0))<<13)|0;return u=((a=Math.imul(z,me))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=ve,l[1]=ge,l[2]=ye,l[3]=be,l[4]=we,l[5]=xe,l[6]=Se,l[7]=_e,l[8]=ke,l[9]=Ae,l[10]=Ce,l[11]=Te,l[12]=Oe,l[13]=Ie,l[14]=Pe,l[15]=Ee,l[16]=Me,l[17]=De,l[18]=Re,0!==u&&(l[19]=u,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,l=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=l;u++){var c=a-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},m.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var d=l,f=u,h=0;h<o;h++){var p=n[c+h],m=r[c+h],v=n[c+h+o],g=r[c+h+o],y=d*v-f*g;g=d*g+f*v,v=y,n[c+h]=p+v,r[c+h]=m+g,n[c+h+o]=p-v,r[c+h+o]=m-g,h!==s&&(y=l*d-u*f,f=l*f+u*d,d=y)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(!(-8192&a))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),l=new Array(r),u=new Array(r),c=new Array(r),d=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,u,r),this.transform(o,a,s,l,r,i),this.transform(u,a,c,d,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*c[h],s[h]=p}return this.conjugate(s,l,r),this.transform(s,l,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<r;this.words[t]=l|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var u=0;u<o;u++)l.words[u]=this.words[u];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,l=r.length-a.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(a,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(c),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(l)):(r.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},r(y,g),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(b,g),r(w,g),r(x,g),x.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,a),f=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=o;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(d,new i(1).iushln(p-v-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=v}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===c)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}l=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new _(e)},r(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,n){n.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r,o=u(e),s=o[0],l=o[1],c=new a(3*(s+(r=l))/4-r),d=0,f=l>0?s-4:s;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===l&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===l&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(c(e,o,o+16383>s?s:o+16383));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,n){!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(C){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function l(e,t,r,i){for(var a=0,o=0,s=Math.min(e.length,r),l=t;l<s;l++){var u=e.charCodeAt(l)-48;a*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,u=0,c=n;c<s;c+=r)u=l(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(C){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,l=o/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==a||o!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var o,s,l=(s=a,(o=e).allocUnsafe?o.allocUnsafe(s):new o(s));return this["_toArrayLike"+("le"===t?"LE":"BE")](l,i),l},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===a?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,a,o=e.words,s=t.words,l=n.words,u=0,c=0|o[0],d=8191&c,f=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],w=8191&b,x=b>>>13,S=0|o[4],_=8191&S,k=S>>>13,A=0|o[5],C=8191&A,T=A>>>13,O=0|o[6],I=8191&O,P=O>>>13,E=0|o[7],M=8191&E,D=E>>>13,R=0|o[8],L=8191&R,N=R>>>13,j=0|o[9],F=8191&j,z=j>>>13,B=0|s[0],V=8191&B,H=B>>>13,W=0|s[1],U=8191&W,X=W>>>13,G=0|s[2],Y=8191&G,K=G>>>13,q=0|s[3],Z=8191&q,J=q>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],le=8191&se,ue=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ve=(u+(r=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,V)|0))<<13)|0;u=((a=Math.imul(f,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(m,V)|0,a=Math.imul(m,H);var ge=(u+(r=r+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,U)|0))<<13)|0;u=((a=a+Math.imul(f,X)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,V),i=(i=Math.imul(g,H))+Math.imul(y,V)|0,a=Math.imul(y,H),r=r+Math.imul(p,U)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,U)|0,a=a+Math.imul(m,X)|0;var ye=(u+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;u=((a=a+Math.imul(f,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(x,V)|0,a=Math.imul(x,H),r=r+Math.imul(g,U)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,U)|0,a=a+Math.imul(y,X)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,a=a+Math.imul(m,K)|0;var be=(u+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,Z)|0))<<13)|0;u=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,V),i=(i=Math.imul(_,H))+Math.imul(k,V)|0,a=Math.imul(k,H),r=r+Math.imul(w,U)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,U)|0,a=a+Math.imul(x,X)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,K)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,J)|0;var we=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;u=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(T,V)|0,a=Math.imul(T,H),r=r+Math.imul(_,U)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(k,U)|0,a=a+Math.imul(k,X)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(x,Y)|0,a=a+Math.imul(x,K)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var xe=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;u=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,V),i=(i=Math.imul(I,H))+Math.imul(P,V)|0,a=Math.imul(P,H),r=r+Math.imul(C,U)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(T,U)|0,a=a+Math.imul(T,X)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,K)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,J)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var Se=(u+(r=r+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(f,ae)|0))<<13)|0;u=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,H))+Math.imul(D,V)|0,a=Math.imul(D,H),r=r+Math.imul(I,U)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(P,U)|0,a=a+Math.imul(P,X)|0,r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(T,Y)|0,a=a+Math.imul(T,K)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var _e=(u+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,le)|0))<<13)|0;u=((a=a+Math.imul(f,ue)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,H))+Math.imul(N,V)|0,a=Math.imul(N,H),r=r+Math.imul(M,U)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(D,U)|0,a=a+Math.imul(D,X)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,K)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(T,Z)|0,a=a+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(F,V),i=(i=Math.imul(F,H))+Math.imul(z,V)|0,a=Math.imul(z,H),r=r+Math.imul(L,U)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,U)|0,a=a+Math.imul(N,X)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(D,Y)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Z)|0,a=a+Math.imul(P,J)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(y,le)|0,a=a+Math.imul(y,ue)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,fe)|0;var Ae=(u+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;u=((a=a+Math.imul(f,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,U),i=(i=Math.imul(F,X))+Math.imul(z,U)|0,a=Math.imul(z,X),r=r+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(N,Y)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ue)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(y,de)|0,a=a+Math.imul(y,fe)|0;var Ce=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,K))+Math.imul(z,Y)|0,a=Math.imul(z,K),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(N,Z)|0,a=a+Math.imul(N,J)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,ue)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,fe)|0;var Te=(u+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;u=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,J))+Math.imul(z,Z)|0,a=Math.imul(z,J),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,$)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(T,le)|0,a=a+Math.imul(T,ue)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(k,de)|0,a=a+Math.imul(k,fe)|0;var Oe=(u+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(z,$)|0,a=Math.imul(z,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ue)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(T,de)|0,a=a+Math.imul(T,fe)|0;var Ie=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(k,pe)|0))<<13)|0;u=((a=a+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(z,ne)|0,a=Math.imul(z,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,r=r+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(D,le)|0,a=a+Math.imul(D,ue)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,fe)|0;var Pe=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((a=a+Math.imul(T,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,ae),i=(i=Math.imul(F,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,ue)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,ue)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(D,de)|0,a=a+Math.imul(D,fe)|0;var Ee=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(P,pe)|0))<<13)|0;u=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,le),i=(i=Math.imul(F,ue))+Math.imul(z,le)|0,a=Math.imul(z,ue),r=r+Math.imul(L,de)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(D,pe)|0))<<13)|0;u=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,de),i=(i=Math.imul(F,fe))+Math.imul(z,de)|0,a=Math.imul(z,fe);var De=(u+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;u=((a=a+Math.imul(N,me)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Re=(u+(r=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(z,pe)|0))<<13)|0;return u=((a=Math.imul(z,me))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=ve,l[1]=ge,l[2]=ye,l[3]=be,l[4]=we,l[5]=xe,l[6]=Se,l[7]=_e,l[8]=ke,l[9]=Ae,l[10]=Ce,l[11]=Te,l[12]=Oe,l[13]=Ie,l[14]=Pe,l[15]=Ee,l[16]=Me,l[17]=De,l[18]=Re,0!==u&&(l[19]=u,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,l=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=l;u++){var c=a-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function g(e,t,n){return v(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?v(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&r);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<r;this.words[t]=l|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var u=0;u<o;u++)l.words[u]=this.words[u];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,l=r.length-a.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(a,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(c),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(l)):(r.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new k(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,b),r(S,b),r(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return y[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,a),f=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=o;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(d,new i(1).iushln(p-v-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=v}return f},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===c)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}l=26}return a},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new A(e)},r(A,k),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,n){var r;function i(e){this.rand=e}if(t.exports=function(e){return r||(r=new i(null)),r.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(o){}},{crypto:188}],188:[function(e,t,n){},{}],189:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,l,u=n[0],c=n[1],d=n[2],f=n[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],v=e[3]^t[3],g=4,y=1;y<i;y++)a=u[h>>>24]^c[p>>>16&255]^d[m>>>8&255]^f[255&v]^t[g++],o=u[p>>>24]^c[m>>>16&255]^d[v>>>8&255]^f[255&h]^t[g++],s=u[m>>>24]^c[v>>>16&255]^d[h>>>8&255]^f[255&p]^t[g++],l=u[v>>>24]^c[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[g++],h=a,p=o,m=s,v=l;return a=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&v])^t[g++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[v>>>8&255]<<8|r[255&h])^t[g++],s=(r[m>>>24]<<24|r[v>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[g++],l=(r[v>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[g++],[a>>>=0,o>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,l=0;l<256;++l){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var c=e[o],d=e[c],f=e[d],h=257*e[u]^16843008*u;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*f^65537*d^257*c^16843008*o,a[0][u]=h<<24|h>>>8,a[1][u]=h<<16|h>>>16,a[2][u]=h<<8|h>>>24,a[3][u]=h,0===o?o=s=1:(o=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),i[a]=i[a-t]^o}for(var u=[],c=0;c<r;c++){var d=r-c,f=i[d-(c%4?0:4)];u[c]=c<4||d<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},u.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=u},{"safe-buffer":494}],190:[function(e,t,n){var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=e("inherits"),s=e("./ghash"),l=e("buffer-xor"),u=e("./incr32");function c(e,t,n,o){a.call(this);var l=i.alloc(4,0);this._cipher=new r.AES(t);var c=this._cipher.encryptBlock(l);this._ghash=new s(c),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var l=8*a,c=i.alloc(8);c.writeUIntBE(l,0,8),r.update(c),e._finID=r.state;var d=i.from(e._finID);return u(d),d}(this,n,c),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(c,a),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=c},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,n){var r=e("./encrypter"),i=e("./decrypter"),a=e("./modes/list.json");n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(a)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,n){var r=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./modes"),o=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),u=e("evp_bytestokey");function c(e,t,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new c(s.module,t,n)}e("inherits")(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=u(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},n.createDecipheriv=f},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,n){var r=e("./modes"),i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),u=e("evp_bytestokey");function c(e,t,n){s.call(this),this._cache=new f,this._cipher=new l.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}e("inherits")(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var d=a.alloc(16,16);function f(){this.cache=a.allocUnsafe(0)}function h(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new c(s.module,t,n)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=a.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},n.createCipheriv=h,n.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=u(t,!1,n.key,n.iv);return h(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,n){var r=e("safe-buffer").Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(!!(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=!!(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":494}],195:[function(e,t,n){t.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},{}],196:[function(e,t,n){var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},{"buffer-xor":219}],197:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("buffer-xor");function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}n.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],199:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],200:[function(e,t,n){var r=e("buffer-xor"),i=e("safe-buffer").Buffer,a=e("../incr32");function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}n.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=o(e),u=a+16*s;e._cache.writeUInt32BE(l[0],u+0),e._cache.writeUInt32BE(l[1],u+4),e._cache.writeUInt32BE(l[2],u+8),e._cache.writeUInt32BE(l[3],u+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,c)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,n){n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,n){var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var a in i)i[a].module=r[i[a].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,n){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,n){(function(t){(function(){var r=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var a=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,a)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,n){var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base");function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}e("inherits")(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,n){var r=e("browserify-des"),i=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function u(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},n.createCipheriv=n.Cipheriv=l,n.createDecipher=n.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return u(e,i.key,i.iv)},n.createDecipheriv=n.Decipheriv=u,n.listCiphers=n.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,n){var r=e("cipher-base"),i=e("des.js"),a=e("inherits"),o=e("safe-buffer").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var l=e.iv;o.isBuffer(l)||(l=o.from(l)),this._des=i.create({key:a,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,a(l,r),l.prototype._update=function(e){return o.from(this._des.update(e))},l.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,n){n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,n){(function(n){(function(){var r=e("bn.js"),i=e("randombytes");function a(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var i,o,s={blinder:(o=a(i=t)).toRed(r.mont(i.modulus)).redPow(new r(i.publicExponent)).fromRed(),unblinder:o.invm(i.modulus)},l=t.modulus.byteLength(),u=new r(e).mul(s.blinder).umod(t.modulus),c=u.toRed(r.mont(t.prime1)),d=u.toRed(r.mont(t.prime2)),f=t.coefficient,h=t.prime1,p=t.prime2,m=c.redPow(t.exponent1).fromRed(),v=d.redPow(t.exponent2).fromRed(),g=m.isub(v).imul(f).umod(h).imul(p);return v.iadd(g).imul(s.unblinder).umod(t.modulus).toArrayLike(n,"be",l)}o.getr=a,t.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,n){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,n){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,n){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("create-hash"),a=e("readable-stream"),o=e("inherits"),s=e("./sign"),l=e("./verify"),u=e("./algorithms.json");function c(e){a.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){a.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new c(e)}function h(e){return new d(e)}Object.keys(u).forEach(function(e){u[e].id=r.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),o(c,a.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(d,a.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return l(t,i,e,this._signType,this._tag)},t.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("create-hmac"),a=e("browserify-rsa"),o=e("elliptic").ec,s=e("bn.js"),l=e("parse-asn1"),u=e("./curves.json");function c(e,t,n,a){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,l=function(e,t){e=(e=d(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),u=r.alloc(s);u.fill(1);var c=r.alloc(s);return c=i(a,c).update(u).update(r.from([0])).update(e).update(l).digest(),u=i(a,c).update(u).digest(),{k:c=i(a,c).update(u).update(r.from([1])).update(e).update(l).digest(),v:u=i(a,c).update(u).digest()}}function d(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function f(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=d(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}t.exports=function(e,t,n,i,p){var m=l(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=u[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){for(var i,a=t.params.priv_key,o=t.params.p,l=t.params.q,u=t.params.g,p=new s(0),m=d(e,l).mod(l),v=!1,g=c(a,l,e,n);!1===v;)p=h(u,i=f(l,g,n),o,l),0===(v=i.invm(l).imul(m.add(a.mul(p))).mod(l)).cmpn(0)&&(v=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(p,v)}(e,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([p,e]);for(var v=m.modulus.byteLength(),g=[0,1];e.length+g.length+1<v;)g.push(255);g.push(0);for(var y=-1;++y<e.length;)g.push(e[y]);return a(g,m)},t.exports.getKey=c,t.exports.makeKey=f},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("bn.js"),a=e("elliptic").ec,o=e("parse-asn1"),s=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,n,u,c){var d=o(n);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,u=n.data.pub_key,c=o.signature.decode(e,"der"),d=c.s,f=c.r;l(d,a),l(f,a);var h=i.mont(r),p=d.invm(a);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(h).redPow(f.mul(p).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}(e,t,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=r.concat([c,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<f;)h.push(255),p++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=r.from(h);var v=i.mont(d.modulus);e=(e=new i(e).toRed(v)).redPow(new i(d.publicExponent)),e=r.from(e.fromRed().toArray());var g=p<8?1:0;for(f=Math.min(e.length,h.length),e.length!==h.length&&(g=1),m=-1;++m<f;)g|=e[m]^h[m];return 0===g}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,n){},{}],217:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,n){var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}n.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,n){(function(e){(function(){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),a=0;a<r;++a)i[a]=t[a]^n[a];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,n){(function(t){(function(){var t=e("base64-js"),r=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return o(e,t,n)}function o(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=i(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var o=function(e){if(a.isBuffer(e)){var t=0|c(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?i(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),i(e<0?0:0|c(e))}function u(e){for(var t=e.length<0?0:0|c(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(i)return r?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(z(s))return o;e[n+o]=s}return o}function g(e,t,n,r){return j(L(t,e.length-n),e,n,r)}function y(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function b(e,t,n,r){return y(e,t,n,r)}function w(e,t,n,r){return j(N(t),e,n,r)}function x(e,t,n,r){return j(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function S(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function C(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=R(e[a]);return i}function T(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function E(e,t,n,i,a){return t=+t,n>>>=0,a||P(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function M(e,t,n,i,a){return t=+t,n>>>=0,a||P(e,0,n,8),r.write(e,t,n,i,52,8),n+8}n.Buffer=a,n.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return o(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return a=t,o=n,s(r=e),r<=0?i(r):void 0!==a?"string"==typeof o?i(r).fill(a,o):i(r).fill(a):i(r);var r,a,o},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(F(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%l]}return this};var D=/[^+/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function N(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){r=i}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=o},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,n){var r=e("../internals/is-constructor"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,n){var r=e("../internals/is-callable"),i=String,a=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),a=e("../internals/object-define-property").f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(e){s[o][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,n){var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,n){var r=e("../internals/is-object"),i=String,a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,n){var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var s,l=r(t),u=a(l),c=i(o,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,n){var r=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),a=e("../internals/indexed-object"),o=e("../internals/to-object"),s=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,m,v,g){for(var y,b,w=o(p),x=a(w),S=r(m,v),_=s(x),k=0,A=g||l,C=t?A(p,_):n||f?A(p,0):void 0;_>k;k++)if((h||k in x)&&(b=S(y=x[k],k,w),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:u(C,y)}else switch(e){case 4:return!1;case 7:u(C,y)}return d?-1:i||c?c:C}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,n){var r=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),a=e("../internals/create-property"),o=Array,s=Math.max;t.exports=function(e,t,n){for(var l=i(e),u=r(t,l),c=r(void 0===n?l:n,l),d=o(s(c-u,0)),f=0;u<c;u++,f++)a(d,f,e[u]);return d.length=f,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,n){var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,n){var r=e("../internals/is-array"),i=e("../internals/is-constructor"),a=e("../internals/is-object"),o=e("../internals/well-known-symbol")("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,n){var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,n){var r=e("../internals/well-known-symbol")("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(o){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(o){}return n}},{"../internals/well-known-symbol":357}],235:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=r({}.toString),a=r("".slice);t.exports=function(e){return a(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,n){var r=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),a=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());t.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,n){var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),a=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var s=i(t),l=o.f,u=a.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,n){var r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":260}],240:[function(e,t,n){t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,n){var r=e("../internals/to-property-key"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,n){var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),a=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&a(n,u,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,n){var r=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":260}],248:[function(e,t,n){var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},{}],249:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-object"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,n){var r=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,n){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(r.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,t,n){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,n){var r,i,a=e("../internals/global"),o=e("../internals/engine-user-agent"),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),s=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");t.exports=function(e,t){var n,c,d,f,h,p=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!u(m?c:p+(v?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,c,f,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],261:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,n){var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),a=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,n){var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-callable"),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,n){var r=e("../internals/classof"),i=e("../internals/get-method"),a=e("../internals/is-null-or-undefined"),o=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new l(o(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),a=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/to-string"),l=r([].push);t.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!==o(u)&&"String"!==o(u)||l(n,s(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,n){var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,n){t.exports={}},{}],277:[function(e,t,n){t.exports=function(e,t){}},{}],278:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!r&&!i(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/classof-raw"),o=Object,s=r("".split);t.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===a(e)?s(e,""):o(e)}:o},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),a=e("../internals/shared-store"),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),t.exports=a.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,n){var r,i,a,o=e("../internals/weak-map-basic-detection"),s=e("../internals/global"),l=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),c=e("../internals/has-own-property"),d=e("../internals/shared-store"),f=e("../internals/shared-key"),h=e("../internals/hidden-keys"),p=s.TypeError,m=s.WeakMap;if(o||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new p("Object already initialized");return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var g=f("state");h[g]=!0,r=function(e,t){if(c(e,g))throw new p("Object already initialized");return t.facade=e,u(e,g,t),t},i=function(e){return c(e,g)?e[g]:{}},a=function(e){return c(e,g)}}t.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),a=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,n){var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===r(e)}},{"../internals/classof-raw":235}],285:[function(e,t,n){var r=e("../internals/document-all"),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/classof"),s=e("../internals/get-built-in"),l=e("../internals/inspect-source"),u=function(){},c=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),p=!f.test(u),m=function(e){if(!a(e))return!1;try{return d(u,c,e),!0}catch(t){return!1}},v=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,l(e))}catch(t){return!0}};v.sham=!0,t.exports=!d||i(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?v:m},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,n){var r=e("../internals/fails"),i=e("../internals/is-callable"),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,n){t.exports=function(e){return null==e}},{}],289:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/document-all"),a=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,n){t.exports=!1},{}],291:[function(e,t,n){var r=e("../internals/is-object"),i=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),a=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),s=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,n){var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),u=e("../internals/object-is-prototype-of"),c=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,n){var v,g,y,b,w,x,S,_=n&&n.that,k=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=r(t,_),I=function(e){return v&&f(v,"normal",e),new p(!0,e)},P=function(e){return k?(a(e),T?O(e[0],e[1],I):O(e[0],e[1])):T?O(e,I):O(e)};if(A)v=e.iterator;else if(C)v=e;else{if(!(g=d(e)))throw new h(o(e)+" is not iterable");if(s(g)){for(y=0,b=l(e);b>y;y++)if((w=P(e[y]))&&u(m,w))return w;return new p(!1)}v=c(e,g)}for(x=A?e.next:v.next;!(S=i(x,v)).done;){try{w=P(S.value)}catch(E){f(v,"throw",E)}if("object"==typeof w&&w&&u(m,w))return w}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/an-object"),a=e("../internals/get-method");t.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return i(o),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,n){var r=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:a(+!u,n)}),o(e,c,!1,!0),s[c]=l,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/is-pure"),o=e("../internals/function-name"),s=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),u=e("../internals/object-get-prototype-of"),c=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),h=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),m=e("../internals/iterators"),v=e("../internals/iterators-core"),g=o.PROPER,y=o.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),S=function(){return this};t.exports=function(e,t,n,o,p,v,_){l(n,t,o);var k,A,C,T=function(e){if(e===p&&M)return M;if(!w&&e&&e in P)return P[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",I=!1,P=e.prototype,E=P[x]||P["@@iterator"]||p&&P[p],M=!w&&E||T(p),D="Array"===t&&P.entries||E;if(D&&(k=u(D.call(new e)))!==Object.prototype&&k.next&&(a||u(k)===b||(c?c(k,b):s(k[x])||h(k,x,S)),d(k,O,!0,!0),a&&(m[O]=S)),g&&"values"===p&&E&&"values"!==E.name&&(!a&&y?f(P,"name","values"):(I=!0,M=function(){return i(E,this)})),p)if(A={values:T("values"),keys:v?M:T("keys"),entries:T("entries")},_)for(C in A)(w||I||!(C in P))&&h(P,C,A[C]);else r({target:t,proto:!0,forced:w||I},A);return a&&!_||P[x]===M||h(P,x,M,{name:p}),m[t]=M,A}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,n){var r,i,a,o=e("../internals/fails"),s=e("../internals/is-callable"),l=e("../internals/is-object"),u=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),h=e("../internals/is-pure"),p=f("iterator"),m=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):m=!0),!l(r)||o(function(){var e={};return r[p].call(e)!==e})?r={}:h&&(r=u(r)),s(r[p])||d(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(e,t,n){var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":343}],300:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/has-own-property"),s=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,u=e("../internals/inspect-source"),c=e("../internals/internal-state"),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,m=r("".slice),v=r("".replace),g=r([].join),y=s&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+v(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return o(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return a(this)&&f(this).source||u(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],302:[function(e,t,n){var r,i,a,o,s,l=e("../internals/global"),u=e("../internals/function-bind-context"),c=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,f=e("../internals/queue"),h=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),v=e("../internals/engine-is-node"),g=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,x=c(l,"queueMicrotask"),S=x&&x.value;if(!S){var _=new f,k=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=_.get();)try{t()}catch(n){throw _.head&&r(),n}e&&e.enter()};h||v||m||!g||!y?!p&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,s=u(o.then,o),r=function(){s(k)}):v?r=function(){b.nextTick(k)}:(d=u(d,l),r=function(){d(k)}):(i=!0,a=y.createTextNode(""),new g(k).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),S=function(e){_.head||r(),_.add(e)}}t.exports=S},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,n){var r=e("../internals/a-callable"),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new a(e)}},{"../internals/a-callable":222}],304:[function(e,t,n){var r=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),a=e("../internals/function-call"),o=e("../internals/fails"),s=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),u=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),d=e("../internals/indexed-object"),f=Object.assign,h=Object.defineProperty,p=i([].concat);t.exports=!f||o(function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")})?function(e,t){for(var n=c(e),i=arguments.length,o=1,f=l.f,h=u.f;i>o;)for(var m,v=d(arguments[o++]),g=f?p(s(v),f(v)):s(v),y=g.length,b=0;y>b;)m=g[b++],r&&!a(h,v,m)||(n[m]=v[m]);return n}:f},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,n){var r,i=e("../internals/an-object"),a=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),l=e("../internals/html"),u=e("../internals/document-create-element"),c=e("../internals/shared-key")("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(i){}var e,t;p="undefined"!=typeof document?document.domain&&r?h(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(r);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[c]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[c]=e):n=p(),void 0===t?n:a.f(n,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),o=e("../internals/an-object"),s=e("../internals/to-indexed-object"),l=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)a.f(e,n=i[c++],r[n]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),s=e("../internals/to-property-key"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;n.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/function-call"),a=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),u=e("../internals/has-own-property"),c=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;n.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return o(!i(a.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,n){var r=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),a=e("../internals/object-get-own-property-names").f,o=e("../internals/array-slice-simple"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,n){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,n){var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),a=e("../internals/to-object"),o=e("../internals/shared-key"),s=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),u=Object,c=u.prototype;t.exports=s?u.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,n){var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),a=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys"),l=r([].push);t.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~o(c,n)||l(c,n));return c}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,n){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);n.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],318:[function(e,t,n){var r=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-prototype-of"),s=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),u=a(e("../internals/object-property-is-enumerable").f),c=a([].push),d=r&&i(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),f=function(e){return function(t){for(var n,i=l(t),a=s(i),f=d&&null===o(i),h=a.length,p=0,m=[];h>p;)n=a[p++],r&&!(f?n in i:u(i,n))||c(m,e?[n,i[n]]:i[n]);return m}};t.exports={entries:f(!0),values:f(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/is-callable"),a=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),a=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object"),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,n){var r=e("../internals/global");t.exports=r},{"../internals/global":274}],323:[function(e,t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],324:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/promise-native-constructor"),a=e("../internals/is-callable"),o=e("../internals/is-forced"),s=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),u=e("../internals/engine-is-browser"),c=e("../internals/engine-is-deno"),d=e("../internals/is-pure"),f=e("../internals/engine-v8-version"),h=i&&i.prototype,p=l("species"),m=!1,v=a(r.PromiseRejectionEvent),g=o("Promise",function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(d&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[p]=r,!(m=n.then(function(){})instanceof r))return!0}return!t&&(u||c)&&!v});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,n){var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":274}],326:[function(e,t,n){var r=e("../internals/an-object"),i=e("../internals/is-object"),a=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,n){var r=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=a||!i(function(e){r.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,n){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=r},{}],329:[function(e,t,n){var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),a=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),s=a("species");t.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,n){var r=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,n){var r=e("../internals/shared"),i=e("../internals/uid"),a=r("keys");t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/define-global-property"),a=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=a},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,n){var r=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,n){var r=e("../internals/an-object"),i=e("../internals/a-constructor"),a=e("../internals/is-null-or-undefined"),o=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,n){var r=e("../internals/engine-v8-version"),i=e("../internals/fails"),a=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/get-built-in"),a=e("../internals/well-known-symbol"),o=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,function(e){return r(n,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,n){var r=e("../internals/symbol-constructor-detection");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,n){var r,i,a,o,s=e("../internals/global"),l=e("../internals/function-apply"),u=e("../internals/function-bind-context"),c=e("../internals/is-callable"),d=e("../internals/has-own-property"),f=e("../internals/fails"),h=e("../internals/html"),p=e("../internals/array-slice"),m=e("../internals/document-create-element"),v=e("../internals/validate-arguments-length"),g=e("../internals/engine-is-ios"),y=e("../internals/engine-is-node"),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,k=s.MessageChannel,A=s.String,C=0,T={};f(function(){r=s.location});var O=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},I=function(e){return function(){O(e)}},P=function(e){O(e.data)},E=function(e){s.postMessage(A(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){v(arguments.length,1);var t=c(e)?e:_(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},i(C),C},w=function(e){delete T[e]},y?i=function(e){x.nextTick(I(e))}:S&&S.now?i=function(e){S.now(I(e))}:k&&!g?(o=(a=new k).port2,a.port1.onmessage=P,i=u(o.postMessage,o)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(E)?(i=E,s.addEventListener("message",P,!1)):i="onreadystatechange"in m("script")?function(e){h.appendChild(m("script")).onreadystatechange=function(){h.removeChild(this),O(e)}}:function(e){setTimeout(I(e),0)}),t.exports={set:b,clear:w}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),i=Math.max,a=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,n){var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,n){var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":301}],343:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,n){var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/is-object"),a=e("../internals/is-symbol"),o=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),u=TypeError,c=l("toPrimitive");t.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,n){var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":357}],348:[function(e,t,n){var r=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,n){var r=String;t.exports=function(e){try{return r(e)}catch(t){return"Object"}}},{}],350:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=0,a=Math.random(),o=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,n){var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,n){var r=TypeError;t.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},{}],354:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-callable"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,n){var r=e("../internals/path"),i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol-wrapped"),o=e("../internals/object-define-property").f;t.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,n){var r=e("../internals/well-known-symbol");n.f=r},{"../internals/well-known-symbol":357}],357:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/has-own-property"),o=e("../internals/uid"),s=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),u=r.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||o;t.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:d("Symbol."+e)),c[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-iteration").findIndex,a=e("../internals/add-to-unscopables"),o=!0;"findIndex"in[]&&Array(1).findIndex(function(){o=!1}),r({target:"Array",proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-iteration").find,a=e("../internals/add-to-unscopables"),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-includes").includes,a=e("../internals/fails"),o=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:a(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,n){var r=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),a=e("../internals/iterators"),o=e("../internals/internal-state"),s=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),u=e("../internals/create-iter-result-object"),c=e("../internals/is-pure"),d=e("../internals/descriptors"),f=o.set,h=o.getterFor("Array Iterator");t.exports=l(Array,"Array",function(e,t){f(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(n){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)},"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(m){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/function-apply"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),l=e("../internals/fails"),u=e("../internals/is-callable"),c=e("../internals/is-symbol"),d=e("../internals/array-slice"),f=e("../internals/get-json-replacer-function"),h=e("../internals/symbol-constructor-detection"),p=String,m=i("JSON","stringify"),v=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,k=!h||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))}),A=l(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")}),C=function(e,t){var n=d(arguments),r=f(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,p(e),t)),!c(t))return t},a(m,null,n)},T=function(e,t,n){var r=g(n,t-1),i=g(n,t+1);return v(S,e)&&!v(_,i)||v(_,e)&&!v(S,r)?"\\u"+w(y(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:k||A},{stringify:function(e,t,n){var r=d(arguments),i=a(k?C:m,null,r);return A&&"string"==typeof i?b(i,x,T):i}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,n){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),a=e("../internals/fails"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/to-object");r({target:"Object",stat:!0,forced:!i||a(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/to-object"),a=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")(function(){a(1)})},{keys:function(e){return a(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),l=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,n=o.f(t),r=n.resolve,u=n.reject,c=s(function(){var n=a(t.resolve),o=[],s=0,c=1;l(e,function(e){var a=s++,l=!1;c++,i(n,t,e).then(function(e){l||(l=!0,o[a]=e,--c||r(o))},u)}),--c||r(o)});return c.error&&u(c.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,o=e("../internals/promise-native-constructor"),s=e("../internals/get-built-in"),l=e("../internals/is-callable"),u=e("../internals/define-built-in"),c=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(o)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,n){var r,i,a,o=e("../internals/export"),s=e("../internals/is-pure"),l=e("../internals/engine-is-node"),u=e("../internals/global"),c=e("../internals/function-call"),d=e("../internals/define-built-in"),f=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),v=e("../internals/is-callable"),g=e("../internals/is-object"),y=e("../internals/an-instance"),b=e("../internals/species-constructor"),w=e("../internals/task").set,x=e("../internals/microtask"),S=e("../internals/host-report-errors"),_=e("../internals/perform"),k=e("../internals/queue"),A=e("../internals/internal-state"),C=e("../internals/promise-native-constructor"),T=e("../internals/promise-constructor-detection"),O=e("../internals/new-promise-capability"),I=T.CONSTRUCTOR,P=T.REJECTION_EVENT,E=T.SUBCLASSING,M=A.getterFor("Promise"),D=A.set,R=C&&C.prototype,L=C,N=R,j=u.TypeError,F=u.document,z=u.process,B=O.f,V=B,H=!!(F&&F.createEvent&&u.dispatchEvent),W=function(e){var t;return!(!g(e)||!v(t=e.then))&&t},U=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&q(t),t.rejection=1),!0===s?n=a:(d&&d.enter(),n=s(a),d&&(d.exit(),i=!0)),n===e.promise?u(new j("Promise-chain cycle")):(r=W(n))?c(r,n,l,u):l(n)):u(a)}catch(f){d&&!i&&d.exit(),u(f)}},X=function(e,t){e.notified||(e.notified=!0,x(function(){for(var n,r=e.reactions;n=r.get();)U(n,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},G=function(e,t,n){var r,i;H?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!P&&(i=u["on"+e])?i(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},Y=function(e){c(w,u,function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=_(function(){l?z.emit("unhandledRejection",r,n):G("unhandledrejection",n,r)}),e.rejection=l||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},q=function(e){c(w,u,function(){var t=e.facade;l?z.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)})},Z=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},Q=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var r=W(t);r?x(function(){var n={done:!1};try{c(r,t,Z(Q,n,e),Z(J,n,e))}catch(i){J(n,i,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(i){J({done:!1},i,e)}}};if(I&&(N=(L=function(e){y(this,N),m(e),c(r,this);var t=M(this);try{e(Z(Q,t),Z(J,t))}catch(n){J(t,n)}}).prototype,(r=function(e){D(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(N,"then",function(e,t){var n=M(this),r=B(b(this,L));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=l?z.domain:void 0,0===n.state?n.reactions.add(r):x(function(){U(r,n)}),r.promise}),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=Z(Q,t),this.reject=Z(J,t)},O.f=B=function(e){return e===L||void 0===e?new i(e):V(e)},!s&&v(C)&&R!==Object.prototype)){a=R.then,E||d(R,"then",function(e,t){var n=this;return new L(function(e,t){c(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete R.constructor}catch($){}f&&f(R,N)}o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:L}),h(L,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),o=e("../internals/fails"),s=e("../internals/get-built-in"),l=e("../internals/is-callable"),u=e("../internals/species-constructor"),c=e("../internals/promise-resolve"),d=e("../internals/define-built-in"),f=a&&a.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o(function(){f.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}}),!i&&l(a)){var h=s("Promise").prototype.finally;f.finally!==h&&d(f,"finally",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,n){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),l=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,n=o.f(t),r=n.reject,u=s(function(){var o=a(t.resolve);l(e,function(e){i(o,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),u=i("Promise"),c=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(c&&this===u?o:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/to-absolute-index"),o=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=i([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new o(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/not-a-regexp"),o=e("../internals/require-object-coercible"),s=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,n){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/global"),a=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-pure"),l=e("../internals/descriptors"),u=e("../internals/symbol-constructor-detection"),c=e("../internals/fails"),d=e("../internals/has-own-property"),f=e("../internals/object-is-prototype-of"),h=e("../internals/an-object"),p=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),v=e("../internals/to-string"),g=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),b=e("../internals/object-keys"),w=e("../internals/object-get-own-property-names"),x=e("../internals/object-get-own-property-names-external"),S=e("../internals/object-get-own-property-symbols"),_=e("../internals/object-get-own-property-descriptor"),k=e("../internals/object-define-property"),A=e("../internals/object-define-properties"),C=e("../internals/object-property-is-enumerable"),T=e("../internals/define-built-in"),O=e("../internals/define-built-in-accessor"),I=e("../internals/shared"),P=e("../internals/shared-key"),E=e("../internals/hidden-keys"),M=e("../internals/uid"),D=e("../internals/well-known-symbol"),R=e("../internals/well-known-symbol-wrapped"),L=e("../internals/well-known-symbol-define"),N=e("../internals/symbol-define-to-primitive"),j=e("../internals/set-to-string-tag"),F=e("../internals/internal-state"),z=e("../internals/array-iteration").forEach,B=P("hidden"),V=F.set,H=F.getterFor("Symbol"),W=Object.prototype,U=i.Symbol,X=U&&U.prototype,G=i.RangeError,Y=i.TypeError,K=i.QObject,q=_.f,Z=k.f,J=x.f,Q=C.f,$=o([].push),ee=I("symbols"),te=I("op-symbols"),ne=I("wks"),re=!K||!K.prototype||!K.prototype.findChild,ie=function(e,t,n){var r=q(W,t);r&&delete W[t],Z(e,t,n),r&&e!==W&&Z(W,t,r)},ae=l&&c(function(){return 7!==y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?ie:Z,oe=function(e,t){var n=ee[e]=y(X);return V(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===W&&se(te,t,n),h(e);var r=m(t);return h(n),d(ee,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:g(0,!1)})):(d(e,B)||Z(e,B,g(1,{})),e[B][r]=!0),ae(e,r,n)):Z(e,r,n)},le=function(e,t){h(e);var n=p(t),r=b(n).concat(fe(n));return z(r,function(t){l&&!a(ue,n,t)||se(e,t,n[t])}),e},ue=function(e){var t=m(e),n=a(Q,this,t);return!(this===W&&d(ee,t)&&!d(te,t))&&(!(n||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||n)},ce=function(e,t){var n=p(e),r=m(t);if(n!==W||!d(ee,r)||d(te,r)){var i=q(n,r);return!i||!d(ee,r)||d(n,B)&&n[B][r]||(i.enumerable=!0),i}},de=function(e){var t=J(p(e)),n=[];return z(t,function(e){d(ee,e)||d(E,e)||$(n,e)}),n},fe=function(e){var t=e===W,n=J(t?te:p(e)),r=[];return z(n,function(e){!d(ee,e)||t&&!d(W,e)||$(r,ee[e])}),r};u||(T(X=(U=function(){if(f(X,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=M(e),n=function(e){this===W&&a(n,te,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1);var r=g(1,e);try{ae(this,t,r)}catch(i){if(!(i instanceof G))throw i;ie(this,t,r)}};return l&&re&&ae(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",function(){return H(this).tag}),T(U,"withoutSetter",function(e){return oe(M(e),e)}),C.f=ue,k.f=se,A.f=le,_.f=ce,w.f=x.f=de,S.f=fe,R.f=function(e){return oe(D(e),e)},l&&(O(X,"description",{configurable:!0,get:function(){return H(this).description}}),s||T(W,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),z(b(ne),function(e){L(e)}),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),N(),j(U,"Symbol"),E[B]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/has-own-property"),o=e("../internals/to-string"),s=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(a(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,n){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/has-own-property"),a=e("../internals/is-symbol"),o=e("../internals/try-to-string"),s=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!a(e))throw new TypeError(o(e)+" is not a symbol");if(i(u,e))return u[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,n){function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,n){(function(n){(function(){var r=e("elliptic"),i=e("bn.js");t.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var a=new n(r-i.length);a.fill(0),i=n.concat([a,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(e,t,n){var r=e("inherits"),i=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function l(e){s.call(this,"digest"),this._hash=e}r(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new l(o(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,n){var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":450}],388:[function(e,t,n){var r=e("inherits"),i=e("./legacy"),a=e("cipher-base"),o=e("safe-buffer").Buffer,s=e("create-hash/md5"),l=e("ripemd160"),u=e("sha.js"),c=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new l:u(e)).update(t).digest():t.length<n&&(t=o.concat([t,c],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:u(e),this._hash.update(r)}r(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,n){var r=e("inherits"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=i.alloc(128);function s(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=s},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,n){n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);n.getHashes=function(){return a};var o=e("pbkdf2");n.pbkdf2=o.pbkdf2,n.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers;var l=e("diffie-hellman");n.DiffieHellmanGroup=l.DiffieHellmanGroup,n.createDiffieHellmanGroup=l.createDiffieHellmanGroup,n.getDiffieHellman=l.getDiffieHellman,n.createDiffieHellman=l.createDiffieHellman,n.DiffieHellman=l.DiffieHellman;var u=e("browserify-sign");n.createSign=u.createSign,n.Sign=u.Sign,n.createVerify=u.createVerify,n.Verify=u.Verify,n.createECDH=e("create-ecdh");var c=e("public-encrypt");n.publicEncrypt=c.publicEncrypt,n.privateEncrypt=c.privateEncrypt,n.publicDecrypt=c.publicDecrypt,n.privateDecrypt=c.privateDecrypt;var d=e("randomfill");n.randomFill=d.randomFill,n.randomFillSync=d.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,n){var r,i;r=void 0,i=function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",a="hour",o="day",s="week",l="month",u="quarter",c="year",d="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:o,D:d,h:a,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w="$isDayjsObject",x=function(e){return e instanceof A||!(!e||!e[w])},S=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},_=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},k=g;k.l=S,k.i=x,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,u=!!k.u(t)||t,f=k.p(e),h=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(o)},p=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case c:return u?h(1,0):h(31,11);case l:return u?h(1,v):h(0,v+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return h(u?g-w:g+(6-w),v);case o:case d:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,u=k.p(e),f="set"+(this.$u?"UTC":""),h=(s={},s[o]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[c]=f+"FullYear",s[a]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[u],p=u===o?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(n,u){var d,f=this;n=Number(n);var h=k.p(u),p=function(e){var t=_(f);return k.w(t.date(t.date()+Math.round(e*n)),f)};if(h===l)return this.set(l,this.$M+n);if(h===c)return this.set(c,this.$y+n);if(h===o)return p(1);if(h===s)return p(7);var m=(d={},d[i]=e,d[a]=t,d[r]=1e3,d)[h]||1,v=this.$d.getTime()+n*m;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},h=function(e){return k.s(a%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return k.s(o,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,d,f){var h,p=this,m=k.p(d),v=_(n),g=(v.utcOffset()-this.utcOffset())*e,y=this-v,b=function(){return k.m(p,v)};switch(m){case c:h=b()/12;break;case l:h=b();break;case u:h=b()/3;break;case s:h=(y-g)/6048e5;break;case o:h=(y-g)/864e5;break;case a:h=y/t;break;case i:h=y/e;break;case r:h=y/1e3;break;default:h=y}return f?h:k.a(h)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),C=A.prototype;return _.prototype=C,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",o],["$M",l],["$y",c],["$D",d]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,A,_),e.$i=!0),_},_.locale=S,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=b[y],_.Ls=b,_.p={},_},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs=i()},{}],392:[function(e,t,n){var r,i;r=void 0,i=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var u=o[l],c=d[u],f=c&&c[0],h=c&&c[1];o[l]=h?{regex:f,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,u=e.slice(r),c=a.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],u=!0===o[3],c=l||u,d=o[2];u&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,h=new Date,p=o||(i||a?1:h.getDate()),m=i||h.getFullYear(),v=0;i&&!a||(v=a>0?a-1:h.getMonth());var g=s||0,y=l||0,b=u||0,w=c||0;return d?new Date(Date.UTC(m,v,p,g,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,v,p,g,y,b,w)):new Date(m,v,p,g,y,b,w)}catch(x){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,e)}}},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_customParseFormat=i()},{}],393:[function(e,t,n){var r,i;r=void 0,i=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r)))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l}else s=this.utc();return s};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_utc=i()},{}],394:[function(e,t,n){n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}n.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(a._update.call(this,o,0,n,r),s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{for(a._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,n){var r=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a=e("./utils"),o=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function l(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,o),t.exports=l,l.create=function(e){return new l(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=u[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},l.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,l=0;l<e.keys.length;l+=2){var u=e.keys[l],c=e.keys[l+1];a.expand(s,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(u,c),f=s;s=(o^a.permute(d))>>>0,o=f}a.rip(s,o,r,i)},l.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,l=e.keys.length-2;l>=0;l-=2){var u=e.keys[l],c=e.keys[l+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(u,c),f=o;o=(s^a.permute(d))>>>0,s=f}a.rip(o,s,r,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a=e("./cipher"),o=e("./des");function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function l(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,a),t.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,n){n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},n.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,l=0;l<s;l++)a<<=1,a|=e>>>r[l]&1;for(l=s;l<r.length;l++)o<<=1,o|=t>>>r[l]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},{}],400:[function(e,t,n){(function(t){(function(){var r=e("./lib/generatePrime"),i=e("./lib/primes.json"),a=e("./lib/dh"),o={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new a(n,r)},n.createDiffieHellman=n.DiffieHellman=function e(n,i,s,l){return t.isBuffer(i)||void 0===o[i]?e(n,"binary",i,s):(i=i||"binary",l=l||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,l)),"number"==typeof n?new a(r(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,i)),new a(n,s,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,n){(function(n){(function(){var r=e("bn.js"),i=new(e("miller-rabin")),a=new r(24),o=new r(11),s=new r(10),l=new r(3),u=new r(7),c=e("./generatePrime"),d=e("randombytes");function f(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function v(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var d,f=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(i.test(e.shrn(1))||(f+=2),n){case"02":e.mod(a).cmp(o)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(u)&&(f+=8);break;default:f+=4}return p[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),a=this.getPrime();if(i.length<a.length){var o=new n(a.length-i.length);o.fill(0),i=n.concat([o,i])}return i},m.prototype.getPublicKey=function(e){return v(this._pub,e)},m.prototype.getPrivateKey=function(e){return v(this._priv,e)},m.prototype.getPrime=function(e){return v(this.__prime,e)},m.prototype.getGenerator=function(e){return v(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,n){var r=e("randombytes");t.exports=y,y.simpleSieve=v,y.fermatTest=g;var i=e("bn.js"),a=new i(24),o=new(e("miller-rabin")),s=new i(1),l=new i(2),u=new i(5),c=(new i(16),new i(8),new i(10)),d=new i(3),f=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}function v(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function g(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),t.cmp(l)){if(!t.cmp(u))for(;n.mod(c).cmp(d);)n.iadd(h)}else for(;n.mod(a).cmp(f);)n.iadd(h);if(v(p=n.shrn(1))&&v(n)&&g(p)&&g(n)&&o.test(p)&&o.test(n))return n}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(e,t,n){var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.getNAF,o=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,l,u=[];for(o=0;o<r.length;o+=n.step){l=0;for(var c=o+n.step-1;c>=o;c--)l=(l<<1)+r[c];u.push(l)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<u.length;o++)(l=u[o])===h?f=f.mixedAdd(n.points[o]):l===-h&&(f=f.mixedAdd(n.points[o].neg()));d=d.add(f)}return d.toP()},l.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),l=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(var c=0;u>=0&&0===o[u];u--)c++;if(u>=0&&c++,l=l.dblp(c),u<0)break;var d=o[u];s(0!==d),l="affine"===e.type?d>0?l.mixedAdd(i[d-1>>1]):l.mixedAdd(i[-d-1>>1].neg()):d>0?l.add(i[d-1>>1]):l.add(i[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,n,r,i){var s,l,u,c=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s<r;s++){var p=(u=t[s])._getNAFPoints(e);c[s]=p.wnd,d[s]=p.points}for(s=r-1;s>=1;s-=2){var m=s-1,v=s;if(1===c[m]&&1===c[v]){var g=[t[m],null,null,t[v]];0===t[m].y.cmp(t[v].y)?(g[1]=t[m].add(t[v]),g[2]=t[m].toJ().mixedAdd(t[v].neg())):0===t[m].y.cmp(t[v].y.redNeg())?(g[1]=t[m].toJ().mixedAdd(t[v]),g[2]=t[m].add(t[v].neg())):(g[1]=t[m].toJ().mixedAdd(t[v]),g[2]=t[m].toJ().mixedAdd(t[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=o(n[m],n[v]);for(h=Math.max(b[0].length,h),f[m]=new Array(h),f[v]=new Array(h),l=0;l<h;l++){var w=0|b[0][l],x=0|b[1][l];f[m][l]=y[3*(w+1)+(x+1)],f[v][l]=0,d[m]=g}}else f[m]=a(n[m],c[m],this._bitLength),f[v]=a(n[v],c[v],this._bitLength),h=Math.max(f[m].length,h),h=Math.max(f[v].length,h)}var S=this.jpoint(null,null,null),_=this._wnafT4;for(s=h;s>=0;s--){for(var k=0;s>=0;){var A=!0;for(l=0;l<r;l++)_[l]=0|f[l][s],0!==_[l]&&(A=!1);if(!A)break;k++,s--}if(s>=0&&k++,S=S.dblp(k),s<0)break;for(l=0;l<r;l++){var C=_[l];0!==C&&(C>0?u=d[l][C-1>>1]:C<0&&(u=d[l][-C-1>>1].neg()),S="affine"===u.type?S.mixedAdd(u):S.add(u))}}for(s=0;s<r;s++)d[s]=null;return i?S:S.toP()},l.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,n){var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(l,o),t.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(u,o.BasePoint),l.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},l.prototype.point=function(e,t,n,r){return new u(this,e,t,n,r)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),l=i.redMul(o),u=a.redMul(s),c=i.redMul(s),d=o.redMul(a);return this.curve.point(l,u,d,c)},u.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(l);this.zOne?(e=o.redSub(s).redSub(l).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(l)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),a=u.redSub(i).redISub(i),e=o.redSub(s).redISub(l).redMul(a),t=u.redMul(r.redSub(l)),n=u.redMul(a))}else r=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(l)),n=r.redMul(a);return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),u=a.redMul(o),c=s.redMul(l),d=a.redMul(l),f=o.redMul(s);return this.curve.point(u,c,f,d)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),l=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=r.redMul(l).redMul(c);return this.curve.twisted?(t=r.redMul(u).redMul(o.redSub(this.curve._mulA(a))),n=l.redMul(u)):(t=r.redMul(u).redMul(o.redSub(a)),n=this.curve._mulC(l).redMul(u)),this.curve.point(d,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,n){var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,n){var r=e("bn.js"),i=e("inherits"),a=e("./base"),o=e("../utils");function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(l,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),l=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,n){var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function l(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(l,o),t.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,l,u,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),y=0;0!==f.cmpn(0);){var b=h.div(f);u=h.sub(b.mul(f)),c=v.sub(b.mul(p));var w=g.sub(b.mul(m));if(!r&&u.cmp(d)<0)t=l.neg(),n=p,r=u.neg(),a=c;else if(r&&2==++y)break;l=u,h=f,f=u,v=p,p=c,g=m,m=w}o=u.neg(),s=c;var x=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),l=i.mul(n.b),u=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:l.add(u).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],l=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),r[2*a]=s,r[2*a+1]=l,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,r,i,2*a,n),c=0;c<2*a;c++)r[c]=null,i[c]=null;return u},a(u,o.BasePoint),l.prototype.point=function(e,t,n){return new u(this,e,t,n)},l.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,o.BasePoint),l.prototype.jpoint=function(e,t,n){return new c(this,e,t,n)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=a.redSub(o);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),d=r.redMul(u),f=l.redSqr().redIAdd(c).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),u=l.redMul(o),c=n.redMul(l),d=s.redSqr().redIAdd(u).redISub(c).redISub(c),f=s.redMul(c.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(o);return this.curve.jpoint(d,f,h)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,l=s.redSqr().redSqr(),u=o.redAdd(o);for(t=0;t<e;t++){var c=a.redSqr(),d=u.redSqr(),f=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(r.redMul(l)),p=a.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=h.redMul(v);g=g.redIAdd(g).redISub(f);var y=u.redMul(s);t+1<e&&(l=l.redMul(f)),a=m,s=y,u=g}return this.curve.jpoint(a,u.redMul(i),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(o).redISub(o),u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=s.redMul(o.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(f);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),v=f.redIAdd(f);v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(v),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},c.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(o).redISub(o);e=l;var u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(o.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var v=d.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=h.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,n)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(o),c=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=n.redAdd(n).redMul(r);return this.curve.jpoint(c,h,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(u.redMul(l.redISub(u)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,h)},c.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,n){var r,i=n,a=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function l(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=l,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(c){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,n){var r=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),o=e("../curves"),s=e("brorand"),l=a.assert,u=e("./key"),c=e("./signature");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),l=e.toArray("be",o),u=new i({hash:this.hash,entropy:s,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new r(1)),f=0;;f++){var h=a.k?a.k(f):new r(u.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=h.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:v,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new c(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,l=o.invm(this.n),u=l.mul(e).umod(this.n),d=l.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),d)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(u,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},d.prototype.recoverPubKey=function(e,t,n,i){l((3&n)===n,"The recovery param is more than two bits"),t=new c(t,i);var a=this.n,o=new r(e),s=t.r,u=t.s,d=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(a),p=a.sub(o).mul(h).umod(a),m=u.mul(h).umod(a);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new c(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(o){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,n){var r=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var a=l(e,n);if(!1===a)return!1;if(a+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=l(e,n);if(!1===o)return!1;var u=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var c=l(e,n);if(!1===c)return!1;if(e.length!==c+n.place)return!1;var d=e.slice(n.place,c+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(u),this.s=new r(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];c(r,t.length),(r=r.concat(t)).push(2),c(r,n.length);var a=r.concat(n),o=[48];return c(o,a.length),o=o.concat(a),i.encode(o,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,n){var r=e("hash.js"),i=e("../curves"),a=e("../utils"),o=a.assert,s=a.parseBytes,l=e("./key"),u=e("./signature");function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=c,c.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),l=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:a})},c.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=!!(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,n){var r=e("../utils"),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../utils":419}],417:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},{"../utils":419,"bn.js":420}],418:[function(e,t,n){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,n){var r=n,i=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,l=a.andln(i-1);a.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,l=e.andln(3)+i&3,u=t.andln(3)+a&3;3===l&&(l=-1),3===u&&(u=-1),o=1&l?3!=(r=e.andln(7)+i&7)&&5!==r||2!==u?l:-l:0,n[0].push(o),s=1&u?3!=(r=t.andln(7)+a&7)&&5!==r||2!==l?u:-u:0,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(e,t,n){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,l=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(S){s=!1}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,n){if(t)e.call(n);else for(var r=e.length,i=x(e,r),a=0;a<r;++a)i[a].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].call(n,r)}function h(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=x(e,a),s=0;s<a;++s)o[s].call(n,r,i)}function p(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=x(e,o),l=0;l<o;++l)s[l].call(n,r,i,a)}function m(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].apply(n,r)}function v(e,t,n,i){var a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=r(null),e._eventsCount=0),s){if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(a=c(e))&&a>0&&s.length>a){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"==typeof console&&console.warn}}else s=o[t]=n,++e._eventsCount;return e}function g(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(g,r);return i.listener=n,r.wrapFn=i,i}function b(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):x(i,i.length):[]}function w(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function x(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):o.defaultMaxListeners=l,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){var t,n,r,i,a,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(n=o[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:d(n,u,this);break;case 2:f(n,u,this,arguments[1]);break;case 3:h(n,u,this,arguments[1],arguments[2]);break;case 4:p(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),a=1;a<r;a++)i[a-1]=arguments[a];m(n,u,this,i)}return!0},o.prototype.addListener=function(e,t){return v(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return v(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,a,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,a),1===n.length&&(i[e]=n[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,a;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var o,s=i(n);for(a=0;a<s.length;++a)"removeListener"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},o.prototype.listenerCount=w,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),l=r.alloc(a||0),u=r.alloc(0);o>0||a>0;){var c=new i;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,u.length),u.copy(s,f,0,d),o-=d}if(d<u.length&&a>0){var h=l.length-a,p=Math.min(a,u.length-d);u.copy(l,h,d,d+p),a-=p}}return u.fill(0),{key:s,iv:l}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var r=e("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,n){var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,n){var r=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,n){var r=e("./utils"),i=e("minimalistic-assert");function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,n){var r=e("./utils"),i=e("./common"),a=r.rotl32,o=r.sum32,s=r.sum32_3,l=r.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(c,u),n.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],y=n,b=r,w=i,x=u,S=c,_=0;_<80;_++){var k=o(a(l(n,d(_,r,i,u),e[p[_]+t],f(_)),v[_]),c);n=c,c=u,u=a(i,10),i=r,r=k,k=o(a(l(y,d(79-_,b,w,x),e[m[_]+t],h(_)),g[_]),S),y=S,S=x,x=a(w,10),w=b,b=k}k=s(this.h[1],i,x),this.h[1]=s(this.h[2],u,S),this.h[2]=s(this.h[3],c,y),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=k},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,n){n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("./common"),o=r.rotl32,s=r.sum32,l=r.sum32_5,u=a.ft_1,c=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,c),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],c=this.h[2],f=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=l(o(i,5),u(p,a,c,f),h,n[r],d[p]);h=f,f=c,c=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],h)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,n){var r=e("../utils"),i=e("./256");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("./common"),o=e("minimalistic-assert"),s=r.sum32,l=r.sum32_4,u=r.sum32_5,c=a.ch32,d=a.maj32,f=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,v),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=l(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],w=this.h[6],x=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var S=u(x,h(y),c(y,b,w),this.k[r],n[r]),_=s(f(i),d(i,a,v));x=w,w=b,b=y,y=s(g,S),g=v,v=a,a=i,i=s(S,_)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,n){var r=e("../utils"),i=e("./512");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("minimalistic-assert"),o=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,u=r.shr64_lo,c=r.sum64,d=r.sum64_hi,f=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,v=r.sum64_5_lo,g=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function x(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function S(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function _(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function k(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function O(e,t){var n=o(e,t,1)^o(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=s(e,t,1)^s(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function P(e,t){var n=o(e,t,19)^o(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function E(e,t){var n=s(e,t,19)^s(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,g),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=P(n[r-4],n[r-3]),a=E(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],l=O(n[r-30],n[r-29]),u=I(n[r-30],n[r-29]),c=n[r-32],d=n[r-31];n[r]=h(i,a,o,s,l,u,c,d),n[r+1]=p(i,a,o,s,l,u,c,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],O=this.h[11],I=this.h[12],P=this.h[13],E=this.h[14],M=this.h[15];a(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var R=E,L=M,N=C(g,y),j=T(g,y),F=w(g,y,b,O,I),z=x(g,y,b,O,I,P),B=this.k[D],V=this.k[D+1],H=n[D],W=n[D+1],U=m(R,L,N,j,F,z,B,V,H,W),X=v(R,L,N,j,F,z,B,V,H,W);R=k(r,i),L=A(r,i),N=S(r,i,o,s,l),j=_(r,i,o,s,l,u);var G=d(R,L,N,j),Y=f(R,L,N,j);E=I,M=P,I=b,P=O,b=g,O=y,g=d(h,p,U,X),y=f(p,p,U,X),h=l,p=u,l=o,u=s,o=r,s=i,r=d(U,X,G,Y),i=f(U,X,G,Y)}c(this.h,0,r,i),c(this.h,2,o,s),c(this.h,4,l,u),c(this.h,6,h,p),c(this.h,8,g,y),c(this.h,10,b,O),c(this.h,12,I,P),c(this.h,14,E,M)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,n){var r=e("../utils").rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},n.ch32=i,n.maj32=a,n.p32=o,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits");function a(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}n.inherits=i,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},n.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},n.htonl=o,n.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=l(i.toString(16))}return n},n.zero2=s,n.zero8=l,n.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,l=t;s<o.length;s++,l+=4){var u;u="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],o[s]=u>>>0}return o},n.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},n.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,i,a,o,s){var l=0,u=t;return l+=(u=u+r>>>0)<t?1:0,l+=(u=u+a>>>0)<a?1:0,e+n+i+o+(l+=(u=u+s>>>0)<s?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},n.sum64_5_hi=function(e,t,n,r,i,a,o,s,l,u){var c=0,d=t;return c+=(d=d+r>>>0)<t?1:0,c+=(d=d+a>>>0)<a?1:0,c+=(d=d+s>>>0)<s?1:0,e+n+i+o+l+(c+=(d=d+u>>>0)<u?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,i,a,o,s,l,u){return t+r+a+s+u>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,n){var r=e("hash.js"),i=e("minimalistic-crypto-utils"),a=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}t.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,n){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},{}],440:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],441:[function(e,t,n){(function(r,i,a,o,s,l,u,c){(function(){
/*!
              
                		JSZip v3.10.1 - A JavaScript class for generating and reading zip files
                		<http://stuartk.com/jszip>
              
                		(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
                		Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
              
                		JSZip uses the library pako released under the MIT license :
                		https://github.com/nodeca/pako/blob/main/LICENSE
                		*/
!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,r,i){function a(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){return a(n[s][1][e]||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o="function"==typeof e&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,l,u,c=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,c.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,o,s,l,u=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&h--,e.charAt(e.length-2)===a.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=a.indexOf(e.charAt(u++))<<2|(o=a.indexOf(e.charAt(u++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=n),64!==l&&(f[c++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n){var r=i,a=0+n;e^=-1;for(var o=0;o<a;o++)e=e>>>8^r[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,n){var r=i,a=0+n;e^=-1;for(var o=0;o<a;o++)e=e>>>8^r[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,c){var d,f,h=e.file,p=e.compression,m=c!==s.utf8encode,v=a.transformTo("string",c(h.name)),g=a.transformTo("string",s.utf8encode(h.name)),y=h.comment,b=a.transformTo("string",c(y)),w=a.transformTo("string",s.utf8encode(y)),x=g.length!==h.name.length,S=w.length!==y.length,_="",k="",A="",C=h.dir,T=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),m||!x&&!S||(I|=2048);var P,E,M,D=0,R=0;C&&(D|=16),"UNIX"===o?(R=798,D|=(P=h.unixPermissions,E=C,M=P,P||(M=E?16893:33204),(65535&M)<<16)):(R=20,D|=function(e){return 63&(e||0)}(h.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,f=T.getUTCFullYear()-1980,f<<=4,f|=T.getUTCMonth()+1,f<<=5,f|=T.getUTCDate(),x&&(k=r(1,1)+r(l(v),4)+g,_+="up"+r(k.length,2)+k),S&&(A=r(1,1)+r(l(b),4)+w,_+="uc"+r(A.length,2)+A);var L="";return L+="\n\0",L+=r(I,2),L+=p.magic,L+=r(d,2),L+=r(f,2),L+=r(O.crc32,4),L+=r(O.compressedSize,4),L+=r(O.uncompressedSize,4),L+=r(v.length,2),L+=r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+L+v+_,dirRecord:u.CENTRAL_FILE_HEADER+r(R,2)+L+r(b.length,2)+"\0\0\0\0"+r(D,4)+r(i,4)+v+_+b}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,a=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,o,s,l,c,d=this.bytesWritten-e,f=(n=this.dirRecords.length,i=d,o=e,s=this.zipComment,l=this.encodeFileName,c=a.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(o,4)+r(c.length,2)+c);this.push({data:f,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(s){a.error(s)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(u(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:void 0!==a,newBufferFrom:function(e,t){if(a.from&&a.from!==Uint8Array.from)return a.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new a(e,t)},allocBuffer:function(e){if(a.alloc)return a.alloc(e);var t=new a(e);return t.fill(0),t},isBuffer:function(e){return a.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(r=p(e))&&v.call(this,r,!0);var d,g="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!g),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string"),d=t instanceof u||t instanceof o?t:f.isNode&&f.isStream(t)?new h(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new c(e,d,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},v=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(g(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(g(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=v.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(l){(t=new o("error")).error(l)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),u=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function d(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(s){this._worker=new o("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return t=this,n=e,new u.Promise(function(e,i){var o=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",function(e,t){o.push(e),n&&n(t)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var t=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return a.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,o),c);e(t)}catch(n){i(n)}o=[]}).resume()});var t,n},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==a,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(s){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(o){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)l[n++]=i;else if(4<(a=s[i]))l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,o),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(a){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(a){t=Math.floor(t/2)}return u.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},h.array={string:d,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){c(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,u){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var c,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(u?t=i.decode(t):a&&!0!==s&&(t=l(c=t,r.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(i){return a.reject(e,i)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p(function(){t(i,r)});"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return a.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(u,o))},function(e){r||(r=!0,a.reject(u,e))})}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,o=-1,s=new this(i);++o<t;)r=e[o],this.resolve(r).then(function(e){n||(n=!0,a.resolve(s,e))},function(e){n||(n=!0,a.reject(s,e))});return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(o[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}u.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,v=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(f="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===v&&(n=o.Z_OK,v=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(h.output,h.next_out),u=h.next_out-l,d=a.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(v=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(a=o[i]))u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=-2,c=258,d=262,f=113;function h(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function v(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function g(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,f=e.w_mask,h=e.prev,p=e.strstart+c,m=u[a+o-1],v=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===v&&u[n+o-1]===m&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<p);if(r=c-(p-a),a=p-c,o<r){if(e.match_start=t,s<=(o=r))break;m=u[a+o-1],v=u[a+o]}}}while((t=h[t&f])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function x(e){var t,n,r,a,l,u,c,f,h,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,p=void 0,(h=a)<(p=u.avail_in)&&(p=h),n=0===p?0:(u.avail_in-=p,i.arraySet(c,u.input,u.next_in,p,f),1===u.state.wrap?u.adler=o(u.adler,c,p,f):2===u.state.wrap&&(u.adler=s(u.adler,c,p,f)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-d&&(e.match_length=w(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function _(e,t){for(var n,r,i;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=w(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(g(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&g(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function k(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function A(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function C(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):h(e,u)}function T(e){var t,n=C(e);return 0===n&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function O(e,t,n,r,a,o){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||9<a||8!==n||r<8||15<r||t<0||9<t||o<0||4<o)return h(e,u);8===r&&(r=9);var l=new A;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,T(e)}r=[new k(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,g(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(g(e,!1),e.strm.avail_out),1)}),new k(4,4,8,4,S),new k(4,5,16,8,S),new k(4,6,32,32,S),new k(4,4,16,16,_),new k(8,16,32,32,_),new k(8,16,128,128,_),new k(8,32,128,256,_),new k(32,128,258,1024,_),new k(32,258,258,4096,_)],n.deflateInit=function(e,t){return O(e,t,8,15,8,0)},n.deflateInit2=O,n.deflateReset=T,n.deflateResetKeep=C,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5<t||t<0)return e?h(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return h(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=f);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=f,b(i,d),0!==i.strstart&&(b(i,e.adler>>>16),b(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return h(e,-5);if(666===i.status&&0!==e.avail_in)return h(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var w=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(x(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==w&&4!==w||(i.status=666),1===w||3===w)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===w&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(b(i,e.adler>>>16),b(i,65535&e.adler)),v(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==f&&666!==t?h(e,u):(e.state=null,t===f?h(e,-3):0):u},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,d,f,h=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=o(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(m(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,x(n);n.lookahead>=3;){for(r=n.strstart,a=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=2,x(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=d,e.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,w,x,S,_,k,A,C;n=e.state,r=e.next_in,A=e.input,i=r+(e.avail_in-5),a=e.next_out,C=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,m=n.lencode,v=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),b=m[h&g];t:for(;;){if(h>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))C[a++]=65535&b;else{if(!(16&w)){if(!(64&w)){b=m[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(p<w&&(h+=A[r++]<<p,p+=8),x+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),b=v[h&y];n:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(!(64&w)){b=v[(65535&b)+(h&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&b,p<(w&=15)&&(h+=A[r++]<<p,(p+=8)<w&&(h+=A[r++]<<p,p+=8)),l<(S+=h&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=w,p-=w,(w=a-o)<S){if(c<(w=S-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=f,(_=0)===d){if(_+=u-w,w<x){for(x-=w;C[a++]=f[_++],--w;);_=a-S,k=C}}else if(d<w){if(_+=u+d-w,(w-=d)<x){for(x-=w;C[a++]=f[_++],--w;);if(_=0,d<x){for(x-=w=d;C[a++]=f[_++],--w;);_=a-S,k=C}}}else if(_+=d-w,w<x){for(x-=w;C[a++]=f[_++],--w;);_=a-S,k=C}for(;2<x;)C[a++]=k[_++],C[a++]=k[_++],C[a++]=k[_++],x-=3;x&&(C[a++]=k[_++],1<x&&(C[a++]=k[_++]))}else{for(_=a-S;C[a++]=C[_++],C[a++]=C[_++],C[a++]=C[_++],2<(x-=3););x&&(C[a++]=C[_++],1<x&&(C[a++]=C[_++]))}break}}break}}while(r<i&&a<s);r-=x=p>>3,h&=(1<<(p-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):l}function p(e,t){var n,r;return e?(r=new c,(e.state=r).window=null,0!==(n=h(e,t))&&(e.state=null),n):l}var m,v,g=!0;function y(e){if(g){var t;for(m=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),g=!1}e.lencode=m,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=f,n.inflateReset2=h,n.inflateResetKeep=d,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,c,d,f,h,p,m,v,g,w,x,S,_,k,A,C,T,O,I,P,E,M,D,R,L=0,N=new r.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,d=e.output,m=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,v=n.hold,g=n.bits,w=p,x=m,M=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;g<16;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(2&n.wrap&&35615===v){N[n.check=0]=255&v,N[1]=v>>>8&255,n.check=a(n.check,N,2,0),g=v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=30;break}if(g-=4,E=8+(15&(v>>>=4)),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=512&v?10:12,g=v=0;break;case 2:for(;g<16;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(N[0]=255&v,N[1]=v>>>8&255,n.check=a(n.check,N,2,0)),g=v=0,n.mode=3;case 3:for(;g<32;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.head&&(n.head.time=v),512&n.flags&&(N[0]=255&v,N[1]=v>>>8&255,N[2]=v>>>16&255,N[3]=v>>>24&255,n.check=a(n.check,N,4,0)),g=v=0,n.mode=4;case 4:for(;g<16;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(N[0]=255&v,N[1]=v>>>8&255,n.check=a(n.check,N,2,0)),g=v=0,n.mode=5;case 5:if(1024&n.flags){for(;g<16;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(N[0]=255&v,N[1]=v>>>8&255,n.check=a(n.check,N,2,0)),g=v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(S=n.length)&&(S=p),S&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,f,S,E)),512&n.flags&&(n.check=a(n.check,c,S,f)),p-=S,f+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(S=0;E=c[f+S++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E)),E&&S<p;);if(512&n.flags&&(n.check=a(n.check,c,S,f)),p-=S,f+=S,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(S=0;E=c[f+S++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E)),E&&S<p;);if(512&n.flags&&(n.check=a(n.check,c,S,f)),p-=S,f+=S,E)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;g<16;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}g=v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;g<32;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}e.adler=n.check=u(v),g=v=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,n.hold=v,n.bits=g,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&g,g-=7&g,n.mode=27;break}for(;g<3;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}switch(n.last=1&v,g-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;v>>>=2,g-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}v>>>=2,g-=2;break;case 14:for(v>>>=7&g,g-=7&g;g<32;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&v,g=v=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(p<S&&(S=p),m<S&&(S=m),0===S)break e;r.arraySet(d,c,f,S,h),p-=S,f+=S,m-=S,h+=S,n.length-=S;break}n.mode=12;break;case 17:for(;g<14;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(n.nlen=257+(31&v),v>>>=5,g-=5,n.ndist=1+(31&v),v>>>=5,g-=5,n.ncode=4+(15&v),v>>>=4,g-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;g<3;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.lens[j[n.have++]]=7&v,v>>>=3,g-=3}for(;n.have<19;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(L=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&L,!((A=L>>>24)<=g);){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(T<16)v>>>=A,g-=A,n.lens[n.have++]=T;else{if(16===T){for(R=A+2;g<R;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(v>>>=A,g-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}E=n.lens[n.have-1],S=3+(3&v),v>>>=2,g-=2}else if(17===T){for(R=A+3;g<R;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}g-=A,E=0,S=3+(7&(v>>>=A)),v>>>=3,g-=3}else{for(R=A+7;g<R;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}g-=A,E=0,S=11+(127&(v>>>=A)),v>>>=7,g-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=E}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,D={bits:n.lenbits},M=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},M=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=m){e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,n.hold=v,n.bits=g,o(e,x),h=e.next_out,d=e.output,m=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,v=n.hold,g=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;C=(L=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&L,!((A=L>>>24)<=g);){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(C&&!(240&C)){for(O=A,I=C,P=T;C=(L=n.lencode[P+((v&(1<<O+I)-1)>>O)])>>>16&255,T=65535&L,!(O+(A=L>>>24)<=g);){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}v>>>=O,g-=O,n.back+=O}if(v>>>=A,g-=A,n.back+=A,n.length=T,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=12;break}if(64&C){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(R=n.extra;g<R;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,g-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(L=n.distcode[v&(1<<n.distbits)-1])>>>16&255,T=65535&L,!((A=L>>>24)<=g);){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(!(240&C)){for(O=A,I=C,P=T;C=(L=n.distcode[P+((v&(1<<O+I)-1)>>O)])>>>16&255,T=65535&L,!(O+(A=L>>>24)<=g);){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}v>>>=O,g-=O,n.back+=O}if(v>>>=A,g-=A,n.back+=A,64&C){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(R=n.extra;g<R;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,g-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===m)break e;if(S=x-m,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}_=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),k=n.window}else k=d,_=h-n.offset,S=n.length;for(m<S&&(S=m),m-=S,n.length-=S;d[h++]=k[_++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===m)break e;d[h++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;g<32;){if(0===p)break e;p--,v|=c[f++]<<g,g+=8}if(x-=m,e.total_out+=x,n.total+=x,x&&(e.adler=n.check=n.flags?a(n.check,d,x,h-x):i(n.check,d,x,h-x)),x=m,(n.flags?v:u(v))!==n.check){e.msg="incorrect data check",n.mode=30;break}g=v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;g<32;){if(0===p)break e;p--,v+=c[f++]<<g,g+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}g=v=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;default:return l}return e.next_out=h,e.avail_out=m,e.next_in=f,e.avail_in=p,n.hold=v,n.bits=g,(n.wsize||x!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&b(e,e.output,e.next_out,x-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,x-=e.avail_out,e.total_in+=w,e.total_out+=x,n.total+=x,n.wrap&&x&&(e.adler=n.check=n.flags?a(n.check,d,x,e.next_out-x):i(n.check,d,x,e.next_out-x)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===x||4===t)&&0===M&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,0):l},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:b(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,d,f){var h,p,m,v,g,y,b,w,x,S=f.bits,_=0,k=0,A=0,C=0,T=0,O=0,I=0,P=0,E=0,M=0,D=null,R=0,L=new r.Buf16(16),N=new r.Buf16(16),j=null,F=0;for(_=0;_<=15;_++)L[_]=0;for(k=0;k<l;k++)L[t[n+k]]++;for(T=S,C=15;1<=C&&0===L[C];C--);if(C<T&&(T=C),0===C)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(A=1;A<C&&0===L[A];A++);for(T<A&&(T=A),_=P=1;_<=15;_++)if(P<<=1,(P-=L[_])<0)return-1;if(0<P&&(0===e||1!==C))return-1;for(N[1]=0,_=1;_<15;_++)N[_+1]=N[_]+L[_];for(k=0;k<l;k++)0!==t[n+k]&&(d[N[t[n+k]]++]=k);if(y=0===e?(D=j=d,19):1===e?(D=i,R-=257,j=a,F-=257,256):(D=o,j=s,-1),_=A,g=c,I=k=M=0,m=-1,v=(E=1<<(O=T))-1,1===e&&852<E||2===e&&592<E)return 1;for(;;){for(b=_-I,x=d[k]<y?(w=0,d[k]):d[k]>y?(w=j[F+d[k]],D[R+d[k]]):(w=96,0),h=1<<_-I,A=p=1<<O;u[g+(M>>I)+(p-=h)]=b<<24|w<<16|x,0!==p;);for(h=1<<_-1;M&h;)h>>=1;if(0!==h?(M&=h-1,M+=h):M=0,k++,0==--L[_]){if(_===C)break;_=t[n+d[k]]}if(T<_&&(M&v)!==m){for(0===I&&(I=T),g+=A,P=1<<(O=_-I);O+I<C&&!((P-=L[O+I])<=0);)O++,P<<=1;if(E+=1<<O,1===e&&852<E||2===e&&592<E)return 1;u[m=M&v]=T<<24|O<<16|g-c}}return 0!==M&&(u[g+M]=_-I<<24|64<<16),f.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=256,o=286,s=30,l=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);i(h);var p=new Array(60);i(p);var m=new Array(512);i(m);var v=new Array(256);i(v);var g=new Array(29);i(g);var y,b,w,x=new Array(s);function S(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?m[e]:m[256+(e>>>7)]}function A(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function C(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,A(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function T(e,t,n){C(e,n[2*t],n[2*t+1])}function O(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function I(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=l;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=O(a[s]++,s))}}function P(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function E(e){8<e.bi_valid?A(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function M(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function D(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&M(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!M(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function R(e,t,n){var r,i,o,s,l=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?T(e,i,t):(T(e,(o=v[i])+a+1,t),0!==(s=u[o])&&C(e,i-=g[o],s),T(e,o=k(--r),n),0!==(s=c[o])&&C(e,r-=x[o],s)),l<e.last_lit;);T(e,256,t)}function L(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)D(e,a,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,D(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(a=0;a<=l;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)m<(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)&&(a=m,v++),u[2*r+1]=a,c<r||(e.bl_count[a]++,o=0,p<=r&&(o=h[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(d[2*r+1]+o)));if(0!==v){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)c<(i=e.heap[--n])||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),I(a,c,e.bl_count)}function N(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function j(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)for(;T(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(T(e,i,e.bl_tree),s--),T(e,16,e.bl_tree),C(e,s-3,2)):s<=10?(T(e,17,e.bl_tree),C(e,s-3,3)):(T(e,18,e.bl_tree),C(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}i(x);var F=!1;function z(e,t,n,i){var a,o,s;C(e,0+(i?1:0),3),o=t,s=n,E(a=e),A(a,s),A(a,~s),r.arraySet(a.pending_buf,a.window,o,s,a.pending),a.pending+=s}n._tr_init=function(e){F||(function(){var e,t,n,r,i,a=new Array(16);for(r=n=0;r<28;r++)for(g[r]=n,e=0;e<1<<u[r];e++)v[n++]=r;for(v[n-1]=r,r=i=0;r<16;r++)for(x[r]=i,e=0;e<1<<c[r];e++)m[i++]=r;for(i>>=7;r<s;r++)for(x[r]=i<<7,e=0;e<1<<c[r]-7;e++)m[256+i++]=r;for(t=0;t<=l;t++)a[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,a[8]++;for(;e<=255;)h[2*e+1]=9,e++,a[9]++;for(;e<=279;)h[2*e+1]=7,e++,a[7]++;for(;e<=287;)h[2*e+1]=8,e++,a[8]++;for(I(h,287,a),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=O(e,5);y=new S(h,u,257,o,l),b=new S(p,c,0,s,l),w=new S(new Array(0),d,0,19,7)}(),F=!0),e.l_desc=new _(e.dyn_ltree,y),e.d_desc=new _(e.dyn_dtree,b),e.bl_desc=new _(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,P(e)},n._tr_stored_block=z,n._tr_flush_block=function(e,t,n,r){var i,o,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?z(e,t,n,r):4===e.strategy||o===i?(C(e,2+(r?1:0),3),R(e,h,p)):(C(e,4+(r?1:0),3),function(e,t,n,r){var i;for(C(e,t-257,5),C(e,n-1,5),C(e,r-4,4),i=0;i<r;i++)C(e,e.bl_tree[2*f[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),R(e,e.dyn_ltree,e.dyn_dtree)),P(e),r&&E(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+a+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;C(e,2,3),T(e,256,h),16===(t=e).bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e){if(!e.setImmediate){var t,n,i,a,o=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,t="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:e,args:n};return s[o]=i,t(o),o++},c.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,n){(function(e){(function(){var n=/[\\^$.*+?()[\]{}|]/g,r=RegExp(n.source),i="object"==typeof e&&e&&e.Object===Object&&e,a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")(),s=Object.prototype.toString,l=o.Symbol,u=l?l.prototype:void 0,c=u?u.toString:void 0;function d(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==s.call(t))return c?c.call(e):"";var t,n=e+"";return"0"==n&&1/e==-1/0?"-0":n}t.exports=function(e){var t;return(e=null==(t=e)?"":d(t))&&r.test(e)?e.replace(n,"\\$&"):e}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,n){(function(e){(function(){var r="[object Arguments]",i="[object Map]",a="[object Object]",o="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,u=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[r]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[a]=p["[object RegExp]"]=p[o]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y="object"==typeof n&&n&&!n.nodeType&&n,b=y&&"object"==typeof t&&t&&!t.nodeType&&t,w=b&&b.exports===y&&m.process,x=function(){try{return w&&w.binding("util")}catch(e){}}(),S=x&&x.isTypedArray;function _(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function k(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function A(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function C(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var O,I,P,E=Array.prototype,M=Function.prototype,D=Object.prototype,R=g["__core-js_shared__"],L=(O=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",N=M.toString,j=D.hasOwnProperty,F=D.toString,z=RegExp("^"+N.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.Symbol,V=g.Uint8Array,H=D.propertyIsEnumerable,W=E.splice,U=(I=Object.keys,P=Object,function(e){return I(P(e))}),X=Ae(g,"DataView"),G=Ae(g,"Map"),Y=Ae(g,"Promise"),K=Ae(g,"Set"),q=Ae(g,"WeakMap"),Z=Ae(Object,"create"),J=De(X),Q=De(G),$=De(Y),ee=De(K),te=De(q),ne=B?B.prototype:void 0,re=ne?ne.valueOf:void 0,ie=ne?ne.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.__data__=new se;++t<n;)this.add(e[t])}function ue(e){this.__data__=new oe(e)}function ce(e,t){var n=ze(e)||Fe(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!j.call(e,a)||i&&("length"==a||Te(a,r))||n.push(a);return n}function de(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function fe(e,t,n,r){return pe(e,function(e,i,a){t(r,e,n(e),a)}),r}ae.prototype.clear=function(){this.__data__=Z?Z(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Z){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return j.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:j.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[]},oe.prototype.delete=function(e){var t=this.__data__,n=de(t,e);return!(n<0||(n==t.length-1?t.pop():W.call(t,n,1),0))},oe.prototype.get=function(e){var t=this.__data__,n=de(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return de(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=de(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},se.prototype.clear=function(){this.__data__={hash:new ae,map:new(G||oe),string:new ae}},se.prototype.delete=function(e){return ke(this,e).delete(e)},se.prototype.get=function(e){return ke(this,e).get(e)},se.prototype.has=function(e){return ke(this,e).has(e)},se.prototype.set=function(e,t){return ke(this,e).set(e,t),this},le.prototype.add=le.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},le.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new oe},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this;n=this.__data__=new se(r)}return n.set(e,t),this};var he,pe=(he=function(e,t){return e&&me(e,t,Ye)},function(e,t){if(null==e)return e;if(!Be(e))return he(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),me=function(){return function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e}}();function ve(e,t){for(var n=0,r=(t=Oe(t,e)?[t]:Se(t)).length;null!=e&&n<r;)e=e[Me(t[n++])];return n&&n==r?e:void 0}function ge(e,t){return null!=e&&t in Object(e)}function ye(e,t,n,s,l){return e===t||(null==e||null==t||!We(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,s,l,u){var c=ze(e),d=ze(t),f="[object Array]",h="[object Array]";c||(f=(f=Ce(e))==r?a:f),d||(h=(h=Ce(t))==r?a:h);var p=f==a&&!A(e),m=h==a&&!A(t),v=f==h;if(v&&!p)return u||(u=new ue),c||Ge(e)?_e(e,t,n,s,l,u):function(e,t,n,r,a,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new V(e),new V(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return je(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=C;case o:var c=2&s;if(u||(u=T),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var f=_e(u(e),u(t),r,a,s,l);return l.delete(e),f;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,t,f,n,s,l,u);if(!(2&l)){var g=p&&j.call(e,"__wrapped__"),y=m&&j.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,w=y?t.value():t;return u||(u=new ue),n(b,w,s,l,u)}}return!!v&&(u||(u=new ue),function(e,t,n,r,i,a){var o=2&i,s=Ye(e),l=s.length;if(l!=Ye(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:j.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){var p=e[c=s[u]],m=t[c];if(r)var v=o?r(m,p,c,t,e,a):r(p,m,c,e,t,a);if(!(void 0===v?p===m||n(p,m,r,i,a):v)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,s,l,u))}(e,t,ye,n,s,l))}function be(e){return!(!We(e)||(t=e,L&&L in t))&&(Ve(e)||A(e)?z:f).test(De(e));var t}function we(e){return"function"==typeof e?e:null==e?Ke:"object"==typeof e?ze(e)?(t=e[0],n=e[1],Oe(t)&&Ie(n)?Pe(Me(t),n):function(e){var r,i,a,o,s=(i=t,void 0===(o=null==(r=e)?void 0:ve(r,i))?a:o);return void 0===s&&s===n?function(e,t){return null!=e&&function(e,t,n){for(var r,i=-1,a=(t=Oe(t,e)?[t]:Se(t)).length;++i<a;){var o=Me(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||!!(a=e?e.length:0)&&He(a)&&Te(o,a)&&(ze(e)||Fe(e))}(e,t,ge)}(e,t):ye(n,s,void 0,3)}):function(e){var t=function(e){for(var t=Ye(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ie(i)]}return t}(e);return 1==t.length&&t[0][2]?Pe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,a=i;if(null==e)return!a;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var s=(o=n[i])[0],l=e[s],u=o[1];if(o[2]){if(void 0===l&&!(s in e))return!1}else{var c,d=new ue;if(!(void 0===c?ye(u,l,r,3,d):c))return!1}}return!0}(n,0,t)}}(e):Oe(r=e)?(i=Me(r),function(e){return null==e?void 0:e[i]}):function(e){return function(t){return ve(t,e)}}(r);var t,n,r,i}function xe(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||D))return U(e);var t,n,r=[];for(var i in Object(e))j.call(e,i)&&"constructor"!=i&&r.push(i);return r}function Se(e){return ze(e)?e:Ee(e)}function _e(e,t,n,r,i,a){var o=2&i,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,f=1&i?new le:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var h=e[c],p=t[c];if(r)var m=o?r(p,h,c,t,e,a):r(h,p,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!k(t,function(e,t){if(!f.has(t)&&(h===e||n(h,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(h!==p&&!n(h,p,r,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ke(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ae(e,t){var n,r,i=(r=t,null==(n=e)?void 0:n[r]);return be(i)?i:void 0}var Ce=function(e){return F.call(e)};function Te(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e,t){if(ze(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xe(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ie(e){return e==e&&!We(e)}function Pe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(X&&"[object DataView]"!=Ce(new X(new ArrayBuffer(1)))||G&&Ce(new G)!=i||Y&&"[object Promise]"!=Ce(Y.resolve())||K&&Ce(new K)!=o||q&&"[object WeakMap]"!=Ce(new q))&&(Ce=function(e){var t=F.call(e),n=t==a?e.constructor:void 0,r=n?De(n):void 0;if(r)switch(r){case J:return"[object DataView]";case Q:return i;case $:return"[object Promise]";case ee:return o;case te:return"[object WeakMap]"}return t});var Ee=Ne(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Xe(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(c,function(e,t,r,i){n.push(r?i.replace(d,"$1"):t||e)}),n});function Me(e){if("string"==typeof e||Xe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function De(e){if(null!=e){try{return N.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Re,Le=(Re=function(e,t,n){j.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n={};return(ze(e)?_:fe)(e,Re,we(t),n)});function Ne(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Ne.Cache||se),n}function je(e,t){return e===t||e!=e&&t!=t}function Fe(e){return Ue(t=e)&&Be(t)&&j.call(e,"callee")&&(!H.call(e,"callee")||F.call(e)==r);var t}Ne.Cache=se;var ze=Array.isArray;function Be(e){return null!=e&&He(e.length)&&!Ve(e)}function Ve(e){var t=We(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ue(e){return!!e&&"object"==typeof e}function Xe(e){return"symbol"==typeof e||Ue(e)&&"[object Symbol]"==F.call(e)}var Ge=S?function(e){return function(t){return e(t)}}(S):function(e){return Ue(e)&&He(e.length)&&!!p[F.call(e)]};function Ye(e){return Be(e)?ce(e):xe(e)}function Ke(e){return e}t.exports=Le}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==r.call(e)}},{}],445:[function(e,t,n){(function(e){(function(){var r="[object Arguments]",i="[object Map]",a="[object Object]",o="[object Set]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[r]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[i]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u[o]=u["[object String]"]=u["[object WeakMap]"]=!1;var c="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),h="object"==typeof n&&n&&!n.nodeType&&n,p=h&&"object"==typeof t&&t&&!t.nodeType&&t,m=p&&p.exports===h,v=m&&c.process,g=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),y=g&&g.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function w(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function x(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var S,_,k,A=Array.prototype,C=Function.prototype,T=Object.prototype,O=f["__core-js_shared__"],I=C.toString,P=T.hasOwnProperty,E=(S=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",M=T.toString,D=RegExp("^"+I.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=m?f.Buffer:void 0,L=f.Symbol,N=f.Uint8Array,j=T.propertyIsEnumerable,F=A.splice,z=L?L.toStringTag:void 0,B=Object.getOwnPropertySymbols,V=R?R.isBuffer:void 0,H=(_=Object.keys,k=Object,function(e){return _(k(e))}),W=ge(f,"DataView"),U=ge(f,"Map"),X=ge(f,"Promise"),G=ge(f,"Set"),Y=ge(f,"WeakMap"),K=ge(Object,"create"),q=xe(W),Z=xe(U),J=xe(X),Q=xe(G),$=xe(Y),ee=L?L.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function oe(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){var n=ke(e),r=!n&&_e(e),i=!n&&!r&&Ae(e),a=!n&&!r&&!i&&Pe(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!P.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||we(u,l))||s.push(u);return s}function le(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=P.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(a){}var i=M.call(e);return r&&(t?e[z]=n:delete e[z]),i}(e):(t=e,M.call(t));var t}function ce(e){return Ie(e)&&ue(e)==r}function de(e,t,n,s,l){return e===t||(null==e||null==t||!Ie(e)&&!Ie(t)?e!=e&&t!=t:function(e,t,n,s,l,u){var c=ke(e),d=ke(t),f=c?"[object Array]":be(e),h=d?"[object Array]":be(t),p=(f=f==r?a:f)==a,m=(h=h==r?a:h)==a,v=f==h;if(v&&Ae(e)){if(!Ae(t))return!1;c=!0,p=!1}if(v&&!p)return u||(u=new oe),c||Pe(e)?pe(e,t,n,s,l,u):function(e,t,n,r,a,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new N(e),new N(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Se(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=w;case o:var c=1&r;if(u||(u=x),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;r|=2,l.set(e,t);var f=pe(u(e),u(t),r,a,s,l);return l.delete(e),f;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,f,n,s,l,u);if(!(1&n)){var g=p&&P.call(e,"__wrapped__"),y=m&&P.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,S=y?t.value():t;return u||(u=new oe),l(b,S,n,s,u)}}return!!v&&(u||(u=new oe),function(e,t,n,r,i,a){var o=1&n,s=me(e),l=s.length;if(l!=me(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:P.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){var p=e[c=s[u]],m=t[c];if(r)var v=o?r(m,p,c,t,e,a):r(p,m,c,e,t,a);if(!(void 0===v?p===m||i(p,m,n,r,a):v)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,s,l,u))}(e,t,n,s,de,l))}function fe(e){return!(!Oe(e)||(t=e,E&&E in t))&&(Ce(e)?D:s).test(xe(e));var t}function he(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||T))return H(e);var t,n,r=[];for(var i in Object(e))P.call(e,i)&&"constructor"!=i&&r.push(i);return r}function pe(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,f=2&n?new ae:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var h=e[c],p=t[c];if(r)var m=o?r(p,h,c,t,e,a):r(h,p,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!b(t,function(e,t){if(o=t,!f.has(o)&&(h===e||i(h,e,n,r,a)))return f.push(t);var o})){d=!1;break}}else if(h!==p&&!i(h,p,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function me(e){return n=ye,r=Ee(t=e),ke(t)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(t));var t,n,r}function ve(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ge(e,t){var n,r,i=(r=t,null==(n=e)?void 0:n[r]);return fe(i)?i:void 0}ne.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return P.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:P.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=le(t,e);return!(n<0||(n==t.length-1?t.pop():F.call(t,n,1),--this.size,0))},re.prototype.get=function(e){var t=this.__data__,n=le(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return le(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(U||re),string:new ne}},ie.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ve(this,e).get(e)},ie.prototype.has=function(e){return ve(this,e).has(e)},ie.prototype.set=function(e,t){var n=ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.add=ae.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ae.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.clear=function(){this.__data__=new re,this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},oe.prototype.get=function(e){return this.__data__.get(e)},oe.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!U||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=B?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(B(e),function(t){return j.call(e,t)}))}:function(){return[]},be=ue;function we(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function xe(e){if(null!=e){try{return I.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Se(e,t){return e===t||e!=e&&t!=t}(W&&"[object DataView]"!=be(new W(new ArrayBuffer(1)))||U&&be(new U)!=i||X&&"[object Promise]"!=be(X.resolve())||G&&be(new G)!=o||Y&&"[object WeakMap]"!=be(new Y))&&(be=function(e){var t=ue(e),n=t==a?e.constructor:void 0,r=n?xe(n):"";if(r)switch(r){case q:return"[object DataView]";case Z:return i;case J:return"[object Promise]";case Q:return o;case $:return"[object WeakMap]"}return t});var _e=ce(function(){return arguments}())?ce:function(e){return Ie(e)&&P.call(e,"callee")&&!j.call(e,"callee")},ke=Array.isArray,Ae=V||function(){return!1};function Ce(e){if(!Oe(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Pe=y?function(e){return function(t){return e(t)}}(y):function(e){return Ie(e)&&Te(e.length)&&!!u[ue(e)]};function Ee(e){return null!=(t=e)&&Te(t.length)&&!Ce(t)?se(e):he(e);var t}t.exports=function(e,t){return de(e,t)}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,n){(function(e){(function(){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")(),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,l=i.Symbol,u=l?l.toStringTag:void 0;function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=o.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(a){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i}(e):(t=e,s.call(t));var t}t.exports=function(e){if(n=typeof(t=e),null==t||"object"!=n&&"function"!=n)return!1;var t,n,r=c(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,n){t.exports=function(e){return null==e}},{}],448:[function(e,t,n){t.exports=function(e){return void 0===e}},{}],449:[function(e,t,n){(function(e){(function(){var n=/^\[object .+?Constructor\]$/,r="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();function o(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n){for(var r=e.length,i=n+-1;++i<r;)if(t(e[i],i,e))return i;return-1}(e,s,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function s(e){return e!=e}function l(e,t){return e.has(t)}function u(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var c,d=Array.prototype,f=Function.prototype,h=Object.prototype,p=a["__core-js_shared__"],m=(c=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",v=f.toString,g=h.hasOwnProperty,y=h.toString,b=RegExp("^"+v.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.splice,x=M(a,"Map"),S=M(a,"Set"),_=M(Object,"create");function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.__data__=new C;++t<n;)this.add(e[t])}function O(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function I(e){return!(!D(e)||(i=e,m&&m in i))&&(t=e,r=D(t)?y.call(t):"","[object Function]"==r||"[object GeneratorFunction]"==r||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?b:n).test(function(e){if(null!=e){try{return v.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t,r,i}k.prototype.clear=function(){this.__data__=_?_(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return g.call(t,e)?t[e]:void 0},k.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:g.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this},A.prototype.clear=function(){this.__data__=[]},A.prototype.delete=function(e){var t=this.__data__,n=O(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),0))},A.prototype.get=function(e){var t=this.__data__,n=O(t,e);return n<0?void 0:t[n][1]},A.prototype.has=function(e){return O(this.__data__,e)>-1},A.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new k,map:new(x||A),string:new k}},C.prototype.delete=function(e){return E(this,e).delete(e)},C.prototype.get=function(e){return E(this,e).get(e)},C.prototype.has=function(e){return E(this,e).has(e)},C.prototype.set=function(e,t){return E(this,e).set(e,t),this},T.prototype.add=T.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},T.prototype.has=function(e){return this.__data__.has(e)};var P=S&&1/u(new S([,-0]))[1]==1/0?function(e){return new S(e)}:function(){};function E(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function M(e,t){var n,r,i=(r=t,null==(n=e)?void 0:n[r]);return I(i)?i:void 0}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,i=o,a=e.length,s=!0,c=[],d=c;if(a>=200){var f=P(e);if(f)return u(f);s=!1,i=l,d=new T}else d=c;e:for(;++r<a;){var h=e[r],p=h;if(h=0!==h?h:0,s&&p==p){for(var m=d.length;m--;)if(d[m]===p)continue e;c.push(h)}else i(d,p,n)||(d!==c&&d.push(p),c.push(h))}return c}(e):[]}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,n){var r=e("inherits"),i=e("hash-base"),a=e("safe-buffer").Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function u(e,t,n,r,i,a,o){return l(e+(t&n|~t&r)+i+a|0,o)+t|0}function c(e,t,n,r,i,a,o){return l(e+(t&r|n&~r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return l(e+(t^n^r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return l(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=u(n,r,i,a,e[0],3614090360,7),a=u(a,n,r,i,e[1],3905402710,12),i=u(i,a,n,r,e[2],606105819,17),r=u(r,i,a,n,e[3],3250441966,22),n=u(n,r,i,a,e[4],4118548399,7),a=u(a,n,r,i,e[5],1200080426,12),i=u(i,a,n,r,e[6],2821735955,17),r=u(r,i,a,n,e[7],4249261313,22),n=u(n,r,i,a,e[8],1770035416,7),a=u(a,n,r,i,e[9],2336552879,12),i=u(i,a,n,r,e[10],4294925233,17),r=u(r,i,a,n,e[11],2304563134,22),n=u(n,r,i,a,e[12],1804603682,7),a=u(a,n,r,i,e[13],4254626195,12),i=u(i,a,n,r,e[14],2792965006,17),n=c(n,r=u(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=c(a,n,r,i,e[6],3225465664,9),i=c(i,a,n,r,e[11],643717713,14),r=c(r,i,a,n,e[0],3921069994,20),n=c(n,r,i,a,e[5],3593408605,5),a=c(a,n,r,i,e[10],38016083,9),i=c(i,a,n,r,e[15],3634488961,14),r=c(r,i,a,n,e[4],3889429448,20),n=c(n,r,i,a,e[9],568446438,5),a=c(a,n,r,i,e[14],3275163606,9),i=c(i,a,n,r,e[3],4107603335,14),r=c(r,i,a,n,e[8],1163531501,20),n=c(n,r,i,a,e[13],2850285829,5),a=c(a,n,r,i,e[2],4243563512,9),i=c(i,a,n,r,e[7],1735328473,14),n=d(n,r=c(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=d(a,n,r,i,e[8],2272392833,11),i=d(i,a,n,r,e[11],1839030562,16),r=d(r,i,a,n,e[14],4259657740,23),n=d(n,r,i,a,e[1],2763975236,4),a=d(a,n,r,i,e[4],1272893353,11),i=d(i,a,n,r,e[7],4139469664,16),r=d(r,i,a,n,e[10],3200236656,23),n=d(n,r,i,a,e[13],681279174,4),a=d(a,n,r,i,e[0],3936430074,11),i=d(i,a,n,r,e[3],3572445317,16),r=d(r,i,a,n,e[6],76029189,23),n=d(n,r,i,a,e[9],3654602809,4),a=d(a,n,r,i,e[12],3873151461,11),i=d(i,a,n,r,e[15],530742520,16),n=f(n,r=d(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,n,r,i,e[7],1126891415,10),i=f(i,a,n,r,e[14],2878612391,15),r=f(r,i,a,n,e[5],4237533241,21),n=f(n,r,i,a,e[12],1700485571,6),a=f(a,n,r,i,e[3],2399980690,10),i=f(i,a,n,r,e[10],4293915773,15),r=f(r,i,a,n,e[1],2240044497,21),n=f(n,r,i,a,e[8],1873313359,6),a=f(a,n,r,i,e[15],4264355552,10),i=f(i,a,n,r,e[6],2734768916,15),r=f(r,i,a,n,e[13],1309151649,21),n=f(n,r,i,a,e[4],4149444226,6),a=f(a,n,r,i,e[11],3174756917,10),i=f(i,a,n,r,e[2],718787259,15),r=f(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,n){var r=e("bn.js"),i=e("brorand");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var u=e.shrn(l),c=s.toRed(a);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var f=d.toRed(a).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(c)){for(var h=1;h<l;h++){if(0===(f=f.redSqr()).cmp(o))return!1;if(0===f.cmp(c))break}if(h===l)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var l=e.shrn(s),u=o.toRed(i);t>0;t--){var c=this._randrange(new r(2),o),d=e.gcd(c);if(0!==d.cmpn(1))return d;var f=c.toRed(i).redPow(l);if(0!==f.cmp(a)&&0!==f.cmp(u)){for(var h=1;h<s;h++){if(0===(f=f.redSqr()).cmp(a))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(u))break}if(h===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(e,t,n){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,n){var r=n;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],455:[function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,n){var r=e("asn1.js");n.certificate=e("./certificate");var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=i;var a=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});n.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});n.PrivateKey=l;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=u;var c=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=c,n.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=d;var f=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,t,n){var r=e("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),l=r.define("RelativeDistinguishedName",function(){this.setof(a)}),u=r.define("RDNSequence",function(){this.seqof(l)}),c=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":170}],458:[function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),s=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var n,u=e.toString(),c=u.match(r);if(c){var d="aes"+c[1],f=l.from(c[2],"hex"),h=l.from(c[3].replace(/[\r\n]/g,""),"base64"),p=o(t,f.slice(0,8),parseInt(c[1],10)).key,m=[],v=s.createDecipheriv(d,p,f);m.push(v.update(h)),m.push(v.final()),n=l.concat(m)}else{var g=u.match(a);n=l.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:n}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,n){var r=e("./asn1"),i=e("./aesid.json"),a=e("./fixProc"),o=e("browserify-aes"),s=e("pbkdf2"),l=e("safe-buffer").Buffer;function u(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var n,u,c,d,f,h,p,m,v,g,y,b,w,x=a(e,t),S=x.tag,_=x.data;switch(S){case"CERTIFICATE":u=r.certificate.decode(_,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(_,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":c=_=r.EncryptedPrivateKey.decode(_,"der"),d=t,f=c.algorithm.decrypt.kde.kdeparams.salt,h=parseInt(c.algorithm.decrypt.kde.kdeparams.iters.toString(),10),p=i[c.algorithm.decrypt.cipher.algo.join(".")],m=c.algorithm.decrypt.cipher.iv,v=c.subjectPrivateKey,g=parseInt(p.split("-")[1],10)/8,y=s.pbkdf2Sync(d,f,h,g,"sha1"),b=o.createDecipheriv(p,y,m),(w=[]).push(b.update(v)),w.push(b.final()),_=l.concat(w);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(_,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(_,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(_,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(_,"der")};case"EC PRIVATE KEY":return{curve:(_=r.ECPrivateKey.decode(_,"der")).parameters.value,privateKey:_.privateKey};default:throw new Error("unknown key type "+S)}}t.exports=u,u.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,n){(function(n){(function(){var r,i,a=e("safe-buffer").Buffer,o=e("./precondition"),s=e("./default-encoding"),l=e("./sync"),u=e("./to-buffer"),c=n.crypto&&n.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(){return i||(i=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout)}function p(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)}).then(function(e){return a.from(e)})}t.exports=function(e,t,i,m,v,g){"function"==typeof v&&(g=v,v=void 0);var y,b,w=d[(v=v||"sha1").toLowerCase()];if(w&&"function"==typeof n.Promise){if(o(i,m),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");y=function(e){if(n.process&&!n.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=p(r=r||a.alloc(8),r,10,128,e).then(function(){return!0}).catch(function(){return!1});return f[e]=t,t}(w).then(function(n){return n?p(e,t,i,m,w):l(e,t,i,m,v)}),b=g,y.then(function(e){h()(function(){b(null,e)})},function(e){h()(function(){b(e)})})}else h()(function(){var n;try{n=l(e,t,i,m,v)}catch(y){return g(y)}g(null,n)})}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,n){(function(e,n){(function(){var r;r=n.process&&n.process.browser?"utf-8":n.process&&n.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=r}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,n){var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,n){var r=e("create-hash/md5"),i=e("ripemd160"),a=e("sha.js"),o=e("safe-buffer").Buffer,s=e("./precondition"),l=e("./default-encoding"),u=e("./to-buffer"),c=o.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=s(t):t.length<l&&(t=o.concat([t,c],l));for(var u=o.allocUnsafe(l+d[e]),f=o.allocUnsafe(l+d[e]),h=0;h<l;h++)u[h]=54^t[h],f[h]=92^t[h];var p=o.allocUnsafe(l+n+4);u.copy(p,0,0,l),this.ipad1=p,this.ipad2=u,this.opad=f,this.alg=e,this.blocksize=l,this.hash=s,this.size=d[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,i){s(n,r);var a=new f(i=i||"sha1",e=u(e,l,"Password"),(t=u(t,l,"Salt")).length),c=o.allocUnsafe(r),h=o.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,m=d[i],v=Math.ceil(r/m),g=1;g<=v;g++){h.writeUInt32BE(g,t.length);for(var y=a.run(h,a.ipad1),b=y,w=1;w<n;w++){b=a.run(b,a.ipad2);for(var x=0;x<m;x++)y[x]^=b[x]}y.copy(c,p),p+=m}return c}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,n){var r=e("safe-buffer").Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){(function(){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick(function(){t.apply(null,a)})}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(n){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,c=[],d=!1,f=-1;function h(){d&&u&&(d=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!d){var e=l(h);d=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(n){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||d||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],468:[function(e,t,n){n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){var r=e("create-hash"),i=e("safe-buffer").Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(e,t,n){var r=e("parse-asn1"),i=e("./mgf"),a=e("./xor"),o=e("bn.js"),s=e("browserify-rsa"),l=e("create-hash"),u=e("./withPublic"),c=e("safe-buffer").Buffer;t.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var f,h=r(e),p=h.modulus.byteLength();if(t.length>p||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=n?u(new o(t),h):s(t,h);var m=c.alloc(p-f.length);if(f=c.concat([m,f],p),4===d)return function(e,t){var n=e.modulus.byteLength(),r=l("sha1").update(c.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),u=t.slice(o+1),d=a(s,i(u,o)),f=a(u,i(d,n-o-1));if(function(e,t){e=c.from(e),t=c.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,f.slice(0,o)))throw new Error("decryption error");for(var h=o;0===f[h];)h++;if(1!==f[h++])throw new Error("decryption error");return f.slice(h)}(h,f);if(1===d)return function(e,t,n){for(var r=t.slice(0,2),i=2,a=0;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(i)}(0,f,n);if(3===d)return f;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,n){var r=e("parse-asn1"),i=e("randombytes"),a=e("create-hash"),o=e("./mgf"),s=e("./xor"),l=e("bn.js"),u=e("./withPublic"),c=e("browserify-rsa"),d=e("safe-buffer").Buffer;t.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var h,p=r(e);if(4===f)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=a("sha1").update(d.alloc(0)).digest(),c=u.length,f=2*c;if(r>n-f-2)throw new Error("message too long");var h=d.alloc(n-r-f-2),p=n-c-1,m=i(c),v=s(d.concat([u,h,d.alloc(1,1),t],p),o(m,p)),g=s(m,o(v,c));return new l(d.concat([d.alloc(1),g,v],n))}(p,t);else if(1===f)h=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");return r=n?d.alloc(o-a-3,255):function(e){for(var t,n=d.allocUnsafe(e),r=0,a=i(2*e),o=0;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3),new l(d.concat([d.from([0,n?1:2]),r,d.alloc(1),t],o))}(p,t,n);else{if(3!==f)throw new Error("unknown padding");if((h=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?c(h,p):u(h,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,n){var r=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,t,n){(function(n,r){(function(){var i=e("safe-buffer").Buffer,a=r.crypto||r.msCrypto;a&&a.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(r.slice(o,o+65536));else a.getRandomValues(r);return"function"==typeof t?n.nextTick(function(){t(null,r)}):r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,n){(function(t,r){(function(){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=e("safe-buffer"),o=e("randombytes"),s=a.Buffer,l=a.kMaxLength,u=r.crypto||r.msCrypto,c=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>l)throw new RangeError("buffer too small")}function h(e,n,r,i){if(t.browser){var a=e.buffer,s=new Uint8Array(a,n,r);return u.getRandomValues(s),i?void t.nextTick(function(){i(null,e)}):e}if(!i)return o(r).copy(e,n),e;o(r,function(t,r){if(t)return i(t);r.copy(e,n),i(null,e)})}u&&u.getRandomValues||!t.browser?(n.randomFill=function(e,t,n,i){if(!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(t,e.length),f(n,t,e.length),h(e,t,n,i)},n.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),h(e,t,n)}):(n.randomFill=i,n.randomFillSync=i)}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,(a=n,o=r,s=i,"string"==typeof t?t:t(a,o,s)))||this;var a,o,s}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,i,o,s,l,u;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",s=e,l=" argument",(void 0===u||u>s.length)&&(u=s.length),s.substring(u-l.length,u)===l)o="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(a(t,"type"))}return o+". Received type ".concat(typeof n)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},{}],478:[function(e,t,n){(function(n){(function(){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(u,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var l=o[s];u.prototype[l]||(u.prototype[l]=a.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,n){t.exports=i;var r=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e("inherits")(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,n){(function(n,r){(function(){var i;t.exports=A,A.ReadableState=k,e("events").EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("buffer").Buffer,u=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=e("util");a=c&&c.debuglog?c.debuglog("stream"):function(){};var d,f,h,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),v=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(A,s);var S=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function k(t,n,r){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=e("string_decoder/").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function A(t){if(i=i||e("./_stream_duplex"),!(this instanceof A))return new A(t);var n=this instanceof i;this._readableState=new k(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(e,t,n,r,i){a("readableAddChunk",t);var o,s,c,d,f,h=e._readableState;if(null===t)h.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,h);else if(i||(s=h,f=c=t,l.isBuffer(f)||f instanceof u||"string"==typeof c||void 0===c||s.objectMode||(d=new y("chunk",["string","Buffer","Uint8Array"],c)),o=d),o)S(e,o);else if(h.objectMode||t&&t.length>0)if("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r)h.endEmitted?S(e,new x):T(e,h,t,!0);else if(h.ended)S(e,new b);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!n?(t=h.decoder.write(t),h.objectMode||0!==t.length?T(e,h,t,!1):E(e,h)):T(e,h,t,!1)}else r||(h.reading=!1,E(e,h));return!h.ended&&(h.length<h.highWaterMark||0===h.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&I(e)),E(e,t)}function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function I(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function E(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){a("readable nexttick read 0"),e.read(0)}function L(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=m.destroy,A.prototype._undestroy=m.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},A.prototype.unshift=function(e){return C(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(t){d||(d=e("string_decoder/").StringDecoder);var n=new d(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},A.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):I(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t))),null===(r=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},A.prototype._read=function(e){S(this,new w("_read()"))},A.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?v:u;function l(t,n){a("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",f),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function u(){a("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",l);var c=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,N(e))}}(r);e.on("drain",c);var d=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!d&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){a("onerror",t),v(),e.removeListener("error",h),0===o(e,"error")&&S(e,t)}function p(){e.removeListener("finish",m),v()}function m(){a("onfinish"),e.removeListener("close",p),v()}function v(){a("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",r),i.flowing||(a("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},A.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?I(this):i.reading||n.nextTick(R,this))),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(D,this),r},A.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(D,this),t},A.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(a("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,n.nextTick(L,e,t))),r.paused=!1,this},A.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=j,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(t,n){return void 0===h&&(h=e("./internal/streams/from")),h(A,t,n)})}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,n){t.exports=c;var r=e("../errors").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(t,n){f(e,t,n)})}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,n){(function(n,r){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var a;t.exports=A,A.WritableState=k;var o,s={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),u=e("buffer").Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,x=h.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function _(){}function k(t,r,o){a=a||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=r instanceof a),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r,i=e._writableState,a=i.sync,o=i.writecb;if("function"!=typeof o)throw new v;if((r=i).writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)!function(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(E,e,t),e._writableState.errorEmitted=!0,S(e,i)):(a(i),e._writableState.errorEmitted=!0,S(e,i),E(e,t))}(e,i,a,t,o);else{var s=I(i)||e.destroyed;s||i.corked||i.bufferProcessing||!i.bufferedRequest||O(e,i),a?n.nextTick(T,e,i,s,o):T(e,i,s,o)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function A(t){var n=this instanceof(a=a||e("./_stream_duplex"));if(!n&&!o.call(A,this))return new A(t);this._writableState=new k(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function C(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function T(e,t,n,r){var i,a;n||(i=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),E(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,C(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(C(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit("prefinish"),E(e,t)})}function E(e,t){var r,i,a=I(t);if(a&&(r=e,(i=t).prefinished||i.finalCalled||("function"!=typeof r._final||i.destroyed?(i.prefinished=!0,r.emit("prefinish")):(i.pendingcb++,i.finalCalled=!0,n.nextTick(P,r,i))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return a}e("inherits")(A,l),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===A&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},A.prototype.pipe=function(){S(this,new g)},A.prototype.write=function(e,t,r){var i,a,o=this._writableState,s=!1,l=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return l&&!u.isBuffer(e)&&(a=e,e=u.from(a)),"function"==typeof t&&(r=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=_),o.ending?function(e,t){var r=new w;S(e,r),n.nextTick(t,r)}(this,r):(l||function(e,t,r,i){var a;return null===r?a=new b:"string"==typeof r||t.objectMode||(a=new p("chunk",["string","Buffer"],r)),!a||(S(e,a),n.nextTick(i,a),!1)}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var o=(l=r,c=i,(s=t).objectMode||!1===s.decodeStrings||"string"!=typeof l||(l=u.from(l,c)),l);r!==o&&(n=!0,i="buffer",r=o)}var s,l,c,d=t.objectMode?1:r.length;t.length+=d;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,d,r,i,a);return f}(this,o,l,e,t,r)),s},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var i,a,o,s=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=this,o=r,(a=s).ending=!0,E(i,a),o&&(a.finished?n.nextTick(o):i.once("finish",o)),a.ended=!0,i.writable=!1),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=d.destroy,A.prototype._undestroy=d.undestroy,A.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,n){(function(n){(function(){var r;function i(e,t,n){return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var r}var a=e("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var n=e[f].read();null!==n&&(e[c]=null,e[o]=null,e[s]=null,t(h(n,!1)))}}function m(e){n.nextTick(p,e)}var v=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(r={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(t,r){n.nextTick(function(){e[l]?r(e[l]):t(h(void 0,!0))})});var r,i=this[c];if(i)r=new Promise(function(e,t){return function(n,r){e.then(function(){t[u]?n(h(void 0,!0)):t[d](n,r)},r)}}(i,this));else{var a=this[f].read();if(null!==a)return Promise.resolve(h(a,!1));r=new Promise(this[d])}return this[c]=r,r}},Symbol.asyncIterator,function(){return this}),i(r,"return",function(){var e=this;return new Promise(function(t,n){e[f].destroy(null,function(e){e?n(e):t(h(void 0,!0))})})}),r),v);t.exports=function(e){var t,n=Object.create(g,(i(t={},f,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[f].read();r?(n[c]=null,n[o]=null,n[s]=null,e(h(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[c]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[c]=null,n[o]=null,n[s]=null,t(e)),void(n[l]=e)}var r=n[o];null!==r&&(n[c]=null,n[o]=null,n[s]=null,r(h(void 0,!0))),n[u]=!0}),e.on("readable",m.bind(null,n)),n}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,u=e("util").inspect,c=u&&u.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,n,r,i=l.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,l.prototype.copy.call(t,n,r),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,n){(function(e){(function(){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,a){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(a?a(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!a&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):a?(e.nextTick(r,o),a(t)):e.nextTick(r,o)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,n){var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o,s=n.readable||!1!==n.readable&&t.readable,l=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||d()},c=t._writableState&&t._writableState.finished,d=function(){l=!1,c=!0,s||a.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){s=!1,f=!0,l||a.call(t)},p=function(e){a.call(t,e)},m=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return(o=t).setHeader&&"function"==typeof o.abort?(t.on("complete",d),t.on("abort",m),t.req?v():t.on("request",v)):l&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",d),!1!==n.error&&t.on("error",p),t.on("close",m),function(){t.removeListener("complete",d),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",d),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",m)}}},{"../../../errors":477}],487:[function(e,t,n){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,n){var r,i=e("../../../errors").codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(t,n,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;t.on("close",function(){s=!0}),void 0===r&&(r=e("./end-of-stream")),r(t,{readable:n,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(e){if(!s&&!l)return l=!0,(n=t).setHeader&&"function"==typeof n.abort?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new o("pipe"));var n}}function u(e){e()}function c(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}t.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){r||(r=e),e&&o.forEach(u),a||(o.forEach(u),i(r))})});return t.reduce(c)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var a,o,s,l=(o=i,s=n,null!=(a=t).highWaterMark?a.highWaterMark:o?a[s]:null);if(null!=l){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new r(i?n:"highWaterMark",l);return Math.floor(l)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,n){t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,n){var r=function(e){var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype),s=new A(i||[]);return r(o,"_invoke",{value:x(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=u;var d={};function f(){}function h(){}function p(){}var m={};l(m,a,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(C([])));g&&g!==t&&n.call(g,a)&&(m=g);var y=p.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t(function(i,o){!function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):t.resolve(d).then(function(e){u.value=e,o(u)},function(e){return r("throw",e,o,s)})}s(l.arg)}(r,a,i,o)})}return i=i?i.then(o,o):o()}})}function x(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,o,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new w(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},b(y),l(y,s,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],493:[function(e,t,n){var r=e("buffer").Buffer,i=e("inherits"),a=e("hash-base"),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function b(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}i(h,a),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,w=0|this._a,x=0|this._b,S=0|this._c,_=0|this._d,k=0|this._e,A=0;A<80;A+=1){var C,T;A<16?(C=m(n,r,i,a,h,e[s[A]],d[0],u[A]),T=b(w,x,S,_,k,e[l[A]],f[0],c[A])):A<32?(C=v(n,r,i,a,h,e[s[A]],d[1],u[A]),T=y(w,x,S,_,k,e[l[A]],f[1],c[A])):A<48?(C=g(n,r,i,a,h,e[s[A]],d[2],u[A]),T=g(w,x,S,_,k,e[l[A]],f[2],c[A])):A<64?(C=y(n,r,i,a,h,e[s[A]],d[3],u[A]),T=v(w,x,S,_,k,e[l[A]],f[3],c[A])):(C=b(n,r,i,a,h,e[s[A]],d[4],u[A]),T=m(w,x,S,_,k,e[l[A]],f[4],c[A])),n=h,h=a,a=p(i,10),i=r,r=C,w=k,k=_,_=p(S,10),S=x,x=T}var O=this._b+i+_|0;this._b=this._c+a+k|0,this._c=this._d+h+w|0,this._d=this._e+n+x|0,this._e=this._a+r+S|0,this._a=O},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,n){(function(n){(function(){var r,i=e("buffer"),a=i.Buffer,o={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=i[r]);var s=o.Buffer={};for(r in a)a.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=a[r]);if(o.Buffer.prototype=a.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=a(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(l){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),a=e("xmlchars/xmlns/1.0/ed3");var o=r.isS,s=r.isChar,l=r.isNameStartChar,u=r.isNameChar,c=r.S_LIST,d=r.NAME_RE,f=i.isChar,h=a.isNCNameStartChar,p=a.isNCNameChar,m=a.NC_NAME_RE;const v="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:v,xmlns:g},b={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w=e=>34===e||39===e,x=[34,39],S=[...x,91,62],_=[...x,60,93],k=[61,63,...c],A=[...c,62,38,60];function C(e,t,n){switch(t){case"xml":n!==v&&e.fail(`xml prefix must be bound to ${v}.`);break;case"xmlns":n!==g&&e.fail(`xmlns prefix must be bound to ${g}.`)}switch(n){case g:e.fail(""===t?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${g}.`);break;case v:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const T=e=>m.test(e),O=e=>d.test(e);n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const I={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};n.SaxesParser=class{constructor(e){this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=h,this.nameCheck=p,this.isName=T,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const e=this.opt.additionalNamespaces;null!=e&&(function(e,t){for(const n of Object.keys(t))C(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=l,this.nameCheck=u,this.isName=O,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(void 0===n){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(b),null===(e=this.readyHandler)||void 0===e||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[I[e]]=t}off(e){this[I[e]]=void 0}makeError(e){var t;let n=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const t=this.makeError(e),n=this.errorHandler;if(void 0===n)throw t;return n(t),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const r=e.charCodeAt(n-1);!t&&(13===r||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCode11(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&8232!==n||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const n=e.charCodeAt(t+1);10!==n&&133!==n||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCodeNorm(){const e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this;const{chunk:n}=this;for(;;){const r=this.getCode(),i=-2===r,a=i?10:r;if(-1===a||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=n.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let{i:t}=this;const{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case-2:this.text+=n.slice(t,this.prevI)+"\n",t=this.i,r=10;break;case-1:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){const{chunk:e,i:t}=this;for(;;){const n=this.getCode();if(-1===n)return this.name+=e.slice(t),-1;if(!u(n))return this.name+=e.slice(t,this.prevI),-2===n?10:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(-1===e||!o(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=s,this.getCode=this.getCode10):(this.isChar=f,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;const t=this.captureTo(S);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:w(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){const e=this.captureTo(_);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:w(e)&&(this.state=5,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{const{entityReturnState:n}=this,r=this.entity+t.slice(e,this.prevI);let i;this.state=n,""===r?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(r),this.entity=""),13===n&&void 0===this.textHandler||(this.text+=i);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(l(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var e;const t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){const e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||o(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){const{chunk:e,i:t}=this;for(;;){const n=this.getCodeNorm();if(-1===n)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);const r=63===n;r||o(n)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=r?33:27):this.state=r?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(0===this.text.length){const e=this.getCodeNorm();63===e?this.state=26:o(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){const e=this.captureTo(k);if(63===e)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(o(e)||61===e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===e?30:29}}sXMLDeclEq(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");o(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");o(e)||(w(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===e)return;const t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}sXMLDeclSeparator(){const e=this.getCodeNorm();63!==e?(o(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const t=this.captureNameChars();if(-1===t)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:o(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const e=this.skipSpaces();-1!==e&&(l(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();61===e?this.state=39:o(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():l(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const e=this.getCodeNorm();w(e)?(this.q=e,this.state=40):o(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(n,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(n,this.prevI)+" ",n=this.i;break;case 60:return this.text+=t.slice(n,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(n))}}sAttribValueClosed(){const e=this.getCodeNorm();o(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:l(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(A);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}sCloseTag(){const e=this.captureNameChars();62===e?this.closeTag():o(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:n,textHandler:r}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==r){const{text:t}=this,i=n.slice(e,this.prevI);0!==t.length?(r(t+i),this.text=""):0!==i.length&&r(i)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=n.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==r&&(this.text+=n.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==r&&(this.text+=n.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:n}=this;let r=!1;e:for(;;){const i=this.getCode();switch(i){case 60:if(this.state=15,void 0!==n){const{text:r}=this,i=t.slice(e,this.prevI);0!==r.length?(n(r+i),this.text=""):0!==i.length&&n(i)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case-2:void 0!==n&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==n&&(this.text+=t.slice(e));break e;default:o(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){var n;const{prefix:r,local:i}=this.qname(e),a={name:e,prefix:r,local:i,value:t};if(this.attribList.push(a),null===(n=this.attributeHandler)||void 0===n||n.call(this,a),"xmlns"===r){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=e,C(this,i,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,C(this,"",e)}}pushAttribPlain(e,t){var n;const r={name:e,value:t};this.attribList.push(r),null===(n=this.attributeHandler)||void 0===n||n.call(this,r)}end(){var e,t;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const e=n.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:r}=this;return 0!==r.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,r),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}resolve(e){var t,n;let r=this.topNS[e];if(void 0!==r)return r;const{tags:i}=this;for(let a=i.length-1;a>=0;a--)if(r=i[a].ns[e],void 0!==r)return r;return r=this.ns[e],void 0!==r?r:null===(n=(t=this.opt).resolvePrefix)||void 0===n?void 0:n.call(t,e)}qname(e){const t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};const n=e.slice(t+1),r=e.slice(0,t);return(""===r||""===n||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){var e;const{attribList:t}=this,n=this.tag;{const{prefix:t,local:r}=this.qname(n.name);n.prefix=t,n.local=r;const i=n.uri=null!==(e=this.resolve(t))&&void 0!==e?e:"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),n.uri=t))}if(0===t.length)return;const{attributes:r}=n,i=new Set;for(const a of t){const{name:e,prefix:t,local:n}=a;let o,s;""===t?(o="xmlns"===e?g:"",s=e):(o=this.resolve(t),void 0===o&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),o=t),s=`{${o}}${n}`),i.has(s)&&this.fail(`duplicate attribute: ${s}.`),i.add(s),a.uri=o,r[e]=a}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,t=this.tag.attributes;for(const{name:n,value:r}of e)void 0!==t[n]&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this,n=this.tag;n.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,n),t.push(n),this.state=13,this.name=""}openSelfClosingTag(){var e,t,n;this.processAttribs();const{tags:r}=this,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(n=r[r.length-1])&&void 0!==n?n:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:e,name:t}=this;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");const n=this.closeTagHandler;let r=e.length;for(;r-- >0;){const r=this.tag=e.pop();if(this.topNS=r.ns,null==n||n(r),r.name===t)break;this.fail("unexpected close tag.")}0===r?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var l=o%i,u=Math.min(a-s,i-l),c=0;c<u;c++)n[l+c]=e[s+c];s+=u,(o+=u)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,n){var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function c(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+c(h,i,a,s)+l+n[f]+o[h];l=s,s=a,a=u(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=u(r)+d(p,i,a,s)+l+n[h]+o[p]|0;l=s,s=a,a=c(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,n){var r=e("inherits"),i=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function l(){this.init(),this._w=s,a.call(this,64,56)}r(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+h(n[g-15])+n[g-16];for(var y=0;y<64;++y){var b=v+f(l)+u(l,p,m)+o[y]+n[y]|0,w=d(r)+c(r,i,a)|0;v=m,m=p,p=l,l=s+b|0,s=a,a=i,i=r,r=b+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},l.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,n){var r=e("inherits"),i=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function l(){this.init(),this._w=s,a.call(this,128,112)}r(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}r(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,l=0|this._fh,y=0|this._gh,b=0|this._hh,w=0|this._al,x=0|this._bl,S=0|this._cl,_=0|this._dl,k=0|this._el,A=0|this._fl,C=0|this._gl,T=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var I=t[O-30],P=t[O-30+1],E=h(I,P),M=p(P,I),D=m(I=t[O-4],P=t[O-4+1]),R=v(P,I),L=t[O-14],N=t[O-14+1],j=t[O-32],F=t[O-32+1],z=M+N|0,B=E+L+g(z,M)|0;B=(B=B+D+g(z=z+R|0,R)|0)+j+g(z=z+F|0,F)|0,t[O]=B,t[O+1]=z}for(var V=0;V<160;V+=2){B=t[V],z=t[V+1];var H=c(n,r,i),W=c(w,x,S),U=d(n,w),X=d(w,n),G=f(s,k),Y=f(k,s),K=o[V],q=o[V+1],Z=u(s,l,y),J=u(k,A,C),Q=T+Y|0,$=b+G+g(Q,T)|0;$=($=($=$+Z+g(Q=Q+J|0,J)|0)+K+g(Q=Q+q|0,q)|0)+B+g(Q=Q+z|0,z)|0;var ee=X+W|0,te=U+H+g(ee,X)|0;b=y,T=C,y=l,C=A,l=s,A=k,s=a+$+g(k=_+Q|0,_)|0,a=i,_=S,i=r,S=x,r=n,x=w,n=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+_|0,this._el=this._el+k|0,this._fl=this._fl+A|0,this._gl=this._gl+C|0,this._hl=this._hl+T|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,x)|0,this._ch=this._ch+i+g(this._cl,S)|0,this._dh=this._dh+a+g(this._dl,_)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+l+g(this._fl,A)|0,this._gh=this._gh+y+g(this._gl,C)|0,this._hh=this._hh+b+g(this._hl,T)|0},l.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],507:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=d;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(d,o);for(var l=i(s.prototype),u=0;u<l.length;u++){var c=l[u];d.prototype[c]||(d.prototype[c]=s.prototype[c])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,n){t.exports=a;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,n){(function(n,r){(function(){var i=e("process-nextick-args");t.exports=b;var a,o=e("isarray");b.ReadableState=y,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=Object.create(e("core-util-is"));d.inherits=e("inherits");var f=e("util"),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),v=e("./internal/streams/destroy");d.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(t,n){t=t||{};var r=n instanceof(a=a||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function b(t){if(a=a||e("./_stream_duplex"),!(this instanceof b))return new b(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function w(e,t,n,r,i){var a,o,s,l,d,f=e._readableState;return null===t?(f.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}}(e,f)):(i||(o=f,d=s=t,u.isBuffer(d)||d instanceof c||"string"==typeof s||void 0===s||o.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),a=l),a?e.emit("error",a):f.objectMode||t&&t.length>0?("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?f.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,f,t,!0):f.ended?e.emit("error",new Error("stream.push() after EOF")):(f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||0!==t.length?x(e,f,t,!1):A(e,f)):x(e,f,t,!1))):r||(f.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(f)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),A(e,t)}function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=((n=e)>=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),I(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?o=t.buffer.shift():!e||e>=t.length?(o=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(n=e,r=t.buffer,i=t.decoder,n<r.head.data.length?(a=r.head.data.slice(0,n),r.head.data=r.head.data.slice(n)):a=n===r.head.data.length?r.shift():i?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(n,r):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(n,r),o=a),o);var n,r,i,a,o}function E(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},b.prototype.unshift=function(e){return w(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?E(this):_(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&E(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&E(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var l=t&&!1===t.end||e===n.stdout||e===n.stderr?b:c;function u(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",m),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function c(){h("onend"),e.end()}a.endEmitted?i.nextTick(l):r.once("end",l),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",d);var f=!1,p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==D(a.pipes,e))&&!f&&(h("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),r.pause())}function v(t){h("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){h("onfinish"),e.removeListener("close",g),b()}function b(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",r),a.flowing||(h("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=D(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):i.nextTick(T,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(h("resume"),n.flowing=!0,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,n){t.exports=o;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){l(e,t,n)}):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,n){(function(n,r,i){(function(){var a=e("process-nextick-args");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=y;var s,l=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;y.WritableState=g;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var c,d={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},m=e("./internal/streams/destroy");function v(){}function g(t,n){s=s||e("./_stream_duplex"),t=t||{};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,u=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n,r=e._writableState,i=r.sync,o=r.writecb;if((n=r).writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,r,i,t,o);else{var s=S(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),i?l(w,e,r,s,o):w(e,r,s,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(s=s||e("./_stream_duplex"),!(c.call(y,this)||this instanceof s))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,n,r){var i,a;n||(i=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n,r,i=S(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,a.nextTick(_,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}u.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===y&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i,o=this._writableState,s=!1,l=!o.objectMode&&(r=e,h.isBuffer(r)||r instanceof p);return l&&!h.isBuffer(e)&&(i=e,e=h.from(i)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var o=(l=r,u=i,(s=t).objectMode||!1===s.decodeStrings||"string"!=typeof l||(l=h.from(l,u)),l);r!==o&&(n=!0,i="buffer",r=o)}var s,l,u,c=t.objectMode?1:r.length;t.length+=c;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,c,r,i,a);return d}(this,o,l,e,t,n)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r,i,o,s=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(r=this,o=n,(i=s).ending=!0,k(r,i),o&&(i.finished?a.nextTick(o):r.once("finish",o)),i.ended=!0,r.writable=!1)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i=r.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=i,n=o,a.data.copy(t,n),o+=a.data.length,a=a.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,n){var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i(function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation"),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],526:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,n){(function(t,r){(function(){var i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),l=r[n];n<a;l=r[++n])m(l)||!w(l)?o+=" "+l:o+=" "+s(l);return o},n.deprecate=function(e,i){if(y(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation,a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(t)?r.showHidden=t:t&&n._extend(r,t),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e,t,r){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return g(i)||(i=c(e,i,r)),i}var a=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(a)return a;var o,s=Object.keys(t),l=(o={},s.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),S(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(t);if(0===s.length){if(_(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var w,k="",C=!1,T=["{","}"];return h(t)&&(C=!0,T=["[","]"]),_(t)&&(k=" [Function"+(t.name?": "+t.name:"")+"]"),b(t)&&(k=" "+RegExp.prototype.toString.call(t)),x(t)&&(k=" "+Date.prototype.toUTCString.call(t)),S(t)&&(k=" "+d(t)),0!==s.length||C&&0!=t.length?r<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),w=C?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)A(t,String(o))?a.push(f(e,t,n,r,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(f(e,t,n,r,i,!0))}),a}(e,t,r,l,s):s.map(function(n){return f(e,t,r,l,n,C)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(w,k,T)):T[0]+k+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===k(e)}function S(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function _(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.debuglog=function(e){return y(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),o[e]||(new RegExp("\\b"+e+"\\b","i").test(a)?(t.pid,o[e]=function(){n.format.apply(n,arguments)}):o[e]=function(){}),o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=h,n.isBoolean=p,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=y,n.isRegExp=b,n.isObject=w,n.isDate=x,n.isError=S,n.isFunction=_,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer"),n.log=function(){},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this)}).call(this,e("_process"),void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return d.default}});var r=f(e("./v1.js")),i=f(e("./v3.js")),a=f(e("./v4.js")),o=f(e("./v5.js")),s=f(e("./nil.js")),l=f(e("./version.js")),u=f(e("./validate.js")),c=f(e("./stringify.js")),d=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,n){function r(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,a,o){return i((s=i(i(t,e),i(r,o)))<<(l=a)|s>>>32-l,n);var s,l}function o(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function s(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let n=1732584193,a=-271733879,c=-1732584194,d=271733878;for(let r=0;r<e.length;r+=16){const t=n,f=a,h=c,p=d;n=o(n,a,c,d,e[r],7,-680876936),d=o(d,n,a,c,e[r+1],12,-389564586),c=o(c,d,n,a,e[r+2],17,606105819),a=o(a,c,d,n,e[r+3],22,-1044525330),n=o(n,a,c,d,e[r+4],7,-176418897),d=o(d,n,a,c,e[r+5],12,1200080426),c=o(c,d,n,a,e[r+6],17,-1473231341),a=o(a,c,d,n,e[r+7],22,-45705983),n=o(n,a,c,d,e[r+8],7,1770035416),d=o(d,n,a,c,e[r+9],12,-1958414417),c=o(c,d,n,a,e[r+10],17,-42063),a=o(a,c,d,n,e[r+11],22,-1990404162),n=o(n,a,c,d,e[r+12],7,1804603682),d=o(d,n,a,c,e[r+13],12,-40341101),c=o(c,d,n,a,e[r+14],17,-1502002290),a=o(a,c,d,n,e[r+15],22,1236535329),n=s(n,a,c,d,e[r+1],5,-165796510),d=s(d,n,a,c,e[r+6],9,-1069501632),c=s(c,d,n,a,e[r+11],14,643717713),a=s(a,c,d,n,e[r],20,-373897302),n=s(n,a,c,d,e[r+5],5,-701558691),d=s(d,n,a,c,e[r+10],9,38016083),c=s(c,d,n,a,e[r+15],14,-660478335),a=s(a,c,d,n,e[r+4],20,-405537848),n=s(n,a,c,d,e[r+9],5,568446438),d=s(d,n,a,c,e[r+14],9,-1019803690),c=s(c,d,n,a,e[r+3],14,-187363961),a=s(a,c,d,n,e[r+8],20,1163531501),n=s(n,a,c,d,e[r+13],5,-1444681467),d=s(d,n,a,c,e[r+2],9,-51403784),c=s(c,d,n,a,e[r+7],14,1735328473),a=s(a,c,d,n,e[r+12],20,-1926607734),n=l(n,a,c,d,e[r+5],4,-378558),d=l(d,n,a,c,e[r+8],11,-2022574463),c=l(c,d,n,a,e[r+11],16,1839030562),a=l(a,c,d,n,e[r+14],23,-35309556),n=l(n,a,c,d,e[r+1],4,-1530992060),d=l(d,n,a,c,e[r+4],11,1272893353),c=l(c,d,n,a,e[r+7],16,-155497632),a=l(a,c,d,n,e[r+10],23,-1094730640),n=l(n,a,c,d,e[r+13],4,681279174),d=l(d,n,a,c,e[r],11,-358537222),c=l(c,d,n,a,e[r+3],16,-722521979),a=l(a,c,d,n,e[r+6],23,76029189),n=l(n,a,c,d,e[r+9],4,-640364487),d=l(d,n,a,c,e[r+12],11,-421815835),c=l(c,d,n,a,e[r+15],16,530742520),a=l(a,c,d,n,e[r+2],23,-995338651),n=u(n,a,c,d,e[r],6,-198630844),d=u(d,n,a,c,e[r+7],10,1126891415),c=u(c,d,n,a,e[r+14],15,-1416354905),a=u(a,c,d,n,e[r+5],21,-57434055),n=u(n,a,c,d,e[r+12],6,1700485571),d=u(d,n,a,c,e[r+3],10,-1894986606),c=u(c,d,n,a,e[r+10],15,-1051523),a=u(a,c,d,n,e[r+1],21,-2054922799),n=u(n,a,c,d,e[r+8],6,1873313359),d=u(d,n,a,c,e[r+15],10,-30611744),c=u(c,d,n,a,e[r+6],15,-1560198380),a=u(a,c,d,n,e[r+13],21,1309151649),n=u(n,a,c,d,e[r+4],6,-145523070),d=u(d,n,a,c,e[r+11],10,-1120210379),c=u(c,d,n,a,e[r+2],15,718787259),a=u(a,c,d,n,e[r+9],21,-343485551),n=i(n,t),a=i(a,f),c=i(c,h),d=i(d,p)}return[n,a,c,d]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};n.default=c},{}],530:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},a=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};n.default=a},{"./validate.js":541}],532:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,n){let r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)};const i=new Uint8Array(16)},{}],534:[function(e,t,n){function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o);for(let r=0;r<o;++r){const t=new Uint32Array(16);for(let n=0;n<16;++n)t[n]=e[64*r+4*n]<<24|e[64*r+4*n+1]<<16|e[64*r+4*n+2]<<8|e[64*r+4*n+3];s[r]=t}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let l=0;l<o;++l){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=s[l][t];for(let t=16;t<80;++t)e[t]=i(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let a=n[0],o=n[1],u=n[2],c=n[3],d=n[4];for(let n=0;n<80;++n){const s=Math.floor(n/20),l=i(a,5)+r(s,o,u,c)+d+t[s]+e[n]>>>0;d=c,c=u,u=i(o,30)>>>0,o=a,a=l}n[0]=n[0]+a>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+u>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+d>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};n.default=a},{}],535:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r};const a=[];for(let s=0;s<256;++s)a.push((s+256).toString(16).substr(1));var o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};n.default=o},{"./validate.js":541}],536:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}let o,s,l=0,u=0;var c=function(e,t,n){let a=t&&n||0;const c=t||new Array(16);let d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||r.default)();null==d&&(d=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:u+1;const m=h-l+(p-u)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=p,s=f,h+=122192928e5;const v=(1e4*(268435455&h)+p)%4294967296;c[a++]=v>>>24&255,c[a++]=v>>>16&255,c[a++]=v>>>8&255,c[a++]=255&v;const g=h/4294967296*1e4&268435455;c[a++]=g>>>8&255,c[a++]=255&g,c[a++]=g>>>24&15|16,c[a++]=g>>>16&255,c[a++]=f>>>8|128,c[a++]=255&f;for(let r=0;r<6;++r)c[a+r]=d[r];return t||(0,i.default)(c)};n.default=c},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./md5.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v3",48,i.default);n.default=o},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){function a(e,a,o,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof a&&(a=(0,i.default)(a)),16!==a.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(a),l.set(e,a.length),l=n(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,o){s=s||0;for(let e=0;e<16;++e)o[s+e]=l[e];return o}return(0,r.default)(l)}try{a.name=e}catch(l){}return a.DNS=o,a.URL=s,a},n.URL=n.DNS=void 0;var r=a(e("./stringify.js")),i=a(e("./parse.js"));function a(e){return e&&e.__esModule?e:{default:e}}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=o;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=s},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t,n){const a=(e=e||{}).random||(e.rng||r.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.default)(a)};n.default=o},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./sha1.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v5",80,i.default);n.default=o},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./regex.js"))&&r.__esModule?r:{default:r},a=function(e){return"string"==typeof e&&i.default.test(e)};n.default=a},{"./regex.js":532}],542:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},a=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};n.default=a},{"./validate.js":541}],543:[function(e,t,n){function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
/**
          * Character classes and associated utilities for the 5th edition of XML 1.0.
          *
          * @author Louis-Dominique Dubeau
          * @license MIT
          * @copyright Louis-Dominique Dubeau
          */
Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\t\n\r -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,n){function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
/**
          * Character classes and associated utilities for the 2nd edition of XML 1.1.
          *
          * @author Louis-Dominique Dubeau
          * @license MIT
          * @copyright Louis-Dominique Dubeau
          */
Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\x01-\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",n.RESTRICTED_CHAR="\x01-\b\v\f\x0e-\x1f\x7f-\x84\x86-\x9f",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},n.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,n){
/**
          * Character class utilities for XML NS 1.0 edition 3.
          *
          * @author Louis-Dominique Dubeau
          * @license MIT
          * @copyright Louis-Dominique Dubeau
          */
function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=r,n.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)}(jRe)),jRe.exports);const zRe=xg(FRe),BRe={key:0,style:{height:"380px",position:"relative"}},VRe=yr({__name:"produtSalesDialog",props:{params:Object,visible:Boolean},emits:["update:visible"],setup(e,{emit:t}){const{t:n}=Zd(),r=e;Et("salesM");const i=t,a=vo({get:()=>r.visible,set(e){setTimeout(()=>{!e&&document.querySelector(".produtSalesDialogCrx")?.remove()}),i("update:visible",e)}}),o=Et(!1);Et({});let s=null;const l=(e,t,i)=>{(e=>{s&&s.dispose(),fn(()=>{const t=document.getElementById("sales-chart-product-crx");t.style.width="1200px",t.style.height="380px",s=Qle(t,"vintage"),s&&s.setOption(e)})})({tooltip:{trigger:"axis",formatter:function(e){return 0==e.filter(e=>e.value).length?"":lDe(e[0].name,e.map(e=>{let t="";return 1===e.seriesIndex&&(t="amount"),{color:e.color,label:e.seriesName,value:e.value,valueType:t,unit:sQ.value[r.params.site].localUnit}}))}},legend:{data:[n("info.sold"),n("info.sales")]},grid:{left:"8%",right:"8%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e}],yAxis:[{type:"value",name:n("skuExcel.sold")},{type:"value",name:`${n("info.sales")}(${sQ.value[r.params.site].localUnit})`,axisLabel:{formatter:function(e){return sDe(e)}}}],series:[{name:n("info.sold"),type:"bar",data:t,connectNulls:!0,itemStyle:{color:"#FD6012"},yAxisIndex:0,showSymbol:!1,smooth:!0},{name:n("info.sales"),type:"line",yAxisIndex:1,data:i,connectNulls:!0,showSymbol:!1,smooth:!0}]})};return oQ("/product/dailyTrend",{day:30,itemIds:[r.params.itemId],site:r.params.site,fieldNames:["sales","salesDay","salesAmount","salesAmountDay","priceAvg","ratingScore","ratingNumber","likedCnt"]}).then(e=>{let t=[],n=[],i=[];i=e.trendDates[r.params.itemId].dates,e.trendDates[r.params.itemId].datas.map((e,r)=>{t.push(e?e.salesM:null),n.push(e?e.salesAmountM:null)}),o.value=!0,l(i,t,n)}),(e,t)=>{const r=CO,i=PG;return Aa(),Pa(i,{visible:a.value,"onUpdate:visible":t[0]||(t[0]=e=>a.value=e),class:"produtSalesDialogCrx",width:"1280px",header:Lt(n)("info.past30DayOfSalesAndSalesRevenue"),footer:!1,destroyOnClose:"",preventScrollThrough:!1,attach:"body",closeOnOverlayClick:""},{default:Wn(()=>[t[1]||(t[1]=La("div",{id:"sales-chart-product-crx"},null,-1)),o.value?Va("v-if",!0):(Aa(),Ia("div",BRe,[Na(r,{text:Lt(n)("common.loading"),size:"medium",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},null,8,["text"])]))]),_:1,__:[1]},8,["visible","header"])}}}),HRe=()=>Na("p",{innerHTML:nf.global.t("common.tipUpgrade",{upgradePackage:`<a style="color: #fd6012" href="https://www.shopdora.com/price" target="_blank">${nf.global.t("common.upgradePackage")}</a>`})},null),WRe=()=>Na("p",null,[nf.global.t("common.tipMoreComment"),Na("a",{style:{color:"#fd6012"},href:"https://help.shopdora.cn/?p=669",target:"_blank"},[nf.global.t("common.clickLearnMore")])]),URe=()=>nf.global.t("msg.noInclude"),XRe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",{innerHTML:nf.global.t("sku.tipSource")},null)]),GRe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipSearchImgByShopee")])]),YRe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipSearchImgByShopee")]),HRe()]),KRe=e=>{let t=[];const n={tw:nf.global.t("sku.tw"),sg:nf.global.t("sku.sg"),my:nf.global.t("sku.my"),ph:nf.global.t("sku.ph"),th:nf.global.t("sku.th"),vn:nf.global.t("sku.vn"),br:nf.global.t("sku.br"),id:nf.global.t("sku.id"),mx:nf.global.t("sku.mx")};for(const r in e)e[r]||t.push(n[r]);return Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[`\u4e0d\u53ef\u7528\u72b6\u6001:\u6682\u4e0d\u652f\u6301${t.join("\u3001")}\uff0c\u656c\u8bf7\u671f\u5f85\uff01`])])},qRe=()=>nf.global.t("sku.tipPriceAnalysis"),ZRe=()=>nf.global.t("sku.tipAnalysis"),JRe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipAnalysis")]),HRe()]),QRe=()=>nf.global.t("sku.tipKeyWordsAnalysis"),$Re=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipKeyWordsAnalysis")]),HRe()]),eLe=()=>nf.global.t("sku.tipKeyWords"),tLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipKeyWords")]),HRe()]),nLe=()=>nf.global.t("sku.tipHistory"),rLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipHistory")]),HRe()]),iLe=()=>nf.global.t("sku.tipProductSalesD30"),aLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipProductSalesD30")]),HRe()]),oLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipHelpAnalysis")]),Na("p",null,[nf.global.t("sku.tipOperation")]),WRe()]),sLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipHelpAnalysis")]),Na("p",null,[nf.global.t("sku.tipOperation")]),WRe(),HRe()]),lLe=()=>nf.global.t("common.clickLogin"),uLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipComprehensiveAnalysis")]),Na("p",null,[nf.global.t("sku.tipQuantity")])]),cLe=()=>nf.global.t("sku.tipSkuComments"),dLe=()=>Na("div",{class:"shopdora-t-popup-div"},[Na("p",null,[nf.global.t("sku.tipSkuComments")])]),fLe={class:"common-header"},hLe={class:"header-containter"},pLe={class:"common-body"},mLe={class:"inline-filter-containter"},vLe={class:"custom-checkbox",style:{"margin-right":"20px"}},gLe={class:"custom-table"},yLe=["width"],bLe=["value"],wLe={class:"align-middle"},xLe={class:"td-item"},SLe={class:"align-middle"},_Le={class:"td-item"},kLe={class:"align-middle"},ALe={class:"td-item"},CLe={key:0,class:"td-item active"},TLe={class:"align-middle"},OLe={class:"td-item"},ILe={class:"td-item"},PLe={class:"product-sales-chart"},ELe=["onClick"],MLe={class:"align-middle"},DLe={class:"td-item"},RLe={class:"td-item"},LLe={class:"align-middle"},NLe={class:"td-item"},jLe={class:"align-middle"},FLe={class:"td-item"},zLe={class:"td-item"},BLe={class:"align-middle"},VLe={class:"td-item"},HLe={class:"align-middle"},WLe={class:"td-item"},ULe={class:"td-item"},XLe={class:"table-footer"},GLe={class:"gray-block"},YLe={class:"analyse"},KLe=yr({__name:"keywordProductListPreview",props:{visible:{type:Boolean,default:!1},brandOptions:{type:Object,default:()=>{}},productList:{type:Array,default:()=>[]},params:Object},emits:["update:visible"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t="keywordProductListPreview",r=null)=>n(`style.${t}.${e}`,r);let i={keywordAnalyseTime:null};const a=e=>{s.value.HistoryKeywordAnalysisId=e,oQ("/plugin/productTitleAnalysis/progress",{site:d.value,id:e}).then(e=>{if(!e||!e?.id||![0,1,2].includes(e?.status??-1))return WE.error(n("analyse.analysisFailed")),s.value.progress=-1,void(s.value.visible=!1);2==e?.status?(s.value.progress=e.progress,s.value.visible=!1):(s.value.progress=e.progress,i.keywordAnalyseTime=setTimeout(()=>{clearTimeout(i.keywordAnalyseTime),a(e.id)},5e3))}).catch(()=>{s.value.visible=!1,s.value.progress=-1})},o=()=>{let e=Object.fromEntries(new URLSearchParams(decodeURIComponent(window.location.search))),t={name:"",page:"",type:"",type_k_c:""};if(e?.keyword)t.name=e.keyword,t.type_k_c=n("info.keyword");else if(location.pathname.indexOf("-cat")>0){let e=decodeURIComponent(location.pathname.split("-cat")[0]);t.name=e.substring(1,e.length),t.type_k_c=n("info.cate")}else"shopList"===f.value?(t.name=window.location.pathname.split("/")[1],t.type_k_c=n("info.store")):t.name=n("info.unknown");if(e)if(t.page=e?.page?(+e.page+1).toString():"1",e?.sortBy){let r={pop:n("option.organicRanking"),relevancy:n("option.organicRanking"),ctime:n("option.latest"),sales:n("option.bestSelling"),price:{asc:n("option.lowToHigh"),desc:n("option.highToLow")}};"price"==e.sortBy?t.type=r.price[e.order]??n("option.organicRanking"):t.type=r[e.sortBy]??n("option.organicRanking")}else t.type=n("option.organicRanking");else t.page="1",t.type=n("option.organicRanking");return t},s=Et({visible:!1,progress:-1,res:"",status:1,HistoryKeywordAnalysisId:"",HistoryKeywordAnalysisShow:!1}),l=vo(()=>k.getters["user/isLogin"]),u=vo(()=>k.getters["user/description"]),c=e;let d=Et(yi("site")),f=Et(yi("exportType"));vo(()=>(e="1")=>k.getters["product/getProductListCheckedList"]({type:e,exportType:2}));const h=()=>{const e=new Date;return(1e4*e.getFullYear()+100*(e.getMonth()+1)+e.getDate()).toString()},p=()=>{if(localStorage.getItem("History")!=h()?(k.commit("user/setHistory",!0),localStorage.setItem("History",h())):localStorage.setItem("History",h()),!l.value)return void NJ();if(!u.value)return;if(s.value.progress>=0&&100!=s.value.progress)return;if(100==s.value.progress)return void(s.value.HistoryKeywordAnalysisShow=!0);let e=[];if(c.productList.sort((e,t)=>(e.index||0)-(t.index||0)).map(t=>{P.value.includes(t.itemid)&&e.push({itemId:t.itemid,shopId:t.shopid,name:t.name,catId:t.cat_id})}),e.length<2)return WE.warning(n("error.analysisProductError"));s.value.progress=0,oQ("/plugin/productTitleAnalysis",{site:d.value,name:JSON.stringify({...o(),totalCount:e.length}),items:e}).then(e=>{e?.id&&a(e.id)}),s.value.visible=!0},m=Et({brand:"",shopType:[],shopSource:"",ctimes:"",isAd:"",searchType:"shopId",searchId:"",salesM_min:"",salesM_max:""}),v=vo(()=>{let e=[{label:n("common.all"),value:""},{label:n("ads.noBrand"),value:"nobrand"}];return c.brandOptions&&(e=e.concat(Object.keys(c.brandOptions).filter(e=>"No Brand"!==e&&"nobrand"!==e).map(e=>({label:e,value:e})))),e}),g=vo(()=>[{label:n("ads.regular"),value:n("ads.regular")},{label:n("ads.preferred"),value:n("ads.preferred")},{label:n("ads.mallStore"),value:n("ads.mallStore")}]),y=vo(()=>[{label:n("common.all"),value:""},{label:n("info.crossBorder"),value:2},{label:n("info.local"),value:1}]),b=vo(()=>[{label:n("ads.noLimit"),value:""},{label:n("time.numTwoYear"),value:24},{label:n("time.numOneYear"),value:12},{label:n("time.pastSixMonth"),value:6},{label:n("time.pastThreeMonth"),value:3},{label:n("time.pastOneMonth"),value:1}]),w=vo(()=>[{label:n("common.all"),value:""},{label:n("common.yes"),value:"yes"},{label:n("common.no"),value:"no"}]),x=vo(()=>[{label:n("info.storeId"),value:"shopId"},{label:n("info.productId3"),value:"itemid"}]),S=vo(()=>[{titles:[""],width:"40px",class:"th-center",tips:""},{titles:[n("ads.productInformation")],width:"216px",class:"th-left",tips:""},{titles:[n("info.cate")],tips:""},{titles:[n("info.brand")],tips:""},{titles:[n("common.pageNumber")],tips:""},{titles:[n("info.soldD30"),n("info.salesD30")],tips:""},{titles:[n("info.totalSold"),n("info.totalSales")],tips:""},{titles:[n("skuExcel.price")],tips:""},{titles:[n("info.ratingCount"),n("ads.reviewRate")],tips:""},{titles:[n("reviewAnalysisContent.starRating")],tips:""},{titles:[n("info.time")],tips:""}]),_=e=>{let t=[],r=[];O.value.forEach(e=>{P.value.includes(e.itemid)&&(t.push(e.name),r.push(`https://${sQ.value[d.value].allDomain[0]}/product/${e.shopid}/${e.itemid}`))});const{toClipboard:i}=nJ();i("name"===e?t.join("\n"):r.join("\n")).then(()=>{WE.closeAll(),WE.success(n("msg.copyMsgSuccess",{title:n("name"===e?"common.title":"common.link")}),1e3)}).catch(()=>{WE.closeAll(),WE.error(n("msg.copyMsgFail",{title:n("name"===e?"common.title":"common.link")}),1e3)})},k=Gb(),A=t,C=()=>{A("update:visible",!1)},T=Et(1);Et(0);const O=Et([]),I=Et([]),P=Et([]),E=Et(10);vo(()=>P.value.length>0&&P.value.length===I.value.length);const M=vo(()=>P.value.length>0&&P.value.length<I.value.length),D=e=>{if(!0===M.value&&!e.target.checked)return e.target.checked=!0,void(P.value=I.value.map(e=>e.itemid));e.target.checked?P.value=I.value.map(e=>e.itemid):P.value=[]};ta(M,()=>{const e=document.querySelector('.custom-checkbox input[type="checkbox"]');e&&(e.indeterminate=M.value)},{immediate:!0});const R=e=>{const t=(e-1)*E.value,n=O.value.slice(t,t+E.value);n.forEach(e=>{e.imgUrl=IQ(c.params.site,e.image),e.tinyImgUrl=IQ(c.params.site,e.image,!0)}),I.value=n,P.value=[],(()=>{const e=document.querySelector('.custom-checkbox input[type="checkbox"]');e&&(e.checked=!1,e.indeterminate=!1)})()},L=()=>{T.value=1,O.value=c.productList.filter(e=>{if(m.value.searchId.trim())if("shopId"===m.value.searchType){if(m.value.searchId.trim()!=e.shopid)return!1}else if(m.value.searchId.trim()!=e.itemid)return!1;if(m.value.shopSource&&e.sellerSource!=m.value.shopSource)return!1;if(m.value.shopType.length>0){if(!m.value.shopType.includes(n("ads.regular"))&&!e.is_preferred_plus_seller&&!e.is_official_shop)return!1;if(!m.value.shopType.includes(n("ads.preferred"))&&e.is_preferred_plus_seller)return!1;if(!m.value.shopType.includes(n("ads.mallStore"))&&e.is_official_shop)return!1}if(m.value.ctimes&&Number(e.ctimeMNum)>Number(m.value.ctimes))return!1;if("yes"===m.value.isAd&&!e.adsid)return!1;if("no"===m.value.isAd&&e.adsid)return!1;if(m.value.brand){if("nobrand"===m.value.brand&&e.brand&&"No Brand"!=e.brand)return!1;if("nobrand"!=m.value.brand&&(!e.brand||e.brand!=m.value.brand))return!1}return!(m.value.salesM_max&&Number(m.value.salesM_max)<e.sold)&&!(m.value.salesM_min&&Number(m.value.salesM_min)>e.sold)}),R(1)},N=(e,t)=>{T.value=t.current,R(t.current)},j=vo(()=>[{label:n("keywordProductListPreview.page",{count:10}),value:10},{label:n("keywordProductListPreview.page",{count:20}),value:20},{label:n("keywordProductListPreview.page",{count:30}),value:30},{label:n("keywordProductListPreview.page",{count:60}),value:60}]),F=e=>{E.value=e,R(1)},z=()=>{m.value={brand:"",shopType:[],shopSource:"",ctimes:"",isAd:"",searchType:"shopId",searchId:"",salesM_min:"",salesM_max:""}},B=(e,t=null)=>(t||(t=n("keywordProductListPreview.cateNameType")),iJ(e,t)),V=Et(null),H=Et(!1),W=async()=>{try{H.value=!0;const e=n("info.productLink"),t=n("info.productImg");let r=c.productList.map(r=>({[n("info.storeId")]:r.shopid,[n("info.productId3")]:r.itemid,[n("info.cateName")]:B(r.cat_id),[n("skuExcel.price")]:`${sQ.value[c.params.site].localUnit}${r.priceStr}`,[n("info.brandName")]:r.brand,[n("common.pageNumber")]:`${iDe().format("YYYY-MM-DD HH:mm:ss")}${n("common.ranking")}${60*r.page-60+r.index+1}\uff0c${n("page.pageInfo",{page:r.page})}\uff0c${r.index+1}/${"shopList"===f.value?"30":"60"}`,[n("ads.adRanking")]:r.adsid?n("common.yes"):n("common.no"),[n("info.storeName")]:r.shop_name,[n("reviewAnalysisContent.starRating")]:(r.rating_star/10).toFixed(1),[n("info.sellerSource")]:r?.sellerSource||0==r?.sellerSource?["",n("info.local"),n("info.crossBorder")][r.sellerSource]:"",[n("info.time")]:r.ctimeDay,[n("info.timeRange")]:r.ctimeM,[n("info.monthlySales")]:`${r.sold??"-"}`,[n("info.monthlyRevenue")]:`${sQ.value[c.params.site].localUnit}${null===r.sold||void 0===r.sold?"-":r.soldSale}`,[n("info.totalSold")]:`${r.historical_sold??"-"}`,[n("info.totalSales")]:`${sQ.value[c.params.site].localUnit}${null===r.historical_sold||void 0===r.historical_sold?"-":r.historical_soldSale}`,[e]:`https://${window.location.host}/product/${r.shopid}/${r.itemid}`,[t]:""}));const i=new zRe.Workbook,a=i.addWorksheet(K(n("ads.keywordSearch"))),o=r.length>0?Object.keys(r[0]):[n("info.storeId"),n("info.productId3"),n("info.cateName"),n("skuExcel.price"),n("info.brandName"),n("common.pageNumber"),n("ads.adRanking"),n("info.storeName"),n("reviewAnalysisContent.starRating"),n("info.sellerSource"),n("info.time"),n("info.timeRange"),n("info.monthlySales"),n("info.monthlyRevenue"),n("info.totalSold"),n("info.totalSales"),e,t],s=a.getRow(1);o.forEach((e,t)=>{s.getCell(t+1).value=e}),s.commit();const l=o.indexOf(e)+1,u=o.indexOf(t)+1;a.getColumn(l).width=32,a.getColumn(u).width=14;const d=new Map,h=V.value?.querySelectorAll("tbody tr");h?.forEach((e,t)=>{const n=e.querySelector(".td-goods-title img.thumb, .thumb-wrap img"),r=I.value[t];n&&r?.itemid&&d.set(r.itemid,n)});const p=async e=>{const t=e?.itemid?d.get(e.itemid):null;if(t){const e=(e=>{if(!e?.complete||!e.naturalWidth)return null;try{const t=document.createElement("canvas");t.width=e.naturalWidth,t.height=e.naturalHeight;const n=t.getContext("2d");return n?(n.drawImage(e,0,0),t.toDataURL("image/jpeg",.8).split(",")[1]):null}catch{return null}})(t);if(e)return e}const n=e?.image?IQ(c.params.site,e.image):"";return n?(e=>new Promise(t=>{if(!e)return void t(null);const n=new Image;n.crossOrigin="anonymous",n.onload=()=>{try{const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const r=e.getContext("2d");if(!r)return void t(null);r.drawImage(n,0,0);const i=e.toDataURL("image/jpeg",.8).split(",")[1];t(i)}catch{t(null)}},n.onerror=()=>t(null),n.src=e}))(n):Promise.resolve(null)},m=await Promise.all(c.productList.map(e=>p(e)));for(let n=0;n<r.length;n++){const e=n+2,t=a.getRow(e),s=r[n];o.forEach((e,n)=>{t.getCell(n+1).value=s[e]}),t.height=m[n]?85:65,t.commit();const l=m[n];if(l){const t=i.addImage({base64:l,extension:"jpeg"});a.addImage(t,{tl:{col:u-1,row:e-1},ext:{width:80,height:80},editAs:"oneCell"})}}const v=await i.xlsx.writeBuffer(),g=new Blob([v],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),y=URL.createObjectURL(g),b=document.createElement("a");b.href=y,b.download=`${sQ.value[c.params.site].label}${n("skuExcel.site")}(${n("info.keyword")}=${c.params.keywordName})${n("productBasicInfo.productList")}${iDe(iDe.unix((new Date).getTime()/1e3)).format("YYYYMMDDhhmmss")}.xlsx`,b.click(),URL.revokeObjectURL(y),H.value=!1}catch(e){H.value=!1}},U=Et(c.visible);ta(()=>c.visible,e=>{U.value=e,e&&L()},{immediate:!0});const X=Et(!1),Y=Et(""),K=e=>{let t=e.substring(0,31);return t=t.replace(/[:\\\/?*\[\]]/g,""),t||"Sheet1"};return(t,i)=>{const a=VO,o=iB,c=nG,h=eL,k=oB,A=tG,M=wD,R=dB,K=JZ,q=UG,Z=PG;return Aa(),Ia(ba,null,[Na(K,{visible:U.value,"onUpdate:visible":i[14]||(i[14]=e=>U.value=e),attach:"body",class:"keyword-productlist-drawer common-bottom-drawer",preventScrollThrough:"",placement:"bottom",size:"640px",footer:!1,"on-close":C,"close-btn":!0},{header:Wn(()=>[La("div",fLe,[La("div",hLe,[La("span",null,ne(Lt(n)("keywordProductListPreview.productList",{count:O.value.length})),1),Na(a,{class:"download-btn",theme:"primary",variant:"outline",loading:H.value,onClick:W},{default:Wn(()=>[Na(Lt(uv),{slot:"icon"}),za(" "+ne(Lt(n)("common.exportProductList")),1)]),_:1},8,["loading"])])])]),body:Wn(()=>[La("div",pLe,[La("div",mLe,[Na(A,{ref:"form",data:m.value,layout:"inline","label-width":r("formLabelWidth"),colon:!0,onReset:z,onSubmit:L},{default:Wn(()=>[Na(c,{name:"site",label:Lt(n)("info.brand")},{default:Wn(()=>[Na(o,{class:"w96",modelValue:m.value.brand,"onUpdate:modelValue":i[0]||(i[0]=e=>m.value.brand=e),placeholder:Lt(n)("common.all"),options:v.value},null,8,["modelValue","placeholder","options"])]),_:1},8,["label"]),Na(c,{name:"shopType",label:Lt(n)("info.storeType")},{default:Wn(()=>[Na(o,{class:"shop-type",modelValue:m.value.shopType,"onUpdate:modelValue":i[1]||(i[1]=e=>m.value.shopType=e),placeholder:Lt(n)("common.all"),multiple:"",options:g.value},null,8,["modelValue","placeholder","options"])]),_:1},8,["label"]),Na(c,{name:"shopSource",label:Lt(n)("ads.storeSource")},{default:Wn(()=>[Na(o,{modelValue:m.value.shopSource,"onUpdate:modelValue":i[2]||(i[2]=e=>m.value.shopSource=e),placeholder:Lt(n)("ads.noLimit"),options:y.value},null,8,["modelValue","placeholder","options"])]),_:1},8,["label"]),Na(c,{name:"ctimes",label:Lt(n)("info.time")},{default:Wn(()=>[Na(o,{modelValue:m.value.ctimes,"onUpdate:modelValue":i[3]||(i[3]=e=>m.value.ctimes=e),placeholder:Lt(n)("ads.noLimit"),options:b.value},null,8,["modelValue","placeholder","options"])]),_:1},8,["label"]),Na(c,{name:"isAd",label:Lt(n)("ads.adsProduct")},{default:Wn(()=>[Na(o,{modelValue:m.value.isAd,"onUpdate:modelValue":i[4]||(i[4]=e=>m.value.isAd=e),placeholder:Lt(n)("common.all"),options:w.value},null,8,["modelValue","placeholder","options"])]),_:1},8,["label"]),Na(c,{name:"shopIdOrItemid"},{default:Wn(()=>[Na(k,null,{prepend:Wn(()=>[Na(o,{modelValue:m.value.searchType,"onUpdate:modelValue":i[5]||(i[5]=e=>m.value.searchType=e),bordered:!1,style:{"min-width":"41px"},"auto-width":"",options:x.value},null,8,["modelValue","options"])]),default:Wn(()=>[Na(h,{modelValue:m.value.searchId,"onUpdate:modelValue":i[6]||(i[6]=e=>m.value.searchId=e),placeholder:`${Lt(n)("msg.pleaseEnter")}${"shopId"===m.value.searchType?Lt(n)("info.storeId"):Lt(n)("info.productId2")}${Lt(n)("ads.searchProducts")}`},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),Na(c,{name:"monthlySales",label:Lt(n)("info.monthlySales")},{default:Wn(()=>[Na(h,{modelValue:m.value.salesM_min,"onUpdate:modelValue":i[7]||(i[7]=e=>m.value.salesM_min=e),class:"item-short",style:{width:"92px"},placeholder:Lt(n)("info.min")},null,8,["modelValue","placeholder"]),i[19]||(i[19]=La("span",{style:{margin:"0 12px"}},"~",-1)),Na(h,{modelValue:m.value.salesM_max,"onUpdate:modelValue":i[8]||(i[8]=e=>m.value.salesM_max=e),class:"item-short",style:{width:"92px"},placeholder:Lt(n)("info.max")},null,8,["modelValue","placeholder"])]),_:1,__:[19]},8,["label"]),Na(c,{name:"shopIdOrItemid",labelWidth:0,style:{width:"200px !important",flex:"none !important",marginLeft:"55px"}},{default:Wn(()=>[Na(a,{class:"confirm",theme:"primary",onClick:L},{default:Wn(()=>[za(ne(Lt(n)("common.search")),1)]),_:1}),Na(a,{class:"reset",theme:"default",onClick:z},{default:Wn(()=>[za(ne(Lt(n)("common.reset")),1)]),_:1})]),_:1})]),_:1},8,["data","label-width"])]),La("div",{class:G(["filtationButton",r("filtationButton","filtration")])},[La("div",vLe,[La("input",{style:{"margin-right":"20px"},type:"checkbox",onChange:D},null,32),La("span",null,ne(` ${Lt(n)("keywordProductListPreview.check",{count:P.value.length})}`),1)]),Na(a,{onClick:i[9]||(i[9]=e=>_("name"))},{default:Wn(()=>[za(ne(Lt(n)("common.copyTitle")),1)]),_:1}),Na(a,{onClick:i[10]||(i[10]=e=>_("url"))},{default:Wn(()=>[za(ne(Lt(n)("common.copyLink")),1)]),_:1}),Na(M,{content:l.value?u.value?Lt(QRe):Lt($Re):Lt(QRe)},{default:Wn(()=>["shopList"!=Lt(f)?(Aa(),Pa(a,{key:0,onClick:p,disabled:s.value.progress>=0&&100!=s.value.progress},{default:Wn(()=>[za(ne(-1==s.value.progress?Lt(n)("info.topKeywords"):100==s.value.progress?Lt(n)("tools.viewHighFrequencyWords"):`${Lt(n)("tools.analysisInProgress")} ${s.value.progress}%`),1)]),_:1},8,["disabled"])):Va("v-if",!0)]),_:1},8,["content"])],2),La("div",{class:"table-wrapper",ref_key:"tableWrapperRef",ref:V},[La("div",gLe,[La("table",null,[La("thead",null,[La("tr",null,[(Aa(!0),Ia(ba,null,Gr(S.value,(e,t)=>(Aa(),Ia("th",{key:t,width:e.width},[Na(CRe,{class:G(e.class),titles:e.titles,tips:e.tips},null,8,["class","titles","tips"])],8,yLe))),128))]),i[20]||(i[20]=La("tr",{class:"sub"},null,-1))]),La("tbody",null,[(Aa(!0),Ia(ba,null,Gr(I.value,(t,r)=>(Aa(),Ia("tr",{class:"row-main single",key:t.itemid},[Va("                  <td>"),Va("                    <div>{{ item }}</div>"),Va("                  </td>"),La("td",null,[Xn(La("input",{type:"checkbox","onUpdate:modelValue":i[11]||(i[11]=e=>P.value=e),value:t.itemid},null,8,bLe),[[ps,P.value]])]),La("td",null,[Na(RRe,{item:t},null,8,["item"])]),La("td",wLe,[La("div",xLe,ne(B(t.cat_id)),1)]),La("td",SLe,[La("div",_Le,ne("No Brand"!==t.brand&&t.brand?t.brand:Lt(n)("common.nothing")),1)]),La("td",kLe,[La("div",ALe,ne(Lt(n)("page.pageInfo",{page:t.page}))+", "+ne(t.index+1)+"/"+ne("shopList"===Lt(f)?"30":"60"),1),t.adsid?(Aa(),Ia("div",CLe,ne(Lt(n)("ads.adRanking")),1)):Va("v-if",!0)]),La("td",TLe,[La("div",OLe,ne(t.sold??"-"),1),La("div",ILe,[La("div",PLe,[La("span",null,ne(null===t.sold||void 0===t.sold?"-":`${Lt(sQ)[e.params.site].localUnit}${t.soldSale}`),1),t.sold||0===t.sold?(Aa(),Ia("img",{key:0,src:xRe,onClick:e=>{return n=t,Y.value=n.itemid,void(X.value=!0);var n}},null,8,ELe)):Va("v-if",!0)])])]),La("td",MLe,[La("div",DLe,ne(t.historical_sold??"-"),1),La("div",RLe,ne(null===t.historical_sold||void 0===t.historical_sold?"-":`${Lt(sQ)[e.params.site].localUnit}${t.historical_soldSale}`),1)]),La("td",LLe,[La("div",NLe,ne(Lt(sQ)[e.params.site].localUnit)+ne(t.priceStr),1)]),La("td",jLe,[La("div",FLe,ne(t.rating_count),1),La("div",zLe,ne(t.ratingRateTotal),1)]),La("td",BLe,[La("div",VLe,ne((t.rating_star/10).toFixed(1)),1)]),La("td",HLe,[La("div",WLe,ne(t.ctimeDay),1),La("div",ULe,ne(t.ctimeM),1)])]))),128))])])]),La("div",XLe,[La("div",GLe,[Na(R,{modelValue:T.value,"onUpdate:modelValue":i[12]||(i[12]=e=>T.value=e),pageSize:E.value,total:O.value.length,"page-size-options":j.value,onPageSizeChange:F,onCurrentChange:N},null,8,["modelValue","pageSize","total","page-size-options"])])])],512),X.value?(Aa(),Pa(VRe,{key:0,visible:X.value,"onUpdate:visible":i[13]||(i[13]=e=>X.value=e),params:{site:e.params.site,itemId:Y.value}},null,8,["visible","params"])):Va("v-if",!0)])]),_:1},8,["visible"]),Na(Z,{header:"",visible:s.value.visible,"onUpdate:visible":i[16]||(i[16]=e=>s.value.visible=e),onClose:i[17]||(i[17]=e=>s.value.visible=!1),destroyOnClose:"",preventScrollThrough:!1,attach:"body",width:"520px",footer:!1},{default:Wn(()=>[La("div",YLe,[Na(q,{theme:"circle",percentage:s.value.progress,size:"small"},null,8,["percentage"]),La("div",{class:G(["top",r("analyseTop","filtration")])},ne(Lt(n)("tools.viewHighFrequencyWordsTip")),3),La("div",{class:G(["center",r("analyseCenter","filtration")])},ne(Lt(n)("tools.viewHighFrequencyWordsWaitTip")),3),La("button",{class:"button",onClick:i[15]||(i[15]=e=>s.value.visible=!1)},ne(Lt(n)("common.iKnow")),1)])]),_:1},8,["visible"]),Na(wRe,{visible:s.value.HistoryKeywordAnalysisShow,"onUpdate:visible":i[18]||(i[18]=e=>s.value.HistoryKeywordAnalysisShow=e),params:{site:Lt(d),id:s.value.HistoryKeywordAnalysisId}},null,8,["visible","params"])],64)}}}),qLe={class:"preview-title"},ZLe={class:"title"},JLe={class:"keyword_preview_crx"},QLe={class:"preview-content"},$Le={key:0,class:"notice-tips"},eNe={class:"keywordHeader"},tNe={style:{textAlign:"left",fontWeight:"700"}},nNe={key:0,class:"headerIcon"},rNe=["innerHTML"],iNe={class:"keywordBody"},aNe={class:"keywordBodyItem"},oNe={class:"keywordBodyItem"},sNe={class:"keywordBodyItem"},lNe={class:"itemValueMore"},uNe={class:"keywordBodyItem"},cNe={class:"itemValueMore"},dNe={class:"keywordBodyItem"},fNe={class:"itemValueMore"},hNe={class:"keywordBodyItem"},pNe={class:"itemValueMore"},mNe={class:"keywordBodyItem"},vNe={class:"itemValueMore"},gNe={class:"analyse"},yNe=yr({__name:"keywordPreview",props:{params:Object},setup(e){const{t:t}=Zd(),n=(e,n="keywordPreview",r=null)=>t(`style.${n}.${e}`,r),r=e;Et();const i=vo(()=>RJ.getters["user/isLogin"]),a=vo(()=>RJ.getters["user/description"]),o=()=>{window.open("https://www.shopdora.com/price","_blank")},s=vo(()=>i.value?a.value?RJ.getters["product/getKeywordProductListAllInfo"]("all"):RJ.getters["product/getKeywordProductListAllInfo"](15):{}),l=vo(()=>[{title:[t("keywordPreview.analyseProductTotal")],tips:`${t("msg.productKeyWordSalesTip")}<br>\n    ${t("msg.analyseLimitTip")}<br>\n    ${t("msg.notLoginShopeeTip")}<br>`},{title:[t("keywordPreview.totalSold")],tips:""},{title:[t("keywordPreview.monthlySales")],tips:""},{title:[t("keywordPreview.avgPrice")],tips:""},{title:[t("keywordPreview.avgTime")],tips:""},{title:[t("keywordPreview.avgRating")],tips:""}]),u=e=>{let n=[],r=[];s.value.productList.forEach(e=>{n.push(e.name),r.push(`https://${sQ.value[p.value].allDomain[0]}/product/${e.shopid}/${e.itemid}`)});const{toClipboard:i}=nJ();i("name"===e?n.join("\n"):r.join("\n")).then(()=>{WE.closeAll(),WE.success(t("msg.copyMsgSuccess",{title:t("name"===e?"common.title":"common.link")}),1e3)}).catch(()=>{WE.closeAll(),WE.error(t("msg.copyMsgFail",{title:t("name"===e?"common.title":"common.link")}),1e3)})},c=()=>{let e=Object.fromEntries(new URLSearchParams(decodeURIComponent(window.location.search))),n={name:"",page:"",type:"",type_k_c:""};if(e?.keyword)n.name=e.keyword,n.type_k_c=t("info.keyword");else if(location.pathname.indexOf("-cat")>0){let e=decodeURIComponent(location.pathname.split("-cat")[0]);n.name=e.substring(1,e.length),n.type_k_c=t("info.cate")}else"shopList"===m.value?(n.name=window.location.pathname.split("/")[1],n.type_k_c=t("info.store")):n.name=t("info.unknown");if(e)if(n.page=e?.page?(+e.page+1).toString():"1",e?.sortBy){let r={pop:t("option.organicRanking"),relevancy:t("option.organicRanking"),ctime:t("option.latest"),sales:t("option.bestSelling"),price:{asc:t("option.lowToHigh"),desc:t("option.highToLow")}};"price"==e.sortBy?n.type=r.price[e.order]??t("option.organicRanking"):n.type=r[e.sortBy]??t("option.organicRanking")}else n.type=t("option.organicRanking");else n.page="1",n.type=t("option.organicRanking");return n};let d={keywordAnalyseTime:null};const f=e=>{h.value.HistoryKeywordAnalysisId=e,oQ("/plugin/productTitleAnalysis/progress",{site:p.value,id:e}).then(e=>{if(!e||!e?.id||![0,1,2].includes(e?.status??-1))return WE.error(t("analyse.analysisFailed")),h.value.progress=-1,void(h.value.visible=!1);2==e?.status?(h.value.progress=e.progress,h.value.visible=!1):(h.value.progress=e.progress,d.keywordAnalyseTime=setTimeout(()=>{clearTimeout(d.keywordAnalyseTime),f(e.id)},5e3))}).catch(()=>{h.value.visible=!1,h.value.progress=-1})},h=Et({visible:!1,progress:-1,res:"",status:1,HistoryKeywordAnalysisId:"",HistoryKeywordAnalysisShow:!1});let p=Et(yi("site")),m=Et(yi("exportType"));const v=()=>{const e=new Date;return(1e4*e.getFullYear()+100*(e.getMonth()+1)+e.getDate()).toString()},g=()=>{if(localStorage.getItem("History")!=v()?(RJ.commit("user/setHistory",!0),localStorage.setItem("History",v())):localStorage.setItem("History",v()),!i.value)return void NJ();if(!a.value)return;if(h.value.progress>=0&&100!=h.value.progress)return;if(100==h.value.progress)return void(h.value.HistoryKeywordAnalysisShow=!0);let e=[];if(s.value.productList.sort((e,t)=>(e.index||0)-(t.index||0)).map(t=>{e.push({itemId:t.itemid,shopId:t.shopid,name:t.name,catId:t.cat_id})}),e.length<2)return WE.warning(t("error.analysisProductError"));h.value.progress=0,oQ("/plugin/productTitleAnalysis",{site:p.value,name:JSON.stringify({...c(),totalCount:e.length}),items:e}).then(e=>{e?.id&&f(e.id)}),h.value.visible=!0},y=Et(!1),b=()=>{y.value=!0},w=()=>{i.value&&a.value&&window.postMessage({type:"FROM_PAGE",action:"showProductList"},"*")};return(c,d)=>{const f=VO,v=wD,x=UG,S=PG;return Aa(),Ia(ba,null,[La("div",null,[La("div",qLe,[La("span",ZLe,ne(Lt(t)("keywordPreview.marketView")),1),Na(v,{overlayClassName:"icon-custom-pop",content:Lt(t)("msg.exportProductDetail"),placement:"top","show-arrow":""},{default:Wn(()=>[Na(f,{class:"product-btn",onClick:b},{default:Wn(()=>[za(ne(Lt(t)("keywordPreview.productList")),1)]),_:1})]),_:1},8,["content"]),Na(v,{content:i.value?a.value?Lt(QRe):Lt($Re):Lt(QRe)},{default:Wn(()=>["shopList"!=Lt(m)?(Aa(),Pa(f,{key:0,onClick:g,disabled:h.value.progress>=0&&100!=h.value.progress},{default:Wn(()=>[za(ne(-1==h.value.progress?Lt(t)("info.topKeywords"):100==h.value.progress?Lt(t)("tools.viewHighFrequencyWords"):`${Lt(t)("tools.analysisInProgress")} ${h.value.progress}%`),1)]),_:1},8,["disabled"])):Va("v-if",!0)]),_:1},8,["content"]),Na(v,{overlayClassName:"icon-custom-pop",content:Lt(t)("msg.copyTitlePop"),placement:"top","show-arrow":""},{default:Wn(()=>[Na(f,{onClick:d[0]||(d[0]=e=>u("name"))},{default:Wn(()=>[za(ne(Lt(t)("common.copyTitle")),1)]),_:1})]),_:1},8,["content"]),Na(v,{overlayClassName:"icon-custom-pop",content:Lt(t)("msg.copyUrlPop"),placement:"top","show-arrow":""},{default:Wn(()=>[Na(f,{onClick:d[1]||(d[1]=e=>u("url"))},{default:Wn(()=>[za(ne(Lt(t)("common.copyLink")),1)]),_:1})]),_:1},8,["content"])]),La("div",JLe,[La("div",QLe,[i.value&&!a.value?(Aa(),Ia("div",$Le,[La("span",null,ne(Lt(t)("msg.analyseLimitProductTip")),1),Na(f,{onClick:o},{default:Wn(()=>[za(ne(Lt(t)("common.upgradePackage")),1)]),_:1})])):Va("v-if",!0),La("div",eNe,[(Aa(!0),Ia(ba,null,Gr(l.value,(e,t)=>(Aa(),Ia("div",{key:t,class:G(["headerItem",n("headerItem")])},[La("div",tNe,[(Aa(!0),Ia(ba,null,Gr(e.title,(e,t)=>(Aa(),Ia("div",{key:t},ne(e),1))),128))]),e.tips?(Aa(),Ia("div",nNe,[Na(v,{overlayClassName:"icon-custom-pop",placement:"top","show-arrow":""},{content:Wn(()=>[La("div",{innerHTML:e.tips},null,8,rNe)]),default:Wn(()=>[Na(Lt(hv),{size:"14px"})]),_:2},1024)])):Va("v-if",!0)],2))),128))]),La("div",iNe,[i.value?(Aa(),Ia(ba,{key:1},[La("div",oNe,[La("div",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},[La("span",null,ne(s.value.productNum??"N/A"),1)],4),Na(v,null,{content:Wn(()=>[La("div",null,[za(ne(a.value?Lt(t)("keywordPreview.more"):Lt(t)("msg.upgradeMsg"))+" ",1),a.value?Va("v-if",!0):(Aa(),Ia("span",{key:0,style:{color:"#fd6012",cursor:"pointer"},onClick:o},ne(Lt(t)("msg.upgradeMsg2")),1))])]),default:Wn(()=>[La("div",{style:V({paddingTop:"4px",visibility:s.value.productNum<100?"":"hidden"})},[La("span",{class:"product-btn",style:V({color:a.value?"#fd6012":"#00000040",cursor:a.value?"pointer":"not-allowed"}),onClick:w},ne(Lt(t)("keywordPreview.more")),5)],4)]),_:1})]),La("div",sNe,[La("span",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},ne(Lt(oDe)(s.value.historical_sold)??"N/A"),5),La("span",lNe,ne(`${Lt(t)("keywordPreview.avg")} ${s.value.avgSold??"N/A"}`),1)]),La("div",uNe,[La("span",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},ne(Lt(oDe)(s.value.sold)??"N/A"),5),La("span",cNe,ne(`${Lt(t)("keywordPreview.avg")} ${s.value.avgMonthSold??"N/A"}`),1)]),La("div",dNe,[La("span",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},ne(s.value.averagePrice?`${Lt(sQ)[r.params.site].localUnit}${s.value.averagePrice}`:"N/A"),5),La("div",fNe,[La("span",null,ne(s.value.minPrice?`${Lt(sQ)[r.params.site].localUnit}${s.value.minPrice}`:"N/A"),1),d[9]||(d[9]=La("span",null,"~",-1)),La("span",null,ne(s.value.maxPrice?`${Lt(sQ)[r.params.site].localUnit}${s.value.maxPrice}`:"N/A"),1)])]),Va('              <div class="keywordBodyItem">'),Va("                <span>{{ allProductInfo.productNum ?? 'N/A' }}</span>"),Va("              </div>"),La("div",hNe,[La("span",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},ne(s.value.avgTimeStr??"N/A"),5),La("div",pNe,[La("span",null,ne(s.value.minTime??"N/A"),1),d[10]||(d[10]=La("span",null,"~",-1)),La("span",null,ne(s.value.maxTime??"N/A"),1)])]),La("div",mNe,[La("span",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},ne(s.value.avgRating??"N/A"),5),La("div",vNe,[La("span",null,ne(s.value.minRatting??"N/A"),1),d[11]||(d[11]=La("span",null,"~",-1)),La("span",null,ne(s.value.maxRatting??"N/A"),1)])])],64)):(Aa(!0),Ia(ba,{key:0},Gr(l.value,(e,r)=>(Aa(),Ia("div",aNe,[La("div",{class:"itemValue",style:V({fontSize:n("itemValueFontSize")})},[Na(v,{class:"",content:Lt(t)("common.clickLogin"),placement:"top","show-arrow":"","destroy-on-close":""},{default:Wn(()=>[La("span",{onClick:d[2]||(d[2]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer",color:"rgba(0, 0, 0, 0.6)"}},"***")]),_:1},8,["content"])],4)]))),256))]),Na(KLe,{visible:y.value,"onUpdate:visible":d[3]||(d[3]=e=>y.value=e),params:e.params,brandOptions:s.value.brandOptions,productList:s.value.productList,onClose:d[4]||(d[4]=e=>y.value=!1)},null,8,["visible","params","brandOptions","productList"])])])]),Na(S,{header:"",visible:h.value.visible,"onUpdate:visible":d[6]||(d[6]=e=>h.value.visible=e),onClose:d[7]||(d[7]=e=>h.value.visible=!1),destroyOnClose:"",preventScrollThrough:!1,attach:"body",width:"520px",footer:!1},{default:Wn(()=>[La("div",gNe,[Na(x,{theme:"circle",percentage:h.value.progress,size:"small"},null,8,["percentage"]),La("div",{class:G(["top",n("analyseTop","filtration")])},ne(Lt(t)("tools.viewHighFrequencyWordsTip")),3),La("div",{class:G(["center",n("analyseCenter","filtration")])},ne(Lt(t)("tools.viewHighFrequencyWordsWaitTip")),3),La("button",{class:"button",onClick:d[5]||(d[5]=e=>h.value.visible=!1)},ne(Lt(t)("common.iKnow")),1)])]),_:1},8,["visible"]),Na(wRe,{visible:h.value.HistoryKeywordAnalysisShow,"onUpdate:visible":d[8]||(d[8]=e=>h.value.HistoryKeywordAnalysisShow=e),params:{site:Lt(p),id:h.value.HistoryKeywordAnalysisId}},null,8,["visible","params"])],64)}}}),bNe={class:"contain"},wNe={class:"containBody"},xNe={class:"chartHeader"},SNe={style:{textAlign:"left",fontSize:"14px",fontWeight:"700",color:"#000000e6"}},_Ne={class:"chartBody"},kNe={key:0},ANe=yr({__name:"chart",setup(e){const{t:t,locale:n}=Zd(),r=(e,n=null)=>t(`chart.${e}`,n);let i=Et(yi("exportType"));const a=vo(()=>RJ.getters["user/isLogin"]),o=vo(()=>RJ.getters["user/description"]),s=vo(()=>a.value?o.value?RJ.getters["product/getKeywordProductListAllInfo"]("all"):RJ.getters["product/getKeywordProductListAllInfo"](15):{}),l=vo(()=>a.value?o.value?RJ.getters["product/getKeywordProductListAllInfo"]("all").listingTimeList:RJ.getters["product/getKeywordProductListAllInfo"](15).listingTimeList:[]),u=vo(()=>[{title:[r("listingTime")]},{title:["shopList"===i.value?r("cateTop"):r("location")]},{title:["shopList"===i.value?r("newProduct"):r("shopType")]}]),c=Et(null),d=Et(null),f=Et(null),h=Et({}),p=Et({}),m=(e,t,n)=>{n.value&&n.value.dispose();const r=document.getElementById(t);r&&r&&(r.style.width="265.72px;",r.style.height="162px");const i=Qle(r,"vintage");return i.setOption(e),"chart1"===t?c.value=i:"chart2"===t?d.value=i:"chart3"===t&&(f.value=i),i};let v={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"20%",bottom:"20%",left:"1%",right:"10%"},xAxis:{type:"category",data:[],axisTick:{alignWithLabel:!1,interval:0,length:5,lineStyle:{color:"#000",width:1}},axisLabel:{interval:0,margin:15}},yAxis:{type:"value",show:!1,max:30},series:[{type:"bar",barWidth:"20",barCategoryGap:"5%",data:[],itemStyle:{color:"#FD9059"},label:{show:!0,position:"top",formatter:"{c}%",fontSize:10,color:"#333"},emphasis:{focus:"series"}}]},g={color:["#FD9059","#6592FA"],tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:"0",left:"auto",top:"middle",itemWidth:10,itemHeight:10,textStyle:{fontSize:11},formatter:function(e){return w(e)}},series:[{type:"pie",radius:["47%","65%"],center:["25%","50%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:1,borderColor:"#fff",borderWidth:1},label:{show:!1,position:"center"},emphasis:{scale:!1,label:{show:!1,fontSize:15,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},y={color:["#FD9059","#6592FA","#fac858"],tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:"0",left:"auto",top:"middle",itemWidth:10,itemHeight:10,textStyle:{fontSize:11},formatter:function(e){return b(e)}},series:[{type:"pie",radius:["47%","65%"],center:["25%","50%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:1,borderColor:"#fff",borderWidth:1},label:{show:!1,position:"center"},emphasis:{scale:!1,label:{show:!1,fontSize:15,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]};const b=e=>{const t=(p.value||{})[e];return`${e} ${t||""}`},w=e=>{const t=(h.value||{})[e];return`${e} ${t||""}`},x=["#FD9059","#6592FA","#fac858","#91cc75","#73c0de"];let S={title:{left:"center",top:5},tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:"0",left:"auto",top:"middle",itemWidth:10,itemHeight:10,textStyle:{fontSize:11},formatter:function(e){const t=(s.value.cateCount||{})[e];return`${e} ${t||""}`}},series:[{name:t("shopCateTopCharts.cate"),type:"pie",radius:["47%","65%"],center:["25%","50%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:1,borderColor:"#fff",borderWidth:1},label:{show:!1,position:"center"},emphasis:{scale:!1,label:{show:!1,fontSize:15,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},_={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"20%",bottom:"20%",left:"1%",right:"5%"},xAxis:{type:"category",data:[],axisTick:{alignWithLabel:!1,interval:0,length:5,lineStyle:{color:"#000",width:1}},axisLabel:{interval:0,margin:15}},yAxis:{type:"value",show:!1,max:30},series:[{type:"bar",barWidth:"20",barCategoryGap:"5%",data:[],itemStyle:{color:"#FD9059"},label:{show:!0,position:"top",formatter:"{c}",fontSize:10,color:"#333"},emphasis:{focus:"series"}}]};const k=(e=[])=>{let n=0,r=0,i=0,a=0,o=0,l=0;const u=s.value.productNum||1,c=Math.floor((new Date).getTime()/1e3);e.forEach(e=>{const t=PQ(c-Number(e));t<=30?n++:t<=90?r++:t<=180?i++:t<=365?a++:t<=730?o++:l++});return(e=>{if(0===e.length)return e;let t=e.map(e=>({...e,value:e.value>0&&e.value<1?1:Math.round(e.value)}));const n=t.reduce((e,t)=>e+t.value,0);if(100===n)return t;if(n>100){const e=100/n;t=t.map(t=>({...t,value:t.value<1?t.value:Math.max(1,Math.round(t.value*e))}));const r=t.reduce((e,t)=>e+t.value,0);if(100!==r){const e=t.filter(e=>e.value>1).reduce((e,t)=>t.value>e.value?t:e,{value:0});e.value>0&&(e.value+=100-r)}}return t})([{name:t("listingTimeCharts.listingTime0"),value:n/u*100},{name:t("listingTimeCharts.listingTime1"),value:r/u*100},{name:t("listingTimeCharts.listingTime2"),value:i/u*100},{name:t("listingTimeCharts.listingTime3"),value:a/u*100},{name:t("listingTimeCharts.listingTime4"),value:o/u*100},{name:t("listingTimeCharts.listingTime5"),value:l/u*100}])};return ta(()=>[l.value,c.value],([e,t])=>{let n=k(e),r=[],i=[];n.forEach(e=>{r.push(e.name),i.push(e.value)}),v.series[0].data=i,v.xAxis.data=r,c.value.setOption(v,{replaceMerge:["series"]})},{immediate:!1}),ta(()=>[s.value.cateCount,s.value.local,s.value.crossBorder,d.value],([e,a,o,s])=>{let l={};if("shopList"===i.value){if(e&&Object.keys(e).length>0){const t=Object.entries(e).map(([e,t])=>({name:e,value:t})).sort((e,t)=>t.value-e.value).slice(0,5);t.forEach((e,t)=>{e.name=iJ(e.name,r("cateType"))}),S.series[0].data=t.map((e,t)=>({itemStyle:{color:x[t%x.length]},...e})),n.value,S.series[0].center=["20%","50%"],S.legend.formatter=function(e){const n=t.find(t=>t.name===e);return`${e} ${n?n.value:""}`}}l=S}else{h.value={};const e=[];a>0&&(h.value[t("locationCharts.local")]=a,e.push({value:a,name:t("locationCharts.local")})),o>0&&(h.value[t("locationCharts.crossBorder")]=o,e.push({value:o,name:t("locationCharts.crossBorder")})),g.series[0].data=e,l=g}d.value.setOption(l,{replaceMerge:["series"]})},{immediate:!1}),ta(()=>[l.value,s.value.preferredPlus,s.value.mall,s.value.normal,f.value],([e,n,r,a])=>{let o={};if("shopList"===i.value){const e=((e=[])=>{let n=0,r=0,i=0,a=0;const o=Math.floor((new Date).getTime()/1e3);return e.forEach(e=>{const t=PQ(o-Number(e));t<=7?n++:t<=15?r++:t<=30?i++:a++}),[{name:t("shopProductListingTimeCharts.listingTime0"),value:n},{name:t("shopProductListingTimeCharts.listingTime1"),value:r},{name:t("shopProductListingTimeCharts.listingTime2"),value:i},{name:t("shopProductListingTimeCharts.listingTime5"),value:a}]})(s.value.listingTimeList);let n=[],r=[];e.forEach(e=>{n.push(e.name),r.push(e.value)}),_.series[0].data=r,_.xAxis.data=n,o=_}else{const e=[];p.value={},n>0&&(p.value[t("shopTypeCharts.preferredPlus")]=n,e.push({value:n,name:t("shopTypeCharts.preferredPlus")})),r>0&&(p.value[t("shopTypeCharts.mall")]=r,e.push({value:r,name:t("shopTypeCharts.mall")})),a>0&&(p.value[t("shopTypeCharts.normal")]=a,e.push({value:a,name:t("shopTypeCharts.normal")})),y.series[0].data=e,o=y}f.value.setOption(o,{replaceMerge:["series"]})},{immediate:!1}),Er(()=>{c.value=m(v,"chart1",c),d.value=m(g,"chart2",d),f.value=m(y,"chart3",f)}),(e,t)=>(Aa(),Ia("div",bNe,[La("div",wNe,[La("div",xNe,[(Aa(!0),Ia(ba,null,Gr(u.value,(e,t)=>(Aa(),Ia("div",{key:t,class:"headerItem"},[La("div",SNe,[(Aa(!0),Ia(ba,null,Gr(e.title,(e,t)=>(Aa(),Ia("div",{key:t},ne(e),1))),128))])]))),128))]),La("div",_Ne,[t[1]||(t[1]=La("div",{class:"chartBg"},[La("div",{id:"chart1",class:"chartView"})],-1)),t[2]||(t[2]=La("div",{class:"chartBg"},[La("div",{id:"chart2",class:"chartView"})],-1)),"shopList"===Lt(i)?(Aa(),Ia("div",kNe,[Va(" \u6570\u636e\u5217\u8868 "),t[0]||(t[0]=La("div",{id:"data-list"},null,-1))])):Va("v-if",!0),t[3]||(t[3]=La("div",{class:"chartBg2"},[La("div",{id:"chart3",class:"chartView"})],-1))])])]))}}),CNe={key:0,class:"filtationLoginTitle"},TNe={class:"title"},ONe={key:0,class:"bottom"},INe={class:"item"},PNe={class:"item"},ENe={style:{width:"fit-content"}},MNe={class:"analyse"},DNe=yr({__name:"filtration",setup(e){const{t:t}=Zd(),n=(e,n=null)=>t(`style.filtration.${e}`,n),r=vo(()=>d.value&&!f.value?c.keyword?n("noDescHeight"):"500px":c.keyword?n("height"):"460px");let i=Et(yi("site")),a=Et(yi("exportType"));vo(()=>RJ.getters["product/getProductListCheckedListNum"]({type:"1",exportType:a.value})),vo(()=>RJ.getters["product/getProductListCheckedListNum"]({type:"2",exportType:a.value})),vo(()=>RJ.getters["product/getProductListCheckedListNum"]({type:"3",exportType:a.value}));const o=vo(()=>RJ.getters["product/getProductBasicInfoBrand"]({type:w(a.value),page:pQ("page"),exportType:a.value})),s=vo(()=>(e="1")=>RJ.getters["product/getProductListCheckedList"]({type:e,exportType:a.value})),l=vo(()=>RJ.getters["product/getShopeeListAll"](a.value)),u=vo(()=>RJ.getters["product/getProductBasicInfoAll"](a.value));let c=Object.fromEntries(new URLSearchParams(decodeURIComponent(window.location.search)));const d=vo(()=>RJ.getters["user/isLogin"]),f=vo(()=>RJ.getters["user/description"]),h=Et({visible:!1,progress:-1,res:"",status:1,HistoryKeywordAnalysisId:"",HistoryKeywordAnalysisShow:!1});let p={keywordAnalyseTime:null,urlTime:null};const m=Et({salesM_min:"",salesM_max:""}),v=vo(()=>[{label:t("common.nothing"),value:"2"},{label:t("common.available"),value:"1"}]),g=Et(""),y=Et("1"),b=Et(!0),w=(e="list")=>{let t=window.location.href;return t.indexOf("sortBy=relevancy")>=0||t.indexOf("sortBy=pop")>=0||-1==t.indexOf("sortBy")?`${e}1`:t.indexOf("sortBy=ctime")>=0?`${e}2`:t.indexOf("sortBy=sales")>=0?`${e}3`:t.indexOf("sortBy=price")>=0?t.indexOf("order=asc")>=0?`${e}4`:`${e}5`:void 0};ta(()=>[g.value,y.value,m.value,s.value("1"),o.value],e=>{var t,n;b.value="2"===e[1],t=e[1],RJ.commit("product/setProductRadio",{str:t,exportType:a.value}),n=e[0]??"",RJ.commit("product/setProductListFiltration",{brand:n,...m.value,exportType:a.value})},{deep:!0,immediate:!0});const x=Et(w(a.value)),S=Et(pQ("page"));return setInterval(()=>{x.value=w(a.value),S.value=pQ("page")},1e3),ta(()=>[l.value,u.value,x.value,S.value,o.value],e=>{RJ.commit("product/setFiltration",{type:w(a.value),page:pQ("page"),exportType:a.value})},{deep:!0,immediate:!0}),Er(()=>{let e=location.href;p.urlTime=setInterval(()=>{e!=location.href&&(h.value={visible:!1,progress:-1,res:"",status:1,HistoryKeywordAnalysisId:"",HistoryKeywordAnalysisShow:!1},clearTimeout(p.keywordAnalyseTime),e=location.href)},1e3)}),Lr(()=>{clearTimeout(p.keywordAnalyseTime),clearInterval(p.urlTime)}),(e,o)=>{const s=iB,l=eL,u=UG,f=PG;return Aa(),Ia(ba,null,[d.value?Va("v-if",!0):(Aa(),Ia("div",CNe,[La("div",TNe,ne(Lt(t)("common.warnTitle")),1),La("div",{class:"button",style:V({width:n("filtationLoginTitleButton")}),onClick:o[0]||(o[0]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},ne(Lt(t)("common.loginNow")),5)])),La("div",{class:"filtation",style:V({height:r.value})},[o[9]||(o[9]=Ba('<div class="top"><div class="logo"><img src="'+km+'" alt=""></div>\x3c!--      &lt;div class=&quot;top-right&quot;&gt;--\x3e\x3c!--        &lt;div class=&quot;radio&quot;&gt;--\x3e\x3c!--          &lt;t-space&gt;--\x3e\x3c!--            &lt;t-radio-group class=&quot;radioGroup&quot; :class=&quot;styleClass(&#39;radioGroup&#39;)&quot; v-model=&quot;radioValue&quot;&gt;--\x3e\x3c!--              &lt;t-radio value=&quot;1&quot; allow-uncheck&gt;{{ t(&#39;info.selectAll&#39;).replace(&#39;%s&#39;, productList1) }}&lt;/t-radio&gt;--\x3e\x3c!--              &lt;t-radio value=&quot;2&quot;&gt;{{ t(&#39;info.selectByCondition&#39;).replace(&#39;%s&#39;, productList2) }}&lt;/t-radio&gt;--\x3e\x3c!--              &lt;t-radio value=&quot;3&quot;&gt;{{ t(&#39;info.batchSelect&#39;).replace(&#39;%s&#39;, productList3) }}&lt;/t-radio&gt;--\x3e\x3c!--            &lt;/t-radio-group&gt;--\x3e\x3c!--          &lt;/t-space&gt;--\x3e\x3c!--        &lt;/div&gt;--\x3e\x3c!--        &lt;div class=&quot;filtationButton&quot; :class=&quot;styleClass(&#39;filtationButton&#39;)&quot;&gt;--\x3e\x3c!--          &lt;t-button @click=&quot;copy(&#39;name&#39;)&quot;&gt;{{ t(&#39;common.copyTitle&#39;) }}&lt;/t-button&gt;--\x3e\x3c!--          &lt;t-button @click=&quot;copy(&#39;url&#39;)&quot;&gt;{{ t(&#39;common.copyLink&#39;) }}&lt;/t-button&gt;--\x3e\x3c!--          &lt;t-popup :content=&quot;!shopdoraToken ? keywordAnalysis1 : !description ? keywordAnalysis2 : keywordAnalysis1&quot;&gt;--\x3e\x3c!--            &lt;t-button--\x3e\x3c!--                v-if=&quot;exportType != &#39;shopList&#39;&quot;--\x3e\x3c!--                @click=&quot;keywordAnalyseAdd&quot;--\x3e\x3c!--                :disabled=&quot;keywordAnalyse.progress &gt;= 0 &amp;&amp; keywordAnalyse.progress != 100&quot;--\x3e\x3c!--            &gt;{{--\x3e\x3c!--                keywordAnalyse.progress == -1--\x3e\x3c!--                    ? t(&#39;info.topKeywords&#39;)--\x3e\x3c!--                    : keywordAnalyse.progress == 100--\x3e\x3c!--                        ? t(&#39;tools.viewHighFrequencyWords&#39;)--\x3e\x3c!--                        : `${t(&#39;tools.analysisInProgress&#39;)} ${keywordAnalyse.progress}%`--\x3e\x3c!--              }}&lt;/t-button--\x3e\x3c!--            &gt;--\x3e\x3c!--          &lt;/t-popup&gt;--\x3e\x3c!--        &lt;/div&gt;--\x3e\x3c!--      &lt;/div&gt;--\x3e</div>',1)),b.value?(Aa(),Ia("div",ONe,[La("div",INe,[La("span",null,ne(Lt(t)("info.brand")),1),Na(s,{clearable:"",modelValue:g.value,"onUpdate:modelValue":o[1]||(o[1]=e=>g.value=e),placeholder:Lt(t)("common.pleaseSelect"),options:v.value,size:"medium",style:{width:"208px",display:"inline-block","margin-right":"20px"}},null,8,["modelValue","placeholder","options"])]),La("div",PNe,[La("span",ENe,ne(Lt(t)("info.monthlySales")),1),Na(l,{modelValue:m.value.salesM_min,"onUpdate:modelValue":o[2]||(o[2]=e=>m.value.salesM_min=e),class:"item-short",style:{width:"92px"},placeholder:Lt(t)("info.min")},null,8,["modelValue","placeholder"]),o[8]||(o[8]=La("span",{style:{margin:"0 12px"}},"~",-1)),Na(l,{modelValue:m.value.salesM_max,"onUpdate:modelValue":o[3]||(o[3]=e=>m.value.salesM_max=e),class:"item-short",style:{width:"92px"},placeholder:Lt(t)("info.max")},null,8,["modelValue","placeholder"])])])):Va("v-if",!0),Va('    <div class="hr" :style="{margin: \'0 0\'}" v-if="params.keyword"></div>'),Lt(c).keyword?(Aa(),Pa(nRe,{key:1,params:{site:Lt(i),keywordName:Lt(c).keyword}},null,8,["params"])):Va("v-if",!0),Va('    <div class="hr" v-if="params.keyword"></div>'),Na(yNe,{params:{site:Lt(i),keywordName:Lt(c).keyword,exportType:Lt(a)}},null,8,["params"]),Va('    <div class="hr"></div>'),Na(ANe,{params:{exportType:Lt(a)}},null,8,["params"])],4),Na(f,{header:"",visible:h.value.visible,"onUpdate:visible":o[5]||(o[5]=e=>h.value.visible=e),onClose:o[6]||(o[6]=e=>h.value.visible=!1),destroyOnClose:"",preventScrollThrough:!1,attach:"body",width:"520px",footer:!1},{default:Wn(()=>[La("div",MNe,[Na(u,{theme:"circle",percentage:h.value.progress,size:"small"},null,8,["percentage"]),La("div",{class:G(["top",n("analyseTop")])},ne(Lt(t)("tools.viewHighFrequencyWordsTip")),3),La("div",{class:G(["center",n("analyseCenter")])},ne(Lt(t)("tools.viewHighFrequencyWordsWaitTip")),3),La("button",{class:"button",onClick:o[4]||(o[4]=e=>h.value.visible=!1)},ne(Lt(t)("common.iKnow")),1)])]),_:1},8,["visible"]),Na(wRe,{visible:h.value.HistoryKeywordAnalysisShow,"onUpdate:visible":o[7]||(o[7]=e=>h.value.HistoryKeywordAnalysisShow=e),params:{site:Lt(i),id:h.value.HistoryKeywordAnalysisId}},null,8,["visible","params"])],64)}}}),RNe=yr({__name:"checkList",setup(e){let t=Et(yi("itemid")),n=Et(yi("exportType"));const r=Et(!0),i=vo(()=>RJ.getters["product/getProductRadioItem"]({itemid:t.value,exportType:n.value}));ta(()=>i.value,e=>{r.value=e.checked},{deep:!0});const a=()=>{let e=RJ.getters["product/getProductRadioValue"](n.value);r.value=!r.value,RJ.commit("product/setProductListChecked",{type:e,itemid:t.value,exportType:n.value})};return(e,t)=>{const n=Dz;return Aa(),Ia("p",{class:"checkList",onClick:bs(a,["prevent"])},[Na(n,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},null,8,["modelValue"])])}}}),LNe="data:image/png;base64, ",NNe="data:image/png;base64, ",jNe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},FNe=["src"],zNe=["src"],BNe=jNe(yr({__name:"TableEmpty",props:{top:{type:String,default:"0px"},bottom:{type:String,default:"0px"},img:{type:String,default:""},msg:{type:String},color:{type:String,default:"#999999"}},setup(e){const{t:t}=Zd(),n=e.msg|t("msg.noneRecord");return(t,r)=>(Aa(),Ia("div",{class:"table-empty-wrapper",style:V({paddingTop:e.top,paddingBottom:e.bottom})},[e.img?(Aa(),Ia("img",{key:0,class:"empty-img",src:e.img},null,8,FNe)):(Aa(),Ia("img",{key:1,class:"empty-img",src:Lt(NNe)},null,8,zNe)),La("div",{class:"msg",style:V({color:e.color})},ne(n),4)],4))}}),[["__scopeId","data-v-37a5347d"]]),VNe={class:"list-wrapper-crx"},HNe={class:"status-block"},WNe={style:{padding:"16px 0"}},UNe=yr({__name:"HistoryRecord",props:{type:String},setup(e){const{t:t,locale:n}=Zd(),r=Et(!1);Er(()=>{h()});const i={pagination:{itemsPerPage:"{size} \u6761/\u9875",jumpTo:"\u8df3\u81f3",page:"\u9875",total:"\u5171 {total} \u9879\u6570\u636e"}},a={pagination:{itemsPerPage:"{size} / page",jumpTo:"jump to",page:"",total:"Total {total} items"}},o=vo(()=>"zh"===n.value?i:a);ta(()=>n.value,()=>{setTimeout(()=>{h()},0)});const s=vo(()=>({0:t("tools.analysisInProgress"),1:t("tools.analysisInProgress"),2:t("analyse.analysisSuccessful"),3:t("analyse.analysisFailed")})),l=vo(()=>[{title:t("analyse.name"),colKey:"statusTxt",width:"700px"},{title:t("analyse.analyseTime"),colKey:"createTime"},{title:t("analyse.status"),colKey:"statusName"},{title:t("analyse.action"),colKey:"operate"}]),u=Et(!1),c=Et(5),d=Et(1),f=bt({list:[],totalCount:0}),h=()=>{u.value=!0,oQ("/plugin/productTitleAnalysis/log",{site:"all",pageNum:d.value,pageSize:c.value}).then(e=>{f.totalCount=e.totalCount,f.list=e.list.map(e=>{let n=JSON.parse(e.name);return{statusTxt:`${sQ.value[e.site].label}${t("skuExcel.site")} ${n.type_k_c} ${n.name} ${n.type}${t("page.pageInfo",{page:n.page})}${t("info.relatedProduct")}(${t("productBasicInfo.products")}:${n.totalCount})`,statusName:s.value[e.status],...e}})}).finally(()=>{u.value=!1})},p=e=>{c.value=e,d.value=1,h()},m=(e,t)=>{d.value=t.current,h()},v=Et();return(e,n)=>{const i=VO,a=UZ,s=dB,h=QZ;return Aa(),Ia(ba,null,[La("div",VNe,[0==f.list.length?(Aa(),Pa(BNe,{key:0,top:"160px"})):(Aa(),Ia(ba,{key:1},[Na(a,{"row-key":"id",size:"medium",loading:u.value,data:f.list,columns:l.value},{status:Wn(({row:e})=>[La("div",HNe,[La("span",null,ne(e.statusTxt),1)])]),operate:Wn(({row:e})=>[Na(i,{style:{padding:"0"},onClick:t=>{return n=e,r.value=!0,void(v.value={id:n.id,site:n.site});var n},theme:2!=e.status?"default":"primary",disabled:2!=e.status,variant:"text"},{default:Wn(()=>[za(ne(Lt(t)("common.view")),1)]),_:2},1032,["onClick","theme","disabled"])]),_:1},8,["loading","data","columns"]),La("div",WNe,[(Aa(),Pa(h,{key:o.value,"global-config":o.value},{default:Wn(()=>[Na(s,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=e=>d.value=e),pageSize:c.value,"onUpdate:pageSize":n[1]||(n[1]=e=>c.value=e),total:f.totalCount,"show-jumper":"",onPageSizeChange:p,onCurrentChange:m},null,8,["modelValue","pageSize","total"])]),_:1},8,["global-config"]))])],64))]),Na(wRe,{visible:r.value,"onUpdate:visible":n[2]||(n[2]=e=>r.value=e),params:v.value},null,8,["visible","params"])],64)}}}),XNe={class:"history-headerNmae"},GNe={class:"history-drawer"},YNe=yr({__name:"HistoryDrawer",props:{visible:Boolean},emits:["update:visible"],setup(e,{emit:t}){const{t:n}=Zd(),r=e,i=t,a=vo({get:()=>r.visible,set(e){i("update:visible",e)}}),o=Et("keyword"),s=vo(()=>[{label:n("info.topKeywords"),value:"keyword",type:"cate"}]);return(e,t)=>{const r=MR,i=ER,l=JZ;return Aa(),Pa(l,{class:"download-history-drawer-crx",visible:a.value,"onUpdate:visible":t[1]||(t[1]=e=>a.value=e),preventScrollThrough:!1,attach:"body",footer:!1,header:!1,placement:"bottom",size:"640px",destroyOnClose:"","close-btn":!0},{body:Wn(()=>[La("div",XNe,ne(Lt(n)("analyse.analysisHistory")),1),La("div",GNe,[Na(i,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e)},{default:Wn(()=>[(Aa(!0),Ia(ba,null,Gr(s.value,(e,t)=>(Aa(),Pa(r,{key:t,value:e.value,label:e.label},{default:Wn(()=>[Na(UNe)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["visible"])}}}),KNe={class:"currency-rate"},qNe={key:0,class:"custom-rates"},ZNe={class:"rate-tips"},JNe={class:"rate-input-label"},QNe=jNe(yr({__name:"CurrencyRate",emits:["cancel"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t=null)=>n(`style.currencyRate.${e}`,t),i={tw:n("countryArea.tw"),sg:n("countryArea.sg"),my:n("countryArea.my"),ph:n("countryArea.ph"),th:n("countryArea.th"),vn:n("countryArea.vn"),br:n("countryArea.br"),id:n("countryArea.id"),mx:n("countryArea.mx")},a=Et("centralBank"),o=Et({}),s=Et(!1);Er(()=>{o.value=JSON.parse(sessionStorage.getItem("shopdoraExchangeRate"));const e=sessionStorage.getItem("shopdoraExchangeRateCustom");a.value="string"==typeof e&&"true"===e?"custom":"centralBank"});const l=t,u=()=>{s.value=!0;const e="custom"===a.value;oQ("/calculate/saveExchangeRate",{isEnable:e,...o.value}).then(e=>{location.reload()}).finally(()=>{s.value=!0})},c=()=>{l("cancel")};return(e,t)=>{const l=aB,d=iB,f=wL,h=VO,p=cE;return Aa(),Ia("div",KNe,[La("div",{class:G(["currency-rate-header",r("currencyRateHeader")])},ne(Lt(n)("currency.currencyExchangeRate")),3),Na(d,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),"popup-props":{attach:".currency-rate"}},{default:Wn(()=>[Na(l,{label:Lt(n)("currency.chinaBankExchangeRate"),value:"centralBank"},null,8,["label"]),Na(l,{label:Lt(n)("currency.customExchangeRate"),value:"custom"},null,8,["label"])]),_:1},8,["modelValue"]),"custom"===a.value?(Aa(),Ia("div",qNe,[La("p",ZNe,ne(Lt(n)("currency.exchangeTip")),1),(Aa(!0),Ia(ba,null,Gr(Object.keys(i),e=>(Aa(),Ia("div",{key:e,class:"rate-item"},[Na(f,{class:"rate-input",theme:"normal",align:"right",size:"small","model-value":o.value[e],"onUpdate:modelValue":t=>((e,t)=>{o.value={...o.value,[e]:t}})(e,t)},{label:Wn(()=>[La("span",JNe,ne(i[e]),1)]),_:2},1032,["model-value","onUpdate:modelValue"])]))),128))])):Va("v-if",!0),t[1]||(t[1]=La("div",{style:{"flex-grow":"1"}},null,-1)),Na(p,null,{default:Wn(()=>[Na(h,{loading:s.value,onClick:u},{default:Wn(()=>[za(ne(Lt(n)("common.confirm")),1)]),_:1},8,["loading"]),Na(h,{theme:"default",onClick:c},{default:Wn(()=>[za(ne(Lt(n)("common.cancel")),1)]),_:1})]),_:1})])}}}),[["__scopeId","data-v-e00a96dc"]]),$Ne={class:"ShopDoraIcon"},eje={key:3,class:"loginTitle historyTitile"},tje={id:"shopdoraUserPopup"},nje={class:"userLeft"},rje={class:"wxCode"},ije={class:"wxCodeName"},aje={key:0,class:"userLeft settingList"},oje={class:"settingCheckAll"},sje={class:"settingCheckItem"},lje={class:"settingCheckItem"},uje={class:"settingCheckItem"},cje={class:"settingCheckItem"},dje={class:"settingCheckItem"},fje={class:"settingCheckItem"},hje={class:"settingCheckItem"},pje={class:"settingCheckItem"},mje={class:"settingButtons"},vje={key:1,class:"userLeft settingList"},gje={id:"shopdorapopup"},yje={class:"shopdoraInfo"},bje={key:0},wje={key:1,class:"shopdoraUser"},xje={class:"userRight"},Sje={class:"shopdoraUsername"},_je={class:"shopdoraVip"},kje={key:0,class:"shopdoraVipTime"},Aje={id:"shopdoraCrxInfo"},Cje={class:"dropdown-op"},Tje={class:"dropdownUl"},Oje={class:"dropdownLi"},Ije={class:"dropdownLi"},Pje={style:{"margin-bottom":"-3px"}},Eje={class:"dropdownLi"},Mje={class:"version"},Dje={style:{"margin-bottom":"-3px"}},Rje={key:1,class:"newVersion"},Lje={key:0,class:"dialog"},Nje={class:"iconVersion"},jje={class:"tips"},Fje={class:"text"},zje=yr({__name:"icon",setup(e){const{t:t,locale:n}=Zd(),r=Et(!1),i=(e,n=null)=>t(`style.icon.${e}`,n);chrome.runtime.sendMessage({type:"loadData",key:"locale"},e=>{n.value=e||"en"});const a=e=>{chrome.runtime.sendMessage({type:"saveData",data:{locale:e}},async function(){}),r.value=!1},o=Et(""),s=Et(""),l=Et(!1),u=Et(!1),c=gQ(),d=vo(()=>RJ.getters["user/isLogin"]),f=vo(()=>RJ.getters["user/getHistory"]),h=()=>{u.value=!0,RJ.commit("user/setHistory",!1)},p=Et(!1);oQ("/plugin/queryVersion").then(e=>{const t=Et(JSON.parse(e));o.value=t.value.version,1==((e="0",t="0")=>{e=e||"0",t=t||"0";const n=String(e.toLowerCase().replace("v","")).split("."),r=String(t.toLowerCase().replace("v","")).split("."),i=Math.min(n.length,r.length);let a=0;for(let o=0;o<i;o++){const e=Number(n[o]),t=Number(r[o]);if(e>t){a=1;break}if(e<t){a=-1;break}}if(0===a&&n.length!==r.length){const e=n.length>r.length,t=e?n:r;for(let n=i;n<t.length;n++)if(Number(t[n])>0){a=e?1:-1;break}}return a})(o.value,AQ)&&(p.value=!0),s.value=t.value.tips,l.value=t.value.isForce});const m=localStorage.getItem("version");1!=p.value||m&&m==o.value||oQ("/cate/all",{site:c}).then(e=>{e&&(localStorage.setItem("version",o.value),localStorage.setItem("cateList",JSON.stringify(e)))}),oQ("/plugin/queryFollowSalesSiteList").then(e=>{localStorage.setItem("shopdoraFollowSalesSiteList",e||JSON.stringify({sg:!0,id:!0,th:!0,mx:!0,my:!0,tw:!0,ph:!0,br:!0,vn:!0}))});const v=()=>{window.open("https://help.shopdora.cn/?p=671","_blank")},g=vo(()=>RJ.getters["user/userInfo"]??{});chrome.runtime.onMessage.addListener(function(e){"shopdoraSwitch"==e.cmd&&localStorage.setItem("shopdoraSwitch",e.value?"1":"0")});const y=Et(!1),b=Et(!1),w=()=>{RJ.commit("user/setLoginType",!0)},x=()=>{RJ.commit("user/removeToken"),location.reload()},S=()=>{window.open("https://www.shopdora.com/my","_blank")},_=()=>{window.open("https://www.shopdora.com/price","_blank")},k=()=>{window.open(t("common.helpCenterUrl"),"_blank")},A=Et({}),C={id:!0,cnyPrice:!0,shopName:!0,brand:!0,cate:!0,time:!0,soldD1AndD7:!1,soldD30:!0,soldD30Rate:!0,salesD30:!0,sold:!0,sales:!0,liked_count:!0},T=Et(!1),O=()=>{if(g.value.customListInfo){let e=JSON.parse(g.value.customListInfo);Object.assign(A.value,e)}else Object.assign(A.value,C);T.value=!0},I=()=>{T.value=!1},P=e=>{let t=e&&JSON.stringify(e);oQ("/user/custom/list/save",{content:t}).then(()=>{location.reload()})},E=async()=>{P(A.value),I()},M=Et(!1),D=()=>{M.value=!0},R=()=>{M.value=!1},L=Et(0);chrome.runtime.sendMessage({type:"loadData",key:"disabled"},e=>{L.value=e||0});const N=e=>{L.value=e,chrome.storage.local.set({"shopdora-disabled":L.value},()=>{}),localStorage.setItem("shopdora-disabled",L.value+""),chrome.runtime.sendMessage({type:"saveData",data:{disabled:e}},async function(){}),r.value=!1};return chrome.runtime.onMessage.addListener(function(e){"setDisabled"==e.cmd&&(L.value=e.value,chrome.storage.local.set({"shopdora-disabled":L.value},()=>{}),localStorage.setItem("shopdora-disabled",L.value+""))}),chrome.runtime.onMessage.addListener(function(e){"customListInfo"==e.cmd&&P(e.value.data)}),(e,r)=>{const o=Dz,c=VO,m=iB;return Aa(),Ia(ba,null,[La("div",{class:G(["shopIcon",i("shopIcon")]),onMouseover:r[16]||(r[16]=e=>b.value=!0),onMouseout:r[17]||(r[17]=e=>b.value=!1)},[La("div",$Ne,[La("div",{class:G(["iconImg",i("iconImg")])},r[19]||(r[19]=[La("img",{src:"data:image/png;base64, ",alt:""},null,-1)]),2),d.value?(Aa(),Ia("span",{key:0,class:G(["text",i("text")])},ne(p.value?Lt(t)("common.update"):"Shopdora"),3)):(Aa(),Ia("span",{key:1,class:G(["text",i("text")]),onClick:w,style:{cursor:"pointer"}},ne(Lt(t)("common.clickLogin")),3)),d.value?d.value&&f.value?(Aa(),Ia("div",eje,ne(Lt(t)("common.getHistory")),1)):Va("v-if",!0):(Aa(),Ia("div",{key:2,class:G(["loginTitle",i("loginTitle")])},ne(Lt(t)("common.isLogin")),3))]),Xn(La("div",{class:"move",onMouseout:r[15]||(r[15]=e=>b.value=!1)},[Va(' <div class="move" @mouseout="info = false"> '),La("div",tje,[Xn(La("div",nje,[La("div",rje,[La("div",ije,ne(Lt(t)("common.wxCodeName")),1),r[20]||(r[20]=La("img",{src:"data:image/png;base64, ",alt:""},null,-1))])],512),[[Xo,y.value]]),T.value?(Aa(),Ia("div",aje,[La("div",{class:G(["settingHeaderName",i("settingHeaderName")])},ne(Lt(t)("common.customList")),3),La("div",oje,[La("div",sje,[Na(o,{modelValue:A.value.id,"onUpdate:modelValue":r[0]||(r[0]=e=>A.value.id=e)},{default:Wn(()=>[za(ne(Lt(t)("info.id")),1)]),_:1},8,["modelValue"]),Na(o,{modelValue:A.value.cnyPrice,"onUpdate:modelValue":r[1]||(r[1]=e=>A.value.cnyPrice=e)},{default:Wn(()=>[za(ne(Lt(t)("iconPage.priceCheck")),1)]),_:1},8,["modelValue"])]),La("div",lje,[Na(o,{modelValue:A.value.shopName,"onUpdate:modelValue":r[2]||(r[2]=e=>A.value.shopName=e)},{default:Wn(()=>[za(ne(Lt(t)("info.seller")),1)]),_:1},8,["modelValue"]),Na(o,{modelValue:A.value.brand,"onUpdate:modelValue":r[3]||(r[3]=e=>A.value.brand=e)},{default:Wn(()=>[za(ne(Lt(t)("info.brand")),1)]),_:1},8,["modelValue"])]),La("div",uje,[Na(o,{modelValue:A.value.cate,"onUpdate:modelValue":r[4]||(r[4]=e=>A.value.cate=e)},{default:Wn(()=>[za(ne(Lt(t)("info.cate")),1)]),_:1},8,["modelValue"]),Na(o,{modelValue:A.value.time,"onUpdate:modelValue":r[5]||(r[5]=e=>A.value.time=e)},{default:Wn(()=>[za(ne(Lt(t)("info.time")),1)]),_:1},8,["modelValue"])]),La("div",cje,[Na(o,{modelValue:A.value.soldD30,"onUpdate:modelValue":r[6]||(r[6]=e=>A.value.soldD30=e)},{default:Wn(()=>[za(ne(Lt(t)("info.soldD30")),1)]),_:1},8,["modelValue"]),Na(o,{modelValue:A.value.soldD1AndD7,"onUpdate:modelValue":r[7]||(r[7]=e=>A.value.soldD1AndD7=e)},{default:Wn(()=>[za(ne(Lt(t)("info.soldD1AndD7")),1)]),_:1},8,["modelValue"])]),La("div",dje,[Na(o,{modelValue:A.value.soldD30Rate,"onUpdate:modelValue":r[8]||(r[8]=e=>A.value.soldD30Rate=e)},{default:Wn(()=>[za(ne(Lt(t)("info.soldD30Rate")),1)]),_:1},8,["modelValue"])]),La("div",fje,[Na(o,{modelValue:A.value.salesD30,"onUpdate:modelValue":r[9]||(r[9]=e=>A.value.salesD30=e)},{default:Wn(()=>[za(ne(Lt(t)("info.salesD30")),1)]),_:1},8,["modelValue"])]),La("div",hje,[Na(o,{modelValue:A.value.liked_count,"onUpdate:modelValue":r[10]||(r[10]=e=>A.value.liked_count=e)},{default:Wn(()=>[za(ne(Lt(t)("info.liked_count")),1)]),_:1},8,["modelValue"])]),La("div",pje,[Na(o,{modelValue:A.value.sold,"onUpdate:modelValue":r[11]||(r[11]=e=>A.value.sold=e)},{default:Wn(()=>[za(ne(Lt(t)("info.totalSold")),1)]),_:1},8,["modelValue"]),Na(o,{modelValue:A.value.sales,"onUpdate:modelValue":r[12]||(r[12]=e=>A.value.sales=e)},{default:Wn(()=>[za(ne(Lt(t)("info.totalSales")),1)]),_:1},8,["modelValue"])])]),La("div",mje,[Na(c,{onClick:E},{default:Wn(()=>[za(ne(Lt(t)("common.confirm")),1)]),_:1}),Na(c,{theme:"default",onClick:I},{default:Wn(()=>[za(ne(Lt(t)("common.cancel")),1)]),_:1})])])):Va("v-if",!0),M.value?(Aa(),Ia("div",vje,[Na(QNe,{onCancel:R})])):Va("v-if",!0),La("div",gje,[r[26]||(r[26]=La("div",{class:"shopdoralogo"},[La("div",{class:"img"},[La("img",{src:LNe,alt:""})])],-1)),La("div",yje,[g.value?.id?(Aa(),Ia("div",wje,[r[21]||(r[21]=La("div",{class:"shopdoraImg"},[La("img",{src:z$,alt:""})],-1)),La("div",xje,[La("div",Sje,ne(g.value?.company?g.value.company:g.value?.mobile),1),La("div",null,[La("span",_je,ne(g.value?.equityDto?.description),1),"\u514d\u8d39\u7248"!=g.value?.equityDto?.description?(Aa(),Ia("span",kje,ne(Lt(t)("common.expireDate")+Lt(iDe)(g.value?.equityDto?.expireDate+"","YYYYMMDD").format("YYYY-MM-DD")),1)):Va("v-if",!0)])])])):(Aa(),Ia("div",bje,[La("button",{class:"button",onClick:w},ne(Lt(t)("common.loginNow")),1)]))]),La("div",Aje,[r[25]||(r[25]=La("div",{class:"hr"},null,-1)),La("div",Cje,[La("ul",Tje,[g.value?.id?(Aa(),Ia("li",{key:0,class:"dropdownLi",onClick:h},[Na(Lt(bg)),La("span",null,ne(Lt(t)("analyse.analysisRecord")),1)])):Va("v-if",!0),r[22]||(r[22]=La("div",{class:"children-hr"},null,-1)),La("li",{class:"dropdownLi",onClick:S},[Na(Lt(Av)),La("span",null,ne(Lt(t)("common.goToShopdora")),1)]),La("li",{class:"dropdownLi",onClick:_},[Na(Lt(rg)),La("span",null,ne(Lt(t)("common.membershipPrice")),1)]),La("li",{class:"dropdownLi",onClick:k},[Na(Lt(hv)),La("span",null,ne(Lt(t)("common.helpCenter")),1)]),Va('                <li class="dropdownLi" @mouseout="userLeftShop = false" @mouseover="userLeftShop = true">'),Va("                  <ServiceIcon />"),Va("                  <span>{{ t('common.contact') }}</span>"),Va("                </li>"),r[23]||(r[23]=La("div",{class:"children-hr"},null,-1)),g.value?.id?(Aa(),Ia("li",{key:1,class:"dropdownLi",onClick:O},[Na(Lt($v)),La("span",null,ne(Lt(t)("common.customList")),1)])):Va("v-if",!0),g.value?.id?(Aa(),Ia("li",{key:2,class:"dropdownLi",onClick:D},[Na(Lt($v)),La("span",null,ne(Lt(t)("currency.currencyExchangeRate")),1)])):Va("v-if",!0),La("li",Oje,[Na(Lt(sg)),La("span",null,ne(Lt(t)("common.language")),1),Na(m,{"popup-props":{attach:"#languageId"},id:"languageId",class:"languageSelect",modelValue:Lt(n),"onUpdate:modelValue":r[13]||(r[13]=e=>Pt(n)?n.value=e:null),borderless:!0,style:{width:"fit-content","max-width":"100px","margin-left":"auto"},placeholder:Lt(t)("common.language"),options:Lt(rf),onChange:a},null,8,["modelValue","placeholder","options"])]),La("li",Ije,[Na(Lt(Xv)),La("span",Pje,ne(Lt(t)("common.imageSearch")),1),Na(m,{"popup-props":{attach:"#disableId"},id:"disableId",class:"languageSelect",modelValue:L.value,"onUpdate:modelValue":r[14]||(r[14]=e=>L.value=e),borderless:!0,style:{width:"fit-content","max-width":"100px","margin-left":"auto"},placeholder:Lt(t)("common.language"),options:Lt(hQ),onChange:N},null,8,["modelValue","placeholder","options"])]),La("li",Eje,[Na(Lt(xv)),La("div",Mje,[La("span",Dje,ne(Lt(t)("common.update")),1),p.value?(Aa(),Ia("span",{key:0,class:"noVersion",onClick:v},ne(Lt(t)("common.goToUpdate")),1)):(Aa(),Ia("span",Rje,ne(Lt(t)("common.latestVersion")),1))])]),r[24]||(r[24]=La("div",{class:"children-hr"},null,-1)),g.value?.id?(Aa(),Ia("li",{key:3,class:"dropdownLi",onClick:x},[Na(Lt(jv)),La("span",null,ne(Lt(t)("common.logout")),1)])):Va("v-if",!0)])])])])]),r[27]||(r[27]=La("div",{class:"hove"},null,-1))],544),[[Xo,b.value]])],34),p.value&&l.value?(Aa(),Ia("div",Lje,[La("div",Nje,[r[28]||(r[28]=La("div",{class:"img"},[La("img",{src:"data:image/png;base64, ",alt:""})],-1)),La("div",jje,[La("p",Fje,ne(s.value),1),La("button",{onClick:v},ne(Lt(t)("common.goToUpdate")),1)])])])):Va("v-if",!0),u.value?(Aa(),Pa(YNe,{key:1,visible:u.value,"onUpdate:visible":r[18]||(r[18]=e=>u.value=e)},null,8,["visible"])):Va("v-if",!0)],64)}}}),Bje={key:0,class:"loading"},Vje={key:1},Hje={key:1},Wje={class:"rateText"},Uje={class:"rateTextLeft"},Xje={style:{"margin-bottom":"0"}},Gje={style:{"margin-top":"5px"}},Yje={class:"rateTextRight"},Kje={style:{margin:"0","font-weight":"500"}},qje={style:{"font-size":"16px"}},Zje={style:{"font-size":"16px",color:"rgba(0, 0, 0, 0.6)","line-height":"16px","margin-top":"5px"}},Jje={class:"rateMap"},Qje={class:"star"},$je={class:"item"},eFe={class:"item"},tFe={class:"item"},nFe={class:"item"},rFe={class:"item"},iFe={class:"star",style:{"margin-left":"0px"}},aFe={class:"item",style:{color:"rgba(0, 0, 0, 0.6)","margin-top":"-20px"}},oFe={class:"item"},sFe={class:"item"},lFe={class:"item",style:{"margin-top":"25px"}},uFe={class:"item",style:{"margin-top":"26px"}},cFe={class:"item",style:{"margin-top":"28px"}},dFe={class:"star"},fFe={class:"item",style:{color:"rgba(0, 0, 0, 0.6)","margin-top":"-20px"}},hFe={class:"item"},pFe={class:"item"},mFe={class:"item",style:{"margin-top":"25px"}},vFe={class:"item",style:{"margin-top":"26px"}},gFe={class:"item",style:{"margin-top":"28px"}},yFe=yr({__name:"specification",props:{itemid:String,site:String,specificaRight:Boolean},emits:["update:specificaRight"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t="specification",r=null)=>n(`style.${t}.${e}`,r),i=e,a=t;let o=bt({ratingStar:0,ratingNumber:0,commentCount:{star1:0,star2:0,star3:0,star4:0,star5:0},commentCountProportion:{star1:0,star2:0,star3:0,star4:0,star5:0}});const s=Et(!0),l=Et(0),u=Et(!1),c=vo({get:()=>(i.specificaRight&&oQ("/plugin/compositeComment",{site:i.site,itemId:i.itemid}).then(e=>{e||(u.value=!0,s.value=!1),o=e,o.ratingStar>=Math.floor(o.ratingStar)&&o.ratingStar<=Math.floor(o.ratingStar)+.3?l.value=Math.floor(o.ratingStar):o.ratingStar>=Math.floor(o.ratingStar)+.4&&o.ratingStar<=Math.floor(o.ratingStar)+.8?l.value=Math.floor(o.ratingStar)+.5:o.ratingStar>=Math.floor(o.ratingStar)+.9?l.value=Math.floor(o.ratingStar)+1:5==o.ratingStar&&(l.value=o.ratingStar),s.value=!1}),i.specificaRight),set(e){setTimeout(()=>{!e&&document.querySelector(".produtSpecificationDialogCrx")?.remove()}),a("update:specificaRight",e)}});return(e,t)=>{const i=CO,a=qZ,d=UG,f=PG;return Aa(),Pa(f,{visible:c.value,"onUpdate:visible":t[1]||(t[1]=e=>c.value=e),class:"produtSpecificationDialogCrx",width:r("dialogWidth"),header:Lt(n)("analyse.overallRating"),footer:!1,destroyOnClose:"",preventScrollThrough:!1,attach:"body",closeOnOverlayClick:""},{default:Wn(()=>[La("div",{class:"specification",style:V({width:r("specificationWidth")})},[Va(' <div class="shopdoratopText"><span class="leftText">\u7efc\u5408\u8bc4\u4ef7</span><span class="rightSpan"></span></div> '),s.value?(Aa(),Ia("div",Bje,[u.value?Va("v-if",!0):(Aa(),Pa(i,{key:0,size:"large"})),u.value?(Aa(),Ia("div",Vje,ne(Lt(n)("error.systemBusyError")),1)):Va("v-if",!0)])):(Aa(),Ia("div",Hje,[La("div",Wje,[La("div",Uje,[La("p",Xje,ne(null==Lt(o)?.ratingStar?0:Lt(o)?.ratingStar),1),La("p",Gje,[Na(a,{disabled:"",modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),"allow-half":""},null,8,["modelValue"])])]),La("div",Yje,[La("span",Kje,[za(ne(null==Lt(o)?.ratingNumber?0:Lt(o)?.ratingNumber),1),La("span",qje,ne(Lt(n)("common.rec")),1)]),La("p",Zje,ne(Lt(n)("review.numberOfReviews")),1)])]),t[3]||(t[3]=La("div",{class:"hr"},null,-1)),La("div",Jje,[La("div",Qje,[La("div",$je,[La("div",null,ne(Lt(n)("review.stars",{number:5})),1),La("div",{class:G(["progress",r("progress")])},[Na(d,{percentage:null==Lt(o)?.commentCountProportion?0:100*Lt(o)?.commentCountProportion?.star5,theme:"plump",label:!1},null,8,["percentage"])],2)]),La("div",eFe,[La("div",null,ne(Lt(n)("review.stars",{number:4})),1),La("div",{class:G(["progress",r("progress")])},[Na(d,{percentage:null==Lt(o)?.commentCountProportion?0:100*Lt(o)?.commentCountProportion?.star4,theme:"plump",label:!1},null,8,["percentage"])],2)]),La("div",tFe,[La("div",null,ne(Lt(n)("review.stars",{number:3})),1),La("div",{class:G(["progress",r("progress")])},[Na(d,{percentage:null==Lt(o)?.commentCountProportion?0:100*Lt(o)?.commentCountProportion?.star3,theme:"plump",label:!1},null,8,["percentage"])],2)]),La("div",nFe,[La("div",null,ne(Lt(n)("review.stars",{number:2})),1),La("div",{class:G(["progress",r("progress")])},[Na(d,{percentage:null==Lt(o)?.commentCountProportion?0:100*Lt(o)?.commentCountProportion?.star2,theme:"plump",label:!1},null,8,["percentage"])],2)]),La("div",rFe,[La("div",null,ne(Lt(n)("review.stars",{number:1})),1),La("div",{class:G(["progress",r("progress")])},[Na(d,{percentage:null==Lt(o)?.commentCountProportion?0:100*Lt(o)?.commentCountProportion?.star1,theme:"plump",label:!1},null,8,["percentage"])],2)])]),La("div",iFe,[La("div",aFe,ne(Lt(n)("info.ratingCount")),1),La("div",oFe,ne(null==Lt(o)?.commentCount?0:Lt(o)?.commentCount?.star5),1),La("div",sFe,ne(null==Lt(o)?.commentCount?0:Lt(o)?.commentCount?.star4),1),La("div",lFe,ne(null==Lt(o)?.commentCount?0:Lt(o)?.commentCount?.star3),1),La("div",uFe,ne(null==Lt(o)?.commentCount?0:Lt(o)?.commentCount?.star2),1),La("div",cFe,ne(null==Lt(o)?.commentCount?0:Lt(o)?.commentCount?.star1),1)]),La("div",dFe,[La("div",fFe,ne(Lt(n)("review.ratingDistribution")),1),La("div",hFe,ne(null==Lt(o)?.commentCountProportion?"0%":(100*Lt(o)?.commentCountProportion?.star5).toFixed(2)+"%"),1),La("div",pFe,ne(null==Lt(o)?.commentCountProportion?"0%":(100*Lt(o)?.commentCountProportion?.star4).toFixed(2)+"%"),1),La("div",mFe,ne(null==Lt(o)?.commentCountProportion?"0%":(100*Lt(o)?.commentCountProportion?.star3).toFixed(2)+"%"),1),La("div",vFe,ne(null==Lt(o)?.commentCountProportion?"0%":(100*Lt(o)?.commentCountProportion?.star2).toFixed(2)+"%"),1),La("div",gFe,ne(null==Lt(o)?.commentCountProportion?"0%":(100*Lt(o)?.commentCountProportion?.star1).toFixed(2)+"%"),1)]),t[2]||(t[2]=La("div",null,null,-1))])]))],4)]),_:1},8,["visible","width","header"])}}}),bFe={class:"shopdora-list-item-log"},wFe={style:{color:"#fd6012",cursor:"pointer"}},xFe={class:"shopdora-list-item-info"},SFe={key:0,class:"shopdora-list-item-info-item"},_Fe={class:"shopdora-list-item-info-item-main"},kFe={key:1,class:"shopdora-list-item-info-item"},AFe={class:"shopdora-list-item-info-item-main"},CFe={key:2,class:"shopdora-list-item-info-item"},TFe={class:"shopdora-list-item-info-item-main"},OFe={key:3,class:"shopdora-list-item-info-item"},IFe={class:"shopdora-list-item-info-item-main"},PFe={key:4,class:"shopdora-list-item-info-item",style:{height:"10px"}},EFe={key:5,class:"shopdora-list-item-info-item"},MFe={class:"shopdora-list-item-info-item-main"},DFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},RFe={key:6,class:"shopdora-list-item-info-item",style:{height:"10px"}},LFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},NFe={key:7,class:"shopdora-list-item-info-item"},jFe={class:"shopdora-list-item-info-item-main"},FFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},zFe={class:"shopdora-list-item-info"},BFe={key:0,class:"shopdora-list-item-info-item"},VFe={key:0,class:"shopdora-list-item-info-item-main"},HFe={key:1,class:"shopdora-list-item-info-item-main basic-info"},WFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},UFe={key:1,class:"shopdora-list-item-info-item"},XFe={key:0,class:"shopdora-list-item-info-item-main"},GFe={key:1,class:"shopdora-list-item-info-item-main"},YFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},KFe={key:2,class:"shopdora-list-item-info-item"},qFe={key:0,class:"shopdora-list-item-info-item-main"},ZFe={key:1,class:"shopdora-list-item-info-item-main basic-info"},JFe={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},QFe={key:3,class:"shopdora-list-item-info-item"},$Fe={class:"shopdora-list-item-info-item-main"},eze={class:"shopdora-list-item-info-item"},tze={class:"shopdora-list-item-info-item"},nze={class:"shopdora-list-item-info-item-main"},rze={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},ize={class:"shopdora-list-item-info-item-main-icon"},aze={key:5,class:"shopdora-list-item-info-item"},oze={class:"shopdora-list-item-info-item-main"},sze={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},lze={key:6,class:"shopdora-list-item-info-item"},uze={key:0,class:"shopdora-list-item-info-item-main"},cze={key:1,class:"shopdora-list-item-info-item-main"},dze={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},fze={key:7,class:"shopdora-list-item-info-item"},hze={key:0,class:"shopdora-list-item-info-item-main"},pze={key:1,class:"shopdora-list-item-info-item-main"},mze={class:"shopdora-list-item-info-item-main-span basic-info span-cuesor"},vze={class:"shopdora-list-item-info-item-main-icon"},gze={class:"shopdora-list-item-button"},yze=["id"],bze=yr({__name:"productList",setup(e){const{t:t,locale:n}=Zd(),r=Et(!0),i=(e,n=null)=>t(`style.productList.${e}`,n),a=(e,n=null)=>t(`productListPage.${e}`,n),o=e=>"en"==n.value&&e&&e==t("info.crossBorder")?a("crossBorder"):e;let s=Et(yi("itemid"));Et(yi("shopid")),Et(yi("shopee"));let l=Et(yi("type")),u=Et(yi("detail")),c=Et(yi("site")),d=Et(yi("url"));const f=Et(null),h=vo(()=>FJ(s.value,[O.value,I.value,P.value],T.value,c.value,t)),p=Et(!0),m=Et(!0),v=vo(()=>RJ.getters["user/isLogin"]),g=vo(()=>RJ.getters["user/description"]),y=Et(!1),b=Et(!1),w=()=>{v.value?g.value&&null!=h.value?.cateId&&(oQ("/user/behavior",{endpoint:"plugin",path:"compositeComment"}),b.value=!0):NJ()},x=vo(()=>"zh"===n.value?t("common.rmb"):t("common.usd")),S=vo(()=>h.value.salesAmountLocal&&"-"!=h.value.salesAmountLocal?h.value.salesAmountLocal:`${sQ.value[c.value].localUnit}${oDe(h.value.salesAmount)}`),_=vo(()=>h.value.salesAmount30DayLocal&&"-"!=h.value.salesAmount30DayLocal?h.value.salesAmount30DayLocal:`${sQ.value[c.value].localUnit}${h.value.salesAmount30Day}`),k=()=>{v.value?(oQ("/user/behavior",{endpoint:"plugin",path:"listHistoryTrend"}),g.value&&null!=h.value?.cateId&&window.open(`https://www.shopdora.com/my/product/analysis?site=${c.value}&itemId=${s.value}`)):NJ()},A=()=>{v.value?null!==h.value?.cateId&&(oQ("/user/behavior",{endpoint:"plugin",path:"listFlowAnalysis"}),window.open(`https://www.shopdora.com/my/flow/words?itemid=${s.value}&site=${c.value}`,"_blank")):NJ()},C=()=>{if(!v.value)return void NJ();if(null==h.value?.shopName&&null==h.value?.leafCatId)return;oQ("/user/behavior",{endpoint:"plugin",path:"listMarketReport"});let e=h.value?.cateId??h.value?.leafCatId;window.open(`https://www.shopdora.com/my/category/history?cateId=${e}&site=${c.value}&yearMonth=30&shopSource=0`,"_blank")};const T=Et(JSON.parse(sessionStorage.getItem("shopdoraExchangeRate")??JSON.stringify({br:.66763,tw:4.3972,sg:.1866,th:4.9639,ph:7.7839,vn:3337.5,id:2108,mx:2.35029,my:.64333}))),O=vo(()=>{const e=RJ.getters["product/getShopeeList"];return"list"!=l.value&&"shopList"!=l.value?e(l.value,s.value,"1"):e(yQ(l.value),s.value,pQ("page"))}),I=vo(()=>{const e=RJ.getters["product/getProductBasicInfo"];return"list"!=l.value&&"shopList"!=l.value?e(l.value,s.value,"1"):e(yQ(l.value),s.value,pQ("page"))}),P=vo(()=>{const e=RJ.getters["product/getProductInfo"];return"list"!=l.value&&"shopList"!=l.value?e(l.value,s.value,"1"):e(yQ(l.value),s.value,pQ("page"))}),E=Et(!1),M=()=>{v.value?g.value&&null!=h.value?.cateId&&(E.value=!0):NJ()},D=vo(()=>{if(!h.value.cateId&&!h.value.catId)return null;const e=t("productListPage.cateNameType");return h.value.cateId?iJ(h.value.cateId,e):iJ(h.value.leafCatId??h.value.catId,e)}),R=vo(()=>{if(!h.value.price)return null;const e=c.value,t=T.value;return Number((h.value.price/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2))}),L=vo(()=>{if(!h.value.price_min)return null;const e=c.value,t=T.value;return Number((h.value.price_min/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2))}),N=vo(()=>{if(!h.value.price_max)return null;const e=c.value,t=T.value;return Number((h.value.price_max/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2))});let j=Et(!1);Er(()=>{ta(()=>O.value,()=>{O.value?.price&&!j.value&&!1!==RJ.getters["user/getShopListShow"]("cnyPrice")&&(j.value=!0,F())},{deep:!0,immediate:!0})}),ta(()=>n.value,()=>{setTimeout(()=>{F()},0)});const F=()=>{let e="";const t=document.documentElement;const n=getComputedStyle(t).fontFamily.split(",").map(e=>e.trim().replace(/^['"]|['"]$/g,"")).filter(e=>"roboto"!==e.toLowerCase());e=h.value.price_min_cny&&h.value.price_max_cny&&h.value.price_min_cny!=h.value.price_max_cny?`<span  style="display: inline-block; color: #2464f8; font-size: 20px; font-family: ${n}"> ${x.value} ${L.value} - ${N.value} </span>`:`<span  style="display: inline-block; color: #2464f8; font-size: 20px; font-family: ${n}"> ${x.value} ${R.value} </span>`;let r=null;r=f.value.parentNode.parentNode.parentNode.querySelector("a").querySelector(".p_r")?f.value.parentNode.parentNode.parentNode.querySelectorAll("a>div")[1]:f.value.parentNode.parentNode.parentNode.querySelectorAll("a>div")[0];const i=r.querySelector(".shopdoraPirceList");if(i)i.innerHTML=e;else{let t=document.createElement("div");t.setAttribute("class","shopdoraPirceList"),t.innerHTML=e,r.append(t)}};return document.addEventListener("click",function(e){let t=e.target,n=t.parentElement,r=!1;for(;n;){if(n.id&&n.id.includes("shopdora-list")){r=!0;break}n=n.parentElement}if(r)return;if(t){let e=t;for(;e&&e!==document.body;){if("BUTTON"===e.tagName||e.classList.contains("checkList"))return;e=e.parentElement}}for(;t&&"A"!==t.tagName;)t=t.parentElement;if(!t||"A"!==t.tagName)return;if(!t.className||"contents"!==t.className)return;let i=t.href;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();try{let e=new URL(i).toString();e.includes("?")&&(e=e.substring(0,e.indexOf("?"))),window.open(e,"_blank")}catch(a){}},!0),(e,l)=>{const T=wD;return Aa(),Ia(ba,null,[Xn(La("div",{id:"shopdora-list-item",class:G(i("shopdoraListId")),ref_key:"shopdoraList",ref:f},[La("div",bFe,[l[16]||(l[16]=La("div",{class:"img"},[La("img",{src:LNe,alt:""})],-1)),La("div",wFe,[Na(T,{content:Lt(t)("common.goShopdoraWeb")},{default:Wn(()=>[Na(Lt(Av),{onClick:Lt(jJ)},null,8,["onClick"])]),_:1},8,["content"])])]),La("div",xFe,[Lt(RJ).getters["user/getShopListShow"]("id")?(Aa(),Ia("div",SFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},"\xa0I \xa0D:",2),La("div",_Fe,[Na(T,{disabled:r.value,content:Lt(t)("msg.clickProductDetail")},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-span basic-info span-cuesor",onClick:l[0]||(l[0]=e=>(e=>{let t=e;t.includes("?")&&(t=t.substring(0,t.indexOf("?"))),window.open(t,"_blank")})(Lt(d)))},ne(Lt(s)),1)]),_:1},8,["disabled","content"]),Na(T,{disabled:r.value,content:Lt(t)("common.clickCopy")},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",onClick:l[1]||(l[1]=e=>Lt(fJ)(Lt(s)))},l[17]||(l[17]=[La("img",{src:Q$,style:{width:"14px",height:"14px",display:"inline-block","margin-bottom":"-5px"}},null,-1)]))]),_:1},8,["disabled","content"])])])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("shopName")?(Aa(),Ia("div",kFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("sellerTitle")]),style:{whiteSpace:"nowrap"}},ne(a("seller"))+":",3),La("div",AFe,[Na(T,{disabled:r.value,content:Lt(t)("msg.searchShopTip")},{default:Wn(()=>[La("span",{class:G(["shopdora-list-item-info-item-main-span basic-info span-cuesor",i("sellerTitleMain")]),onClick:l[2]||(l[2]=e=>Lt(lJ)(h.value.nameLink))},ne(h.value.shopName??Lt(t)("common.notInclude")),3)]),_:1},8,["disabled","content"]),Na(T,{disabled:(O=h.value.sellerSourceTips,!("en"==n.value&&O==t("info.crossBorder"))),content:a("crossBorderTip")},{default:Wn(()=>[h.value.sellerSourceTips?(Aa(),Ia("span",{key:0,class:G(["sellerSourceTips",i("sellerTitleValue")])},ne(o(h.value.sellerSourceTips)),3)):Va("v-if",!0)]),_:1},8,["disabled","content"])])])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("brand")?(Aa(),Ia("div",CFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")]),style:{whiteSpace:"nowrap"}},ne(a("brand"))+":",3),La("div",TFe,[Na(T,{disabled:r.value,content:Lt(t)("msg.searchTip")},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-span basic-info span-cuesor",onClick:l[3]||(l[3]=e=>Lt(uJ)(h.value.brand))},ne(h.value.brand??Lt(t)("common.notInclude")),1)]),_:1},8,["disabled","content"])])])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("cate")?(Aa(),Ia("div",OFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")]),style:V({width:i("cateWidth"),whiteSpace:"nowrap"})},ne(a("cate"))+":",7),La("div",IFe,[Na(T,{disabled:r.value,content:Lt(t)("msg.clickCateSearchProduct")},{default:Wn(()=>[La("span",{class:G(["shopdora-list-item-info-item-main-span basic-info span-cuesor",i("basicInfo")]),onClick:l[4]||(l[4]=e=>Lt(cJ)(D.value))},ne(D.value??Lt(t)("common.notInclude")),3)]),_:1},8,["disabled","content"]),Va('          <span class="shopdora-list-item-info-item-main-icon" v-if="productList.cateChPath"'),Va('            ><t-popup :disabled="disablePopup"'),Va('              :content="'),Va("                productList?.cateChPath == null"),Va("                  ? t('info.cate') + ': ' + t('common.notInclude')"),Va("                  : `${t('info.cate')}\uff1a` + productList?.cateChPath"),Va('              "'),Va('              ><InfoCircleIcon size="12px" /></t-popup'),Va("          ></span>")])])):Va("v-if",!0),h.value.salestMRank&&Lt(RJ).getters["user/getShopListShow"]("cate")?(Aa(),Ia("div",PFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},null,2),La("div",{class:G(["shopdora-list-item-info-item-main sales-ranking",i("salesRanking")])},ne(`(${a("mRank")}${h.value.salestMRank})`),3)])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("time")?(Aa(),Ia("div",EFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("listedOn"))+":",3),La("div",MFe,[La("span",DFe,ne(`${h.value.ctime}`),1)])])):Va("v-if",!0),h.value.ctimeDay&&Lt(RJ).getters["user/getShopListShow"]("time")?(Aa(),Ia("div",RFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},null,2),La("div",{class:G(["shopdora-list-item-info-item-main sales-ranking",i("salesRanking")]),style:{"margin-left":"22px"}},[La("span",LFe,ne(`(${h.value.ctimeDay??"N/A"}${Lt(t)("common.day")})`),1)],2)])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("liked_count")?(Aa(),Ia("div",NFe,[Va(' <div class="shopdora-list-item-info-item"> '),La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("likedCount"))+":",3),La("div",jFe,[La("span",FFe,ne(h.value.liked_count??"-"),1)])])):Va("v-if",!0)]),l[23]||(l[23]=La("div",{class:"shopdora-list-item-hr"},null,-1)),La("div",zFe,[Lt(RJ).getters["user/getShopListShow"]("soldD1AndD7")?(Aa(),Ia("div",BFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("soldD1AndD7"))+":",3),v.value?(Aa(),Ia("div",HFe,[La("span",WFe,ne(`${h.value.sales1Day??Lt(t)("common.notInclude")}/${h.value.sales7Day??Lt(t)("common.notInclude")}`),1)])):(Aa(),Ia("div",VFe,[Na(T,{content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[5]||(l[5]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["content"])]))])):Va("v-if",!0),Va(' <div class="shopdora-list-item-info-item">\n        <div class="shopdora-list-item-info-item-title" :class="styleClass(\'shopdoraListItemInfoItemTitle\')">\u8fd130\u65e5\u9500\u91cf:</div>\n        <div class="shopdora-list-item-info-item-main" v-if="!shopdoraToken">\n          <t-popup :content="t(\'common.clickLogin\')"><span @click="login" style="cursor: pointer">***</span></t-popup>\n        </div>\n        <div class="shopdora-list-item-info-item-main" v-else>\n          <span class="shopdora-list-item-info-item-main-span span-cuesor">{{\n            productList.sales30Day ?? t(\'common.notInclude\')\n          }}</span>\n        </div>\n      </div> '),Lt(RJ).getters["user/getShopListShow"]("soldD30")?(Aa(),Ia("div",UFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("soldD30"))+":",3),v.value?(Aa(),Ia("div",GFe,[La("span",YFe,ne(h.value.sales30Day),1),Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):v.value?g.value?Lt(iLe):Lt(aLe):Lt(iLe)},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7"},onClick:M},l[18]||(l[18]=[La("img",{src:xRe,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])])):(Aa(),Ia("div",XFe,[Na(T,{content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[6]||(l[6]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["content"])]))])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("soldD30Rate")?(Aa(),Ia("div",KFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("soldD30Rate"))+":",3),v.value?(Aa(),Ia("div",ZFe,[La("span",JFe,ne(h.value.salesGrowthRateM??Lt(t)("common.notInclude")),1)])):(Aa(),Ia("div",qFe,[Na(T,{content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[7]||(l[7]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["content"])]))])):Va("v-if",!0),v.value?v.value&&h.value.salesAmount30Day&&Lt(RJ).getters["user/getShopListShow"]("salesD30")?(Aa(),Ia(ba,{key:4},[La("div",eze,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("salesD30"))+":",3)]),La("div",tze,[La("div",nze,[La("span",rze,ne(p.value?_.value:`${x.value}${h.value.salesAmount30DayUnit}`),1),La("span",ize,[Na(T,{disabled:r.value,content:p.value?Lt(t)("productList.switchCurrency"):Lt(t)("currency.switchToTheLocalCurrency")},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7"},onClick:l[9]||(l[9]=e=>p.value=!p.value)},l[19]||(l[19]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])]),Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):v.value?g.value?Lt(iLe):Lt(aLe):Lt(iLe)},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7"},onClick:M},l[20]||(l[20]=[La("img",{src:xRe,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])])])],64)):Lt(RJ).getters["user/getShopListShow"]("salesD30")?(Aa(),Ia("div",aze,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("salesD30"))+":",3),La("div",oze,[La("span",sze,ne(Lt(t)("common.notInclude")),1),Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):v.value?g.value?Lt(iLe):Lt(aLe):Lt(iLe)},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7"},onClick:M},l[21]||(l[21]=[La("img",{src:xRe,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])])])):Va("v-if",!0):(Aa(),Ia("div",QFe,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("salesD30"))+":",3),La("div",$Fe,[Na(T,{disabled:r.value,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[8]||(l[8]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["disabled","content"])])])),Va(' <div class="shopdora-list-item-info-item">\n        <div class="shopdora-list-item-info-item-title" :class="styleClass(\'shopdoraListItemInfoItemTitle\')">\u8fd130\u65e5\u9500\u552e\u989d:</div>\n        <div class="shopdora-list-item-info-item-main" v-if="!shopdoraToken">\n          <t-popup :content="t(\'common.clickLogin\')"><span @click="login" style="cursor: pointer">***</span></t-popup>\n        </div>\n        <div class="shopdora-list-item-info-item-main" v-else>\n          <template> </template>\n          <span class="shopdora-list-item-info-item-main-span span-cuesor">{{\n            salesAmount30DayUnitType ? productList.salesAmount30Day : productList.salesAmount30DayUnit\n          }}</span>\n          <span class="shopdora-list-item-info-item-main-icon"\n            ><t-popup :content="salesAmount30DayUnitType ? \'\u70b9\u51fb\u5207\u6362\u4eba\u6c11\u5e01\' : \'\u70b9\u51fb\u5207\u6362\u672c\u571f\u8d27\u5e01\'"\n              ><SwapIcon @click="salesAmount30DayUnitType = !salesAmount30DayUnitType" size="12px" /></t-popup\n          ></span>\n        </div>\n      </div> '),Lt(RJ).getters["user/getShopListShow"]("sold")?(Aa(),Ia("div",lze,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("totalSold"))+":",3),v.value?(Aa(),Ia("div",cze,[La("span",dze,ne(h.value.sales??Lt(t)("common.notInclude")),1)])):(Aa(),Ia("div",uze,[Na(T,{content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[10]||(l[10]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["content"])]))])):Va("v-if",!0),Lt(RJ).getters["user/getShopListShow"]("sales")?(Aa(),Ia("div",fze,[La("div",{class:G(["shopdora-list-item-info-item-title",i("shopdoraListItemInfoItemTitle")])},ne(a("totalSales"))+":",3),v.value?(Aa(),Ia("div",pze,[La("span",mze,ne(m.value?S.value:`${x.value}${Lt(oDe)(h.value.salesAmountUnit)}`),1),La("span",vze,[Na(T,{disabled:r.value,content:m.value?Lt(t)("currency.switchCurrency"):Lt(t)("currency.switchToTheLocalCurrency")},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7"},onClick:l[12]||(l[12]=e=>m.value=!m.value)},l[22]||(l[22]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])])])):(Aa(),Ia("div",hze,[Na(T,{content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{onClick:l[11]||(l[11]=(...e)=>Lt(NJ)&&Lt(NJ)(...e)),style:{cursor:"pointer"}},"***")]),_:1},8,["content"])]))])):Va("v-if",!0)]),La("div",gze,[La("div",{class:G(["shopdora-list-item-button-item",i("shopdoraListItem")])},[Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(t)("msg.noInclude"):Lt(t)("msg.viewScoreRate")},{default:Wn(()=>[La("button",{class:G(["button",{noInclude:null==h.value?.cateId}]),style:V({width:"detail"==Lt(u)?i("buttonDetailWidth"):i("buttonWidth")}),onClick:w,onMouseleave:l[13]||(l[13]=e=>y.value=!1),id:Lt(s)},ne(Lt(t)("analyse.overallRating")),47,yze)]),_:1},8,["disabled","content"]),Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):v.value?g.value?Lt(nLe):Lt(rLe):Lt(nLe)},{default:Wn(()=>[La("button",{class:G(["button",{noInclude:null==h.value?.cateId}]),style:V({width:"detail"==Lt(u)?i("buttonDetailWidth"):i("buttonWidth"),marginTop:i("marginTop")}),onClick:k},ne(Lt(t)("analyse.comprehensiveAnalysis")),7)]),_:1},8,["disabled","content"])],2),La("div",{class:G(["shopdora-list-item-button-item",i("shopdoraListItem")])},[Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):g.value?Lt(eLe):Lt(tLe)},{default:Wn(()=>[La("button",{style:V({width:"detail"==Lt(u)?i("buttonDetailWidth"):i("buttonWidth")}),class:G(["button",[{noInclude:null==h.value?.cateId},i("shopdoraListItemButton")]]),onClick:A},ne(Lt(t)("analyse.trafficAnalysis")),7)]),_:1},8,["disabled","content"]),Na(T,{disabled:r.value,content:null==h.value.cateId?Lt(URe):g.value?Lt(ZRe):Lt(JRe)},{default:Wn(()=>[La("button",{class:G(["button",[{noInclude:!h.value?.shopPage&&null==h.value?.cateId},i("shopdoraListItemButton")]]),style:V({width:"detail"==Lt(u)?i("buttonDetailWidth"):i("buttonWidth"),marginTop:i("marginTop")}),onClick:C},ne(Lt(t)("analyse.marketAnalysis")),7)]),_:1},8,["disabled","content"])],2)])],2),[[Xo,h.value.price]]),Va(' <produtSalesDialog v-if="produtSalesDialogValue" @close="produtSalesDialogDel" :params="{ site, itemId: itemid }" /> '),E.value?(Aa(),Pa(VRe,{key:0,visible:E.value,"onUpdate:visible":l[14]||(l[14]=e=>E.value=e),params:{site:Lt(c),itemId:Lt(s)}},null,8,["visible","params"])):Va("v-if",!0),Na(yFe,{"specifica-right":b.value,"onUpdate:specificaRight":l[15]||(l[15]=e=>b.value=e),itemid:Lt(s),site:Lt(c)},null,8,["specifica-right","itemid","site"])],64);var O}}}),wze={class:"supplyShopdoraImg"},xze={class:"left"},Sze={class:"head"},_ze={class:"name"},kze={class:"supplyPrice"},Aze={style:{"margin-left":"8px",cursor:"pointer"}},Cze={class:"img"},Tze=["src"],Oze={class:"right"},Ize={class:"tab"},Pze={key:0,class:"shop-loading"},Eze={key:0,class:"visit"},Mze={class:"icon"},Dze={class:"text"},Rze={class:"button"},Lze={key:1,class:"visit"},Nze={class:"icon"},jze={class:"text"},Fze={class:"button"},zze={key:1,class:"shop-loading"},Bze={class:"visit"},Vze={class:"icon"},Hze={class:"text"},Wze={class:"button"},Uze={key:2,class:"shop-loading"},Xze={key:3,class:"shopList"},Gze={class:"shop"},Yze=["onClick"],Kze=["src"],qze={class:"name"},Zze={class:"price",style:{display:"flex","justify-content":"space-between","align-items":"center"}},Jze=["onClick"],Qze={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"12px"}},$ze={class:"store"},eBe={style:{"margin-left":"8px"}},tBe=yr({__name:"ProductImgSupply",props:{list:Object},setup(e){const{t:t}=Zd(),n=e,r=Et(!0),i=Et(""),a=Et(""),o=Et([]),s=Et(n.list.images[0]),l=Et([]),u=Et(JSON.parse(sessionStorage.getItem("shopdoraExchangeRate")));"LOCAL"==n.list.unit?(i.value=sQ.value[n.list.site].localUnit+(n.list.price/1e5).toFixed(2),a.value="\xa5"+(n.list.price/1e5/u.value[n.list.site]).toFixed(2)):(i.value=sQ.value[n.list.site].localUnit+(n.list.price/1e5*u.value[n.list.site]).toFixed(2),a.value="\xa5"+(n.list.price/1e5).toFixed(2));const c=Et(!1),d=Et(!1),f=Et("1688");let h=Et([]),p=Et([]),m=Et(0),v=Et(0),g=Et(1),y=Et(""),b=Et(!1),w=Et(!1);const x=e=>{oQ("/image/query",{imageId:e,beginPage:g.value,pageSize:40}).then(e=>{g.value++,e.data.map(e=>{h.value.push({url:e.url+`?kj_agent_plugin=shopdora&token=${e.token}`,imageUrl:e.imageUrl,name:e.name,price:e.price,hoverName:null,city:e.address,saleQuantity:e.saleQuantity})})})},S=async(e,t="1688")=>{const n=new Image;n.setAttribute("crossOrigin","anonymous");const r=e;n.src=r,n.onload=()=>{var e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0,n.width,n.height);const r=e.toDataURL("image/jpeg",.8).split("data:image/jpeg;base64,")[1];"1688"==t&&""==y.value&&oQ("/image/query/upload",{data:r}).then(e=>{y.value=e,x(e)})}},_=(e,t,n)=>{const r=setInterval(()=>{chrome.runtime.sendMessage({greeting:"cookiePdd"},function(i){if(i.map(e=>{0===e.name.indexOf("mp")&&(N.value=e),L.value[e.name]=e}),L.value.SUB_PASS_ID){let i={};Object.values(L.value).map(e=>{i[e.name]=e.value}),i.mpKey=N.value.name??"aa",i.mpVal=N.value.value??"bb",i.imgUrl=t,i.pageNo=e,i.sub_pass_id=L.value.SUB_PASS_ID.value,i.visitor_pass_id=L.value.VISITOR_PASS_ID.value,i.rn=1==e?"":n,clearInterval(r),oQ("/plugin/pddFigureSources/getData",i).then(e=>{let t=JSON.parse(JSON.parse(e).data).result;t&&(t.goodsList.map(e=>{p.value.push({url:`https://pifa.pinduoduo.com/goods/detail/?gid=${e.goodsId}`,imageUrl:e.goodsImgUrl,name:e.goodsName,price:(e.goodsWholeSalePrice/100).toFixed(2),hoverName:e.mallName,city:e.mallGoodsRegion,saleQuantity:e.salesTipAmount})}),w.value=!1,v.value=1e3,A.value=t.rn)}).catch(e=>{d.value=!0})}})},1e3)},k=Et(""),A=Et(""),C=Et(1),T=Et(null),O=Et(!1);QQ(T,([{isIntersecting:e}],t)=>{O.value=e,O.value&&("pdd"===f.value?(C.value+=1,_(C.value,k.value,A.value)):"1688"===f.value&&x(y.value))});const I=()=>{"1688"==f.value?(c.value=!1,S(s.value,f.value)):"pdd"==f.value&&(d.value=!1,C.value=1,_(C.value,k.value,A.value))},P=Et({pdd:{title:t("msg.pddLogin"),button:t("msg.pddLoginButton")},pddVerify:{title:t("msg.pddVerify"),button:t("msg.pddVerifyButton")}}),E=e=>{"1688"==e&&window.open("https://www.1688.com/","_blank"),"pddVerify"==e&&(window.open("https://pifa.pinduoduo.com/","_blank"),M()),"pdd"==e&&window.open("https://pifa.pinduoduo.com/","_blank")},M=()=>{const e=setInterval(()=>{chrome.runtime.sendMessage({greeting:"cookiePdd"},function(t){if(t.map(e=>{0===e.name.indexOf("mp")&&(N.value=e),L.value[e.name]=e}),L.value.SUB_PASS_ID){const t=new Image;t.setAttribute("crossOrigin","anonymous");const n=s.value;t.src=n,t.onload=()=>{var n=document.createElement("canvas");n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0,t.width,t.height);const r=n.toDataURL("image/jpeg",.8).split("data:image/jpeg;base64,")[1];clearInterval(e);let i={};Object.values(L.value).map(e=>{i[e.name.toLowerCase()]=e.value}),i.mpKey=N.value.name??"aa",i.mpVal=N.value.name??"bb",i.file=r,i.sub_pass_id=L.value.SUB_PASS_ID.value,i.visitor_pass_id=L.value.VISITOR_PASS_ID.value,oQ("/plugin/pddFigureSources/uploadImg",i).then(e=>{let t=JSON.parse(e);t.imgUrl?(w.value=!1,j.value=!1,k.value=t.imgUrl,v.value=1e3,C.value=1,_(C.value,k.value,A.value)):(j.value=!0,w.value=!0,M())})}}else w.value=!0})},1e3)},D=Et(!1),R=e=>{s.value=e,D.value=!1,h.value=[],p.value=[],g.value=1,y.value="",k.value="",A.value="",C.value=1,"pdd"===f.value?M():"1688"===f.value&&S(e,f.value)},L=Et({}),N=Et({}),j=Et(!1);ta(()=>f.value,()=>{p.value=[],h.value=[],v.value=0,m.value=0,w.value=!1,b.value=!1,k.value="",A.value="",C.value=1,"1688"===f.value&&S(s.value,f.value),"pdd"===f.value&&M()},{deep:!0,immediate:!0});return(n,u)=>{const m=wD,v=MR,g=ER,y=CO;return Aa(),Ia("div",wze,[La("div",xze,[La("div",Sze,ne(Lt(t)("tools.imagesSupplyPage")),1),La("div",_ze,ne(e.list?.name??""),1),La("div",kze,[La("span",null,ne(r.value?i.value??"":a.value??""),1),La("span",Aze,[Na(m,{content:r.value?Lt(t)("currency.switchCurrency"):Lt(t)("currency.switchToTheCurrency")},{default:Wn(()=>[Va(' <SwapIcon @click="unitType = !unitType" /> '),La("span",{style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:u[0]||(u[0]=e=>r.value=!r.value)},u[5]||(u[5]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["content"])])]),La("div",Cze,[La("img",{src:s.value,alt:""},null,8,Tze),D.value?(Aa(),Pa(WQ,{key:0,onClose:u[1]||(u[1]=e=>D.value=!1),onImagePut:R,skuImages:l.value,images:o.value,class:"listSpecification"},null,8,["skuImages","images"])):Va("v-if",!0)])]),La("div",Oze,[La("div",Ize,[Na(g,{modelValue:f.value,"onUpdate:modelValue":u[2]||(u[2]=e=>f.value=e)},{default:Wn(()=>[Na(v,{value:"1688",label:"1688",destroyOnHide:!1}),Na(v,{value:"pdd",label:Lt(t)("common.pdd"),destroyOnHide:!1},null,8,["label"])]),_:1},8,["modelValue"])]),"pdd"==f.value&&0==Lt(p).length&&Lt(w)?(Aa(),Ia("div",Pze,[j.value?Va("v-if",!0):(Aa(),Ia("div",Eze,[La("div",Mze,[Na(Lt(hv),{size:"44px"})]),La("div",Dze,ne(P.value[f.value].title),1),La("div",Rze,[La("button",{onClick:u[3]||(u[3]=e=>E(f.value))},ne(P.value[f.value].button),1)])])),j.value?(Aa(),Ia("div",Lze,[La("div",Nze,[Na(Lt(hv),{size:"44px"})]),La("div",jze,ne(P.value.pddVerify.title),1),La("div",Fze,[La("button",{onClick:u[4]||(u[4]=e=>E("pddVerify"))},ne(P.value.pddVerify.button),1)])])):Va("v-if",!0)])):"1688"==f.value&&0==Lt(h).length&&c.value||"pdd"==f.value&&0==Lt(p).length&&d.value?(Aa(),Ia("div",zze,[La("div",Bze,[La("div",Vze,[Na(Lt(hv),{size:"44px"})]),La("div",Hze,ne(Lt(t)("error.queryFailRetry")),1),La("div",Wze,[La("button",{onClick:I},ne(Lt(t)("msg.retry")),1)])])])):"1688"==f.value&&0==Lt(h).length&&!Lt(b)||"pdd"==f.value&&0==Lt(p).length&&!Lt(w)&&!j.value?(Aa(),Ia("div",Uze,[Na(y,{size:"50px",text:Lt(t)("common.queryProduct")},null,8,["text"])])):"1688"==f.value&&Lt(h).length>0||"pdd"==f.value&&Lt(p).length>0?(Aa(),Ia("div",Xze,[La("div",Gze,[(Aa(!0),Ia(ba,null,Gr("1688"==f.value?Lt(h):Lt(p),e=>(Aa(),Ia("div",{class:"shopItem",key:e},[La("div",null,[La("div",{class:"img",onClick:t=>{return n=e.url,oQ("/user/statistics",{tag:"1688"}),void window.open(n,"_blank");var n}},[La("img",{src:e.imageUrl,alt:""},null,8,Kze)],8,Yze),La("div",qze,ne(e.name),1),La("div",Zze,[La("span",null,[za(ne("\xa5 "+e.price),1),La("span",{style:{color:"#fd6012","padding-bottom":"2px","margin-left":"5px",cursor:"pointer"},onClick:n=>(e=>{const{toClipboard:n}=nJ();n(e).then(()=>{WE.closeAll(),WE.success(t("msg.copySuccess"),1e3)}).catch(()=>{WE.closeAll(),WE.error(t("msg.copySuccess"),1e3)})})(e.url)},[Na(m,{content:Lt(t)("common.copyLink")},{default:Wn(()=>u[6]||(u[6]=[La("img",{src:NQ,style:{width:"16px",height:"16px"}},null,-1)])),_:1,__:[6]},8,["content"])],8,Jze)]),La("span",Qze,ne(Lt(t)("info.soldNow")+e.saleQuantity),1)]),La("div",$ze,[La("span",null,ne(e.hoverName),1),La("span",null,ne(e.city),1)])])]))),128))]),La("div",{ref_key:"target",ref:T,class:"load-more"},[Na(y,{size:"16px"}),La("span",eBe,ne(Lt(t)("common.loading")),1)],512)])):Va("v-if",!0)])])}}}),nBe=yr({__name:"ShopdoraProductImgSupply",setup(e){const{t:t}=Zd(),n=Et(null);let r=Et(yi("list"));const i=Et(!1);return Er(()=>{n.value.parentNode.parentNode.parentNode.querySelector("img").addEventListener("click",function(){i.value=!0}),n.value.parentNode.parentNode.parentNode.querySelector("img").style.cursor="pointer"}),(e,a)=>{const o=wD,s=JZ;return Aa(),Ia(ba,null,[Va(' <div class="imgSupplyCrx" @click="imgValue = true">\u56fe\u641c\u8d27\u6e90</div> '),Na(o,{content:Lt(t)("msg.searchImgBySource")},{default:Wn(()=>[La("div",{class:"imgSupplyCrxBgc",ref_key:"imgSupplyCrxBgc",ref:n,onClick:a[0]||(a[0]=e=>i.value=!0)},null,512)]),_:1},8,["content"]),Na(s,{"t-drawer":"",class:"history-trend-drawer",visible:i.value,"onUpdate:visible":a[1]||(a[1]=e=>i.value=e),preventScrollThrough:!1,footer:!1,destroyOnClose:"",closeBtn:!0,size:"95vh",onClose:a[2]||(a[2]=e=>i.value=!1),placement:"bottom",attach:"body"},{default:Wn(()=>[i.value?(Aa(),Pa(tBe,{key:0,list:Lt(r)},null,8,["list"])):Va("v-if",!0)]),_:1},8,["visible"])],64)}}}),rBe={key:0,class:"shopdoraLoginPage"},iBe={class:"loginTopCrx"},aBe={class:"loginImgCrx"},oBe={class:"textCrx"},sBe={class:"loginDel"},lBe=["href"],uBe={class:"loginCrx"},cBe=yr({__name:"ShopdoraApp",setup(e){const{t:t}=Zd(),n=Et(!1);ta(()=>RJ.getters["user/getLoginType"],e=>{n.value=e},{deep:!0,immediate:!0});const r=gQ(),{locale:i}=Zd(),a=Et(0);if(chrome.runtime.sendMessage({type:"loadData",key:"locale"},e=>{i.value=e||"en"}),chrome.runtime.sendMessage({type:"loadData",key:"disabled"},e=>{a.value=e||0}),chrome.runtime.onMessage.addListener(function(e){"setLocale"==e.cmd&&(i.value=e.value)}),chrome.runtime.onMessage.addListener(function(e){"setDisabled"==e.cmd&&(a.value=e.value)}),oQ("/calculate/userExchangeRate").then(e=>{sessionStorage.setItem("shopdoraExchangeRate",JSON.stringify(e.rates)),sessionStorage.setItem("shopdoraExchangeRateCustom",e.isEnable)}),sQ.value[r]){const e=localStorage.getItem("cateList");e&&""!=e&&"{}"!=e||oQ("/cate/all",{site:r}).then(e=>{e&&localStorage.setItem("cateList",JSON.stringify(e))})}let o=Et(!1);const s=(e,t,n,i,a,o,s)=>{let l=document.createElement("div");l.setAttribute("id","shopdora-list"),l.setAttribute("data-itemid",t),e?.appendChild(l);const u=Ss(bze);u.use(window.i18n),u.provide("itemid",t),u.provide("shopid",n),u.provide("shopee",i),u.provide("site",r),u.provide("url",a),u.provide("detail",o),u.provide("type",s),u.use(RJ),u.use(Mm),u.mount(l)},l=(e,t,n)=>{let i=document.createElement("div");i.setAttribute("id","hlistFiltation"),document.querySelector(t)?.insertBefore(i,e);const a=Ss(DNe);a.use(window.i18n),a.provide("site",r),a.provide("exportType",n),a.use(Mm),a.use(RJ),a.mount(i)},u=(e,t,n)=>{let i=document.createElement("p");i.setAttribute("class","shopdora-checklist"),e.appendChild(i);const a=Ss(RNe);a.use(window.i18n),a.provide("itemid",t),a.provide("site",r),a.provide("exportType",n),a.use(RJ),a.use(Mm),a.mount(i)};Er(()=>{window.location.host.includes("1688");((e,t)=>{const n=setInterval(()=>{null==document.querySelector("#shopdora-search")?t():clearInterval(n)},1e3)})(0,e=>{let t=document.createElement("div");t.setAttribute("id","shopdora-search"),document.body.appendChild(t);const n=Ss(F$);n.use(Mm),n.use(window.i18n),n.use(RJ),n.provide("disabled",a.value),n.mount(t)}),window.location.host.indexOf("shopdora")>=0||window.location.host.indexOf("172.27.16.24")>=0?(o.value=!1,((e,t)=>{setInterval(()=>{document.querySelectorAll(e).forEach(e=>{e.parentNode?.querySelector("#shopdoraImgSupplyCrx")||null!=e&&t(e,JSON.parse(e.dataset.list))})},1e3)})("#shopdoraImgSupply",(e,t)=>{let n=document.createElement("div");n.setAttribute("id","shopdoraImgSupplyCrx"),e?.appendChild(n);const r=Ss(nBe);r.provide("list",t),r.use(window.i18n),r.use(Mm),r.use(RJ),r.mount(n)})):(window.location.host.includes("shopee")||window.location.host.includes("xiapi"))&&(o.value=!0,EQ(".container .row .shopee_ic a","find_similar_product",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","find_similar_product")}),EQ(".shopee-search-item-result__items .shopee-search-item-result__item a","list",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","list")}),EQ(".section-recommend-products-wrapper .stardust-tabs-panels .stardust-tabs-panels__panel ul li a","list",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","list")}),EQ(".stardust-tabs-panels .stardust-tabs-panels__panel  div div a","list",(e,t,n,r,i)=>{window.location.href.indexOf("top_products")>=0||s(e,t,n,r,i,"list","common")}),EQ(".page-product__content .page-product__content--left .recommendation-by-carousel .image-carousel .image-carousel__item-list-wrapper .image-carousel__item-list .image-carousel__item .product-recommend-items__item-wrapper a","list",(e,t,n,r,i)=>{s(e,t,n,r,i,"detail","you_may_also_like")}),EQ(".page-product__content .page-product__content--left .row div a","list",(e,t,n,r,i)=>{s(e,t,n,r,i,"detail","you_may_also_like")}),DQ(".shopee-search-item-result__items .shopee-search-item-result__item ",(e,t)=>{u(e,t,"list")}),DQ(".shop-search-result-view .row .shop-search-result-view__item ",(e,t)=>{u(e,t,"shopList")}),EQ(".shop-search-result-view .row .shop-search-result-view__item a","list",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","shopList")}),EQ("#main .container .row .col-xs-2 a","shopList",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","common")}),EQ(".shop-collection-view .shopee-header-section--simple .shopee-header-section__content .row .shop-collection-view__item a","shopList",(e,t,n,r,i)=>{s(e,t,n,r,i,"list","common")}),MQ(".container .shopee-search-item-result .shopee-search-item-result__items",e=>{l(e,".container .shopee-search-item-result","list")}),MQ(".shop-page__all-products-section .shop-page_product-list .shop-all-product-view .shopee-sort-bar",e=>{l(e,".shop-page__all-products-section .shop-page_product-list .shop-all-product-view","shopList")}),((e,t)=>{const n=setInterval(()=>{let r=document.querySelector(e);null==document.querySelector("#shopdora-icon")?null!=r&&t(r):clearInterval(n)},1e3)})("#main",e=>{let t=document.createElement("div");t.setAttribute("id","shopdora-icon"),e.parentNode?.appendChild(t);const n=Ss(zje);n.use(Mm),n.use(window.i18n),n.use(RJ),n.mount(t)}))});const c=()=>{location.reload()};chrome.runtime.onMessage.addListener(function(e){"shopdoraLogin"==e.cmd&&RJ.commit("user/setLoginType",e.value)}),chrome.runtime.onMessage.addListener(function(e){"shopdoraLoginOut"==e.cmd&&RJ.commit("user/removeToken")});const d=()=>{RJ.commit("user/setLoginType",!1),RJ.commit("user/removeToken"),RJ.commit("user/removeUserInfo")};return chrome.storage.local.get(["token"],function(e){localStorage.setItem("shopdoraToken",e.token)}),chrome.runtime.sendMessage({greeting:"set-shopdora-token"},function(e){e?.value?(RJ.commit("user/setToken",e?.value),RJ.dispatch("user/getUserInfo")):RJ.getters["user/isLogin"]?RJ.dispatch("user/getUserInfo"):RJ.commit("user/removeUserInfo")}),chrome.runtime.onMessage.addListener(function(e){"sync-login-token"==e.cmd&&(RJ.commit("user/setToken",e.value),RJ.dispatch("user/getUserInfo"))}),(e,r)=>n.value&&Lt(o)?(Aa(),Ia("div",rBe,[La("div",iBe,[La("div",aBe,[r[0]||(r[0]=La("img",{src:km,alt:""},null,-1)),La("span",oBe,ne(Lt(t)("common.textCrx")),1)]),La("div",sBe,[La("a",{href:Lt(LJ)()+"",target:"_blank"},ne(Lt(t)("common.goWeb")),9,lBe),La("button",{class:"buttonCrx",onClick:d},[Na(Lt(av))])])]),La("div",uBe,[Na(J$,{onGo:c})])])):Va("v-if",!0)}});var dBe,fBe={exports:{}};
/*!
  
    JSZip v3.10.1 - A JavaScript class for generating and reading zip files
    <http://stuartk.com/jszip>
  
    (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
    Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
  
    JSZip uses the library pako released under the MIT license :
    https://github.com/nodeca/pako/blob/main/LICENSE
    */var hBe=(dBe||(dBe=1,function(e){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&LRe)return LRe(o);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=LRe,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,l,u,c=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,c.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,o,s,l,u=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&h--,e.charAt(e.length-2)===a.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=a.indexOf(e.charAt(u++))<<2|(o=a.indexOf(e.charAt(u++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=n),64!==l&&(f[c++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,c){var d,f,h=e.file,p=e.compression,m=c!==s.utf8encode,v=a.transformTo("string",c(h.name)),g=a.transformTo("string",s.utf8encode(h.name)),y=h.comment,b=a.transformTo("string",c(y)),w=a.transformTo("string",s.utf8encode(y)),x=g.length!==h.name.length,S=w.length!==y.length,_="",k="",A="",C=h.dir,T=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),m||!x&&!S||(I|=2048);var P,E,M,D=0,R=0;C&&(D|=16),"UNIX"===o?(R=798,D|=(P=h.unixPermissions,E=C,M=P,P||(M=E?16893:33204),(65535&M)<<16)):(R=20,D|=function(e){return 63&(e||0)}(h.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,f=T.getUTCFullYear()-1980,f<<=4,f|=T.getUTCMonth()+1,f<<=5,f|=T.getUTCDate(),x&&(k=r(1,1)+r(l(v),4)+g,_+="up"+r(k.length,2)+k),S&&(A=r(1,1)+r(l(b),4)+w,_+="uc"+r(A.length,2)+A);var L="";return L+="\n\0",L+=r(I,2),L+=p.magic,L+=r(d,2),L+=r(f,2),L+=r(O.crc32,4),L+=r(O.compressedSize,4),L+=r(O.uncompressedSize,4),L+=r(v.length,2),L+=r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+L+v+_,dirRecord:u.CENTRAL_FILE_HEADER+r(R,2)+L+r(b.length,2)+"\0\0\0\0"+r(D,4)+r(i,4)+v+_+b}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,a=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,o,s,l,c,d=this.bytesWritten-e,f=(n=this.dirRecords.length,i=d,o=e,s=this.zipComment,l=this.encodeFileName,c=a.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(o,4)+r(c.length,2)+c);this.push({data:f,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(s){a.error(s)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(u(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(r=p(e))&&v.call(this,r,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var g=null;g=t instanceof u||t instanceof o?t:f.isNode&&f.isStream(t)?new h(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new c(e,g,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},v=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(g(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(g(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=v.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(l){(t=new o("error")).error(l)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function c(e,t){return new l.Promise(function(n,i){var a=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",function(e,n){a.push(e),t&&t(n)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,a),u);n(e)}catch(t){i(t)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(s){this._worker=new a("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(a){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(o){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(a){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)l[n++]=i;else if(4<(a=s[i]))l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,o),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(a){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(a){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=c;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},f.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,u){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var c,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(u?t=i.decode(t):a&&!0!==s&&(t=l(c=t,r.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(i){return a.reject(e,i)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p(function(){t(i,r)});"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return a.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(u,o))},function(e){r||(r=!0,a.reject(u,e))})}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,l=new this(i);++s<n;)o=e[s],t.resolve(o).then(function(e){r||(r=!0,a.resolve(l,e))},function(e){r||(r=!0,a.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:c,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}h.prototype.push=function(e,t){var n,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,o))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,v=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(f="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===v&&(n=o.Z_OK,v=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(h.output,h.next_out),u=h.next_out-l,d=a.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(v=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(a=o[i]))u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,d=0,f=-2,h=-1,p=4,m=2,v=8,g=9,y=286,b=30,w=19,x=2*y+1,S=15,_=3,k=258,A=k+_+1,C=42,T=113,O=1,I=2,P=3,E=4;function M(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function R(e){for(var t=e.length;0<=--t;)e[t]=0}function L(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function N(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,L(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-A?e.strstart-(e.w_size-A):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+k,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===h&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<f);if(r=k-(f-a),a=f-k,o<r){if(e.match_start=t,s<=(o=r))break;h=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function B(e){var t,n,r,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-A)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,h=void 0,(f=a)<(h=u.avail_in)&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=o(u.adler,c,h,d):2===u.state.wrap&&(u.adler=s(u.adler,c,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=_)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+_-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<_)););}while(e.lookahead<A&&0!==e.strm.avail_in)}function V(e,t){for(var n,r;;){if(e.lookahead<A){if(B(e),e.lookahead<A&&t===u)return O;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-A&&(e.match_length=z(e,n)),e.match_length>=_)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(N(e,!1),0===e.strm.avail_out))return O}return e.insert=e.strstart<_-1?e.strstart:_-1,t===c?(N(e,!0),0===e.strm.avail_out?P:E):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?O:I}function H(e,t){for(var n,r,i;;){if(e.lookahead<A){if(B(e),e.lookahead<A&&t===u)return O;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=_-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-A&&(e.match_length=z(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===_&&4096<e.strstart-e.match_start)&&(e.match_length=_-1)),e.prev_length>=_&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=_-1,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return O}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&N(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<_-1?e.strstart:_-1,t===c?(N(e,!0),0===e.strm.avail_out?P:E):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?O:I}function W(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*y+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function X(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?C:T,e.adler=2===t.wrap?0:1,t.last_flush=u,a._tr_init(t),d):M(e,f)}function G(e){var t,n=X(e);return n===d&&((t=e.state).window_size=2*t.w_size,R(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=_-1,t.match_available=0,t.ins_h=0),n}function Y(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||g<a||n!==v||r<8||15<r||t<0||9<t||o<0||p<o)return M(e,f);8===r&&(r=9);var l=new U;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+_-1)/_),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,G(e)}r=[new W(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(B(e),0===e.lookahead&&t===u)return O;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,N(e,!1),0===e.strm.avail_out))return O;if(e.strstart-e.block_start>=e.w_size-A&&(N(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(N(e,!0),0===e.strm.avail_out?P:E):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),O)}),new W(4,4,8,4,V),new W(4,5,16,8,V),new W(4,6,32,32,V),new W(4,4,16,16,H),new W(8,16,32,32,H),new W(8,16,128,128,H),new W(8,32,128,256,H),new W(32,128,258,1024,H),new W(32,258,258,4096,H)],n.deflateInit=function(e,t){return Y(e,t,v,15,8,0)},n.deflateInit2=Y,n.deflateReset=G,n.deflateResetKeep=X,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5<t||t<0)return e?M(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==c)return M(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===C)if(2===i.wrap)e.adler=0,j(i,31),j(i,139),j(i,8),i.gzhead?(j(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),j(i,255&i.gzhead.time),j(i,i.gzhead.time>>8&255),j(i,i.gzhead.time>>16&255),j(i,i.gzhead.time>>24&255),j(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),j(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(j(i,255&i.gzhead.extra.length),j(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(j(i,0),j(i,0),j(i,0),j(i,0),j(i,0),j(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),j(i,3),i.status=T);else{var h=v+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=T,F(i,h),0!==i.strstart&&(F(i,e.adler>>>16),F(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending!==i.pending_buf_size));)j(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,j(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,j(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&L(e),i.pending+2<=i.pending_buf_size&&(j(i,255&e.adler),j(i,e.adler>>8&255),e.adler=0,i.status=T)):i.status=T),0!==i.pending){if(L(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(n)&&t!==c)return M(e,-5);if(666===i.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(B(e),0===e.lookahead)){if(t===u)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(N(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(N(e,!0),0===e.strm.avail_out?P:E):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?O:I}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=k){if(B(e),e.lookahead<=k&&t===u)return O;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+k;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=k-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_?(n=a._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(N(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(N(e,!0),0===e.strm.avail_out?P:E):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?O:I}(i,t):r[i.level].func(i,t);if(p!==P&&p!==E||(i.status=666),p===O||p===P)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===I&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),L(e),0===e.avail_out))return i.last_flush=-1,d}return t!==c?d:i.wrap<=0?1:(2===i.wrap?(j(i,255&e.adler),j(i,e.adler>>8&255),j(i,e.adler>>16&255),j(i,e.adler>>24&255),j(i,255&e.total_in),j(i,e.total_in>>8&255),j(i,e.total_in>>16&255),j(i,e.total_in>>24&255)):(F(i,e.adler>>>16),F(i,65535&e.adler)),L(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==C&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?M(e,f):(e.state=null,t===T?M(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,u,c,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==C||n.lookahead)return f;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,B(n);n.lookahead>=_;){for(r=n.strstart,a=n.lookahead-(_-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+_-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=_-1,B(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=_-1,n.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,w,x,S,_,k,A,C;n=e.state,r=e.next_in,A=e.input,i=r+(e.avail_in-5),a=e.next_out,C=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,m=n.lencode,v=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),b=m[h&g];t:for(;;){if(h>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))C[a++]=65535&b;else{if(!(16&w)){if(!(64&w)){b=m[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(p<w&&(h+=A[r++]<<p,p+=8),x+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),b=v[h&y];n:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(!(64&w)){b=v[(65535&b)+(h&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&b,p<(w&=15)&&(h+=A[r++]<<p,(p+=8)<w&&(h+=A[r++]<<p,p+=8)),l<(S+=h&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=w,p-=w,(w=a-o)<S){if(c<(w=S-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=f,(_=0)===d){if(_+=u-w,w<x){for(x-=w;C[a++]=f[_++],--w;);_=a-S,k=C}}else if(d<w){if(_+=u+d-w,(w-=d)<x){for(x-=w;C[a++]=f[_++],--w;);if(_=0,d<x){for(x-=w=d;C[a++]=f[_++],--w;);_=a-S,k=C}}}else if(_+=d-w,w<x){for(x-=w;C[a++]=f[_++],--w;);_=a-S,k=C}for(;2<x;)C[a++]=k[_++],C[a++]=k[_++],C[a++]=k[_++],x-=3;x&&(C[a++]=k[_++],1<x&&(C[a++]=k[_++]))}else{for(_=a-S;C[a++]=C[_++],C[a++]=C[_++],C[a++]=C[_++],2<(x-=3););x&&(C[a++]=C[_++],1<x&&(C[a++]=C[_++]))}break}}break}}while(r<i&&a<s);r-=x=p>>3,h&=(1<<(p-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,u=2,c=0,d=-2,f=1,h=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,c):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):d}function w(e,t){var n,r;return e?(r=new v,(e.state=r).window=null,(n=b(e,t))!==c&&(e.state=null),n):d}var x,S,_=!0;function k(e){if(_){var t;for(x=new r.Buf32(512),S=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,S,0,e.work,{bits:5}),_=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function A(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=g,n.inflateInit=function(e){return w(e,15)},n.inflateInit2=w,n.inflate=function(e,t){var n,h,p,v,g,y,b,w,x,S,_,C,T,O,I,P,E,M,D,R,L,N,j,F,z=0,B=new r.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),g=e.next_out,p=e.output,b=e.avail_out,v=e.next_in,h=e.input,y=e.avail_in,w=n.hold,x=n.bits,S=y,_=b,N=c;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(2&n.wrap&&35615===w){B[n.check=0]=255&w,B[1]=w>>>8&255,n.check=a(n.check,B,2,0),x=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,L=8+(15&(w>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&w?10:12,x=w=0;break;case 2:for(;x<16;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(n.flags=w,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=w>>8&1),512&n.flags&&(B[0]=255&w,B[1]=w>>>8&255,n.check=a(n.check,B,2,0)),x=w=0,n.mode=3;case 3:for(;x<32;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.head&&(n.head.time=w),512&n.flags&&(B[0]=255&w,B[1]=w>>>8&255,B[2]=w>>>16&255,B[3]=w>>>24&255,n.check=a(n.check,B,4,0)),x=w=0,n.mode=4;case 4:for(;x<16;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.head&&(n.head.xflags=255&w,n.head.os=w>>8),512&n.flags&&(B[0]=255&w,B[1]=w>>>8&255,n.check=a(n.check,B,2,0)),x=w=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.length=w,n.head&&(n.head.extra_len=w),512&n.flags&&(B[0]=255&w,B[1]=w>>>8&255,n.check=a(n.check,B,2,0)),x=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(C=n.length)&&(C=y),C&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,v,C,L)),512&n.flags&&(n.check=a(n.check,h,C,v)),y-=C,v+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(C=0;L=h[v+C++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L)),L&&C<y;);if(512&n.flags&&(n.check=a(n.check,h,C,v)),y-=C,v+=C,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(C=0;L=h[v+C++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L)),L&&C<y;);if(512&n.flags&&(n.check=a(n.check,h,C,v)),y-=C,v+=C,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(w!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=w=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}e.adler=n.check=m(w),x=w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=b,e.next_in=v,e.avail_in=y,n.hold=w,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){w>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}switch(n.last=1&w,x-=1,3&(w>>>=1)){case 0:n.mode=14;break;case 1:if(k(n),n.mode=20,6!==t)break;w>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,x-=2;break;case 14:for(w>>>=7&x,x-=7&x;x<32;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,x=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(y<C&&(C=y),b<C&&(C=b),0===C)break e;r.arraySet(p,h,v,C,g),y-=C,v+=C,b-=C,g+=C,n.length-=C;break}n.mode=12;break;case 17:for(;x<14;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(n.nlen=257+(31&w),w>>>=5,x-=5,n.ndist=1+(31&w),w>>>=5,x-=5,n.ncode=4+(15&w),w>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.lens[V[n.have++]]=7&w,w>>>=3,x-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,j={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,j),n.lenbits=j.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;P=(z=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,E=65535&z,!((I=z>>>24)<=x);){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(E<16)w>>>=I,x-=I,n.lens[n.have++]=E;else{if(16===E){for(F=I+2;x<F;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(w>>>=I,x-=I,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}L=n.lens[n.have-1],C=3+(3&w),w>>>=2,x-=2}else if(17===E){for(F=I+3;x<F;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}x-=I,L=0,C=3+(7&(w>>>=I)),w>>>=3,x-=3}else{for(F=I+7;x<F;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}x-=I,L=0,C=11+(127&(w>>>=I)),w>>>=7,x-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=L}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,j={bits:n.lenbits},N=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,j),n.lenbits=j.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,j={bits:n.distbits},N=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,j),n.distbits=j.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=b){e.next_out=g,e.avail_out=b,e.next_in=v,e.avail_in=y,n.hold=w,n.bits=x,o(e,_),g=e.next_out,p=e.output,b=e.avail_out,v=e.next_in,h=e.input,y=e.avail_in,w=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;P=(z=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,E=65535&z,!((I=z>>>24)<=x);){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(P&&!(240&P)){for(M=I,D=P,R=E;P=(z=n.lencode[R+((w&(1<<M+D)-1)>>M)])>>>16&255,E=65535&z,!(M+(I=z>>>24)<=x);){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}w>>>=M,x-=M,n.back+=M}if(w>>>=I,x-=I,n.back+=I,n.length=E,0===P){n.mode=26;break}if(32&P){n.back=-1,n.mode=12;break}if(64&P){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&P,n.mode=22;case 22:if(n.extra){for(F=n.extra;x<F;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.length+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;P=(z=n.distcode[w&(1<<n.distbits)-1])>>>16&255,E=65535&z,!((I=z>>>24)<=x);){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(!(240&P)){for(M=I,D=P,R=E;P=(z=n.distcode[R+((w&(1<<M+D)-1)>>M)])>>>16&255,E=65535&z,!(M+(I=z>>>24)<=x);){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}w>>>=M,x-=M,n.back+=M}if(w>>>=I,x-=I,n.back+=I,64&P){e.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&P,n.mode=24;case 24:if(n.extra){for(F=n.extra;x<F;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}n.offset+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(C=_-b,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),O=n.window}else O=p,T=g-n.offset,C=n.length;for(b<C&&(C=b),b-=C,n.length-=C;p[g++]=O[T++],--C;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[g++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===y)break e;y--,w|=h[v++]<<x,x+=8}if(_-=b,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,g-_):i(n.check,p,_,g-_)),_=b,(n.flags?w:m(w))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===y)break e;y--,w+=h[v++]<<x,x+=8}if(w!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=w=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;default:return d}return e.next_out=g,e.avail_out=b,e.next_in=v,e.avail_in=y,n.hold=w,n.bits=x,(n.wsize||_!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&A(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,_-=e.avail_out,e.total_in+=S,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==S&&0===_||4===t)&&N===c&&(N=-5),N)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,c},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,c):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:A(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,c):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,d,f){var h,p,m,v,g,y,b,w,x,S=f.bits,_=0,k=0,A=0,C=0,T=0,O=0,I=0,P=0,E=0,M=0,D=null,R=0,L=new r.Buf16(16),N=new r.Buf16(16),j=null,F=0;for(_=0;_<=15;_++)L[_]=0;for(k=0;k<l;k++)L[t[n+k]]++;for(T=S,C=15;1<=C&&0===L[C];C--);if(C<T&&(T=C),0===C)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(A=1;A<C&&0===L[A];A++);for(T<A&&(T=A),_=P=1;_<=15;_++)if(P<<=1,(P-=L[_])<0)return-1;if(0<P&&(0===e||1!==C))return-1;for(N[1]=0,_=1;_<15;_++)N[_+1]=N[_]+L[_];for(k=0;k<l;k++)0!==t[n+k]&&(d[N[t[n+k]]++]=k);if(y=0===e?(D=j=d,19):1===e?(D=i,R-=257,j=a,F-=257,256):(D=o,j=s,-1),_=A,g=c,I=k=M=0,m=-1,v=(E=1<<(O=T))-1,1===e&&852<E||2===e&&592<E)return 1;for(;;){for(b=_-I,x=d[k]<y?(w=0,d[k]):d[k]>y?(w=j[F+d[k]],D[R+d[k]]):(w=96,0),h=1<<_-I,A=p=1<<O;u[g+(M>>I)+(p-=h)]=b<<24|w<<16|x,0!==p;);for(h=1<<_-1;M&h;)h>>=1;if(0!==h?(M&=h-1,M+=h):M=0,k++,0==--L[_]){if(_===C)break;_=t[n+d[k]]}if(T<_&&(M&v)!==m){for(0===I&&(I=T),g+=A,P=1<<(O=_-I);O+I<C&&!((P-=L[O+I])<=0);)O++,P<<=1;if(E+=1<<O,1===e&&852<E||2===e&&592<E)return 1;u[m=M&v]=T<<24|O<<16|g-c}}return 0!==M&&(u[g+M]=_-I<<24|64<<16),f.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,u=256,c=u+1+l,d=30,f=19,h=2*c+1,p=15,m=16,v=7,g=256,y=16,b=17,w=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(c+2));o(A);var C=new Array(2*d);o(C);var T=new Array(512);o(T);var O=new Array(256);o(O);var I=new Array(l);o(I);var P,E,M,D=new Array(d);function R(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?T[e]:T[256+(e>>>7)]}function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function z(e,t,n){F(e,n[2*t],n[2*t+1])}function B(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function V(e,t,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=B(a[s]++,s))}}function H(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*g]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function W(e){8<e.bi_valid?j(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function U(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function X(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&U(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!U(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function G(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?z(e,i,t):(z(e,(a=O[i])+u+1,t),0!==(o=x[a])&&F(e,i-=I[a],o),z(e,a=N(--r),n),0!==(o=S[a])&&F(e,r-=D[a],o)),s<e.last_lit;);z(e,g,t)}function Y(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)X(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],X(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,X(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,v=t.stat_desc.max_length,g=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)v<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=v,g++),l[2*r+1]=a,u<r||(e.bl_count[a]++,o=0,m<=r&&(o=f[r-m]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==g){do{for(a=v-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[v]--,g-=2}while(0<g);for(a=v;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),V(a,u,e.bl_count)}function K(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*w]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function q(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(z(e,i,e.bl_tree),s--),z(e,y,e.bl_tree),F(e,s-3,2)):s<=10?(z(e,b,e.bl_tree),F(e,s-3,3)):(z(e,w,e.bl_tree),F(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}o(D);var Z=!1;function J(e,t,n,i){var a,o,l;F(e,(s<<1)+(i?1:0),3),o=t,l=n,W(a=e),j(a,l),j(a,~l),r.arraySet(a.pending_buf,a.window,o,l,a.pending),a.pending+=l}n._tr_init=function(e){Z||(function(){var e,t,n,r,i,a=new Array(p+1);for(r=n=0;r<l-1;r++)for(I[r]=n,e=0;e<1<<x[r];e++)O[n++]=r;for(O[n-1]=r,r=i=0;r<16;r++)for(D[r]=i,e=0;e<1<<S[r];e++)T[i++]=r;for(i>>=7;r<d;r++)for(D[r]=i<<7,e=0;e<1<<S[r]-7;e++)T[256+i++]=r;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)A[2*e+1]=8,e++,a[8]++;for(;e<=255;)A[2*e+1]=9,e++,a[9]++;for(;e<=279;)A[2*e+1]=7,e++,a[7]++;for(;e<=287;)A[2*e+1]=8,e++,a[8]++;for(V(A,c+1,a),e=0;e<d;e++)C[2*e+1]=5,C[2*e]=B(e,5);P=new R(A,x,u+1,c,p),E=new R(C,S,0,d,p),M=new R(new Array(0),_,0,f,v)}(),Z=!0),e.l_desc=new L(e.dyn_ltree,P),e.d_desc=new L(e.dyn_dtree,E),e.bl_desc=new L(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=J,n._tr_flush_block=function(e,t,n,r){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),Y(e,e.l_desc),Y(e,e.d_desc),l=function(e){var t;for(K(e,e.dyn_ltree,e.l_desc.max_code),K(e,e.dyn_dtree,e.d_desc.max_code),Y(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*k[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==t?J(e,t,n,r):4===e.strategy||s===o?(F(e,2+(r?1:0),3),G(e,A,C)):(F(e,4+(r?1:0),3),function(e,t,n,r){var i;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),i=0;i<r;i++)F(e,e.bl_tree[2*k[i]+1],3);q(e,e.dyn_ltree,t-1),q(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&W(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+u+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;F(e,2,3),z(e,g,A),16===(t=e).bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return s[o]=i,n(o),o++},c.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==wg?wg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}(fBe)),fBe.exports);const pBe=xg(hBe);var mBe,vBe={exports:{}};var gBe=(mBe||(mBe=1,function(e){!function(){function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof wg&&wg.global===wg?wg:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,t,o){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?n(e,t,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,a,o){if(a=a||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),a);else if(r(e))n(e,a,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){i(s)})}}:function(e,t,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s}()}(vBe)),vBe.exports);const yBe={style:{"max-height":"570px",overflow:"hidden","overflow-y":"auto"}},bBe={class:"checkedAll"},wBe={class:"imgs"},xBe=["onClick"],SBe={class:"checked"},_Be={style:{color:"#fff","font-size":"16px"}},kBe={class:"time"},ABe=["src"],CBe={class:"checkedAll"},TBe={key:0,class:"imgs"},OBe=["onClick"],IBe={class:"checked"},PBe={style:{color:"#fff","font-size":"16px"}},EBe={class:"time"},MBe=["src"],DBe={style:{display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical","max-width":"110px","line-height":"16px","word-break":"break-all",overflow:"hidden","font-family":"PingFangSC-Regular","font-weight":"400","font-size":"12px",color:"rgba(0, 0, 0, 0.6)","text-align":"center"}},RBe={class:"imgsBottom"},LBe={class:"button"},NBe=yr({__name:"DownloadImage",props:{dialogVisible:Boolean,itemid:String,site:String,productShopeeList:Object},emits:["hvisible"],setup(e,{emit:t}){const{t:n}=Zd(),r=t,i=e,a=Et(!0),o=Et(),s=Et([]),l=Et();let u=Et({});Et([]);let c=Et([]),d=document.querySelector("picture img");ta(()=>i.productShopeeList,e=>{if(e.itemid){if(i.productShopeeList?.video_info_list[0]&&i.productShopeeList?.video_info_list[0]?.default_format){l.value=i.productShopeeList?.video_info_list[0];let e="";if(l.value?.default_format.url.indexOf("https")>=0)e=l.value?.default_format.url;else{const t=Et(l.value?.default_format.url.split("http"));t.value[0]="https",e=t.value.join("")}s.value.push({key:`${d.src.split("/file/")[0]}/file/${l.value.thumb_url}`,url:e,video:!0,name:`${n("info.video")}`,checked:!1})}o.value=i.productShopeeList.images,u.value=i.productShopeeList?.skuImages,u.value.forEach((e,t)=>{c.value.push({key:`${d.src.split("/file/")[0]}/file/${e.url}`,url:`${d.src.split("/file/")[0]}/file/${e.url}`,name:e.name,video:!1,checked:!1})}),o.value.forEach((e,t)=>{s.value.push({key:`${d.src.split("/file/")[0]}/file/${e}`,url:`${d.src.split("/file/")[0]}/file/${e}`,name:`${n("info.mainImg")}${t+1}`,video:!1,checked:!1})})}},{deep:!0,immediate:!0});const f=Et(!1),h=Et(!1),p=()=>{r("hvisible")},m=()=>{h.value?s.value.map(e=>{e.checked=!0}):s.value.map(e=>{e.checked=!1})},v=()=>{f.value?c.value.map(e=>{e.checked=!0}):c.value.map(e=>{e.checked=!1})},g=Et(!1),y=()=>{let e=s.value.filter(e=>e.checked),t=c.value.filter(e=>e.checked);if(0==e.length&&0==t.length)return void WE.error(n("error.zipError"),1e3);g.value=!0;const r=[...e,...t],a=new pBe,o=a.folder(i.site+i.itemid+n("msg.mainSkuImgVideo")),l=[];r.forEach((e,t)=>{-1!=e.name.indexOf("/")&&(e.name=e.name.replace("/","-"));const n=(r=e.url,new Promise((e,t)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.onload=({currentTarget:n})=>{const{status:r,response:i}=n;200===r?e(i):t(r)},n.send()})).then(t=>{o.file(`${e.name}.${t.type.split("/").pop()}`,t,{binary:!0})});var r;l.push(n)}),Promise.all(l).then(()=>{a.generateAsync({type:"blob"}).then(e=>{gBe.saveAs(e,i.site+i.itemid+n("msg.mainSkuImgVideo")),WE.closeAll(),WE.success(n("msg.downloadSuccess"),1e3),p(),g.value=!1}).catch(e=>{WE.closeAll(),WE.error(e.message,1e3),p(),g.value=!1})})};return(e,t)=>{const r=Dz,i=VO,o=PG;return Aa(),Pa(o,{visible:a.value,"onUpdate:visible":t[2]||(t[2]=e=>a.value=e),closeOnOverlayClick:!0,placement:"center",width:"690px",header:Lt(n)("msg.shopdoraDownloadImgAndVideo"),preventScrollThrough:!1,attach:"body",destroyOnClose:!0,footer:!1,onClose:p},{body:Wn(()=>[La("div",yBe,[La("div",bBe,[Na(r,{modelValue:h.value,"onUpdate:modelValue":t[0]||(t[0]=e=>h.value=e),onChange:m,label:Lt(n)("tools.allTheMainImages")},null,8,["modelValue","label"])]),La("div",wBe,[(Aa(!0),Ia(ba,null,Gr(s.value,e=>(Aa(),Ia("div",{class:"img",onClick:t=>{return n=e.url,s.value.map(e=>{e.url==n&&(e.checked=!e.checked)}),void(s.value.filter(e=>e.checked).length==s.value.length?h.value=!0:h.value=!1);var n},style:{height:"122px"},key:e.key},[La("div",SBe,[Na(r,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t},null,8,["modelValue","onUpdate:modelValue"])]),Xn(La("div",{class:G({video:e.video})},[La("div",_Be,[Na(Lt(mg))]),La("div",kBe,ne(Math.floor(l.value?.duration/60)>=10?Math.floor(l.value?.duration/60):"0"+Math.floor(l.value?.duration/60))+" : "+ne(l.value?.duration%60>=10?l.value?.duration%60:"0"+l.value?.duration%60),1)],2),[[Xo,e.video]]),La("img",{src:e.key,alt:""},null,8,ABe)],8,xBe))),128))]),La("div",CBe,[0!=Lt(c).length?(Aa(),Pa(r,{key:0,modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=e=>f.value=e),onChange:v,label:Lt(n)("tools.allSKUImages")},null,8,["modelValue","label"])):Va("v-if",!0)]),0!=Lt(c).length?(Aa(),Ia("div",TBe,[(Aa(!0),Ia(ba,null,Gr(Lt(c),e=>(Aa(),Ia("div",{onClick:t=>{return n=e.url,c.value.map(e=>{e.url==n&&(e.checked=!e.checked)}),void(c.value.filter(e=>e.checked).length==c.value.length?f.value=!0:f.value=!1);var n},class:"img",key:e.key},[La("div",IBe,[Na(r,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t},null,8,["modelValue","onUpdate:modelValue"])]),Xn(La("div",{class:G({video:e.video})},[La("div",PBe,[Na(Lt(mg))]),La("div",EBe,ne(Math.floor(l.value?.duration/60)>=10?Math.floor(l.value?.duration/60):"0"+Math.floor(l.value?.duration/60))+" : "+ne(l.value?.duration%60>=10?l.value?.duration%60:"0"+l.value?.duration%60),1)],2),[[Xo,e.video]]),La("img",{src:e.key,alt:""},null,8,MBe),La("div",null,[La("span",DBe,ne(e.name),1)])],8,OBe))),128))])):Va("v-if",!0)]),La("div",RBe,[t[3]||(t[3]=La("div",{class:"checkedAll"},null,-1)),La("div",LBe,[Na(i,{onClick:p},{default:Wn(()=>[za(ne(Lt(n)("common.cancel")),1)]),_:1}),Na(i,{loading:g.value,onClick:y},{default:Wn(()=>[za(ne(g.value?Lt(n)("tools.downloading"):Lt(n)("tools.downloadNow")),1)]),_:1},8,["loading"])])])]),footer:Wn(()=>t[4]||(t[4]=[])),_:1},8,["visible","header"])}}}),jBe={class:"custom-label"},FBe={class:"name"},zBe=["innerHTML"],BBe=yr({__name:"FormItem",props:{label:String,tips:{type:String,default:""},labelWidth:{type:String,default:"134px"}},setup:e=>(t,n)=>{const r=wD,i=nG;return Aa(),Pa(i,Xa({class:"filter-item","label-width":e.labelWidth},t.$attrs),{label:Wn(()=>[La("div",jBe,[La("div",FBe,ne(e.label),1),e.tips?(Aa(),Pa(r,{key:0,disabled:!e.tips,placement:"top",overlayClassName:"icon-custom-pop","show-arrow":"","z-index":5600},{content:Wn(()=>[La("div",{innerHTML:e.tips},null,8,zBe)]),default:Wn(()=>[e.tips?(Aa(),Pa(Lt(hv),{key:0,style:{color:"rgba(0, 0, 0, 0.6)"},size:"16px"})):Va("v-if",!0)]),_:1},8,["disabled"])):Va("v-if",!0)])]),default:Wn(()=>[Yr(t.$slots,"default")]),_:3},16,["label-width"])}}),VBe={style:{padding:"0 6%"}},HBe={class:"head"},WBe={class:"profit profitCrx-item"},UBe={class:"form"},XBe={class:"exchange-rage"},GBe={key:0,class:"label-result"},YBe={class:"activity-cost"},KBe={class:"reduce"},qBe={class:"block-item"},ZBe={class:"title"},JBe={class:"number"},QBe={class:"sub-number"},$Be={class:"block-item"},eVe={class:"title"},tVe={class:"number"},nVe=yr({__name:"ProfitForm",props:{site:String,productList:Object},emits:["submit"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t=null)=>n(`style.profitForm.${e}`,t),i=e,a=vo(()=>Object.values(sQ.value).map(e=>({label:e.label,value:e.value}))),o=bt({site:"sg",exchangeRate:"",productCategory:"",productType:"",deliverChannel:"",deliverArea:"",weight:"",productCost:"",freightCost:"",commissionRate:6,tradeFeeRate:2,marketingRateType:1,marketingRate:"",withdrawRate:"",reductionBase:"",reductionAmount:"",refundRate:"",refundType:1,refundCurrency:2,refundAmount:"",productCurrency:1,productPrice:i.productList.price,productDiscount:""});o.site=i.site;const s=Et(),l=vo(()=>[{label:`\xa5${n("currency.currencyCN")}`,value:2},{label:n("profitCalculator.currencyView",{unit:sQ.value[o.site].localUnit,text:sQ.value[o.site].localUnitCn}),value:1}]),u=Et(!1),c=Et(()=>Na(iB,{bordered:!1,autoWidth:!0,modelValue:o.marketingRateType,"onUpdate:modelValue":e=>o.marketingRateType=e,options:fQ.value},null)),d=Et(()=>Na(iB,{bordered:!1,autoWidth:!0,modelValue:o.productCurrency,"onUpdate:modelValue":e=>o.productCurrency=e,options:l.value},null)),f=Et(()=>Na(iB,{bordered:!1,autoWidth:!0,modelValue:o.refundCurrency,"onUpdate:modelValue":e=>o.refundCurrency=e,options:l.value},null)),h={productCategory:[{required:!0,message:n("error.selectLogisticsChannel"),type:"error"}],weight:[{required:!0,message:n("error.inputProductWeight"),type:"error"},{validator:aDe}],productCost:[{required:!0,message:n("error.inputPurchasePrice"),type:"error"},{validator:aDe}],freightCost:[{required:!0,message:n("error.inputFreightForTheFirstLeg"),type:"error"},{validator:aDe}],commissionRate:[{required:!0,message:n("error.inputCommissionRate"),type:"error"},{validator:aDe}],marketingRate:[{required:!0,message:n("error.inputMarketingCost"),type:"error"},{validator:aDe}],withdrawRate:[{required:!0,message:n("error.inputWithdrawalRate"),type:"error"},{validator:aDe}],activityCost:[{validator:()=>((e,t)=>e?t.reductionAmount&&t.reductionBase?aDe(t.reductionAmount).result&&aDe(t.reductionBase).result?{result:!0}:{result:!1,message:nf.global.t("error.inputNumber"),type:"error"}:{result:!1,message:nf.global.t("error.inputActivityCostInformation"),type:"error"}:{result:!0})(u.value,o)}],refundRate:[{required:!0,message:n("error.inputReturnRate"),type:"error"},{validator:aDe}],refundAmount:[{required:!0,message:n("error.inputReturnFee"),type:"error"},{validator:aDe}],productPrice:[{required:!0,message:n("error.inputProductPrice"),type:"error"},{validator:aDe}],productDiscount:[{validator:aDe}]},p=vo(()=>(e=>(e.forEach(e=>{e.children&&e.children.forEach(t=>{t.value=e.value+"-&-"+t.value,t.children&&t.children.forEach(e=>{e.value=t.value+"-&-"+e.value})})}),e))(lQ.value[o.site])),m=async({validateResult:e})=>{if(!0!==e)return;let t=o.productCategory.split("-&-");o.productType=t[0],o.deliverChannel=t[1],o.deliverArea=t[2];let n={...o,refundAmount:1==o.refundType?0:o.refundAmount,productDiscount:100};o.productDiscount&&(n.productDiscount=100-(parseInt(o.productDiscount.trim())||0)),u.value||(delete n.reductionAmount,delete n.reductionBase),delete n.productCategory;try{xO(!0);const e=await oQ("/calculate/calcProfit",{...n,calculateType:1});s.value=e,xO(!1)}catch(kJe){xO(!1)}};Er(()=>{b()}),ta(()=>o.productCurrency,()=>{1==o.productCurrency?o.productPrice=i.productList.price:2==o.productCurrency&&(o.productPrice=i.productList.price_cny)},{deep:!0});const v=Et(null),g=e=>{o.site=e,o.exchangeRate=y[e],o.tradeFeeRate=sQ.value[e].tradeFeeRate,o.productCategory="",o.productType="",o.deliverChannel="",o.deliverArea="",setTimeout(()=>{v.value.clearValidate()})},y=bt({}),b=()=>{oQ("/calculate/userExchangeRate").then(e=>{Object.assign(y,e.rates),o.exchangeRate=y[o.site]})},w=async()=>{const e=xO({fullscreen:!0});try{const t=await oQ("/calculate/refreshRate",{site:o.site});o.exchangeRate=t,y[o.site]=t,e.hide()}catch(kJe){e.hide()}},x=Et(""),S=Et(""),_=function(e,t){let n=null;return function(){null!==n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,arguments)},t)}}(async()=>{if(o.weight&&(o.weight=parseInt(o.weight)+""),!o.productCategory||!o.weight)return void(x.value="");let e=o.productCategory.split("-&-");o.productType=e[0],o.deliverChannel=e[1],o.deliverArea=e[2];try{const e=await oQ("/calculate/freight",{deliverChannel:o.deliverChannel,productType:o.productType,deliverArea:o.deliverArea,site:o.site,weight:o.weight});x.value=e.sellerFreight.toFixed(2)+"",S.value=(e.sellerFreight*parseFloat(o.exchangeRate)).toFixed(2)}catch(t){}},300),k=Et(!0);return(e,t)=>{const i=iB,l=HV,y=eL,b=oB,A=xB,C=Dz,T=wB,O=VO,I=tG,P=wD;return Aa(),Ia("div",VBe,[La("div",HBe,ne(Lt(n)("tools.profitCalculator")),1),La("div",WBe,[La("div",UBe,[Na(I,{class:G(["tools-form-wrapper-crx",r("toolsFormWrapperCrx")]),ref_key:"toolsForm",ref:v,rules:h,requiredMark:!1,data:o,onSubmit:m},{default:Wn(()=>[Na(T,{layout:"vertical",separator:"dashed",class:G(["tools-steps",{"fix-footer":k.value}]),current:0,readonly:""},{default:Wn(()=>[Na(A,{title:Lt(n)("msg.basicInfo")},{extra:Wn(()=>[Na(BBe,{name:"site",label:Lt(n)("productBasicInfo.site"),tips:Lt(uQ).site.tips},{default:Wn(()=>[Na(i,{modelValue:o.site,"onUpdate:modelValue":t[0]||(t[0]=e=>o.site=e),options:a.value,onChange:g},null,8,["modelValue","options"])]),_:1},8,["label","tips"]),Na(BBe,{name:"exchangeRate",label:Lt(n)("profitCalculator.exchangeRate"),tips:Lt(cQ).exchangeRate.label},{default:Wn(()=>[La("div",XBe,[La("div",null,ne(o.exchangeRate)+"\uff08CNY/"+ne(Lt(sQ)[o.site].localUnit)+"\uff09",1),La("div",{class:"refresh",onClick:w},[Na(Lt(Vv)),La("span",null,ne(Lt(n)("productBasicInfo.updateExchangeRate")),1)])])]),_:1},8,["label","tips"]),Na(BBe,{name:"productCategory",label:Lt(n)("deliverChannel.logisticsChannel"),tips:Lt(cQ).productType.tips},{default:Wn(()=>[Na(l,{modelValue:o.productCategory,"onUpdate:modelValue":t[1]||(t[1]=e=>o.productCategory=e),overlayClassName:"product-type-cascader",options:p.value,clearable:"",placeholder:Lt(n)("common.pleaseSelect"),onChange:Lt(_)},null,8,["modelValue","options","placeholder","onChange"])]),_:1},8,["label","tips"]),Na(BBe,{name:"weight",label:Lt(n)("productBasicInfo.weight"),tips:Lt(cQ).weight.tips},{default:Wn(()=>[Na(b,{append:"g"},{default:Wn(()=>[Na(y,{modelValue:o.weight,"onUpdate:modelValue":t[2]||(t[2]=e=>o.weight=e),onChange:Lt(_),placeholder:"0.00"},null,8,["modelValue","onChange"])]),_:1}),x.value?(Aa(),Ia("span",GBe,ne(Lt(n)("productBasicInfo.crossBorderLogisticsFee"))+"\uff1a\xa5"+ne(x.value)+"("+ne(Lt(sQ)[o.site].localUnit+S.value)+") ",1)):Va("v-if",!0)]),_:1},8,["label","tips"])]),_:1},8,["title"]),Na(A,{title:Lt(n)("productBasicInfo.productCost")},{extra:Wn(()=>[Na(BBe,{name:"productCost",label:Lt(n)("productBasicInfo.purchasePrice"),tips:Lt(cQ).productCost.tips},{default:Wn(()=>[Na(b,{prepend:`\xa5${Lt(n)("currency.currencyCN")}`},{default:Wn(()=>[Na(y,{modelValue:o.productCost,"onUpdate:modelValue":t[3]||(t[3]=e=>o.productCost=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"])]),_:1},8,["label","tips"]),Na(BBe,{name:"freightCost",label:Lt(n)("productBasicInfo.freightForTheFirstLeg"),tips:Lt(cQ).freightCost.tips},{default:Wn(()=>[Na(b,{prepend:`\xa5${Lt(n)("currency.currencyCN")}`},{default:Wn(()=>[Na(y,{modelValue:o.freightCost,"onUpdate:modelValue":t[4]||(t[4]=e=>o.freightCost=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"])]),_:1},8,["label","tips"])]),_:1},8,["title"]),Na(A,{title:Lt(n)("productBasicInfo.platformCost")},{extra:Wn(()=>[Na(BBe,{label:Lt(n)("productBasicInfo.commissionRate"),tips:Lt(cQ).commissionRate.tips},{default:Wn(()=>[Na(b,{append:"%"},{default:Wn(()=>[Na(y,{modelValue:o.commissionRate,"onUpdate:modelValue":t[5]||(t[5]=e=>o.commissionRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1})]),_:1},8,["label","tips"]),Na(BBe,{label:Lt(n)("productBasicInfo.transactionFeeRate"),tips:Lt(cQ).transactionRate.tips},{default:Wn(()=>[Na(b,{append:"%"},{default:Wn(()=>[Na(y,{modelValue:o.tradeFeeRate,"onUpdate:modelValue":t[6]||(t[6]=e=>o.tradeFeeRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1})]),_:1},8,["label","tips"]),Na(BBe,{name:"marketingRate",label:Lt(n)("productBasicInfo.marketingCost"),tips:Lt(cQ).marketingRate.tips},{default:Wn(()=>[La("div",{class:G(["combine-input",r("combineInput")])},[Na(b,{prepend:c.value},{default:Wn(()=>[1==o.marketingRateType?(Aa(),Pa(b,{key:0,append:"%"},{default:Wn(()=>[Na(y,{modelValue:o.marketingRate,"onUpdate:modelValue":t[7]||(t[7]=e=>o.marketingRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1})):(Aa(),Pa(b,{key:1,prepend:Lt(n)("profitCalculator.currencyView",{unit:Lt(sQ)[o.site].localUnit,text:Lt(sQ)[o.site].localUnitCn})},{default:Wn(()=>[Na(y,{modelValue:o.marketingRate,"onUpdate:modelValue":t[8]||(t[8]=e=>o.marketingRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"]))]),_:1},8,["prepend"])],2)]),_:1},8,["label","tips"]),Na(BBe,{name:"withdrawRate",label:Lt(n)("profit.withdrawalHandlingFeeRate"),tips:Lt(cQ).withdrawRate.tips},{default:Wn(()=>[Na(b,{append:"%"},{default:Wn(()=>[Na(y,{modelValue:o.withdrawRate,"onUpdate:modelValue":t[9]||(t[9]=e=>o.withdrawRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1})]),_:1},8,["label","tips"]),Na(BBe,{name:"activityCost",style:{display:"block !important"},label:Lt(n)("profit.activityCost"),tips:Lt(cQ).activityCost.tips},{default:Wn(()=>[Na(C,{modelValue:u.value,"onUpdate:modelValue":t[10]||(t[10]=e=>u.value=e)},{default:Wn(()=>[za(ne(Lt(n)("profit.fullReductionPromotion"))+ne(Lt(n)("profit.full")),1)]),_:1},8,["modelValue"]),La("div",YBe,[Na(b,{className:"reduction-base",prepend:Lt(n)("profitCalculator.currencyView",{unit:Lt(sQ)[o.site].localUnit,text:Lt(sQ)[o.site].localUnitCn})},{default:Wn(()=>[Na(y,{modelValue:o.reductionBase,"onUpdate:modelValue":t[11]||(t[11]=e=>o.reductionBase=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"]),La("div",KBe,ne(Lt(n)("profit.reduce")),1),Na(y,{class:"reduction-amount",modelValue:o.reductionAmount,"onUpdate:modelValue":t[12]||(t[12]=e=>o.reductionAmount=e),placeholder:"0.00"},null,8,["modelValue"])])]),_:1},8,["label","tips"])]),_:1},8,["title"]),Na(A,{title:Lt(n)("profit.afterSalesCost")},{extra:Wn(()=>[Na(BBe,{name:"refundRate",label:Lt(n)("productBasicInfo.returnRate"),tips:Lt(cQ).refundRate.tips},{default:Wn(()=>[Na(b,{append:"%"},{default:Wn(()=>[Na(y,{modelValue:o.refundRate,"onUpdate:modelValue":t[13]||(t[13]=e=>o.refundRate=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1})]),_:1},8,["label","tips"]),Na(BBe,{name:"refundType",label:Lt(n)("productBasicInfo.commodityHandling"),tips:Lt(cQ).refundType.tips},{default:Wn(()=>[Na(i,{modelValue:o.refundType,"onUpdate:modelValue":t[14]||(t[14]=e=>o.refundType=e),options:Lt(dQ),placeholder:Lt(n)("option.selectProductType")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","tips"]),2==o.refundType?(Aa(),Pa(BBe,{key:0,name:"refundAmount",label:Lt(n)("productBasicInfo.returnFee"),tips:Lt(cQ).refundAmount.tips},{default:Wn(()=>[Na(b,{prepend:f.value},{default:Wn(()=>[Na(y,{modelValue:o.refundAmount,"onUpdate:modelValue":t[15]||(t[15]=e=>o.refundAmount=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"])]),_:1},8,["label","tips"])):Va("v-if",!0)]),_:1},8,["title"]),Na(A,{title:Lt(n)("profit.income")},{extra:Wn(()=>[Na(BBe,{name:"productPrice",label:Lt(n)("productBasicInfo.productPrice"),tips:Lt(cQ).productPrice.tips},{default:Wn(()=>[Na(b,{prepend:d.value},{default:Wn(()=>[Na(y,{modelValue:o.productPrice,"onUpdate:modelValue":t[16]||(t[16]=e=>o.productPrice=e),placeholder:"0.00"},null,8,["modelValue"])]),_:1},8,["prepend"])]),_:1},8,["label","tips"]),Na(BBe,{name:"productDiscount",label:Lt(n)("productBasicInfo.discount"),tips:Lt(cQ).productDiscount.tips},{default:Wn(()=>[Na(b,{append:"%OFF"},{default:Wn(()=>[Na(y,{modelValue:o.productDiscount,"onUpdate:modelValue":t[17]||(t[17]=e=>o.productDiscount=e),placeholder:Lt(n)("profit.example")},null,8,["modelValue","placeholder"])]),_:1})]),_:1},8,["label","tips"])]),_:1},8,["title"])]),_:1},8,["class"]),La("div",{class:G(["footer",{fixed:k.value}]),id:"tools-footer"},[Na(O,{theme:"primary",type:"submit"},{default:Wn(()=>[za(ne(Lt(n)("profit.calculate")),1)]),_:1})],2),t[18]||(t[18]=La("div",{id:"footer-point"},null,-1))]),_:1,__:[18]},8,["class","data"])]),La("div",{class:G(["result-block",r("resultBlock")])},[La("div",qBe,[La("div",ZBe,[La("span",null,ne(Lt(n)("productBasicInfo.profit")),1),Na(P,{overlayClassName:"icon-custom-pop",content:Lt(n)("profit.profitCalculate"),placement:"top","show-arrow":""},{default:Wn(()=>[Na(Lt(hv),{style:{color:"rgba(253, 96, 18, 1)"},size:"16px"})]),_:1},8,["content"])]),La("div",JBe,ne(Lt(sQ)[o.site].localUnit)+ne(null!=s.value?.profitAmount?(s.value?.profitAmount*s.value?.exchangeRate).toFixed(2):"N/A"),1),La("div",QBe," \xa5"+ne(null!=s.value?.profitAmount?s.value?.profitAmount.toFixed(2):"N/A"),1)]),t[19]||(t[19]=La("div",{class:"block-item line"},null,-1)),La("div",$Be,[La("div",eVe,[La("span",null,ne(Lt(n)("profit.profitRate")),1),Na(P,{overlayClassName:"icon-custom-pop",content:Lt(n)("profit.profitRateCalculate"),placement:"top","show-arrow":""},{default:Wn(()=>[Na(Lt(hv),{style:{color:"rgba(253, 96, 18, 1)"},size:"16px"})]),_:1},8,["content"])]),La("div",tVe,ne(null!=s.value?.profitRate?s.value.profitRate>0?"+"+s.value.profitRate.toFixed(2)+"%":s.value.profitRate.toFixed(2)+"%":"N/A"),1)])],2)])])}}});
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var rVe={version:"0.18.5"},iVe=1252,aVe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],oVe=function(e){-1!=aVe.indexOf(e)&&(iVe=e)};var sVe=function(e){oVe(e)};function lVe(){sVe(1200),oVe(1252)}var uVe,cVe=function(e){return String.fromCharCode(e)},dVe=function(e){return String.fromCharCode(e)},fVe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function hVe(e){for(var t="",n=0,r=0,i=0,a=0,o=0,s=0,l=0,u=0;u<e.length;)a=(n=e.charCodeAt(u++))>>2,o=(3&n)<<4|(r=e.charCodeAt(u++))>>4,s=(15&r)<<2|(i=e.charCodeAt(u++))>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=fVe.charAt(a)+fVe.charAt(o)+fVe.charAt(s)+fVe.charAt(l);return t}function pVe(e){var t="",n=0,r=0,i=0,a=0,o=0,s=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=fVe.indexOf(e.charAt(l++))<<2|(a=fVe.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&a)<<4|(o=fVe.indexOf(e.charAt(l++)))>>2,64!==o&&(t+=String.fromCharCode(r)),i=(3&o)<<6|(s=fVe.indexOf(e.charAt(l++))),64!==s&&(t+=String.fromCharCode(i));return t}var mVe=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),vVe=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(kJe){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function gVe(e){return mVe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function yVe(e){return mVe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var bVe=function(e){return mVe?vVe(e,"binary"):e.split("").map(function(e){return 255&e.charCodeAt(0)})};function wVe(e){if("undefined"==typeof ArrayBuffer)return bVe(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function xVe(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var SVe=mVe?function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:vVe(e)}))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map(function(e){return Array.isArray(e)?e:[].slice.call(e)}))};var _Ve=/\u0000/g,kVe=/[\u0001-\u0006]/g;function AVe(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function CVe(e,t){var n=""+e;return n.length>=t?n:jHe("0",t-n.length)+n}function TVe(e,t){var n=""+e;return n.length>=t?n:jHe(" ",t-n.length)+n}function OVe(e,t){var n=""+e;return n.length>=t?n:n+jHe(" ",t-n.length)}var IVe=Math.pow(2,32);function PVe(e,t){return e>IVe||e<-IVe?function(e,t){var n=""+Math.round(e);return n.length>=t?n:jHe("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:jHe("0",t-n.length)+n}(Math.round(e),t)}function EVe(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var MVe=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],DVe=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var RVe={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},LVe={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},NVe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function jVe(e,t,n){for(var r=e<0?-1:1,i=e*r,a=0,o=1,s=0,l=1,u=0,c=0,d=Math.floor(i);u<t&&(s=(d=Math.floor(i))*o+a,c=d*u+l,!(i-d<5e-8));)i=1/(i-d),a=o,o=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=a):(c=u,s=o)),!n)return[0,r*s,c];var f=Math.floor(r*s/c);return[f,r*s-f*c,c]}function FVe(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),a=0,o=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)o=n?[1317,10,29]:[1900,2,29],a=3;else if(0===r)o=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),r<60&&(a=(a+6)%7),n&&(a=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var zVe=new Date(1899,11,31,0,0,0),BVe=zVe.getTime(),VVe=new Date(1900,2,1,0,0,0);function HVe(e,t){var n=e.getTime();return t?n-=1262304e5:e>=VVe&&(n+=864e5),(n-(BVe+6e4*(e.getTimezoneOffset()-zVe.getTimezoneOffset())))/864e5}function WVe(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function UVe(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=WVe(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=WVe(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),WVe(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function XVe(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):UVe(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return fHe(14,HVe(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function GVe(e,t,n,r){var i,a="",o=0,s=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,u=2;break;default:i=l%1e4,u=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,u=t.length;break;case 3:return DVe[n.m-1][1];case 5:return DVe[n.m-1][0];default:return DVe[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,u=t.length;break;case 3:return MVe[n.q][0];default:return MVe[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,(o=Math.round(s*(n.S+n.u)))>=60*s&&(o=0),"s"===t?0===o?"0":""+o/s:(a=CVe(o,2+r),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):CVe(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:i=l,u=1}return u>0?CVe(i,u):""}function YVe(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var KVe=/%/g;function qVe(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+qVe(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),-1===(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).indexOf("e")){var o=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ZVe=/# (\?+)( ?)\/( ?)(\d+)/;var JVe=/^#*0*\.([0#]+)/,QVe=/\).*[0#]/,$Ve=/\(###\) ###\\?-####/;function eHe(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function tHe(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function nHe(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function rHe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(QVe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?rHe("n",r,n):"("+rHe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return oHe(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(KVe,""),i=t.length-r.length;return oHe(e,r,n*Math.pow(10,2*i))+jHe("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return qVe(t,n);if(36===t.charCodeAt(0))return"$"+rHe(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+PVe(l,t.length);if(t.match(/^[#?]+$/))return"0"===(i=PVe(n,0))&&(i=""),i.length>t.length?i:eHe(t.substr(0,t.length-i.length))+i;if(a=t.match(ZVe))return function(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),a=Math.floor(i/r),o=i-a*r,s=r;return n+(0===a?"":""+a)+" "+(0===o?jHe(" ",e[1].length+1+e[4].length):TVe(o,e[1].length)+e[2]+"/"+e[3]+CVe(s,e[4].length))}(a,l,u);if(t.match(/^#+0+$/))return u+PVe(l,t.length-t.indexOf("0"));if(a=t.match(JVe))return i=tHe(n,a[1].length).replace(/^([^\.]+)$/,"$1."+eHe(a[1])).replace(/\.$/,"."+eHe(a[1])).replace(/\.(\d*)$/,function(e,t){return"."+t+jHe("0",eHe(a[1]).length-t.length)}),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+tHe(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+YVe(PVe(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+rHe(e,t,-n):YVe(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,a[1].length)))+"."+CVe(nHe(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return rHe(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=AVe(rHe(e,t.replace(/[\\-]/g,""),n)),o=0,AVe(AVe(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""}));if(t.match($Ve))return"("+(i=rHe(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=jVe(l,Math.pow(10,o)-1,!1),i=""+u," "==(c=oHe("n",a[1],s[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],(c=OVe(s[2],o)).length<a[4].length&&(c=eHe(a[4].substr(a[4].length-c.length))+c),i+=c;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),u+((s=jVe(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?TVe(s[1],o)+a[2]+"/"+a[3]+OVe(s[2],o):jHe(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=PVe(n,0),t.length<=i.length?i:eHe(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var d=t.indexOf(".")-o,f=t.length-i.length-d;return eHe(t.substr(0,d)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=nHe(n,a[1].length),n<0?"-"+rHe(e,t,-n):YVe(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?CVe(0,3-e.length):"")+e})+"."+CVe(o,a[1].length);switch(t){case"###,##0.00":return rHe(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=YVe(PVe(l,0));return"0"!==h?u+h:"";case"###,###.00":return rHe(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return rHe(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function iHe(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+iHe(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),!(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function aHe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(QVe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?aHe("n",r,n):"("+aHe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return oHe(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(KVe,""),i=t.length-r.length;return oHe(e,r,n*Math.pow(10,2*i))+jHe("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return iHe(t,n);if(36===t.charCodeAt(0))return"$"+aHe(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+CVe(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:eHe(t.substr(0,t.length-i.length))+i;if(a=t.match(ZVe))return function(e,t,n){return n+(0===t?"":""+t)+jHe(" ",e[1].length+2+e[4].length)}(a,l,u);if(t.match(/^#+0+$/))return u+CVe(l,t.length-t.indexOf("0"));if(a=t.match(JVe))return i=(i=(""+n).replace(/^([^\.]+)$/,"$1."+eHe(a[1])).replace(/\.$/,"."+eHe(a[1]))).replace(/\.(\d*)$/,function(e,t){return"."+t+jHe("0",eHe(a[1]).length-t.length)}),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+YVe(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+aHe(e,t,-n):YVe(""+n)+"."+jHe("0",a[1].length);if(a=t.match(/^#,#*,#0/))return aHe(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=AVe(aHe(e,t.replace(/[\\-]/g,""),n)),o=0,AVe(AVe(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""}));if(t.match($Ve))return"("+(i=aHe(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=jVe(l,Math.pow(10,o)-1,!1),i=""+u," "==(c=oHe("n",a[1],s[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],(c=OVe(s[2],o)).length<a[4].length&&(c=eHe(a[4].substr(a[4].length-c.length))+c),i+=c;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),u+((s=jVe(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?TVe(s[1],o)+a[2]+"/"+a[3]+OVe(s[2],o):jHe(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+n,t.length<=i.length?i:eHe(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var d=t.indexOf(".")-o,f=t.length-i.length-d;return eHe(t.substr(0,d)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+aHe(e,t,-n):YVe(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?CVe(0,3-e.length):"")+e})+"."+CVe(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=YVe(""+l);return"0"!==h?u+h:"";default:if(t.match(/\.[0#?]*$/))return aHe(e,t.slice(0,t.lastIndexOf(".")),n)+eHe(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function oHe(e,t,n){return(0|n)===n?aHe(e,t,n):rHe(e,t,n)}var sHe=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function lHe(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":EVe(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4e0a":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("\u4e0a\u5348/\u4e0b\u5348"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(sHe))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var uHe=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function cHe(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function dHe(e,t){var n=function(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var a=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,a];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var o=n[0].match(uHe),s=n[1].match(uHe);return cHe(t,o)?[r,n[0]]:cHe(t,s)?[r,n[1]]:[r,n[null!=o&&null!=s?2:1]]}return[r,a]}function fHe(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:RVe)[e])&&(r=n.table&&n.table[LVe[e]]||RVe[LVe[e]]),null==r&&(r=NVe[e]||"General")}if(EVe(r,0))return XVe(t,n);t instanceof Date&&(t=HVe(t,n.date1904));var i=dHe(r,t);if(EVe(i[1]))return XVe(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var i,a,o,s=[],l="",u=0,c="",d="t",f="H";u<e.length;)switch(c=e.charAt(u)){case"G":if(!EVe(e,u))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(o=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(o);s[s.length]={t:"t",v:l},++u;break;case"\\":var h=e.charAt(++u),p="("===h||")"===h?h:"t";s[s.length]={t:p,v:h},++u;break;case"_":s[s.length]={t:"t",v:" "},u+=2;break;case"@":s[s.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==i&&null==(i=FVe(t,n,"2"===e.charAt(u+1))))return"";s[s.length]={t:"X",v:e.substr(u,2)},d=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&null==(i=FVe(t,n)))return"";for(l=c;++u<e.length&&e.charAt(u).toLowerCase()===c;)l+=c;"m"===c&&"h"===d.toLowerCase()&&(c="M"),"h"===c&&(c=f),s[s.length]={t:c,v:l},d=c;break;case"A":case"a":case"\u4e0a":var m={t:c,v:c};if(null==i&&(i=FVe(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=i&&(m.v=i.H>=12?"P":"A"),m.t="T",f="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",u+=5,f="h"):"\u4e0a\u5348/\u4e0b\u5348"===e.substr(u,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),m.t="T",u+=5,f="h"):(m.t="t",++u),null==i&&"T"===m.t)return"";s[s.length]=m,d=c;break;case"[":for(l=c;"]"!==e.charAt(u++)&&u<e.length;)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(sHe)){if(null==i&&null==(i=FVe(t,n)))return"";s[s.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",lHe(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){for(l=c;++u<e.length&&"0"===(c=e.charAt(u));)l+=c;s[s.length]={t:"s",v:l};break}case"0":case"#":for(l=c;++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1;)l+=c;s[s.length]={t:"n",v:l};break;case"?":for(l=c;e.charAt(++u)===c;)l+=c;s[s.length]={t:c,v:l},d=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":s[s.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1;)l+=e.charAt(u);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:c,v:c},++u;break;case"$":s[s.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"t",v:c},++u}var v,g=0,y=0;for(u=s.length-1,d="t";u>=0;--u)switch(s[u].t){case"h":case"H":s[u].t=f,d="h",g<1&&(g=1);break;case"s":(v=s[u].v.match(/\.0+$/))&&(y=Math.max(y,v[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":d=s[u].t;break;case"m":"s"===d&&(s[u].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&s[u].v.match(/[Hh]/)&&(g=1),g<2&&s[u].v.match(/[Mm]/)&&(g=2),g<3&&s[u].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var b,w="";for(u=0;u<s.length;++u)switch(s[u].t){case"t":case"T":case" ":case"D":break;case"X":s[u].v="",s[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[u].v=GVe(s[u].t.charCodeAt(0),s[u].v,i,y),s[u].t="t";break;case"n":case"?":for(b=u+1;null!=s[b]&&("?"===(c=s[b].t)||"D"===c||(" "===c||"t"===c)&&null!=s[b+1]&&("?"===s[b+1].t||"t"===s[b+1].t&&"/"===s[b+1].v)||"("===s[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===s[b].v||" "===s[b].v&&null!=s[b+1]&&"?"==s[b+1].t));)s[u].v+=s[b].v,s[b]={v:"",t:";"},++b;w+=s[u].v,u=b-1;break;case"G":s[u].t="t",s[u].v=XVe(t,n)}var x,S,_="";if(w.length>0){40==w.charCodeAt(0)?(x=t<0&&45===w.charCodeAt(0)?-t:t,S=oHe("n",w,x)):(S=oHe("n",w,x=t<0&&r>1?-t:t),x<0&&s[0]&&"t"==s[0].t&&(S=S.substr(1),s[0].v="-"+s[0].v)),b=S.length-1;var k=s.length;for(u=0;u<s.length;++u)if(null!=s[u]&&"t"!=s[u].t&&s[u].v.indexOf(".")>-1){k=u;break}var A=s.length;if(k===s.length&&-1===S.indexOf("E")){for(u=s.length-1;u>=0;--u)null!=s[u]&&-1!=="n?".indexOf(s[u].t)&&(b>=s[u].v.length-1?(b-=s[u].v.length,s[u].v=S.substr(b+1,s[u].v.length)):b<0?s[u].v="":(s[u].v=S.substr(0,b+1),b=-1),s[u].t="t",A=u);b>=0&&A<s.length&&(s[A].v=S.substr(0,b+1)+s[A].v)}else if(k!==s.length&&-1===S.indexOf("E")){for(b=S.indexOf(".")-1,u=k;u>=0;--u)if(null!=s[u]&&-1!=="n?".indexOf(s[u].t)){for(a=s[u].v.indexOf(".")>-1&&u===k?s[u].v.indexOf(".")-1:s[u].v.length-1,_=s[u].v.substr(a+1);a>=0;--a)b>=0&&("0"===s[u].v.charAt(a)||"#"===s[u].v.charAt(a))&&(_=S.charAt(b--)+_);s[u].v=_,s[u].t="t",A=u}for(b>=0&&A<s.length&&(s[A].v=S.substr(0,b+1)+s[A].v),b=S.indexOf(".")+1,u=k;u<s.length;++u)if(null!=s[u]&&(-1!=="n?(".indexOf(s[u].t)||u===k)){for(a=s[u].v.indexOf(".")>-1&&u===k?s[u].v.indexOf(".")+1:0,_=s[u].v.substr(0,a);a<s[u].v.length;++a)b<S.length&&(_+=S.charAt(b++));s[u].v=_,s[u].t="t",A=u}}}for(u=0;u<s.length;++u)null!=s[u]&&"n?".indexOf(s[u].t)>-1&&(x=r>1&&t<0&&u>0&&"-"===s[u-1].v?-t:t,s[u].v=oHe(s[u].t,s[u].v,x),s[u].t="t");var C="";for(u=0;u!==s.length;++u)null!=s[u]&&(C+=s[u].v);return C}(i[1],t,n,i[0])}function hHe(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=RVe[n]){if(RVe[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return RVe[t]=e,t}function pHe(e){for(var t=0;392!=t;++t)void 0!==e[t]&&hHe(e[t],t)}function mHe(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',RVe=e}var vHe=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var gHe=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();var n=function(e){var t=0,n=0,r=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var a=[];for(r=1;16!=r;++r)a[r-1]="undefined"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return a}(t),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],d=n[8],f=n[9],h=n[10],p=n[11],m=n[12],v=n[13],g=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,a=e.length;i<a;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var y=-1^n,b=e.length-15,w=0;w<b;)y=g[e[w++]^255&y]^v[e[w++]^y>>8&255]^m[e[w++]^y>>16&255]^p[e[w++]^y>>>24]^h[e[w++]]^f[e[w++]]^d[e[w++]]^c[e[w++]]^u[e[w++]]^l[e[w++]]^s[e[w++]]^o[e[w++]]^a[e[w++]]^i[e[w++]]^r[e[w++]]^t[e[w++]];for(b+=15;w<b;)y=y>>>8^t[255&(y^e[w++])];return~y},e.str=function(e,n){for(var r=-1^n,i=0,a=e.length,o=0,s=0;i<a;)(o=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^o)]:o<2048?r=(r=r>>>8^t[255&(r^(192|o>>6&31))])>>>8^t[255&(r^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|o>>8&7))])>>>8^t[255&(r^(128|o>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|o>>12&15))])>>>8^t[255&(r^(128|o>>6&63))])>>>8^t[255&(r^(128|63&o))];return~r},e}(),yHe=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function i(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function a(e){uUe(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),i=e.read_shift(2),a=e.l+i,o={};if(21589===r)1&(n=e.read_shift(1))&&(o.mtime=e.read_shift(4)),i>5&&(2&n&&(o.atime=e.read_shift(4)),4&n&&(o.ctime=e.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime));e.l=a,t[r]=o}return t}function o(){return e||(e={})}function s(e,t){if(80==e[0]&&75==e[1])return re(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=S(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(mVe&&Buffer.isBuffer(e)?e.toString("binary"):S(e)).split("\r\n"),i=0,a="";for(i=0;i<r.length;++i)if(a=r[i],/^Content-Location:/i.test(a)&&(a=a.slice(a.indexOf("file")),n||(n=a.slice(0,a.lastIndexOf("/")+1)),a.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),a.slice(0,n.length)!=n););var o=(r[1]||"").match(/boundary="(.*?)"/);if(!o)throw new Error("MAD cannot find boundary");var s="--"+(o[1]||""),l=[],u=[],c={FileIndex:l,FullPaths:u};f(c);var d,h=0;for(i=0;i<r.length;++i){var p=r[i];p!==s&&p!==s+"--"||(h++&&ue(c,r.slice(d,i),n),d=i)}return c}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,i,a,o,s,h=512,p=[],m=e.slice(0,512);uUe(m,0);var v=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(y,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=v[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==v[1])return re(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&uUe(m=e.slice(0,h),28);var b=e.slice(0,h);!function(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var w=m.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);m.l+=4,a=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),o=m.read_shift(4,"i"),r=m.read_shift(4,"i"),s=m.read_shift(4,"i"),i=m.read_shift(4,"i");for(var x=-1,_=0;_<109&&!((x=m.read_shift(4,"i"))<0);++_)p[_]=x;var k=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,h);u(s,i,k,h,p);var A=function(e,t,n,r){var i=e.length,a=[],o=[],s=[],l=[],u=r-1,c=0,d=0,f=0,h=0;for(c=0;c<i;++c)if(s=[],(f=c+t)>=i&&(f-=i),!o[f]){l=[];var p=[];for(d=f;d>=0;){p[d]=!0,o[d]=!0,s[s.length]=d,l.push(e[d]);var m=n[Math.floor(4*d/r)];if(r<4+(h=4*d&u))throw new Error("FAT boundary crossed: "+d+" 4 "+r);if(!e[m])break;if(p[d=tUe(e[m],h)])break}a[f]={nodes:s,data:EWe([l])}}return a}(k,a,p,h);A[a].name="!Directory",r>0&&o!==g&&(A[o].name="!MiniFAT"),A[p[0]].name="!FAT",A.fat_addrs=p,A.ssz=h;var C=[],T=[],O=[];!function(e,t,n,r,i,a,o,s){for(var u,f=0,h=r.length?2:0,p=t[e].data,m=0,v=0;m<p.length;m+=128){var y=p.slice(m,m+128);uUe(y,64),v=y.read_shift(2),u=DWe(y,0,v-h),r.push(u);var b={name:u,type:y.read_shift(1),color:y.read_shift(1),L:y.read_shift(4,"i"),R:y.read_shift(4,"i"),C:y.read_shift(4,"i"),clsid:y.read_shift(16),state:y.read_shift(4,"i"),start:0,size:0};0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.ct=d(y,y.l-8)),0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.mt=d(y,y.l-8)),b.start=y.read_shift(4,"i"),b.size=y.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=g,b.name=""),5===b.type?(f=b.start,i>0&&f!==g&&(t[f].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=c(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:f!==g&&b.start!==g&&t[f]&&(b.content=l(b,t[f].data,(t[s]||{}).data))),b.content&&uUe(b.content,0),a[u]=b,o.push(b)}}(a,A,k,C,r,{},T,o),function(e,t,n){for(var r=0,i=0,a=0,o=0,s=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;s<c.length;++s)i=e[r=c[s]].L,a=e[r].R,o=e[r].C,u[r]===r&&(-1!==i&&u[i]!==i&&(u[r]=u[i]),-1!==a&&u[a]!==a&&(u[r]=u[a])),-1!==o&&(u[o]=r),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<s&&c.push(i)),-1!==a&&r!=u[r]&&(u[a]=u[r],c.lastIndexOf(a)<s&&c.push(a));for(r=1;r<l;++r)u[r]===r&&(-1!==a&&u[a]!==a?u[r]=u[a]:-1!==i&&u[i]!==i&&(u[r]=u[i]));for(r=1;r<l;++r)if(0!==e[r].type){if((s=r)!=u[s])do{s=u[s],t[r]=t[s]+"/"+t[r]}while(0!==s&&-1!==u[s]&&s!=u[s]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(T,O,C),C.shift();var I={FileIndex:T,FullPaths:O};return t&&t.raw&&(I.raw={header:b,sectors:k}),I}function l(e,t,n){for(var r=e.start,i=e.size,a=[],o=r;n&&i>0&&o>=0;)a.push(t.slice(o*v,o*v+v)),i-=v,o=tUe(n,4*o);return 0===a.length?dUe(0):SVe(a).slice(0,e.size)}function u(e,t,n,r,i){var a=g;if(e===g){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var o=n[e],s=(r>>>2)-1;if(!o)return;for(var l=0;l<s&&(a=tUe(o,4*l))!==g;++l)i.push(a);u(tUe(o,r-4),t-1,n,r,i)}}function c(e,t,n,r,i){var a=[],o=[];i||(i=[]);var s=r-1,l=0,u=0;for(l=t;l>=0;){i[l]=!0,a[a.length]=l,o.push(e[l]);var c=n[Math.floor(4*l/r)];if(r<4+(u=4*l&s))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=tUe(e[c],u)}return{nodes:a,data:EWe([o])}}function d(e,t){return new Date(1e3*(eUe(e,t+4)/1e7*Math.pow(2,32)+eUe(e,t)/1e7-11644473600))}function f(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="\x01Sh33tJ5";if(yHe.find(e,"/"+t))return;var n=dUe(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),h(e)}(e)}function h(e,t){f(e);for(var i=!1,a=!1,o=e.FullPaths.length-1;o>=0;--o){var s=e.FileIndex[o];switch(s.type){case 0:a?i=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(s.R*s.L*s.C)&&(i=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(i=!0);break;default:i=!0}}if(i||t){var l=new Date(1987,1,19),u=0,c=Object.create?Object.create(null):{},d=[];for(o=0;o<e.FullPaths.length;++o)c[e.FullPaths[o]]=!0,0!==e.FileIndex[o].type&&d.push([e.FullPaths[o],e.FileIndex[o]]);for(o=0;o<d.length;++o){var h=n(d[o][0]);(a=c[h])||(d.push([h,{name:r(h).replace("/",""),type:1,clsid:w,ct:l,mt:l,content:null}]),c[h]=!0)}for(d.sort(function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,a=0,o=Math.min(n.length,r.length);i<o;++i){if(a=n[i].length-r[i].length)return a;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])}),e.FullPaths=[],e.FileIndex=[],o=0;o<d.length;++o)e.FullPaths[o]=d[o][0],e.FileIndex[o]=d[o][1];for(o=0;o<d.length;++o){var p=e.FileIndex[o],m=e.FullPaths[o];if(p.name=r(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||w,0===o)p.C=d.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(u=o+1;u<d.length&&n(e.FullPaths[u])!=m;++u);for(p.C=u>=d.length?-1:u,u=o+1;u<d.length&&n(e.FullPaths[u])!=n(m);++u);p.R=u>=d.length?-1:u,p.type=1}else n(e.FullPaths[o+1]||"")==n(m)&&(p.R=o+1),p.type=2}}}function p(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],a=e.FullPaths[0],o=a,s=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(o=e.FullPaths[l].slice(a.length),(s=e.FileIndex[l]).size&&s.content&&"\x01Sh33tJ5"!=o){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"});for(var u=s.content,c=mVe&&Buffer.isBuffer(u)?u.toString("binary"):S(u),d=0,f=Math.min(1024,c.length),h=0,p=0;p<=f;++p)(h=c.charCodeAt(p))>=32&&h<128&&++d;var m=d>=4*f/5;i.push(r),i.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+o),i.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),i.push("Content-Type: "+oe(s,o)),i.push(""),i.push(m?le(c):se(c))}return i.push(r+"--\r\n"),i.join("\r\n")}(e,n);if(h(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],a=[],o=dUe(1),s=n.compression?8:0,l=0,u=0,c=0,d=0,f=0,h=e.FullPaths[0],p=h,m=e.FileIndex[0],v=[],g=0;for(u=1;u<e.FullPaths.length;++u)if(p=e.FullPaths[u].slice(h.length),(m=e.FileIndex[u]).size&&m.content&&"\x01Sh33tJ5"!=p){var y=d,b=dUe(p.length);for(c=0;c<p.length;++c)b.write_shift(1,127&p.charCodeAt(c));b=b.slice(0,b.l),v[f]=gHe.buf(m.content,0);var w=m.content;8==s&&(w=_(w)),(o=dUe(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),m.mt?i(o,m.mt):o.write_shift(4,0),o.write_shift(-4,v[f]),o.write_shift(4,w.length),o.write_shift(4,m.content.length),o.write_shift(2,b.length),o.write_shift(2,0),d+=o.length,r.push(o),d+=b.length,r.push(b),d+=w.length,r.push(w),(o=dUe(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,v[f]),o.write_shift(4,w.length),o.write_shift(4,m.content.length),o.write_shift(2,b.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,y),g+=o.l,a.push(o),g+=b.length,a.push(b),++f}return o=dUe(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,f),o.write_shift(2,f),o.write_shift(4,g),o.write_shift(4,d),o.write_shift(2,0),SVe([SVe(r),SVe(a),o])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var a=i.content.length;a>0&&(a<4096?t+=a+63>>6:n+=a+511>>9)}}for(var o=e.FullPaths.length+3>>2,s=t+127>>7,l=(t+7>>3)+n+o+s,u=l+127>>7,c=u<=109?0:Math.ceil((u-109)/127);l+u+c+127>>7>u;)c=++u<=109?0:Math.ceil((u-109)/127);var d=[1,c,u,s,o,n,t,0];return e.FileIndex[0].size=t<<6,d[7]=(e.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(e),a=dUe(r[7]<<9),o=0,s=0;for(o=0;o<8;++o)a.write_shift(1,b[o]);for(o=0;o<8;++o)a.write_shift(2,0);for(a.write_shift(2,62),a.write_shift(2,3),a.write_shift(2,65534),a.write_shift(2,9),a.write_shift(2,6),o=0;o<3;++o)a.write_shift(2,0);for(a.write_shift(4,0),a.write_shift(4,r[2]),a.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),a.write_shift(4,0),a.write_shift(4,4096),a.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:g),a.write_shift(4,r[3]),a.write_shift(-4,r[1]?r[0]-1:g),a.write_shift(4,r[1]),o=0;o<109;++o)a.write_shift(-4,o<r[2]?r[1]+o:-1);if(r[1])for(s=0;s<r[1];++s){for(;o<236+127*s;++o)a.write_shift(-4,o<r[2]?r[1]+o:-1);a.write_shift(-4,s===r[1]-1?g:s+1)}var l=function(e){for(s+=e;o<s-1;++o)a.write_shift(-4,o+1);e&&(++o,a.write_shift(-4,g))};for(s=o=0,s+=r[1];o<s;++o)a.write_shift(-4,x.DIFSECT);for(s+=r[2];o<s;++o)a.write_shift(-4,x.FATSECT);l(r[3]),l(r[4]);for(var u=0,c=0,d=e.FileIndex[0];u<e.FileIndex.length;++u)(d=e.FileIndex[u]).content&&((c=d.content.length)<4096||(d.start=s,l(c+511>>9)));for(l(r[6]+7>>3);511&a.l;)a.write_shift(-4,x.ENDOFCHAIN);for(s=o=0,u=0;u<e.FileIndex.length;++u)(d=e.FileIndex[u]).content&&(!(c=d.content.length)||c>=4096||(d.start=s,l(c+63>>6)));for(;511&a.l;)a.write_shift(-4,x.ENDOFCHAIN);for(o=0;o<r[4]<<2;++o){var f=e.FullPaths[o];if(f&&0!==f.length){d=e.FileIndex[o],0===o&&(d.start=d.size?d.start-1:g);var p=0===o&&n.root||d.name;if(c=2*(p.length+1),a.write_shift(64,p,"utf16le"),a.write_shift(2,c),a.write_shift(1,d.type),a.write_shift(1,d.color),a.write_shift(-4,d.L),a.write_shift(-4,d.R),a.write_shift(-4,d.C),d.clsid)a.write_shift(16,d.clsid,"hex");else for(u=0;u<4;++u)a.write_shift(4,0);a.write_shift(4,d.state||0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,d.start),a.write_shift(4,d.size),a.write_shift(4,0)}else{for(u=0;u<17;++u)a.write_shift(4,0);for(u=0;u<3;++u)a.write_shift(4,-1);for(u=0;u<12;++u)a.write_shift(4,0)}}for(o=1;o<e.FileIndex.length;++o)if((d=e.FileIndex[o]).size>=4096)if(a.l=d.start+1<<9,mVe&&Buffer.isBuffer(d.content))d.content.copy(a,a.l,0,d.size),a.l+=d.size+511&-512;else{for(u=0;u<d.size;++u)a.write_shift(1,d.content[u]);for(;511&u;++u)a.write_shift(1,0)}for(o=1;o<e.FileIndex.length;++o)if((d=e.FileIndex[o]).size>0&&d.size<4096)if(mVe&&Buffer.isBuffer(d.content))d.content.copy(a,a.l,0,d.size),a.l+=d.size+63&-64;else{for(u=0;u<d.size;++u)a.write_shift(1,d.content[u]);for(;63&u;++u)a.write_shift(1,0)}if(mVe)a.l=a.length;else for(;a.l<a.length;)a.write_shift(1,0);return a}t.version="1.2.1";var m,v=64,g=-2,y="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",x={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:g,FREESECT:-1,HEADER_SIGNATURE:y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function S(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function _(e){return m?m.deflateRawSync(e):K(e)}var k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],C=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function T(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var O="undefined"!=typeof Uint8Array,I=O?new Uint8Array(256):[],P=0;P<256;++P)I[P]=T(P);function E(e,t){var n=I[255&e];return t<=8?n>>>8-t:(n=n<<8|I[e>>8&255],t<=16?n>>>16-t:(n=n<<8|I[e>>16&255])>>>24-t)}function M(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function D(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function R(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function L(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function N(e,t,n){var r=7&t,i=t>>>3,a=(1<<n)-1,o=e[i]>>>r;return n<8-r?o&a:(o|=e[i+1]<<8-r,n<16-r?o&a:(o|=e[i+2]<<16-r,n<24-r?o&a:(o|=e[i+3]<<24-r)&a))}function j(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<<r:(e[i]|=n<<r&255,e[i+1]=(7&n)>>8-r),t+3}function F(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function z(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function B(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function V(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(mVe){var a=yVe(r);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(O){var o=new Uint8Array(r);if(o.set)o.set(e);else for(;i<n;++i)o[i]=e[i];return o}return e.length=r,e}function H(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function W(e,t,n){var r=1,i=0,a=0,o=0,s=0,l=e.length,u=O?new Uint16Array(32):H(32);for(a=0;a<32;++a)u[a]=0;for(a=l;a<n;++a)e[a]=0;l=e.length;var c=O?new Uint16Array(l):H(l);for(a=0;a<l;++a)u[i=e[a]]++,r<i&&(r=i),c[a]=0;for(u[0]=0,a=1;a<=r;++a)u[a+16]=s=s+u[a-1]<<1;for(a=0;a<l;++a)0!=(s=e[a])&&(c[a]=u[s+16]++);var d=0;for(a=0;a<l;++a)if(0!=(d=e[a]))for(s=E(c[a],r)>>r-d,o=(1<<r+4-d)-1;o>=0;--o)t[s|o<<d]=15&d|a<<4;return r}var U=O?new Uint16Array(512):H(512),X=O?new Uint16Array(32):H(32);if(!O){for(var G=0;G<512;++G)U[G]=0;for(G=0;G<32;++G)X[G]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);W(e,X,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);W(n,U,288)}();var Y=function(){for(var e=O?new Uint8Array(32768):[],t=0,n=0;t<C.length-1;++t)for(;n<C[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=O?new Uint8Array(259):[];for(t=0,n=0;t<A.length-1;++t)for(;n<A[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),i=n+r==e.length;for(t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var i=0,a=0,o=O?new Uint16Array(32768):[];a<t.length;){var s=Math.min(65535,t.length-a);if(s<10){for(7&(i=j(n,i,+!(a+s!=t.length)))&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=t[a++];i=8*n.l}else{i=j(n,i,+!(a+s!=t.length)+2);for(var l=0;s-- >0;){var u=t[a],c=-1,d=0;if((c=o[l=32767&(l<<5^u)])&&((c|=-32768&a)>a&&(c-=32768),c<a))for(;t[c+d]==t[a+d]&&d<250;)++d;if(d>2){(u=r[d])<=22?i=z(n,i,I[u+1]>>1)-1:(z(n,i,3),z(n,i+=5,I[u-23]>>5),i+=3);var f=u<8?0:u-4>>2;f>0&&(B(n,i,d-A[u]),i+=f),u=e[a-c],i=z(n,i,I[u]>>3),i-=3;var h=u<4?0:u-2>>1;h>0&&(B(n,i,a-c-C[u]),i+=h);for(var p=0;p<d;++p)o[l]=32767&a,l=32767&(l<<5^t[a]),++a;s-=d-1}else u<=143?u+=48:i=F(n,i,1),i=z(n,i,I[u]),o[l]=32767&a,++a}i=z(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}(t,n)}}();function K(e){var t=dUe(50+Math.floor(1.1*e.length)),n=Y(e,t);return t.slice(0,n)}var q=O?new Uint16Array(32768):H(32768),Z=O?new Uint16Array(32768):H(32768),J=O?new Uint16Array(128):H(128),Q=1,$=1;function ee(e,t){var n=R(e,t)+257,r=R(e,t+=5)+1,i=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var a=0,o=O?new Uint8Array(19):H(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=O?new Uint8Array(8):H(8),c=O?new Uint8Array(8):H(8),d=o.length,f=0;f<i;++f)o[k[f]]=a=D(e,t),l<a&&(l=a),u[a]++,t+=3;var h=0;for(u[0]=0,f=1;f<=l;++f)c[f]=h=h+u[f-1]<<1;for(f=0;f<d;++f)0!=(h=o[f])&&(s[f]=c[h]++);var p=0;for(f=0;f<d;++f)if(0!=(p=o[f])){h=I[s[f]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)J[h|m<<p]=7&p|f<<3}var v=[];for(l=1;v.length<n+r;)switch(t+=7&(h=J[L(e,t)]),h>>>=3){case 16:for(a=3+M(e,t),t+=2,h=v[v.length-1];a-- >0;)v.push(h);break;case 17:for(a=3+D(e,t),t+=3;a-- >0;)v.push(0);break;case 18:for(a=11+L(e,t),t+=7;a-- >0;)v.push(0);break;default:v.push(h),l<h&&(l=h)}var g=v.slice(0,n),y=v.slice(n);for(f=n;f<286;++f)g[f]=0;for(f=r;f<30;++f)y[f]=0;return Q=W(g,q,286),$=W(y,Z,30),t}function te(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[gVe(t),2];for(var n=0,r=0,i=yVe(t||1<<18),a=0,o=i.length>>>0,s=0,l=0;!(1&r);)if(r=D(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=ee(e,n),s=Q,l=$);;){!t&&o<a+32767&&(o=(i=V(i,a+32767)).length);var u=N(e,n,s),c=r>>>1==1?U[u]:q[u];if(n+=15&c,(c>>>=4)>>>8&255){if(256==c)break;var d=(c-=257)<8?0:c-4>>2;d>5&&(d=0);var f=a+A[c];d>0&&(f+=N(e,n,d),n+=d),u=N(e,n,l),n+=15&(c=r>>>1==1?X[u]:Z[u]);var h=(c>>>=4)<4?0:c-2>>1,p=C[c];for(h>0&&(p+=N(e,n,h),n+=h),!t&&o<f&&(o=(i=V(i,f+100)).length);a<f;)i[a]=i[a-p],++a}else i[a++]=c}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[(n>>>3)+1]<<8;if(n+=32,m>0)for(!t&&o<a+m&&(o=(i=V(i,a+m)).length);m-- >0;)i[a++]=e[n>>>3],n+=8}return t?[i,n+7>>>3]:[i.slice(0,a),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function ne(e,t){if(!e)throw new Error(t)}function re(e,t){var n=e;uUe(n,0);var r={FileIndex:[],FullPaths:[]};f(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var o=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,i=0;i<o;++i){n.l+=20;var l=n.read_shift(4),u=n.read_shift(4),c=n.read_shift(2),d=n.read_shift(2),h=n.read_shift(2);n.l+=8;var p=n.read_shift(4),m=a(n.slice(n.l+c,n.l+c+d));n.l+=c+d+h;var v=n.l;n.l=p+4,ie(n,l,u,r,m),n.l=v}return r}function ie(e,t,n,r,i){e.l+=2;var o=e.read_shift(2),s=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n,a=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(a-1),r.setDate(i);var o=31&t,s=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(o<<1),r}(e);if(8257&o)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var u=e.read_shift(4),c=e.read_shift(4),d=e.read_shift(2),f=e.read_shift(2),h="",p=0;p<d;++p)h+=String.fromCharCode(e[e.l++]);if(f){var v=a(e.slice(e.l,e.l+f));(v[21589]||{}).mt&&(l=v[21589].mt),((i||{})[21589]||{}).mt&&(l=i[21589].mt)}e.l+=f;var g=e.slice(e.l,e.l+u);switch(s){case 8:g=function(e,t){if(!m)return te(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var y=!1;8&o&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&ne(y,"Bad compressed size: "+t+" != "+u),c!=n&&ne(y,"Bad uncompressed size: "+n+" != "+c),ce(r,h,g,{unsafe:!0,mt:l})}var ae={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function oe(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&ae[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&ae[r[1]]?ae[r[1]]:"application/octet-stream"}function se(e){for(var t=hVe(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function le(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)});"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),i=0;i<r.length;++i){var a=r[i];if(0!=a.length)for(var o=0;o<a.length;){var s=76,l=a.slice(o,o+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=a.slice(o,o+s),(o+=s)<a.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function ue(e,t,n){for(var r,i="",a="",o="",s=0;s<10;++s){var l=t[s];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":i=u[2].trim();break;case"content-type":o=u[2].trim();break;case"content-transfer-encoding":a=u[2].trim()}}switch(++s,a.toLowerCase()){case"base64":r=bVe(pVe(t.slice(s).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,function(e){return String.fromCharCode(parseInt(e.slice(1),16))});return bVe(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+a)}var c=ce(e,i.slice(n.length),r,{unsafe:!0});o&&(c.ctype=o)}function ce(e,t,n,i){var a=i&&i.unsafe;a||f(e);var o=!a&&yHe.find(e,t);if(!o){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),o={name:r(t),type:2},e.FileIndex.push(o),e.FullPaths.push(s),a||yHe.utils.cfb_gc(e)}return o.content=n,o.size=n?n.length:0,i&&(i.CLSID&&(o.clsid=i.CLSID),i.mt&&(o.mt=i.mt),i.ct&&(o.ct=i.ct)),o}return t.find=function(e,t){var n=e.FullPaths.map(function(e){return e.toUpperCase()}),r=n.map(function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]}),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),o=!0===i?n.indexOf(a):r.indexOf(a);if(-1!==o)return e.FileIndex[o];var s=!a.match(kVe);for(a=a.replace(_Ve,""),s&&(a=a.replace(kVe,"!")),o=0;o<n.length;++o){if((s?n[o].replace(kVe,"!"):n[o]).replace(_Ve,"")==a)return e.FileIndex[o];if((s?r[o].replace(kVe,"!"):r[o]).replace(_Ve,"")==a)return e.FileIndex[o]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||mVe&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return o(),s(e.readFileSync(t),n)}(t,n);case"base64":return s(bVe(pVe(t)),n);case"binary":return s(bVe(t),n)}return s(t,n)},t.parse=s,t.write=function(t,n){var r=p(t,n);switch(n&&n.type||"buffer"){case"file":return o(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:S(r);case"base64":return hVe("string"==typeof r?r:S(r));case"buffer":if(mVe)return Buffer.isBuffer(r)?r:vVe(r);case"array":return"string"==typeof r?bVe(r):r}return r},t.writeFile=function(t,n,r){o();var i=p(t,r);e.writeFileSync(n,i)},t.utils={cfb_new:function(e){var t={};return f(t,e),t},cfb_add:ce,cfb_del:function(e,t){f(e);var n=yHe.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){f(e);var i=yHe.find(e,t);if(i)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==i)return e.FileIndex[a].name=r(n),e.FullPaths[a]=n,!0;return!1},cfb_gc:function(e){h(e,!0)},ReadShift:rUe,CheckField:lUe,prep_blob:uUe,bconcat:SVe,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(kJe){}},_deflateRaw:K,_inflateRaw:te,consts:x},t}();function bHe(e){return"string"==typeof e?wVe(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function wHe(e,t,n){if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=wVe(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?nWe(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var i=new Blob([bHe(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if("undefined"!=typeof saveAs)return saveAs(i,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=xVe(t)),s.write(t),s.close(),t}catch(kJe){if(!kJe.message||!kJe.message.match(/onstruct/))throw kJe}throw new Error("cannot save file "+e)}function xHe(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function SHe(e,t){for(var n=[],r=xHe(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function _He(e){for(var t=[],n=xHe(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function kHe(e){for(var t=[],n=xHe(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var AHe=new Date(1899,11,30,0,0,0);function CHe(e,t){return(e.getTime()-(AHe.getTime()+6e4*(e.getTimezoneOffset()-AHe.getTimezoneOffset())))/864e5}var THe=new Date,OHe=AHe.getTime()+6e4*(THe.getTimezoneOffset()-AHe.getTimezoneOffset()),IHe=THe.getTimezoneOffset();function PHe(e){var t=new Date;return t.setTime(24*e*60*60*1e3+OHe),t.getTimezoneOffset()!==IHe&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-IHe)),t}var EHe=new Date("2017-02-19T19:06:09.000Z"),MHe=isNaN(EHe.getFullYear())?new Date("2/19/17"):EHe,DHe=2017==MHe.getFullYear();function RHe(e,t){var n=new Date(e);if(DHe)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==MHe.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function LHe(e,t){if(mVe&&Buffer.isBuffer(e))return e.toString("binary");if("undefined"!=typeof TextDecoder)try{var n={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(e){return n[e]||e})}catch(kJe){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function NHe(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=NHe(e[n]));return t}function jHe(e,t){for(var n="";n.length<t;)n+=e;return n}function FHe(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,function(e,t){return n=-n,t}),isNaN(t=Number(r))?t:t/n):t/n}var zHe=["january","february","march","april","may","june","july","august","september","october","november","december"];function BHe(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return n;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==zHe.indexOf(o))return n}else if(o.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}function VHe(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=mVe?vVe(n):function(e){for(var t=[],n=0,r=e.length+250,i=gVe(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[n++]=o;else if(o<2048)i[n++]=192|o>>6&31,i[n++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&e.charCodeAt(++a);i[n++]=240|o>>8&7,i[n++]=128|o>>2&63,i[n++]=128|s>>6&15|(3&o)<<4,i[n++]=128|63&s}else i[n++]=224|o>>12&15,i[n++]=128|o>>6&63,i[n++]=128|63&o;n>r&&(t.push(i.slice(0,n)),n=0,i=gVe(65535),r=65530)}return t.push(i.slice(0,n)),SVe(t)}(n),yHe.utils.cfb_add(e,t,r);yHe.utils.cfb_add(e,t,n)}else e.file(t,n)}function HHe(){return yHe.utils.cfb_new()}var WHe='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',UHe=_He({"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"}),XHe=/[&<>'"]/g,GHe=/[\u0000-\u0008\u000b-\u001f]/g;function YHe(e){return(e+"").replace(XHe,function(e){return UHe[e]}).replace(GHe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function KHe(e){return YHe(e).replace(/ /g,"_x0020_")}var qHe=/[\u0000-\u001f]/g;function ZHe(e){return(e+"").replace(XHe,function(e){return UHe[e]}).replace(/\n/g,"<br/>").replace(qHe,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function JHe(e){for(var t="",n=0,r=0,i=0,a=0,o=0,s=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(o=(31&r)<<6,o|=63&i,t+=String.fromCharCode(o)):(a=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a):(s=((7&r)<<18|(63&i)<<12|(63&a)<<6|63&(o=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function QHe(e){var t,n,r,i=gVe(2*e.length),a=1,o=0,s=0;for(n=0;n<e.length;n+=a)a=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),a=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),a=3):(a=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(i[o++]=255&s,i[o++]=s>>>8,s=0),i[o++]=t%256,i[o++]=t>>>8;return i.slice(0,o).toString("ucs2")}function $He(e){return vVe(e,"binary").toString("utf8")}var eWe="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",tWe=mVe&&($He(eWe)==JHe(eWe)&&$He||QHe(eWe)==JHe(eWe)&&QHe)||JHe,nWe=mVe?function(e){return vVe(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},rWe=function(){var e=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),iWe=/(^\s|\s$|\n)/;function aWe(e,t){return"<"+e+(t.match(iWe)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function oWe(e){return xHe(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function sWe(e,t,n){return"<"+e+(null!=n?oWe(n):"")+(null!=t?(t.match(iWe)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function lWe(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(kJe){if(t)throw kJe}return""}var uWe="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",cWe="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",dWe="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",fWe="http://schemas.openxmlformats.org/package/2006/content-types",hWe="http://schemas.openxmlformats.org/package/2006/relationships",pWe="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",mWe="http://purl.org/dc/elements/1.1/",vWe="http://purl.org/dc/terms/",gWe="http://purl.org/dc/dcmitype/",yWe="http://schemas.openxmlformats.org/officeDocument/2006/relationships",bWe="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",wWe="http://www.w3.org/2001/XMLSchema-instance",xWe="http://www.w3.org/2001/XMLSchema",SWe=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],_We="urn:schemas-microsoft-com:office:office",kWe="urn:schemas-microsoft-com:office:excel",AWe="urn:schemas-microsoft-com:office:spreadsheet",CWe="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",TWe="http://macVmlSchemaUri",OWe="urn:schemas-microsoft-com:vml",IWe="http://www.w3.org/TR/REC-html40";var PWe=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,i=e[0][n].length;r<i;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},EWe=mVe?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:vVe(e)})):PWe(e)}:PWe,MWe=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(QWe(e,i)));return r.join("").replace(_Ve,"")},DWe=mVe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(_Ve,""):MWe(e,t,n)}:MWe,RWe=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},LWe=mVe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):RWe(e,t,n)}:RWe,NWe=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(JWe(e,i)));return r.join("")},jWe=mVe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):NWe(e,t,n)}:NWe,FWe=function(e,t){var n=eUe(e,t);return n>0?jWe(e,t+4,t+4+n-1):""},zWe=FWe,BWe=function(e,t){var n=eUe(e,t);return n>0?jWe(e,t+4,t+4+n-1):""},VWe=BWe,HWe=function(e,t){var n=2*eUe(e,t);return n>0?jWe(e,t+4,t+4+n-1):""},WWe=HWe,UWe=function(e,t){var n=eUe(e,t);return n>0?DWe(e,t+4,t+4+n):""},XWe=UWe,GWe=function(e,t){var n=eUe(e,t);return n>0?jWe(e,t+4,t+4+n):""},YWe=GWe,KWe=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}(e,t)},qWe=KWe,ZWe=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};mVe&&(zWe=function(e,t){if(!Buffer.isBuffer(e))return FWe(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},VWe=function(e,t){if(!Buffer.isBuffer(e))return BWe(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},WWe=function(e,t){if(!Buffer.isBuffer(e))return HWe(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},XWe=function(e,t){if(!Buffer.isBuffer(e))return UWe(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},YWe=function(e,t){if(!Buffer.isBuffer(e))return GWe(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},qWe=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):KWe(e,t)},ZWe=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var JWe=function(e,t){return e[t]},QWe=function(e,t){return 256*e[t+1]+e[t]},$We=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},eUe=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},tUe=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},nUe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function rUe(e,t){var n,r,i,a,o,s,l="",u=[];switch(t){case"dbcs":if(s=this.l,mVe&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)l+=String.fromCharCode(QWe(this,s)),s+=2;e*=2;break;case"utf8":l=jWe(this,this.l,this.l+e);break;case"utf16le":e*=2,l=DWe(this,this.l,this.l+e);break;case"wstr":return rUe.call(this,e,"dbcs");case"lpstr-ansi":l=zWe(this,this.l),e=4+eUe(this,this.l);break;case"lpstr-cp":l=VWe(this,this.l),e=4+eUe(this,this.l);break;case"lpwstr":l=WWe(this,this.l),e=4+2*eUe(this,this.l);break;case"lpp4":e=4+eUe(this,this.l),l=XWe(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+eUe(this,this.l),l=YWe(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(i=JWe(this,this.l+e++));)u.push(cVe(i));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(i=QWe(this,this.l+e));)u.push(cVe(i)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",s=this.l,o=0;o<e;++o){if(this.lens&&-1!==this.lens.indexOf(s))return i=JWe(this,s),this.l=s+1,a=rUe.call(this,e-o,i?"dbcs-cont":"sbcs-cont"),u.join("")+a;u.push(cVe(QWe(this,s))),s+=2}l=u.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(l="",s=this.l,o=0;o!=e;++o){if(this.lens&&-1!==this.lens.indexOf(s))return i=JWe(this,s),this.l=s+1,a=rUe.call(this,e-o,i?"dbcs-cont":"sbcs-cont"),u.join("")+a;u.push(cVe(JWe(this,s))),s+=1}l=u.join("");break;default:switch(e){case 1:return n=JWe(this,this.l),this.l++,n;case 2:return n=("i"===t?$We:QWe)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(r=eUe(this,this.l),this.l+=4,r):(n=(e>0?tUe:nUe)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return r=8==e?qWe(this,this.l):qWe([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=LWe(this,this.l,e)}}return this.l+=e,l}var iUe=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},aUe=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},oUe=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function sUe(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)oUe(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=255&o,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,iUe(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=r?-t:t;isFinite(o)?0==o?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[n+s]=255&a;e[n+6]=(15&i)<<4|15&a,e[n+7]=i>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,aUe(this,t,this.l)}}return this.l+=r,this}function lUe(e,t){var n=LWe(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function uUe(e,t){e.l=t,e.read_shift=rUe,e.chk=lUe,e.write_shift=sUe}function cUe(e,t){e.l+=t}function dUe(e){var t=gVe(e);return uUe(t,0),t}function fUe(){var e=[],t=mVe?256:2048,n=function(e){var t=dUe(e);return uUe(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},a=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))};return{next:a,push:function(e){i(),null==(r=e).l&&(r.l=r.length),a(t)},end:function(){return i(),SVe(e)},_bufs:e}}function hUe(e,t,n,r){var i,a=+t;if(!isNaN(a)){r||(r=yKe[a].p||(n||[]).length||0),i=1+(a>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,128+(127&a)),o.write_shift(1,a>>7));for(var s=0;4!=s;++s){if(!(r>=128)){o.write_shift(1,r);break}o.write_shift(1,128+(127&r)),r>>=7}r>0&&ZWe(n)&&e.push(n)}}function pUe(e,t,n){var r=NHe(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function mUe(e,t,n){var r=NHe(e);return r.s=pUe(r.s,t.s,n),r.e=pUe(r.e,t.s,n),r}function vUe(e,t){if(e.cRel&&e.c<0)for(e=NHe(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=NHe(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=_Ue(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function gUe(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?vUe(e.s,t.biff)+":"+vUe(e.e,t.biff):(e.s.rRel?"":"$")+bUe(e.s.r)+":"+(e.e.rRel?"":"$")+bUe(e.e.r):(e.s.cRel?"":"$")+xUe(e.s.c)+":"+(e.e.cRel?"":"$")+xUe(e.e.c)}function yUe(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function bUe(e){return""+(e+1)}function wUe(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function xUe(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function SUe(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function _Ue(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function kUe(e){var t=e.indexOf(":");return-1==t?{s:SUe(e),e:SUe(e)}:{s:SUe(e.slice(0,t)),e:SUe(e.slice(t+1))}}function AUe(e,t){return void 0===t||"number"==typeof t?AUe(e.s,e.e):("string"!=typeof e&&(e=_Ue(e)),"string"!=typeof t&&(t=_Ue(t)),e==t?e:e+":"+t)}function CUe(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=e.length;for(n=0;r<a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.s.c=--n,n=0;r<a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(t.s.r=--n,r===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function TUe(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=fHe(e.z,n?CHe(t):t)}catch(kJe){}try{return e.w=fHe((e.XF||{}).numFmtId||(n?14:0),n?CHe(t):t)}catch(kJe){return""+t}}function OUe(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?uXe[e.v]||e.v:TUe(e,null==t?e.v:t))}function IUe(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function PUe(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&null!=r.origin){if("number"==typeof r.origin)o=r.origin;else{var l="string"==typeof r.origin?SUe(r.origin):r.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=CUe(a["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==o&&(u.e.r=o=c.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[d].length;++f)if(void 0!==t[d][f]){var h={v:t[d][f]},p=o+d,m=s+f;if(u.s.r>p&&(u.s.r=p),u.s.c>m&&(u.s.c=m),u.e.r<p&&(u.e.r=p),u.e.c<m&&(u.e.c=m),!t[d][f]||"object"!=typeof t[d][f]||Array.isArray(t[d][f])||t[d][f]instanceof Date)if(Array.isArray(h.v)&&(h.f=t[d][f][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(r.nullError)h.t="e",h.v=0;else{if(!r.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=r.dateNF||RVe[14],r.cellDates?(h.t="d",h.w=fHe(h.z,CHe(h.v))):(h.t="n",h.v=CHe(h.v),h.w=fHe(h.z,h.v))):h.t="s";else h=t[d][f];if(i)a[p]||(a[p]=[]),a[p][m]&&a[p][m].z&&(h.z=a[p][m].z),a[p][m]=h;else{var v=_Ue({c:m,r:p});a[v]&&a[v].z&&(h.z=a[v].z),a[v]=h}}}return u.s.c<1e7&&(a["!ref"]=AUe(u)),a}function EUe(e,t){return PUe(null,e,t)}function MUe(e,t){return t||(t=dUe(4)),t.write_shift(4,e),t}function DUe(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function RUe(e,t){var n=!1;return null==t&&(n=!0,t=dUe(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function LUe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function NUe(e,t){var n=e.l,r=e.read_shift(1),i=DUe(e),a=[],o={t:i,h:i};if(1&r){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(LUe(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=n+t,o}var jUe=NUe;function FUe(e,t){var n=!1;return null==t&&(n=!0,t=dUe(23+4*e.t.length)),t.write_shift(1,1),RUe(e.t,t),t.write_shift(4,1),function(e,t){t||(t=dUe(4)),t.write_shift(2,0),t.write_shift(2,0)}(0,t),n?t.slice(0,t.l):t}function zUe(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function BUe(e,t){return null==t&&(t=dUe(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function VUe(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function HUe(e,t){return null==t&&(t=dUe(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var WUe=DUe,UUe=RUe;function XUe(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function GUe(e,t){var n=!1;return null==t&&(n=!0,t=dUe(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var YUe=DUe,KUe=XUe,qUe=GUe;function ZUe(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?qWe([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):tUe(t,0)>>2;return n?i/100:i}function JUe(e,t){null==t&&(t=dUe(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-536870912&&e<1<<29?r=1:i==(0|i)&&i>=-536870912&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function QUe(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var $Ue=QUe,eXe=function(e,t){return t||(t=dUe(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function tXe(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function nXe(e,t){return(t||dUe(8)).write_shift(8,e,"f")}function rXe(e,t){if(t||(t=dUe(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var iXe=80,aXe={1:{n:"CodePage",t:2},2:{n:"Category",t:iXe},3:{n:"PresentationFormat",t:iXe},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:iXe},15:{n:"Company",t:iXe},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:iXe},27:{n:"ContentStatus",t:iXe},28:{n:"Language",t:iXe},29:{n:"Version",t:iXe},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},oXe={1:{n:"CodePage",t:2},2:{n:"Title",t:iXe},3:{n:"Subject",t:iXe},4:{n:"Author",t:iXe},5:{n:"Keywords",t:iXe},6:{n:"Comments",t:iXe},7:{n:"Template",t:iXe},8:{n:"LastAuthor",t:iXe},9:{n:"RevNumber",t:iXe},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:iXe},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function sXe(e){return e.map(function(e){return[e>>16&255,e>>8&255,255&e]})}var lXe=NHe(sXe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),uXe={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},cXe={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},dXe={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function fXe(e,t){var n,r=function(e){for(var t=[],n=xHe(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(cXe),i=[];i[i.length]=WHe,i[i.length]=sWe("Types",null,{xmlns:fWe,"xmlns:xsd":xWe,"xmlns:xsi":wWe}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(e){return sWe("Default",null,{Extension:e[0],ContentType:e[1]})}));var a=function(r){e[r]&&e[r].length>0&&(n=e[r][0],i[i.length]=sWe("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:dXe[r][t.bookType]||dXe[r].xlsx}))},o=function(n){(e[n]||[]).forEach(function(e){i[i.length]=sWe("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:dXe[n][t.bookType]||dXe[n].xlsx})})},s=function(t){(e[t]||[]).forEach(function(e){i[i.length]=sWe("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})})};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var hXe={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function pXe(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function mXe(e){var t=[WHe,sWe("Relationships",null,{xmlns:hWe})];return xHe(e["!id"]).forEach(function(n){t[t.length]=sWe("Relationship",null,e["!id"][n])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function vXe(e,t,n,r,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=r,i.Target=n,[hXe.HLINK,hXe.XPATH,hXe.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function gXe(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function yXe(e,t){return['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n',"  </rdf:Description>\n"].join("")}function bXe(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+rVe.version+"</meta:generator></office:meta></office:document-meta>"}var wXe=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function xXe(e,t,n,r,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=YHe(t),r[r.length]=n?sWe(e,t,n):aWe(e,t))}function SXe(e,t){var n=t||{},r=[WHe,sWe("cp:coreProperties",null,{"xmlns:cp":uWe,"xmlns:dc":mWe,"xmlns:dcterms":vWe,"xmlns:dcmitype":gWe,"xmlns:xsi":wWe})],i={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&xXe("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:lWe(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=e.ModifiedDate&&xXe("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:lWe(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var a=0;a!=wXe.length;++a){var o=wXe[a],s=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:e?e[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&xXe(o[0],s,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var _Xe=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],kXe=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function AXe(e){var t=[],n=sWe;return e||(e={}),e.Application="SheetJS",t[t.length]=WHe,t[t.length]=sWe("Properties",null,{xmlns:dWe,"xmlns:vt":bWe}),_Xe.forEach(function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case"string":i=YHe(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false"}void 0!==i&&(t[t.length]=n(r[0],i))}}),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+YHe(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function CXe(e){var t=[WHe,sWe("Properties",null,{xmlns:cWe,"xmlns:vt":bWe})];if(!e)return t.join("");var n=1;return xHe(e).forEach(function(r){++n,t[t.length]=sWe("property",function(e){switch(typeof e){case"string":var t=sWe("vt:lpwstr",YHe(e));return t.replace(/&quot;/g,"_x0022_");case"number":return sWe((0|e)==e?"vt:i4":"vt:r8",YHe(String(e)));case"boolean":return sWe("vt:bool",e?"true":"false")}if(e instanceof Date)return sWe("vt:filetime",lWe(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:YHe(r)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var TXe={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function OXe(e,t){var n=dUe(4),r=dUe(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=dUe(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var i=(n*=1e7)/Math.pow(2,32)|0;i>0&&(n%=Math.pow(2,32),r+=i);var a=dUe(8);return a.write_shift(4,n),a.write_shift(4,r),a}(t);break;case 31:case 80:for((r=dUe(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return SVe([n,r])}var IXe=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function PXe(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function EXe(e,t,n){var r=dUe(8),i=[],a=[],o=8,s=0,l=dUe(8),u=dUe(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),a.push(l),i.push(u),o+=8+l.length,!t){(u=dUe(8)).write_shift(4,0),i.unshift(u);var c=[dUe(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var d=e[s][0];for((l=dUe(8+2*(d.length+1)+(d.length%2?0:2))).write_shift(4,s+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=SVe(c),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(IXe.indexOf(e[s][0])>-1||kXe.indexOf(e[s][0])>-1)&&null!=e[s][1]){var f=e[s][1],h=0;if(t){var p=n[h=+t[e[s][0]]];if("version"==p.p&&"string"==typeof f){var m=f.split(".");f=(+m[0]<<16)+(+m[1]||0)}l=OXe(p.t,f)}else{var v=PXe(f);-1==v&&(v=31,f=String(f)),l=OXe(v,f)}a.push(l),(u=dUe(8)).write_shift(4,t?h:2+s),i.push(u),o+=8+l.length}var g=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,g),g+=a[s].length;return r.write_shift(4,o),r.write_shift(4,a.length),SVe([r].concat(i).concat(a))}function MXe(e,t,n,r,i,a){var o=dUe(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,yHe.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=EXe(e,n,r);if(s.push(l),i){var u=EXe(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(u)}return SVe(s)}function DXe(e,t){return t||(t=dUe(2)),t.write_shift(2,+!!e),t}function RXe(e){return e.read_shift(2,"u")}function LXe(e,t){return t||(t=dUe(2)),t.write_shift(2,e),t}function NXe(e,t,n){return n||(n=dUe(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function jXe(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont";(n&&n.biff,n&&8!=n.biff)?12==n.biff&&(i="wstr"):e.read_shift(1)&&(i="dbcs-cont");return n.biff>=2&&n.biff<=5&&(i="cpstr"),r?e.read_shift(r,i):""}function FXe(e){var t=e.t||"",n=dUe(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=dUe(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),SVe([n,r])}function zXe(e,t,n){return n||(n=dUe(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function BXe(e,t){t||(t=dUe(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function VXe(e){var t=dUe(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf("#"),a=i>-1?31:23;switch(r.charAt(0)){case"#":a=28;break;case".":a&=-3}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)t.write_shift(4,o[n]);if(28==a)BXe(r=r.slice(1),t);else if(2&a){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var s=i>-1?r.slice(0,i):r;for(t.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)t.write_shift(2,s.charCodeAt(n));t.write_shift(2,0),8&a&&BXe(i>-1?r.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));for(var l=0;"../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function HXe(e,t,n,r){return r||(r=dUe(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function WXe(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function UXe(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function XXe(e,t){return t||(t=dUe(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function GXe(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;default:throw new Error("unsupported BIFF version")}var a=dUe(i);return a.write_shift(2,r),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function YXe(e,t){var n=!t||t.biff>=8?2:1,r=dUe(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function KXe(e,t,n,r){var i=n&&5==n.biff;r||(r=dUe(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=r.length>r.l?r.slice(0,r.l):r;return null==a.l&&(a.l=a.length),a}function qXe(e,t,n,r){var i=n&&5==n.biff;r||(r=dUe(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),r.write_shift(4,a),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function ZXe(e){var t=dUe(24),n=SUe(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return SVe([t,VXe(e[1])])}function JXe(e){var t=e[1].Tooltip,n=dUe(10+2*(t.length+1));n.write_shift(2,2048);var r=SUe(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}var QXe=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=_He({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var i=EUe(function(t,n){var r=[],i=gVe(1);switch(n.type){case"base64":i=bVe(pVe(t));break;case"binary":i=bVe(t);break;case"buffer":case"array":i=t}uUe(i,0);var a=i.read_shift(1),o=!!(136&a),s=!1,l=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,o=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var u=0,c=521;2==a&&(u=i.read_shift(2)),i.l+=3,2!=a&&(u=i.read_shift(4)),u>1048576&&(u=1e6),2!=a&&(c=i.read_shift(2));var d=i.read_shift(2),f=n.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(f=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);for(var h=[],p={},m=Math.min(i.length,2==a?521:c-10-(s?264:0)),v=l?32:11;i.l<m&&13!=i[i.l];)switch((p={}).name=uVe.utils.decode(f,i.slice(i.l,i.l+v)).replace(/[\u0000\r\n].*$/g,""),i.l+=v,p.type=String.fromCharCode(i.read_shift(1)),2==a||l||(p.offset=i.read_shift(4)),p.len=i.read_shift(1),2==a&&(p.offset=i.read_shift(2)),p.dec=i.read_shift(1),p.name.length&&h.push(p),2!=a&&(i.l+=l?13:14),p.type){case"B":(!s||8!=p.len)&&n.WTF;break;case"G":case"P":n.WTF;break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==i[i.l]&&(i.l=c-1),13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=c;var g=0,y=0;for(r[0]=[],y=0;y!=h.length;++y)r[0][y]=h[y].name;for(;u-- >0;)if(42!==i[i.l])for(++i.l,r[++g]=[],y=0,y=0;y!=h.length;++y){var b=i.slice(i.l,i.l+h[y].len);i.l+=h[y].len,uUe(b,0);var w=uVe.utils.decode(f,b);switch(h[y].type){case"C":w.trim().length&&(r[g][y]=w.replace(/\s+$/,""));break;case"D":8===w.length?r[g][y]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):r[g][y]=w;break;case"F":r[g][y]=parseFloat(w.trim());break;case"+":case"I":r[g][y]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":r[g][y]=!0;break;case"N":case"F":r[g][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));r[g][y]="##MEMO##"+(l?parseInt(w.trim(),10):b.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(r[g][y]=+w||0);break;case"@":r[g][y]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":r[g][y]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":r[g][y]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[g][y]=-b.read_shift(-8,"f");break;case"B":if(s&&8==h[y].len){r[g][y]=b.read_shift(8,"f");break}case"G":case"P":b.l+=h[y].len;break;case"0":if("_NullFlags"===h[y].name)break;default:throw new Error("DBF Unsupported data type "+h[y].type)}}else i.l+=d;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=h,r}(t,r),r);return i["!cols"]=r.DBF.map(function(e){return{wch:e.len,DBF:e}}),delete r.DBF,i}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return IUe(n(e,t),t)}catch(kJe){if(t&&t.WTF)throw kJe}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var i=n||{};if(+i.codepage>=0&&sVe(+i.codepage),"string"==i.type)throw new Error("Cannot write DBF to JS string");var a=fUe(),o=lqe(e,{header:1,raw:!0,cellDates:!0}),s=o[0],l=o.slice(1),u=e["!cols"]||[],c=0,d=0,f=0,h=1;for(c=0;c<s.length;++c)if(((u[c]||{}).DBF||{}).name)s[c]=u[c].DBF.name,++f;else if(null!=s[c]){if(++f,"number"==typeof s[c]&&(s[c]=s[c].toString(10)),"string"!=typeof s[c])throw new Error("DBF Invalid column name "+s[c]+" |"+typeof s[c]+"|");if(s.indexOf(s[c])!==c)for(d=0;d<1024;++d)if(-1==s.indexOf(s[c]+"_"+d)){s[c]+="_"+d;break}}var p=CUe(e["!ref"]),m=[],v=[],g=[];for(c=0;c<=p.e.c-p.s.c;++c){var y="",b="",w=0,x=[];for(d=0;d<l.length;++d)null!=l[d][c]&&x.push(l[d][c]);if(0!=x.length&&null!=s[c]){for(d=0;d<x.length;++d){switch(typeof x[d]){case"number":b="B";break;case"string":default:b="C";break;case"boolean":b="L";break;case"object":b=x[d]instanceof Date?"D":"C"}w=Math.max(w,String(x[d]).length),y=y&&y!=b?"C":b}w>250&&(w=250),"C"==(b=((u[c]||{}).DBF||{}).type)&&u[c].DBF.len>w&&(w=u[c].DBF.len),"B"==y&&"N"==b&&(y="N",g[c]=u[c].DBF.dec,w=u[c].DBF.len),v[c]="C"==y||"N"==b?w:r[y]||0,h+=v[c],m[c]=y}else m[c]="?"}var S=a.next(32);for(S.write_shift(4,318902576),S.write_shift(4,l.length),S.write_shift(2,296+32*f),S.write_shift(2,h),c=0;c<4;++c)S.write_shift(4,0);for(S.write_shift(4,(+t[iVe]||3)<<8),c=0,d=0;c<s.length;++c)if(null!=s[c]){var _=a.next(32),k=(s[c].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);_.write_shift(1,k,"sbcs"),_.write_shift(1,"?"==m[c]?"C":m[c],"sbcs"),_.write_shift(4,d),_.write_shift(1,v[c]||r[m[c]]||0),_.write_shift(1,g[c]||0),_.write_shift(1,2),_.write_shift(4,0),_.write_shift(1,0),_.write_shift(4,0),_.write_shift(4,0),d+=v[c]||r[m[c]]||0}var A=a.next(264);for(A.write_shift(4,13),c=0;c<65;++c)A.write_shift(4,0);for(c=0;c<l.length;++c){var C=a.next(h);for(C.write_shift(1,0),d=0;d<s.length;++d)if(null!=s[d])switch(m[d]){case"L":C.write_shift(1,null==l[c][d]?63:l[c][d]?84:70);break;case"B":C.write_shift(8,l[c][d]||0,"f");break;case"N":var T="0";for("number"==typeof l[c][d]&&(T=l[c][d].toFixed(g[d]||0)),f=0;f<v[d]-T.length;++f)C.write_shift(1,32);C.write_shift(1,T,"sbcs");break;case"D":l[c][d]?(C.write_shift(4,("0000"+l[c][d].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(l[c][d].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+l[c][d].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var O=String(null!=l[c][d]?l[c][d]:"").slice(0,v[d]);for(C.write_shift(1,O,"sbcs"),f=0;f<v[d]-O.length;++f)C.write_shift(1,32)}}return a.next(1).write_shift(1,26),a.end()}}}(),$Xe=function(){var e={AA:"\xc0",BA:"\xc1",CA:"\xc2",DA:195,HA:"\xc4",JA:197,AE:"\xc8",BE:"\xc9",CE:"\xca",HE:"\xcb",AI:"\xcc",BI:"\xcd",CI:"\xce",HI:"\xcf",AO:"\xd2",BO:"\xd3",CO:"\xd4",DO:213,HO:"\xd6",AU:"\xd9",BU:"\xda",CU:"\xdb",HU:"\xdc",Aa:"\xe0",Ba:"\xe1",Ca:"\xe2",Da:227,Ha:"\xe4",Ja:229,Ae:"\xe8",Be:"\xe9",Ce:"\xea",He:"\xeb",Ai:"\xec",Bi:"\xed",Ci:"\xee",Hi:"\xef",Ao:"\xf2",Bo:"\xf3",Co:"\xf4",Do:245,Ho:"\xf6",Au:"\xf9",Bu:"\xfa",Cu:"\xfb",Hu:"\xfc",KC:"\xc7",Kc:"\xe7",q:"\xe6",z:"\u0153",a:"\xc6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1bN("+xHe(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?dVe(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:dVe(r)};function i(e,i){var a,o=e.split(/[\n\r]+/),s=-1,l=-1,u=0,c=0,d=[],f=[],h=null,p={},m=[],v=[],g=[],y=0;for(+i.codepage>=0&&sVe(+i.codepage);u!==o.length;++u){y=0;var b,w=o[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),x=w.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")}),S=x[0];if(w.length>0)switch(S){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==x[1].charAt(0)&&f.push(w.slice(3).replace(/;;/g,";"));break;case"C":var _=!1,k=!1,A=!1,C=!1,T=-1,O=-1;for(c=1;c<x.length;++c)switch(x[c].charAt(0)){case"A":case"G":break;case"X":l=parseInt(x[c].slice(1))-1,k=!0;break;case"Y":for(s=parseInt(x[c].slice(1))-1,k||(l=0),a=d.length;a<=s;++a)d[a]=[];break;case"K":'"'===(b=x[c].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(FHe(b))?isNaN(BHe(b).getDate())||(b=RHe(b)):(b=FHe(b),null!==h&&lHe(h)&&(b=PHe(b))),_=!0;break;case"E":C=!0;var I=WGe(x[c].slice(1),{r:s,c:l});d[s][l]=[d[s][l],I];break;case"S":A=!0,d[s][l]=[d[s][l],"S5S"];break;case"R":T=parseInt(x[c].slice(1))-1;break;case"C":O=parseInt(x[c].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}if(_&&(d[s][l]&&2==d[s][l].length?d[s][l][0]=b:d[s][l]=b,h=null),A){if(C)throw new Error("SYLK shared formula cannot have own formula");var P=T>-1&&d[T][O];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=GGe(P[1],{r:s-T,c:l-O})}break;case"F":var E=0;for(c=1;c<x.length;++c)switch(x[c].charAt(0)){case"X":l=parseInt(x[c].slice(1))-1,++E;break;case"Y":for(s=parseInt(x[c].slice(1))-1,a=d.length;a<=s;++a)d[a]=[];break;case"M":y=parseInt(x[c].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=f[parseInt(x[c].slice(1))];break;case"W":for(g=x[c].slice(1).split(" "),a=parseInt(g[0],10);a<=parseInt(g[1],10);++a)y=parseInt(g[2],10),v[a-1]=0===y?{hidden:!0}:{wch:y},mGe(v[a-1]);break;case"C":v[l=parseInt(x[c].slice(1))-1]||(v[l]={});break;case"R":m[s=parseInt(x[c].slice(1))-1]||(m[s]={}),y>0?(m[s].hpt=y,m[s].hpx=yGe(y)):0===y&&(m[s].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}E<1&&(h=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}}return m.length>0&&(p["!rows"]=m),v.length>0&&(p["!cols"]=v),i&&i.sheetRows&&(d=d.slice(0,i.sheetRows)),[d,p]}function a(e,t){var n=function(e,t){switch(t.type){case"base64":return i(pVe(e),t);case"binary":return i(e,t);case"buffer":return i(mVe&&Buffer.isBuffer(e)?e.toString("binary"):xVe(e),t);case"array":return i(LHe(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],a=n[1],o=EUe(r,t);return xHe(a).forEach(function(e){o[e]=a[e]}),o}function o(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+XGe(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}return e["|"]=254,{to_workbook:function(e,t){return IUe(a(e,t),t)},to_sheet:a,from_sheet:function(e,t){var n,r,i=["ID;PWXL;N;E"],a=[],s=CUe(e["!ref"]),l=Array.isArray(e),u="\r\n";i.push("P;PGeneral"),i.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=i,e["!cols"].forEach(function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=fGe(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=hGe(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)})),e["!rows"]&&function(e,t){t.forEach(function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*gGe(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))})}(i,e["!rows"]),i.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var c=s.s.r;c<=s.e.r;++c)for(var d=s.s.c;d<=s.e.c;++d){var f=_Ue({r:c,c:d});(n=l?(e[c]||[])[d]:e[f])&&(null!=n.v||n.f&&!n.F)&&a.push(o(n,0,c,d))}return i.join(u)+u+a.join(u)+u+"E"+u}}}(),eGe=function(){function e(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,o=[];a!==n.length;++a)if("BOT"!==n[a].trim()){if(!(r<0)){for(var s=n[a].trim().split(","),l=s[0],u=s[1],c=n[++a]||"";1&(c.match(/["]/g)||[]).length&&a<n.length-1;)c+="\n"+n[++a];switch(c=c.trim(),+l){case-1:if("BOT"===c){o[++r]=[],i=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?o[r][i]=!0:"FALSE"===c?o[r][i]=!1:isNaN(FHe(u))?isNaN(BHe(u).getDate())?o[r][i]=u:o[r][i]=RHe(u):o[r][i]=FHe(u),++i;break;case 1:(c=(c=c.slice(1,c.length-1)).replace(/""/g,'"'))&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),o[r][i++]=""!==c?c:null}if("EOD"===c)break}}else o[++r]=[],i=0;return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}function t(t,n){return EUe(function(t,n){switch(n.type){case"base64":return e(pVe(t),n);case"binary":return e(t,n);case"buffer":return e(mVe&&Buffer.isBuffer(t)?t.toString("binary"):xVe(t),n);case"array":return e(LHe(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return IUe(t(e,n),n)},to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+","+r),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,i=[],a=CUe(n["!ref"]),o=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,a.e.r-a.s.r+1,""),e(i,"TUPLES",0,a.e.c-a.s.c+1,""),e(i,"DATA",0,0,"");for(var s=a.s.r;s<=a.e.r;++s){t(i,-1,0,"BOT");for(var l=a.s.c;l<=a.e.c;++l){var u=_Ue({r:s,c:l});if(r=o?(n[s]||[])[l]:n[u])switch(r.t){case"n":var c=r.w;c||null==r.v||(c=r.v),null==c?r.f&&!r.F?t(i,1,0,"="+r.f):t(i,1,0,""):t(i,0,c,"V");break;case"b":t(i,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(i,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=fHe(r.z||RVe[14],CHe(RHe(r.v)))),t(i,0,r.w,"V");break;default:t(i,1,0,"")}else t(i,1,0,"")}}t(i,-1,0,"EOD");return i.join("\r\n")}}()}}(),tGe=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){return EUe(function(t,n){for(var r=t.split("\n"),i=-1,a=-1,o=0,s=[];o!==r.length;++o){var l=r[o].trim().split(":");if("cell"===l[0]){var u=SUe(l[1]);if(s.length<=u.r)for(i=s.length;i<=u.r;++i)s[i]||(s[i]=[]);switch(i=u.r,a=u.c,l[2]){case"t":s[i][a]=e(l[3]);break;case"v":s[i][a]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":"nl"===l[3]?s[i][a]=!!+l[4]:s[i][a]=+l[4],"vtf"==l[2]&&(s[i][a]=[s[i][a],c])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}(t,n),n)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),o="--SocialCalcSpreadsheetControlSave--";function s(e){if(!e||!e["!ref"])return"";for(var n,r=[],i=[],a="",o=kUe(e["!ref"]),s=Array.isArray(e),l=o.s.r;l<=o.e.r;++l)for(var u=o.s.c;u<=o.e.c;++u)if(a=_Ue({r:l,c:u}),(n=s?(e[l]||[])[u]:e[a])&&null!=n.v&&"z"!==n.t){switch(i=["cell",a,"t"],n.t){case"s":case"str":i.push(t(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=t(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=CHe(RHe(n.v));i[2]="vtc",i[3]="nd",i[4]=""+c,i[5]=n.w||fHe(n.z||RVe[14],c);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,t){return IUe(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[r,i,a,i,s(e),o].join("\n")}}}(),nGe=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(FHe(e))?isNaN(BHe(e).getDate())?t[n][r]=e:t[n][r]=RHe(e):t[n][r]=FHe(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},i=!1,a=0,o=0;a<e.length;++a)34==(o=e.charCodeAt(a))?i=!i:!i&&o in t&&(r[o]=(r[o]||0)+1);for(a in o=[],r)Object.prototype.hasOwnProperty.call(r,a)&&o.push([r[a],a]);if(!o.length)for(a in r=n)Object.prototype.hasOwnProperty.call(r,a)&&o.push([r[a],a]);return o.sort(function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]}),t[o.pop()[1]]||44}function i(e,t){var n=t||{},i="",a=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(i=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(i=e.charAt(4),e=e.slice(6)):i=r(e.slice(0,1024)):i=n&&n.FS?n.FS:r(e.slice(0,1024));var s=0,l=0,u=0,c=0,d=0,f=i.charCodeAt(0),h=!1,p=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var v,g,y=null!=n.dateNF?(v=n.dateNF,g=(g="number"==typeof v?RVe[v]:v).replace(vHe,"(\\d+)"),new RegExp("^"+g+"$")):null;function b(){var t=e.slice(c,d),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=FHe(t)))if(!isNaN(BHe(t).getDate())||y&&t.match(y)){r.z=n.dateNF||RVe[14];var i=0;y&&t.match(y)&&(t=function(e,t,n){var r=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(vHe)||[]).forEach(function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":a=u;break;case"h":o=u;break;case"s":l=u;break;case"m":o>=0?s=u:i=u}}),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==o&&-1==s&&-1==l?u:-1==r&&-1==i&&-1==a?c:u+"T"+c}(0,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t="d",r.v=RHe(t,i)):(r.t="n",r.v=CHe(RHe(t,i))),!1!==n.cellText&&(r.w=fHe(r.z,r.v instanceof Date?CHe(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(a[s]||(a[s]=[]),a[s][l]=r):a[_Ue({c:l,r:s})]=r),c=d+1,m=e.charCodeAt(c),o.e.c<l&&(o.e.c=l),o.e.r<s&&(o.e.r=s),p==f)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}e:for(;d<e.length;++d)switch(p=e.charCodeAt(d)){case 34:34===m&&(h=!h);break;case f:case 10:case 13:if(!h&&b())break e}return d-c>0&&b(),a["!ref"]=AUe(o),a}function a(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?i(t,n):EUe(function(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;for(var a=t.split(/[\r\n]/),o=a.length-1;o>=0&&0===a[o].length;)--o;for(var s=10,l=0,u=0;u<=o;++u)-1==(l=a[u].indexOf(" "))?l=a[u].length:l++,s=Math.max(s,l);for(u=0;u<=o;++u){i[u]=[];var c=0;for(e(a[u].slice(0,s).trim(),i,u,c,r),c=1;c<=(a[u].length-s)/10+1;++c)e(a[u].slice(s+10*(c-1),s+10*c).trim(),i,u,c,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}(t,n),n):i(t,n)}function o(e,t){var n="",r="string"==t.type?[0,0,0,0]:function(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=pVe(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}(e,t);switch(t.type){case"base64":n=pVe(e);break;case"binary":case"string":n=e;break;case"buffer":65001==t.codepage?n=e.toString("utf8"):(t.codepage,n=mVe&&Buffer.isBuffer(e)?e.toString("binary"):xVe(e));break;case"array":n=LHe(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=tWe(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=tWe(n):t.type,"socialcalc:version:"==n.slice(0,19)?tGe.to_sheet("string"==t.type?n:tWe(n),t):a(n,t)}return{to_workbook:function(e,t){return IUe(o(e,t),t)},to_sheet:o,from_sheet:function(e){for(var t,n=[],r=CUe(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){for(var o=[],s=r.s.c;s<=r.e.c;++s){var l=_Ue({r:a,c:s});if((t=i?(e[a]||[])[s]:e[l])&&null!=t.v){for(var u=(t.w||(OUe(t),t.w)||"").slice(0,10);u.length<10;)u+=" ";o.push(u+(0===s?" ":""))}else o.push("          ")}n.push(o.join(""))}return n.join("\n")}}}(),rGe=function(){function e(e,t,n){if(e){uUe(e,e.l||0);for(var r=n.Enum||g;e.l<e.length;){var i=e.read_shift(2),a=r[i]||r[65535],o=e.read_shift(2),s=e.l+o,l=a.f&&a.f(e,o,n);if(e.l=s,t(l,a,i))return}}}function t(t,n){if(!t)return t;var r=n||{},i=r.dense?[]:{},a="Sheet1",o="",s=0,l={},u=[],c=[],d={s:{r:0,c:0},e:{r:0,c:0}},f=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=g,e(t,function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:d=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||RVe[14],r.cellDates&&(e[1].t="d",e[1].v=PHe(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=AUe(d),l[a]=i,u.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a=o||"Sheet"+(s+1),o="");var c=r.dense?(i[e[0].r]||[])[e[0].c]:i[_Ue(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[_Ue(e[0])]=e[1]}},r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=y,14==t[2]&&(r.qpro=!0,t.l=0),e(t,function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=AUe(d),l[a]=i,u.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a="Sheet"+(s+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[_Ue(e[0])]=e[1],d.e.c<e[0].c&&(d.e.c=e[0].c),d.e.r<e[0].r&&(d.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==s&&(a=e[1])}},r)}if(i["!ref"]=AUe(d),l[o||a]=i,u.push(o||a),!c.length)return{SheetNames:u,Sheets:l};for(var h={},p=[],m=0;m<c.length;++m)l[u[m]]?(p.push(c[m]||u[m]),h[c[m]]=l[c[m]]||l[u[m]]):(p.push(c[m]),h[c[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:h}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].t="s",20768==r.vers){e.l++;var o=e.read_shift(1);return a[1].v=e.read_shift(o,"utf8"),a}return r.qpro&&e.l++,a[1].v=e.read_shift(i-e.l,"cstr"),a}function i(e,t,n){var r=dUe(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i<r.length;++i){var a=n.charCodeAt(i);r.write_shift(1,a>=128?95:a)}return r.write_shift(1,0),r}function a(e,t,n){var r=dUe(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function o(e,t,n){var r=dUe(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function s(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?xUe(t):bUe(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function d(e,t,n,r){var i=dUe(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a<r.length;++a){var o=r.charCodeAt(a);i.write_shift(1,o>=128?95:o)}return i.write_shift(1,0),i}function f(e,t){var n=c(e),r=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var o=32768&a;return a=(32767&a)-16446,n[1].v=(1-2*o)*(i*Math.pow(2,a+32)+r*Math.pow(2,a)),n}function h(e,t,n,r){var i=dUe(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a,o=0,s=0,l=0;return r<0&&(o=1,r=-r),s=0|Math.log2(r),2147483648&(l=(r/=Math.pow(2,s-31))>>>0)||(++s,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,a=(r*=Math.pow(2,32))>>>0,i.write_shift(4,a),i.write_shift(4,l),s+=16383+(o?32768:0),i.write_shift(2,s),i}function p(e,t){var n=c(e),r=e.read_shift(8,"f");return n[1].v=r,n}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function v(e,t){var n=dUe(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var i=e.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var g={0:{n:"BOF",f:RXe},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].v=e.read_shift(8,"f"),r.qpro)e.l=i;else{var o=e.read_shift(2);!function(e,t){uUe(e,0);var n=[],r=0,i="",a="",o="",c="";for(;e.l<e.length;){var d=e[e.l++];switch(d){case 0:n.push(e.read_shift(8,"f"));break;case 1:a=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(a+i);break;case 2:var f=s(t[0].c,e.read_shift(2),!0),h=s(t[0].r,e.read_shift(2),!1);a=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(f+h+":"+a+i);break;case 3:if(e.l<e.length)return;break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var p="";d=e[e.l++];)p+=String.fromCharCode(d);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:c=n.pop(),o=n.pop(),n.push(["AND","OR"][d-20]+"("+o+","+c+")");break;default:if(d<32&&u[d])c=n.pop(),o=n.pop(),n.push(o+u[d]+c);else{if(!l[d])return;if(69==(r=l[d][1])&&(r=e[e.l++]),r>n.length)return;var m=n.slice(-r);n.length-=r,n.push(l[d][0]+"("+m.join(",")+")")}}}1==n.length&&(t[1].f=""+n[0])}(e.slice(e.l,e.l+o),a),e.l+=o}return a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},y={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=c(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:f},24:{n:"NUMBER18",f:function(e,t){var n=c(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=f(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var i=e.read_shift(2);if(14e3==i){for(n[i]=[0,""],n[i][0]=e.read_shift(2);e[e.l];)n[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=c(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(e,t){var n=p(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&sVe(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,s,l=fUe(),u=CUe(e["!ref"]),c=Array.isArray(e),d=[];bKe(l,0,(r=1030,(s=dUe(2)).write_shift(2,r),s)),bKe(l,6,function(e){var t=dUe(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(u));for(var f=Math.min(u.e.r,8191),h=u.s.r;h<=f;++h)for(var p=bUe(h),m=u.s.c;m<=u.e.c;++m){h===u.s.r&&(d[m]=xUe(m));var v=d[m]+p,g=c?(e[h]||[])[m]:e[v];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?bKe(l,13,a(h,m,g.v)):bKe(l,14,o(h,m,g.v));else bKe(l,15,i(h,m,OUe(g).slice(0,239)))}return bKe(l,1),l.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&sVe(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=fUe();bKe(r,0,function(e){var t=dUe(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a<e.SheetNames.length;++a){var o=e.SheetNames[a],s=e.Sheets[o];if(s&&s["!ref"]){++i;var l=kUe(s["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}n>8191&&(n=8191);return t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&bKe(r,27,v(e.SheetNames[i],a++));var o=0;for(i=0;i<e.SheetNames.length;++i){var s=e.Sheets[e.SheetNames[i]];if(s&&s["!ref"]){for(var l=CUe(s["!ref"]),u=Array.isArray(s),c=[],f=Math.min(l.e.r,8191),p=l.s.r;p<=f;++p)for(var m=bUe(p),g=l.s.c;g<=l.e.c;++g){p===l.s.r&&(c[g]=xUe(g));var y=c[g]+m,b=u?(s[p]||[])[g]:s[y];if(b&&"z"!=b.t)if("n"==b.t)bKe(r,23,h(p,g,o,b.v));else bKe(r,22,d(p,g,o,OUe(b).slice(0,239)))}++o}}return bKe(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(bVe(pVe(e)),n);case"binary":return t(bVe(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),iGe=/^\s|\s$|[\t\n\r]/;function aGe(e,t){if(!t.bookSST)return"";var n=[WHe];n[n.length]=sWe("sst",null,{xmlns:SWe[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(iGe)&&(a+=' xml:space="preserve"'),a+=">"+YHe(i.t)+"</t>"),a+="</si>",n[n.length]=a}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var oGe=function(e,t){var n=!1;return null==t&&(n=!0,t=dUe(15+4*e.t.length)),t.write_shift(1,0),RUe(e.t,t),n?t.slice(0,t.l):t};function sGe(e){var t=fUe();hUe(t,159,function(e,t){return t||(t=dUe(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)hUe(t,19,oGe(e[n]));return hUe(t,160),t.end()}function lGe(e){var t,n,r=0,i=function(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),a=i.length+1;for((t=gVe(a))[0]=i.length,n=1;n!=a;++n)t[n]=i[n-1];for(n=a-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var uGe=function(){function e(e,n){switch(n.type){case"base64":return t(pVe(e),n);case"binary":return t(e,n);case"buffer":return t(mVe&&Buffer.isBuffer(e)?e.toString("binary"):xVe(e),n);case"array":return t(LHe(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach(function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,a=/\\\w+\b/g,o=0,s=-1;r=a.exec(e);){if("\\cell"===r[0]){var l=e.slice(o,a.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var u={v:l,t:"s"};Array.isArray(n)?n[t][s]=u:n[_Ue({r:t,c:s})]=u}}o=a.lastIndex}s>i.e.c&&(i.e.c=s)}),n["!ref"]=AUe(i),n}return{to_workbook:function(t,n){return IUe(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=CUe(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){n.push("\\trowd\\trautofit1");for(var o=r.s.c;o<=r.e.c;++o)n.push("\\cellx"+(o+1));for(n.push("\\pard\\intbl"),o=r.s.c;o<=r.e.c;++o){var s=_Ue({r:a,c:o});(t=i?(e[a]||[])[o]:e[s])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(OUe(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function cGe(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var dGe=6;function fGe(e){return Math.floor((e+Math.round(128/dGe)/256)*dGe)}function hGe(e){return Math.floor((e-5)/dGe*100+.5)/100}function pGe(e){return Math.round((e*dGe+5)/dGe*256)/256}function mGe(e){e.width?(e.wpx=fGe(e.width),e.wch=hGe(e.wpx),e.MDW=dGe):e.wpx?(e.wch=hGe(e.wpx),e.width=pGe(e.wch),e.MDW=dGe):"number"==typeof e.wch&&(e.width=pGe(e.wch),e.wpx=fGe(e.width),e.MDW=dGe),e.customWidth&&delete e.customWidth}var vGe=96;function gGe(e){return 96*e/vGe}function yGe(e){return e*vGe/96}function bGe(e,t){var n,r=[WHe,sWe("styleSheet",null,{xmlns:SWe[0],"xmlns:vt":bWe})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=sWe("numFmt",null,{numFmtId:r,formatCode:YHe(e[r])}))}),1===t.length?"":(t[t.length]="</numFmts>",t[0]=sWe("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=sWe("cellXfs",null),e.forEach(function(e){t[t.length]=sWe("xf",null,e)}),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=sWe("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function wGe(e,t,n){n||(n=dUe(6+4*t.length)),n.write_shift(2,e),RUe(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function xGe(e,t){t||(t=dUe(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=dUe(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),rXe(e.color,t);return t.write_shift(1,2),RUe(e.name,t),t.length>t.l?t.slice(0,t.l):t}var SGe,_Ge=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],kGe=cUe;function AGe(e,t){t||(t=dUe(84)),SGe||(SGe=_He(_Ge));var n=SGe[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(rXe({auto:1},t),rXe({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function CGe(e,t,n){n||(n=dUe(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function TGe(e,t){return t||(t=dUe(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var OGe=cUe;function IGe(e){var t;hUe(e,613,MUe(1)),hUe(e,46,(t||(t=dUe(51)),t.write_shift(1,0),TGe(0,t),TGe(0,t),TGe(0,t),TGe(0,t),TGe(0,t),t.length>t.l?t.slice(0,t.l):t)),hUe(e,614)}function PGe(e){var t,n;hUe(e,619,MUe(1)),hUe(e,48,(t={xfId:0,name:"Normal"},n||(n=dUe(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,0),n.write_shift(1,0),GUe(t.name||"",n),n.length>n.l?n.slice(0,n.l):n)),hUe(e,620)}function EGe(e){hUe(e,508,function(e,t,n){var r=dUe(2052);return r.write_shift(4,e),GUe(t,r),GUe(n,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),hUe(e,509)}function MGe(e,t){var n=fUe();return hUe(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n}),0!=n&&(hUe(e,615,MUe(n)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&hUe(e,44,wGe(r,t[r]))}),hUe(e,616))}}(n,e.SSF),function(e){hUe(e,611,MUe(1)),hUe(e,43,xGe({sz:12,color:{theme:1},name:"Calibri",family:2})),hUe(e,612)}(n),function(e){hUe(e,603,MUe(2)),hUe(e,45,AGe({patternType:"none"})),hUe(e,45,AGe({patternType:"gray125"})),hUe(e,604)}(n),IGe(n),function(e){hUe(e,626,MUe(1)),hUe(e,47,CGe({numFmtId:0},65535)),hUe(e,627)}(n),function(e,t){hUe(e,617,MUe(t.length)),t.forEach(function(t){hUe(e,47,CGe(t,0))}),hUe(e,618)}(n,t.cellXfs),PGe(n),function(e){hUe(e,505,MUe(0)),hUe(e,506)}(n),EGe(n),hUe(n,279),n.end()}function DGe(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[WHe];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',n[n.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',n[n.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',n[n.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',n[n.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',n[n.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',n[n.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function RGe(){var e,t,n=fUe();return hUe(n,332),hUe(n,334,MUe(1)),hUe(n,335,((t=dUe(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),RUe(e.name,t),t.slice(0,t.l))),hUe(n,336),hUe(n,339,function(e,t){var n=dUe(8+2*t.length);return n.write_shift(4,e),RUe(t,n),n.slice(0,n.l)}(1,"XLDAPR")),hUe(n,52),hUe(n,35,MUe(514)),hUe(n,4096,MUe(0)),hUe(n,4097,LXe(1)),hUe(n,36),hUe(n,53),hUe(n,340),hUe(n,337,function(e){var t=dUe(8);return t.write_shift(4,e),t.write_shift(4,1),t}(1)),hUe(n,51,function(e){var t=dUe(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),hUe(n,338),hUe(n,333),n.end()}function LGe(){var e=[WHe];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}var NGe=1024;function jGe(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[sWe("xml",null,{"xmlns:v":OWe,"xmlns:o":_We,"xmlns:x":kWe,"xmlns:mv":TWe}).replace(/\/>/,">"),sWe("o:shapelayout",sWe("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),sWe("v:shapetype",[sWe("v:stroke",null,{joinstyle:"miter"}),sWe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];NGe<1e3*e;)NGe+=1e3;return t.forEach(function(e){var t=SUe(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?sWe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=sWe("v:fill",r,n);++NGe,i=i.concat(["<v:shape"+oWe({id:"_x0000_s"+NGe,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,sWe("v:shadow",null,{on:"t",obscured:"t"}),sWe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",aWe("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),aWe("x:AutoFill","False"),aWe("x:Row",String(t.r)),aWe("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function FGe(e){var t=[WHe,sWe("comments",null,{xmlns:SWe[0]})],n=[];return t.push("<authors>"),e.forEach(function(e){e[1].forEach(function(e){var r=YHe(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))})}),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach(function(e){e.a&&(r=n.indexOf(YHe(e.a))),i.push(e.t||"")}),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),i.length<=1)t.push(aWe("t",YHe(i[0]||"")));else{for(var a="Comment:\n    "+i[0]+"\n",o=1;o<i.length;++o)a+="Reply:\n    "+i[o]+"\n";t.push(aWe("t",YHe(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function zGe(e,t,n){var r=[WHe,sWe("ThreadedComments",null,{xmlns:pWe}).replace(/[\/]>/,">")];return e.forEach(function(e){var i="";(e[1]||[]).forEach(function(a,o){if(a.T){a.a&&-1==t.indexOf(a.a)&&t.push(a.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==o?i=s.id:s.parentId=i,a.ID=s.id,a.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),r.push(sWe("threadedComment",aWe("text",a.t||""),s))}else delete a.ID})}),r.push("</ThreadedComments>"),r.join("")}var BGe=DUe;function VGe(e){var t=fUe(),n=[];return hUe(t,628),hUe(t,630),e.forEach(function(e){e[1].forEach(function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),hUe(t,632,function(e){return RUe(e.slice(0,54))}(e.a)))})}),hUe(t,631),hUe(t,633),e.forEach(function(e){e[1].forEach(function(r){r.iauthor=n.indexOf(r.a);var i={s:SUe(e[0]),e:SUe(e[0])};hUe(t,635,function(e,t){return null==t&&(t=dUe(36)),t.write_shift(4,e[1].iauthor),eXe(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([i,r])),r.t&&r.t.length>0&&hUe(t,637,FUe(r)),hUe(t,636),delete r.iauthor})}),hUe(t,634),hUe(t,629),t.end()}var HGe=["xlsb","xlsm","xlam","biff8","xla"],WGe=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,o=!1;0==r.length?o=!0:"["==r.charAt(0)&&(o=!0,r=r.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return a?l+=t.c:--l,o?s+=t.r:--s,n+(a?"":"$")+xUe(l)+(o?"":"$")+bUe(s)}return function(r,i){return t=i,r.replace(e,n)}}(),UGe=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,XGe=function(){return function(e,t){return e.replace(UGe,function(e,n,r,i,a,o){var s=wUe(i)-(r?0:t.c),l=yUe(o)-(a?0:t.r);return n+"R"+(0==l?"":a?l+1:"["+l+"]")+"C"+(0==s?"":r?s+1:"["+s+"]")})}}();function GGe(e,t){return e.replace(UGe,function(e,n,r,i,a,o){return n+("$"==r?r+i:xUe(wUe(i)+t.c))+("$"==a?a+o:bUe(yUe(o)+t.r))})}function YGe(e){e.l+=1}function KGe(e,t){var n=e.read_shift(2);return[16383&n,n>>14&1,n>>15&1]}function qGe(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return ZGe(e);12==n.biff&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),o=KGe(e),s=KGe(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function ZGe(e){var t=KGe(e),n=KGe(e),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function JGe(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=KGe(e),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),i=KGe(e);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function QGe(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function $Ge(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function eYe(e){return[e.read_shift(1),e.read_shift(1)]}function tYe(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=function(e,t){return 1===e.read_shift(t)}(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=uXe[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=tXe(e);break;case 2:n[1]=function(e,t,n){if(n.biff>5)return function(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):function(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}(e,r,n)}(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function nYe(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],a=0;a!=r;++a)i.push((12==n.biff?$Ue:UXe)(e));return i}function rYe(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var a=0,o=[];a!=r&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=tYe(e,n.biff);return o}function iYe(e,t,n){return e.l+=2,[QGe(e)]}function aYe(e){return e.l+=6,[]}function oYe(e){return e.l+=2,[RXe(e),1&e.read_shift(2)]}var sYe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var lYe={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:cUe},3:{n:"PtgAdd",f:YGe},4:{n:"PtgSub",f:YGe},5:{n:"PtgMul",f:YGe},6:{n:"PtgDiv",f:YGe},7:{n:"PtgPower",f:YGe},8:{n:"PtgConcat",f:YGe},9:{n:"PtgLt",f:YGe},10:{n:"PtgLe",f:YGe},11:{n:"PtgEq",f:YGe},12:{n:"PtgGe",f:YGe},13:{n:"PtgGt",f:YGe},14:{n:"PtgNe",f:YGe},15:{n:"PtgIsect",f:YGe},16:{n:"PtgUnion",f:YGe},17:{n:"PtgRange",f:YGe},18:{n:"PtgUplus",f:YGe},19:{n:"PtgUminus",f:YGe},20:{n:"PtgPercent",f:YGe},21:{n:"PtgParen",f:YGe},22:{n:"PtgMissArg",f:YGe},23:{n:"PtgStr",f:function(e,t,n){return e.l++,jXe(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,uXe[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,tXe(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[AYe[i],kYe[i],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],i=e.read_shift(1),a=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===a[0]?kYe:_Ye)[a[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,a]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,JGe(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,qGe(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:cUe},40:{n:"PtgMemNoMem",f:cUe},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}(e);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),o=(16384&a)>>14,s=(32768&a)>>15;if(a&=16383,1==s)for(;i>524287;)i-=1048576;if(1==o)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:o,rRel:s}}(e,0,n);return[r,i]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=function(e,t,n){if(n.biff<8)return ZGe(e);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),a=KGe(e),o=KGe(e);return{s:{r:r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}(e,0,n);return[r,i]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,i,JGe(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12;break;case 12:0}return[r,i,qGe(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6}return e.l+=a,[r,i]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12}return e.l+=a,[r,i]}},255:{}},uYe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},cYe={1:{n:"PtgElfLel",f:oYe},2:{n:"PtgElfRw",f:iYe},3:{n:"PtgElfCol",f:iYe},6:{n:"PtgElfRwV",f:iYe},7:{n:"PtgElfColV",f:iYe},10:{n:"PtgElfRadical",f:iYe},11:{n:"PtgElfRadicalS",f:aYe},13:{n:"PtgElfColS",f:aYe},15:{n:"PtgElfColSV",f:aYe},16:{n:"PtgElfRadicalLel",f:oYe},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2);return{ixti:t,coltype:3&n,rt:sYe[n>>2&31],idx:r,c:i,C:a}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},dYe={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],a=0;a<=r;++a)i.push(e.read_shift(n&&2==n.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:$Ge},33:{n:"PtgAttrBaxcel",f:$Ge},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),eYe(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),eYe(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function fYe(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],a=0;a<r.length;++a){var o=r[a];if(o)if(2===o[0])i.push('"'+o[1].replace(/"/g,'""')+'"');else i.push(o[1]);else i.push("")}t.push(i.join(","))}return t.join(";")}var hYe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function pYe(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map(function(e){return e.Name}).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function mYe(e,t,n){var r=pYe(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function vYe(e,t,n,r,i){var a,o,s,l,u=i&&i.biff||8,c={s:{c:0,r:0}},d=[],f=0,h=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,v="",g=0,y=e[0].length;g<y;++g){var b=e[0][g];switch(b[0]){case"PtgUminus":d.push("-"+d.pop());break;case"PtgUplus":d.push("+"+d.pop());break;case"PtgPercent":d.push(d.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(a=d.pop(),o=d.pop(),m>=0){switch(e[0][m][1][0]){case 0:v=jHe(" ",e[0][m][1][1]);break;case 1:v=jHe("\r",e[0][m][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}o+=v,m=-1}d.push(o+hYe[b[0]]+a);break;case"PtgIsect":a=d.pop(),o=d.pop(),d.push(o+" "+a);break;case"PtgUnion":a=d.pop(),o=d.pop(),d.push(o+","+a);break;case"PtgRange":a=d.pop(),o=d.pop(),d.push(o+":"+a);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=pUe(b[1][1],c,i),d.push(vUe(s,u));break;case"PtgRefN":s=n?pUe(b[1][1],n,i):b[1][1],d.push(vUe(s,u));break;case"PtgRef3d":f=b[1][1],s=pUe(b[1][2],c,i),p=mYe(r,f,i),d.push(p+"!"+vUe(s,u));break;case"PtgFunc":case"PtgFuncVar":var w=b[1][0],x=b[1][1];w||(w=0);var S=0==(w&=127)?[]:d.slice(-w);d.length-=w,"User"===x&&(x=S.shift()),d.push(x+"("+S.join(",")+")");break;case"PtgBool":d.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":d.push(b[1]);break;case"PtgNum":d.push(String(b[1]));break;case"PtgStr":d.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=mUe(b[1][1],n?{s:n}:c,i),d.push(gUe(l,i));break;case"PtgArea":l=mUe(b[1][1],c,i),d.push(gUe(l,i));break;case"PtgArea3d":f=b[1][1],l=b[1][2],p=mYe(r,f,i),d.push(p+"!"+gUe(l,i));break;case"PtgAttrSum":d.push("SUM("+d.pop()+")");break;case"PtgName":h=b[1][2];var _=(r.names||[])[h-1]||(r[0]||[])[h],k=_?_.Name:"SH33TJSNAME"+String(h);k&&"_xlfn."==k.slice(0,6)&&!i.xlfn&&(k=k.slice(6)),d.push(k);break;case"PtgNameX":var A,C=b[1][1];if(h=b[1][2],!(i.biff<=5)){var T="";if(14849==((r[C]||[])[0]||[])[0]||(1025==((r[C]||[])[0]||[])[0]?r[C][h]&&r[C][h].itab>0&&(T=r.SheetNames[r[C][h].itab-1]+"!"):T=r.SheetNames[h-1]+"!"),r[C]&&r[C][h])T+=r[C][h].Name;else if(r[0]&&r[0][h])T+=r[0][h].Name;else{var O=(pYe(r,C,i)||"").split(";;");O[h-1]?T=O[h-1]:T+="SH33TJSERRX"}d.push(T);break}C<0&&(C=-C),r[C]&&(A=r[C][h]),A||(A={Name:"SH33TJSERRY"}),d.push(A.Name);break;case"PtgParen":var I="(",P=")";if(m>=0){switch(v="",e[0][m][1][0]){case 2:I=jHe(" ",e[0][m][1][1])+I;break;case 3:I=jHe("\r",e[0][m][1][1])+I;break;case 4:P=jHe(" ",e[0][m][1][1])+P;break;case 5:P=jHe("\r",e[0][m][1][1])+P;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}d.push(I+d.pop()+P);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":d.push("#REF!");break;case"PtgExp":s={c:b[1][1],r:b[1][0]};var E={c:n.c,r:n.r};if(r.sharedf[_Ue(s)]){var M=r.sharedf[_Ue(s)];d.push(vYe(M,c,E,r,i))}else{var D=!1;for(a=0;a!=r.arrayf.length;++a)if(o=r.arrayf[a],!(s.c<o[0].s.c||s.c>o[0].e.c||s.r<o[0].s.r||s.r>o[0].e.r)){d.push(vYe(o[1],c,E,r,i)),D=!0;break}D||d.push(b[1])}break;case"PtgArray":d.push("{"+fYe(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=g;break;case"PtgMissArg":d.push("");break;case"PtgList":d.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=i.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][g][0])){var R=!0;switch((b=e[0][m])[1][0]){case 4:R=!1;case 0:v=jHe(" ",b[1][1]);break;case 5:R=!1;case 1:v=jHe("\r",b[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}d.push((R?v:"")+d.pop()+(R?"":v)),m=-1}}if(d.length>1&&i.WTF)throw new Error("bad formula stack");return d[0]}function gYe(e,t,n,r,i){var a=HXe(t,n,i),o=function(e){if(null==e){var t=dUe(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return nXe("number"==typeof e?e:0)}(e.v),s=dUe(6);s.write_shift(2,33),s.write_shift(4,0);for(var l=dUe(e.bf.length),u=0;u<e.bf.length;++u)l[u]=e.bf[u];return SVe([a,o,s,l])}function yYe(e,t,n){var r=e.read_shift(4),i=function(e,t,n){for(var r,i,a=e.l+t,o=[];a!=e.l;)t=a-e.l,i=e[e.l],r=lYe[i]||lYe[uYe[i]],24!==i&&25!==i||(r=(24===i?cYe:dYe)[e[e.l+1]]),r&&r.f?o.push([r.n,r.f(e,t,n)]):cUe(e,t);return o}(e,r,n),a=e.read_shift(4),o=a>0?function(e,t,n,r){if(r.biff<8)return cUe(e,t);for(var i=e.l+t,a=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=rYe(e,0,r),a.push(n[o][1]);break;case"PtgMemArea":n[o][2]=nYe(e,n[o][1],r),a.push(n[o][2]);break;case"PtgExp":r&&12==r.biff&&(n[o][1][1]=e.read_shift(4),a.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0]}return 0!==(t=i-e.l)&&a.push(cUe(e,t)),a}(e,a,i,n):null;return[i,o]}var bYe=yYe,wYe=yYe,xYe=yYe,SYe=yYe,_Ye={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},kYe={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},AYe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function CYe(e){return("of:="+e.replace(UGe,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function TYe(e){return e.replace(/\./,"!")}var OYe="undefined"!=typeof Map;function IYe(e,t,n){var r=0,i=e.length;if(n){if(OYe?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var a=OYe?n.get(t):n[t];r<a.length;++r)if(e[a[r]].t===t)return e.Count++,a[r]}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t:t},e.Count++,e.Unique++,n&&(OYe?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function PYe(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(dGe=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=hGe(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=pGe(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function EYe(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function MYe(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,a=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){hHe(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=a;++i)if(e[i].numFmtId===r)return i;return e[a]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function DYe(e,t,n){if(e&&e["!ref"]){var r=CUe(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var RYe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],LYe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function NYe(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var i="",a=e.t,o=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=uXe[e.v];break;case"d":r&&r.cellDates?i=RHe(e.v,-1).toISOString():((e=NHe(e)).t="n",i=""+(e.v=CHe(RHe(e.v)))),void 0===e.z&&(e.z=RVe[14]);break;default:i=e.v}var s=aWe("v",YHe(i)),l={r:t},u=MYe(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){s=aWe("v",""+IYe(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str"}if(e.t!=a&&(e.t=a,e.v=o),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=sWe("f",YHe(e.f),c)+(null!=e.v?s:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),sWe("c",s,l)}function jYe(e,t,n,r){var i,a=[WHe,sWe("worksheet",null,{xmlns:SWe[0],"xmlns:r":yWe})],o=n.SheetNames[e],s="",l=n.Sheets[o];null==l&&(l={});var u=l["!ref"]||"A1",c=CUe(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=AUe(c)}r||(r={}),l["!comments"]=[];var d=[];!function(e,t,n,r,i){var a=!1,o={},s=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(kJe){}a=!0,o.codeName=nWe(YHe(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+sWe("outlinePr",null,u)}(a||s)&&(i[i.length]=sWe("sheetPr",s,o))}(l,n,e,t,a),a[a.length]=sWe("dimension",null,{ref:u}),a[a.length]=function(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),sWe("sheetViews",sWe("sheetView",null,i),{})}(0,0,0,n),t.sheetFormat&&(a[a.length]=sWe("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(a[a.length]=function(e,t){for(var n,r=["<cols>"],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=sWe("col",null,PYe(i,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),a[i=a.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=function(e,t){var n,r,i=[],a=[],o=CUe(e["!ref"]),s="",l="",u=[],c=0,d=0,f=e["!rows"],h=Array.isArray(e),p={r:l},m=-1;for(d=o.s.c;d<=o.e.c;++d)u[d]=xUe(d);for(c=o.s.r;c<=o.e.r;++c){for(a=[],l=bUe(c),d=o.s.c;d<=o.e.c;++d){n=u[d]+l;var v=h?(e[c]||[])[d]:e[n];void 0!==v&&null!=(s=NYe(v,n,e,t))&&a.push(s)}(a.length>0||f&&f[c])&&(p={r:l},f&&f[c]&&((r=f[c]).hidden&&(p.hidden=1),m=-1,r.hpx?m=gGe(r.hpx):r.hpt&&(m=r.hpt),m>-1&&(p.ht=m,p.customHeight=1),r.level&&(p.outlineLevel=r.level)),i[i.length]=sWe("row",a.join(""),p))}if(f)for(;c<f.length;++c)f&&f[c]&&(p={r:c+1},(r=f[c]).hidden&&(p.hidden=1),m=-1,r.hpx?m=gGe(r.hpx):r.hpt&&(m=r.hpt),m>-1&&(p.ht=m,p.customHeight=1),r.level&&(p.outlineLevel=r.level),i[i.length]=sWe("row","",p));return i.join("")}(l,t),s.length>0&&(a[a.length]=s)),a.length>i+1&&(a[a.length]="</sheetData>",a[i]=a[i].replace("/>",">")),l["!protect"]&&(a[a.length]=function(e){var t={sheet:1};return RYe.forEach(function(n){null!=e[n]&&e[n]&&(t[n]="1")}),LYe.forEach(function(n){null==e[n]||e[n]||(t[n]="0")}),e.password&&(t.password=lGe(e.password).toString(16).toUpperCase()),sWe("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(a[a.length]=function(e,t,n,r){var i="string"==typeof e.ref?e.ref:AUe(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,o=kUe(i);o.s.r==o.e.r&&(o.e.r=kUe(t["!ref"]).e.r,i=AUe(o));for(var s=0;s<a.length;++s){var l=a[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),sWe("autoFilter",null,{ref:i})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(a[a.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+AUe(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var f,h,p=-1,m=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(e){e[1].Target&&(f={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=vXe(r,-1,YHe(e[1].Target).replace(/#.*$/,""),hXe.HLINK),f["r:id"]="rId"+m),(p=e[1].Target.indexOf("#"))>-1&&(f.location=YHe(e[1].Target.slice(p+1))),e[1].Tooltip&&(f.tooltip=YHe(e[1].Tooltip)),a[a.length]=sWe("hyperlink",null,f))}),a[a.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(a[a.length]=(EYe(h=l["!margins"]),sWe("pageMargins",null,h))),t&&!t.ignoreEC&&null!=t.ignoreEC||(a[a.length]=aWe("ignoredErrors",sWe("ignoredError",null,{numberStoredAsText:1,sqref:u}))),d.length>0&&(m=vXe(r,-1,"../drawings/drawing"+(e+1)+".xml",hXe.DRAW),a[a.length]=sWe("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=d),l["!comments"].length>0&&(m=vXe(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",hXe.VML),a[a.length]=sWe("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function FYe(e,t,n,r){var i=function(e,t,n){var r=dUe(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var a=320;i.hpx?a=20*gGe(i.hpx):i.hpt&&(a=20*i.hpt),r.write_shift(2,a),r.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),r.write_shift(1,o),r.write_shift(1,0);var s=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var d=-1,f=-1,h=c<<10;h<c+1<<10;++h)u.c=h,(Array.isArray(n)?(n[u.r]||[])[u.c]:n[_Ue(u)])&&(d<0&&(d=h),f=h);d<0||(++s,r.write_shift(4,d),r.write_shift(4,f))}var p=r.l;return r.l=l,r.write_shift(4,s),r.l=p,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&hUe(e,0,i)}var zYe=$Ue,BYe=eXe;var VYe=$Ue,HYe=eXe;var WYe=["left","right","top","bottom","header","footer"];function UYe(e,t,n,r,i,a,o){if(void 0===t.v)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":(t=NHe(t)).z=t.z||RVe[14],t.v=CHe(RHe(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v}var l={r:n,c:r};switch(l.s=MYe(i.cellXfs,t,i),t.l&&a["!links"].push([_Ue(l),t.l]),t.c&&a["!comments"].push([_Ue(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=IYe(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?hUe(e,18,function(e,t,n){return null==n&&(n=dUe(8)),HUe(t,n),n.write_shift(4,t.v),n}(0,l)):hUe(e,7,function(e,t,n){return null==n&&(n=dUe(12)),BUe(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",o?hUe(e,17,function(e,t,n){return null==n&&(n=dUe(8+4*e.v.length)),HUe(t,n),RUe(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):hUe(e,6,function(e,t,n){return null==n&&(n=dUe(12+4*e.v.length)),BUe(t,n),RUe(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?o?hUe(e,13,function(e,t,n){return null==n&&(n=dUe(8)),HUe(t,n),JUe(e.v,n),n}(t,l)):hUe(e,2,function(e,t,n){return null==n&&(n=dUe(12)),BUe(t,n),JUe(e.v,n),n}(t,l)):o?hUe(e,16,function(e,t,n){return null==n&&(n=dUe(12)),HUe(t,n),nXe(e.v,n),n}(t,l)):hUe(e,5,function(e,t,n){return null==n&&(n=dUe(16)),BUe(t,n),nXe(e.v,n),n}(t,l)),!0;case"b":return l.t="b",o?hUe(e,15,function(e,t,n){return null==n&&(n=dUe(5)),HUe(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):hUe(e,4,function(e,t,n){return null==n&&(n=dUe(9)),BUe(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",o?hUe(e,14,function(e,t,n){return null==n&&(n=dUe(8)),HUe(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):hUe(e,3,function(e,t,n){return null==n&&(n=dUe(9)),BUe(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return o?hUe(e,12,function(e,t,n){return null==n&&(n=dUe(4)),HUe(t,n)}(0,l)):hUe(e,1,function(e,t,n){return null==n&&(n=dUe(8)),BUe(t,n)}(0,l)),!0}function XYe(e,t){var n,r;t&&t["!merges"]&&(hUe(e,177,(n=t["!merges"].length,null==r&&(r=dUe(4)),r.write_shift(4,n),r)),t["!merges"].forEach(function(t){hUe(e,176,HYe(t))}),hUe(e,178))}function GYe(e,t){t&&t["!cols"]&&(hUe(e,390),t["!cols"].forEach(function(t,n){t&&hUe(e,60,function(e,t,n){null==n&&(n=dUe(18));var r=PYe(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}(n,t))}),hUe(e,391))}function YYe(e,t){var n,r;t&&t["!ref"]&&(hUe(e,648),hUe(e,649,(n=CUe(t["!ref"]),(r=dUe(24)).write_shift(4,4),r.write_shift(4,1),eXe(n,r),r)),hUe(e,650))}function KYe(e,t,n){t["!links"].forEach(function(t){if(t[1].Target){var r=vXe(n,-1,t[1].Target.replace(/#.*$/,""),hXe.HLINK);hUe(e,494,function(e,t){var n=dUe(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));eXe({s:SUe(e[0]),e:SUe(e[0])},n),qUe("rId"+t,n);var r=e[1].Target.indexOf("#");return RUe((-1==r?"":e[1].Target.slice(r+1))||"",n),RUe(e[1].Tooltip||"",n),RUe("",n),n.slice(0,n.l)}(t,r))}}),delete t["!links"]}function qYe(e,t,n){hUe(e,133),hUe(e,137,function(e,t,n){null==n&&(n=dUe(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),hUe(e,138),hUe(e,134)}function ZYe(e,t){var n,r;t["!protect"]&&hUe(e,535,(n=t["!protect"],null==r&&(r=dUe(66)),r.write_shift(2,n.password?lGe(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)}),r))}function JYe(e,t,n,r){var i=fUe(),a=n.SheetNames[e],o=n.Sheets[a]||{},s=a;try{n&&n.Workbook&&(s=n.Workbook.Sheets[e].CodeName||s)}catch(kJe){}var l,u,c=CUe(o["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],hUe(i,129),(n.vbaraw||o["!outline"])&&hUe(i,147,function(e,t,n){null==n&&(n=dUe(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return rXe({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),UUe(e,n),n.slice(0,n.l)}(s,o["!outline"])),hUe(i,148,BYe(c)),qYe(i,0,n.Workbook),GYe(i,o),function(e,t,n,r){var i,a=CUe(t["!ref"]||"A1"),o="",s=[];hUe(e,145);var l=Array.isArray(t),u=a.e.r;t["!rows"]&&(u=Math.max(a.e.r,t["!rows"].length-1));for(var c=a.s.r;c<=u;++c){o=bUe(c),FYe(e,t,a,c);var d=!1;if(c<=a.e.r)for(var f=a.s.c;f<=a.e.c;++f){c===a.s.r&&(s[f]=xUe(f)),i=s[f]+o;var h=l?(t[c]||[])[f]:t[i];d=!!h&&UYe(e,h,c,f,r,t,d)}}hUe(e,146)}(i,o,0,t),ZYe(i,o),function(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],a="string"==typeof i.ref?i.ref:AUe(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,s=kUe(a);s.s.r==s.e.r&&(s.e.r=kUe(t["!ref"]).e.r,a=AUe(s));for(var l=0;l<o.length;++l){var u=o[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+a}),hUe(e,161,eXe(CUe(a))),hUe(e,162)}}(i,o,n,e),XYe(i,o),KYe(i,o,r),o["!margins"]&&hUe(i,476,(l=o["!margins"],null==u&&(u=dUe(48)),EYe(l),WYe.forEach(function(e){nXe(l[e],u)}),u)),t&&!t.ignoreEC&&null!=t.ignoreEC||YYe(i,o),function(e,t,n,r){if(t["!comments"].length>0){var i=vXe(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",hXe.VML);hUe(e,551,qUe("rId"+i)),t["!legacy"]=i}}(i,o,e,r),hUe(i,130),i.end()}var QYe=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var $Ye="][*?/\\".split("");function eKe(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");return $Ye.forEach(function(t){if(-1!=e.indexOf(t))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),!0}function tKe(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,i=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=i,r=!!e.vbaraw,t.forEach(function(e,i){eKe(e);for(var a=0;a<i;++a)if(e==t[a])throw new Error("Duplicate Sheet Name: "+e);if(r){var o=n&&n[i]&&n[i].CodeName||e;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}});for(var a=0;a<e.SheetNames.length;++a)DYe(e.Sheets[e.SheetNames[a]],e.SheetNames[a],a)}function nKe(e){var t=[WHe];t[t.length]=sWe("workbook",null,{xmlns:SWe[0],"xmlns:r":yWe});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(QYe.forEach(function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])}),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=sWe("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&i[a]&&i[a].Hidden;++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:YHe(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden"}t[t.length]=sWe("sheet",null,o)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=sWe("definedName",YHe(e.Ref),n))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function rKe(e,t){return t||(t=dUe(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),qUe(e.strRelID,t),RUe(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function iKe(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,i=t.Workbook.Sheets,a=0,o=-1,s=-1;a<i.length;++a)!i[a]||!i[a].Hidden&&-1==o?o=a:1==i[a].Hidden&&-1==s&&(s=a);if(!(s>o))hUe(e,135),hUe(e,158,(n=o,r||(r=dUe(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),hUe(e,136)}}function aKe(e,t){var n=fUe();return hUe(n,131),hUe(n,128,function(e,t){t||(t=dUe(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return RUe("SheetJS",t),RUe(rVe.version,t),RUe(rVe.version,t),RUe("7262",t),t.length>t.l?t.slice(0,t.l):t}()),hUe(n,153,function(e,t){t||(t=dUe(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),UUe(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),iKe(n,e),function(e,t){hUe(e,143);for(var n=0;n!=t.SheetNames.length;++n)hUe(e,156,rKe({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]}));hUe(e,144)}(n,e),hUe(n,132),n.end()}function oKe(e,t,n,r,i){return(".bin"===t.slice(-4)?JYe:jYe)(e,n,r,i)}function sKe(e,t,n){return(".bin"===t.slice(-4)?VGe:FGe)(e)}function lKe(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return xHe(TXe).map(function(e){for(var t=0;t<wXe.length;++t)if(wXe[t][1]==e)return wXe[t];for(t=0;t<_Xe.length;++t)if(_Xe[t][1]==e)return _Xe[t];throw e}).forEach(function(r){if(null!=e[r[1]]){var i=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(aWe(TXe[r[1]]||r[1],i))}}),sWe("DocumentProperties",n.join(""),{xmlns:_We})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return e&&xHe(e).forEach(function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<wXe.length;++r)if(t==wXe[r][1])return;for(r=0;r<_Xe.length;++r)if(t==_Xe[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var a=e[t],o="string";"number"==typeof a?(o="float",a=String(a)):!0===a||!1===a?(o="boolean",a=a?"1":"0"):a=String(a),i.push(sWe(KHe(t),a,{"dt:dt":o}))}}),t&&xHe(t).forEach(function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],a="string";"number"==typeof r?(a="float",r=String(r)):!0===r||!1===r?(a="boolean",r=r?"1":"0"):r instanceof Date?(a="dateTime.tz",r=r.toISOString()):r=String(r),i.push(sWe(KHe(n),r,{"dt:dt":a}))}}),"<"+r+' xmlns="'+_We+'">'+i.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}function uKe(e){return sWe("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+XGe(e.Ref,{r:0,c:0})})}function cKe(e,t,n,r,i,a,o){if(!e||null==e.v&&null==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+YHe(XGe(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=SUe(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=YHe(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=YHe(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==o.c&&u[c].s.r==o.r&&(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var d="",f="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":d="Number",f=String(e.v);break;case"b":d="Boolean",f=e.v?"1":"0";break;case"e":d="Error",f=uXe[e.v];break;case"d":d="DateTime",f=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||RVe[14]);break;case"s":d="String",f=((e.v||"")+"").replace(XHe,function(e){return UHe[e]}).replace(qHe,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var h=MYe(r.cellXfs,e,r);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var p=null!=e.v?f:"",m="z"==e.t?"":'<Data ss:Type="'+d+'">'+p+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map(function(e){var t=sWe("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return sWe("Comment",t,{"ss:Author":e.a})}).join("")),sWe("Cell",m,s)}function dKe(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=yGe(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function fKe(e,t,n){var r=[],i=n.SheetNames[e],a=n.Sheets[i],o=a?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||a.push(uKe(s)))}return a.join("")}(a,0,e,n):"";return o.length>0&&r.push("<Names>"+o+"</Names>"),o=a?function(e,t){if(!e["!ref"])return"";var n=CUe(e["!ref"]),r=e["!merges"]||[],i=0,a=[];e["!cols"]&&e["!cols"].forEach(function(e,t){mGe(e);var n=!!e.width,r=PYe(t,e),i={"ss:Index":t+1};n&&(i["ss:Width"]=fGe(r.width)),e.hidden&&(i["ss:Hidden"]="1"),a.push(sWe("Column",null,i))});for(var o=Array.isArray(e),s=n.s.r;s<=n.e.r;++s){for(var l=[dKe(s,(e["!rows"]||[])[s])],u=n.s.c;u<=n.e.c;++u){var c=!1;for(i=0;i!=r.length;++i)if(!(r[i].s.c>u||r[i].s.r>s||r[i].e.c<u||r[i].e.r<s)){r[i].s.c==u&&r[i].s.r==s||(c=!0);break}if(!c){var d={r:s,c:u},f=_Ue(d),h=o?(e[s]||[])[u]:e[f];l.push(cKe(h,f,e,t,0,0,d))}}l.push("</Row>"),l.length>2&&a.push(l.join(""))}return a.join("")}(a,t):"",o.length>0&&r.push("<Table>"+o+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(sWe("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(sWe("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(sWe("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(sWe("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<n&&(!r.Workbook.Sheets[a]||r.Workbook.Sheets[a].Hidden);++a);a==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(aWe("ProtectContents","True")),e["!protect"].objects&&i.push(aWe("ProtectObjects","True")),e["!protect"].scenarios&&i.push(aWe("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(aWe("EnableSelection","UnlockedCells")):i.push(aWe("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")})),0==i.length?"":sWe("WorksheetOptions",i.join(""),{xmlns:kWe})}(a,0,e,n)),r.join("")}function hKe(e,t){t||(t={}),e.SSF||(e.SSF=NHe(RVe)),e.SSF&&(mHe(),pHe(e.SSF),t.revssf=kHe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],MYe(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(lKe(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(sWe("Worksheet",fKe(r,t,e),{"ss:Name":YHe(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(e,t){var r=[];r.push(sWe("NumberFormat",null,{"ss:Format":YHe(RVe[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};n.push(sWe("Style",r.join(""),i))}),sWe("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||n.push(uKe(i)))}return sWe("Names",n.join(""))}(e),WHe+sWe("Workbook",n.join(""),{xmlns:AWe,"xmlns:o":_We,"xmlns:x":kWe,"xmlns:ss":AWe,"xmlns:dt":CWe,"xmlns:html":IWe})}var pKe="e0859ff2f94f6810ab9108002b27b3d9",mKe="02d5cdd59c2e1b10939708002b2cf9ae",vKe="05d5cdd59c2e1b10939708002b2cf9ae";function gKe(e,t){var n=t||{},r=yHe.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return yHe.utils.cfb_add(r,i,OKe(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],i=[],a=[],o=0,s=SHe(aXe,"n"),l=SHe(oXe,"n");if(e.Props)for(n=xHe(e.Props),o=0;o<n.length;++o)(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(l,n[o])?i:a).push([n[o],e.Props[n[o]]]);if(e.Custprops)for(n=xHe(e.Custprops),o=0;o<n.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},n[o])||(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(l,n[o])?i:a).push([n[o],e.Custprops[n[o]]]);var u=[];for(o=0;o<a.length;++o)IXe.indexOf(a[o][0])>-1||kXe.indexOf(a[o][0])>-1||null!=a[o][1]&&u.push(a[o]);i.length&&yHe.utils.cfb_add(t,"/\x05SummaryInformation",MXe(i,pKe,l,oXe)),(r.length||u.length)&&yHe.utils.cfb_add(t,"/\x05DocumentSummaryInformation",MXe(r,mKe,s,aXe,u.length?u:null,vKe))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach(function(n,r){if(0!=r){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&yHe.utils.cfb_add(e,i,t.FileIndex[r].content)}})}(r,yHe.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var yKe={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,7&a&&(n.level=7&a),16&a&&(n.hidden=!0),32&a&&(n.hpt=i/20),n}},1:{f:function(e){return[zUe(e)]}},2:{f:function(e){return[zUe(e),ZUe(e),"n"]}},3:{f:function(e){return[zUe(e),e.read_shift(1),"e"]}},4:{f:function(e){return[zUe(e),e.read_shift(1),"b"]}},5:{f:function(e){return[zUe(e),tXe(e),"n"]}},6:{f:function(e){return[zUe(e),DUe(e),"str"]}},7:{f:function(e){return[zUe(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,i=zUe(e);i.r=n["!row"];var a=[i,DUe(e),"str"];if(n.cellFormula){e.l+=2;var o=wYe(e,r-e.l,n);a[3]=vYe(o,0,i,n.supbooks,n)}else e.l=r;return a}},9:{f:function(e,t,n){var r=e.l+t,i=zUe(e);i.r=n["!row"];var a=[i,tXe(e),"n"];if(n.cellFormula){e.l+=2;var o=wYe(e,r-e.l,n);a[3]=vYe(o,0,i,n.supbooks,n)}else e.l=r;return a}},10:{f:function(e,t,n){var r=e.l+t,i=zUe(e);i.r=n["!row"];var a=[i,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var o=wYe(e,r-e.l,n);a[3]=vYe(o,0,i,n.supbooks,n)}else e.l=r;return a}},11:{f:function(e,t,n){var r=e.l+t,i=zUe(e);i.r=n["!row"];var a=[i,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var o=wYe(e,r-e.l,n);a[3]=vYe(o,0,i,n.supbooks,n)}else e.l=r;return a}},12:{f:function(e){return[VUe(e)]}},13:{f:function(e){return[VUe(e),ZUe(e),"n"]}},14:{f:function(e){return[VUe(e),e.read_shift(1),"e"]}},15:{f:function(e){return[VUe(e),e.read_shift(1),"b"]}},16:{f:function(e){return[VUe(e),tXe(e),"n"]}},17:{f:function(e){return[VUe(e),DUe(e),"str"]}},18:{f:function(e){return[VUe(e),e.read_shift(4),"s"]}},19:{f:NUe},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=YUe(e),o=xYe(e,0,n),s=XUe(e);e.l=r;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var a=e.read_shift(1);0!=a&&(r.underline=a);var o=e.read_shift(1);o>0&&(r.family=o);var s=e.read_shift(1);switch(s>0&&(r.charset=s),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),i=e.read_shift(2,"i"),a=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=lXe[r];l&&(t.rgb=cGe(l));break;case 2:t.rgb=cGe([a,o,s]);break;case 3:t.theme=r}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=DUe(e),r}},44:{f:function(e,t){return[e.read_shift(2),DUe(e)]}},45:{f:kGe},46:{f:OGe},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function(e,t,n){if(!n.cellStyles)return cUe(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),a=e.read_shift(r),o=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:i,e:a,w:o,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}},62:{f:function(e){return[zUe(e),NUe(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=_Ue(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:cUe,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=WUe(e),n}},148:{f:zYe,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?DUe(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=KUe(e),n.name=DUe(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:$Ue},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:VYe},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:DUe(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:KUe},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=jXe(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],i=e.l+t,a=e.read_shift(n.biff>8?4:2);0!==a--;)r.push(WXe(e,n.biff,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,i=QUe(e),a=e.read_shift(1),o=[i];if(o[2]=a,n.cellFormula){var s=bYe(e,r-e.l,n);o[1]=s}else e.l=r;return o}},427:{f:function(e,t,n){var r=e.l+t,i=[$Ue(e)];if(n.cellFormula){var a=SYe(e,r-e.l,n);i[1]=a,e.l=r}else e.l=r;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return WYe.forEach(function(n){t[n]=tXe(e)}),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=$Ue(e),i=XUe(e),a=DUe(e),o=DUe(e),s=DUe(e);e.l=n;var l={rfx:r,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:KUe},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:BGe},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=$Ue(e);return t.rfx=n.s,t.ref=_Ue(n.s),e.l+=16,t}},636:{T:-1},637:{f:jUe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:DUe(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function bKe(e,t,n,r){var i=t;if(!isNaN(i)){var a=r||(n||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&ZWe(n)&&e.push(n)}}function wKe(e,t,n){return e||(e=dUe(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function xKe(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?CHe(RHe(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?bKe(e,2,(a=n,o=r,s=i,l=dUe(9),wKe(l,a,o),l.write_shift(2,s),l)):bKe(e,3,function(e,t,n){var r=dUe(15);return wKe(r,e,t),r.write_shift(8,n,"f"),r}(n,r,i)));case"b":case"e":return void bKe(e,5,function(e,t,n,r){var i=dUe(9);return wKe(i,e,t),NXe(n,r||"b",i),i}(n,r,t.v,t.t));case"s":case"str":return void bKe(e,4,function(e,t,n){var r=dUe(8+2*n.length);return wKe(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}var a,o,s,l;bKe(e,1,wKe(null,n,r))}function SKe(e,t){for(var n=t||{},r=fUe(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==n.sheet&&(i=a);if(0==i&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return bKe(r,4==n.biff?1033:3==n.biff?521:9,GXe(0,16,n)),function(e,t,n,r){var i,a=Array.isArray(t),o=CUe(t["!ref"]||"A1"),s="",l=[];if(o.e.c>255||o.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),i=AUe(o)}for(var u=o.s.r;u<=o.e.r;++u){s=bUe(u);for(var c=o.s.c;c<=o.e.c;++c){u===o.s.r&&(l[c]=xUe(c)),i=l[c]+s;var d=a?(t[u]||[])[c]:t[i];d&&xKe(e,d,u,c)}}}(r,e.Sheets[e.SheetNames[i]],0,n),bKe(r,10),r.end()}function _Ke(e,t,n){bKe(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,i=dUe(r?15+n.length:16+2*n.length);return i.write_shift(2,20*e.sz),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),i}({sz:12,name:"Arial"},n))}function kKe(e,t){if(t){var n=0;t.forEach(function(t,r){++n<=256&&t&&bKe(e,125,function(e,t){var n=dUe(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(PYe(r,t),r))})}}function AKe(e,t,n,r,i){var a=16+MYe(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)bKe(e,6,gYe(t,n,r,0,a));else switch(t.t){case"d":case"n":bKe(e,515,function(e,t,n,r){var i=dUe(14);return HXe(e,t,r,i),nXe(n,i),i}(n,r,"d"==t.t?CHe(RHe(t.v)):t.v,a));break;case"b":case"e":bKe(e,517,function(e,t,n,r,i,a){var o=dUe(8);return HXe(e,t,r,o),NXe(n,a,o),o}(n,r,t.v,a,0,t.t));break;case"s":case"str":if(i.bookSST)bKe(e,253,function(e,t,n,r){var i=dUe(10);return HXe(e,t,r,i),i.write_shift(4,n),i}(n,r,IYe(i.Strings,t.v,i.revStrings),a));else bKe(e,516,function(e,t,n,r,i){var a=!i||8==i.biff,o=dUe(+a+8+(1+a)*n.length);return HXe(e,t,r,o),o.write_shift(2,n.length),a&&o.write_shift(1,1),o.write_shift((1+a)*n.length,n,a?"utf16le":"sbcs"),o}(n,r,(t.v||"").slice(0,255),a,i));break;default:bKe(e,513,HXe(n,r,a))}else bKe(e,513,HXe(n,r,a))}function CKe(e,t,n){var r,i,a=fUe(),o=n.SheetNames[e],s=n.Sheets[o]||{},l=(n||{}).Workbook||{},u=(l.Sheets||[])[e]||{},c=Array.isArray(s),d=8==t.biff,f="",h=[],p=CUe(s["!ref"]||"A1"),m=d?65536:16384;if(p.e.c>255||p.e.r>=m){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,m-1)}bKe(a,2057,GXe(0,16,t)),bKe(a,13,LXe(1)),bKe(a,12,LXe(100)),bKe(a,15,DXe(!0)),bKe(a,17,DXe(!1)),bKe(a,16,nXe(.001)),bKe(a,95,DXe(!0)),bKe(a,42,DXe(!1)),bKe(a,43,DXe(!1)),bKe(a,130,LXe(1)),bKe(a,128,((i=dUe(8)).write_shift(4,0),i.write_shift(2,0),i.write_shift(2,0),i)),bKe(a,131,DXe(!1)),bKe(a,132,DXe(!1)),d&&kKe(a,s["!cols"]),bKe(a,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=dUe(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(p,t)),d&&(s["!links"]=[]);for(var v=p.s.r;v<=p.e.r;++v){f=bUe(v);for(var g=p.s.c;g<=p.e.c;++g){v===p.s.r&&(h[g]=xUe(g)),r=h[g]+f;var y=c?(s[v]||[])[g]:s[r];y&&(AKe(a,y,v,g,t),d&&y.l&&s["!links"].push([r,y.l]))}}var b=u.CodeName||u.name||o;return d&&bKe(a,574,function(e){var t=dUe(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((l.Views||[])[0])),d&&(s["!merges"]||[]).length&&bKe(a,229,function(e){var t=dUe(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)XXe(e[n],t);return t}(s["!merges"])),d&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];bKe(e,440,ZXe(r)),r[1].Tooltip&&bKe(e,2048,JXe(r))}delete t["!links"]}(a,s),bKe(a,442,zXe(b)),d&&function(e,t){var n=dUe(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),bKe(e,2151,n),(n=dUe(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),XXe(CUe(t["!ref"]||"A1"),n),n.write_shift(4,4),bKe(e,2152,n)}(a,s),bKe(a,10),a.end()}function TKe(e,t,n){var r,i=fUe(),a=(e||{}).Workbook||{},o=a.Sheets||[],s=a.WBProps||{},l=8==n.biff,u=5==n.biff;(bKe(i,2057,GXe(0,5,n)),"xla"==n.bookType&&bKe(i,135),bKe(i,225,l?LXe(1200):null),bKe(i,193,function(e,t){t||(t=dUe(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}(2)),u&&bKe(i,191),u&&bKe(i,192),bKe(i,226),bKe(i,92,function(e,t){var n=!t||8==t.biff,r=dUe(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),bKe(i,66,LXe(l?1200:1252)),l&&bKe(i,353,LXe(0)),l&&bKe(i,448),bKe(i,317,function(e){for(var t=dUe(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),l&&e.vbaraw&&bKe(i,211),l&&e.vbaraw)&&bKe(i,442,zXe(s.CodeName||"ThisWorkbook"));bKe(i,156,LXe(17)),bKe(i,25,DXe(!1)),bKe(i,18,DXe(!1)),bKe(i,19,LXe(0)),l&&bKe(i,431,DXe(!1)),l&&bKe(i,444,LXe(0)),bKe(i,61,((r=dUe(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),bKe(i,64,DXe(!1)),bKe(i,141,LXe(0)),bKe(i,34,DXe("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&function(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(e.Workbook.WBProps.date1904)?"true":"false"}(e))),bKe(i,14,DXe(!0)),l&&bKe(i,439,DXe(!1)),bKe(i,218,LXe(0)),_Ke(i,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&bKe(e,1054,KXe(i,t[i],n))})}(i,e.SSF,n),function(e,t){for(var n=0;n<16;++n)bKe(e,224,qXe({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){bKe(e,224,qXe(n,0,t))})}(i,n),l&&bKe(i,352,DXe(!1));var c=i.end(),d=fUe();l&&bKe(d,140,function(e){return e||(e=dUe(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),l&&n.Strings&&function(e,t,n){var r=(n||[]).length||0;if(r<=8224)return bKe(e,t,n,r);var i=t;if(!isNaN(i)){for(var a=n.parts||[],o=0,s=0,l=0;l+(a[o]||8224)<=8224;)l+=a[o]||8224,o++;var u=e.next(4);for(u.write_shift(2,i),u.write_shift(2,l),e.push(n.slice(s,s+l)),s+=l;s<r;){for((u=e.next(4)).write_shift(2,60),l=0;l+(a[o]||8224)<=8224;)l+=a[o]||8224,o++;u.write_shift(2,l),e.push(n.slice(s,s+l)),s+=l}}}(d,252,function(e){var t=dUe(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],r=0;r<e.length;++r)n[r]=FXe(e[r]);var i=SVe([t].concat(n));return i.parts=[t.length].concat(n.map(function(e){return e.length})),i}(n.Strings)),bKe(d,10);var f=d.end(),h=fUe(),p=0,m=0;for(m=0;m<e.SheetNames.length;++m)p+=(l?12:11)+(l?2:1)*e.SheetNames[m].length;var v=c.length+p+f.length;for(m=0;m<e.SheetNames.length;++m){bKe(h,133,YXe({pos:v,hs:(o[m]||{}).Hidden||0,dt:0,name:e.SheetNames[m]},n)),v+=t[m].length}var g=h.end();if(p!=g.length)throw new Error("BS8 "+p+" != "+g.length);var y=[];return c.length&&y.push(c),g.length&&y.push(g),f.length&&y.push(f),SVe(y)}function OKe(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];if(r&&r["!ref"])kUe(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error}var i=t||{};switch(i.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=NHe(RVe)),e&&e.SSF&&(mHe(),pHe(e.SSF),n.revssf=kHe(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,eqe(n),n.cellXfs=[],MYe(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=CKe(i,n,e);return r.unshift(TKe(e,r,n)),SVe(r)}(e,t);case 4:case 3:case 2:return SKe(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function IKe(e,t,n,r){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>n||i[u].s.c>o||i[u].e.r<n||i[u].e.c<o)){if(i[u].s.r<n||i[u].s.c<o){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=_Ue({r:n,c:o}),d=r.dense?(e[n]||[])[o]:e[c],f=d&&null!=d.v&&(d.h||ZHe(d.w||(OUe(d),d.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),r.editable?f='<span contenteditable="true">'+f+"</span>":d&&(h["data-t"]=d&&d.t||"z",null!=d.v&&(h["data-v"]=d.v),null!=d.z&&(h["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(f='<a href="'+d.l.Target+'">'+f+"</a>")),h.id=(r.id||"sjs")+"-"+c,a.push(sWe("td",f,h))}}return"<tr>"+a.join("")+"</tr>"}function PKe(e,t){var n=t||{},r=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',i=null!=n.footer?n.footer:"</body></html>",a=[r],o=kUe(e["!ref"]);n.dense=Array.isArray(e),a.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var s=o.s.r;s<=o.e.r;++s)a.push(IKe(e,o,s,n));return a.push("</table>"+i),a.join("")}function EKe(e,t,n){var r=n||{},i=0,a=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var o="string"==typeof r.origin?SUe(r.origin):r.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=kUe(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==i&&(u.e.r=i=c.e.r+1)}var d=[],f=0,h=e["!rows"]||(e["!rows"]=[]),p=0,m=0,v=0,g=0,y=0,b=0;for(e["!cols"]||(e["!cols"]=[]);p<s.length&&m<l;++p){var w=s[p];if(DKe(w)){if(r.display)continue;h[m]={hidden:!0}}var x=w.children;for(v=g=0;v<x.length;++v){var S=x[v];if(!r.display||!DKe(S)){var _=S.hasAttribute("data-v")?S.getAttribute("data-v"):S.hasAttribute("v")?S.getAttribute("v"):rWe(S.innerHTML),k=S.getAttribute("data-z")||S.getAttribute("z");for(f=0;f<d.length;++f){var A=d[f];A.s.c==g+a&&A.s.r<m+i&&m+i<=A.e.r&&(g=A.e.c+1-a,f=-1)}b=+S.getAttribute("colspan")||1,((y=+S.getAttribute("rowspan")||1)>1||b>1)&&d.push({s:{r:m+i,c:g+a},e:{r:m+i+(y||1)-1,c:g+a+(b||1)-1}});var C={t:"s",v:_},T=S.getAttribute("data-t")||S.getAttribute("t")||"";null!=_&&(0==_.length?C.t=T||"z":r.raw||0==_.trim().length||"s"==T||("TRUE"===_?C={t:"b",v:!0}:"FALSE"===_?C={t:"b",v:!1}:isNaN(FHe(_))?isNaN(BHe(_).getDate())||(C={t:"d",v:RHe(_)},r.cellDates||(C={t:"n",v:CHe(C.v)}),C.z=r.dateNF||RVe[14]):C={t:"n",v:FHe(_)})),void 0===C.z&&null!=k&&(C.z=k);var O="",I=S.getElementsByTagName("A");if(I&&I.length)for(var P=0;P<I.length&&(!I[P].hasAttribute("href")||"#"==(O=I[P].getAttribute("href")).charAt(0));++P);O&&"#"!=O.charAt(0)&&(C.l={Target:O}),r.dense?(e[m+i]||(e[m+i]=[]),e[m+i][g+a]=C):e[_Ue({c:g+a,r:m+i})]=C,u.e.c<g+a&&(u.e.c=g+a),g+=b}}++m}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),u.e.r=Math.max(u.e.r,m-1+i),e["!ref"]=AUe(u),m>=l&&(e["!fullref"]=AUe((u.e.r=s.length-p+m-1+i,u))),e}function MKe(e,t){return EKe((t||{}).dense?[]:{},e,t)}function DKe(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var RKe=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+oWe({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return WHe+t}}(),LKe=function(){var e=function(e){return YHe(e).replace(/  +/g,function(e){return'<text:s text:c="'+e.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t="          <table:table-cell />\n",n=function(n,r,i){var a=[];a.push('      <table:table table:name="'+YHe(r.SheetNames[i])+'" table:style-name="ta1">\n');var o=0,s=0,l=kUe(n["!ref"]||"A1"),u=n["!merges"]||[],c=0,d=Array.isArray(n);if(n["!cols"])for(s=0;s<=l.e.c;++s)a.push("        <table:table-column"+(n["!cols"][s]?' table:style-name="co'+n["!cols"][s].ods+'"':"")+"></table:table-column>\n");var f="",h=n["!rows"]||[];for(o=0;o<l.s.r;++o)f=h[o]?' table:style-name="ro'+h[o].ods+'"':"",a.push("        <table:table-row"+f+"></table:table-row>\n");for(;o<=l.e.r;++o){for(f=h[o]?' table:style-name="ro'+h[o].ods+'"':"",a.push("        <table:table-row"+f+">\n"),s=0;s<l.s.c;++s)a.push(t);for(;s<=l.e.c;++s){var p=!1,m={},v="";for(c=0;c!=u.length;++c)if(!(u[c].s.c>s||u[c].s.r>o||u[c].e.c<s||u[c].e.r<o)){u[c].s.c==s&&u[c].s.r==o||(p=!0),m["table:number-columns-spanned"]=u[c].e.c-u[c].s.c+1,m["table:number-rows-spanned"]=u[c].e.r-u[c].s.r+1;break}if(p)a.push("          <table:covered-table-cell/>\n");else{var g=_Ue({r:o,c:s}),y=d?(n[o]||[])[s]:n[g];if(y&&y.f&&(m["table:formula"]=YHe(CYe(y.f)),y.F&&y.F.slice(0,g.length)==g)){var b=kUe(y.F);m["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,m["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(y){switch(y.t){case"b":v=y.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=y.v?"true":"false";break;case"n":v=y.w||String(y.v||0),m["office:value-type"]="float",m["office:value"]=y.v||0;break;case"s":case"str":v=null==y.v?"":y.v,m["office:value-type"]="string";break;case"d":v=y.w||RHe(y.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=RHe(y.v).toISOString(),m["table:style-name"]="ce1";break;default:a.push(t);continue}var w=e(v);if(y.l&&y.l.Target){var x=y.l.Target;"#"==(x="#"==x.charAt(0)?"#"+TYe(x.slice(1)):x).charAt(0)||x.match(/^\w+:/)||(x="../"+x),w=sWe("text:a",w,{"xlink:href":x.replace(/&/g,"&amp;")})}a.push("          "+sWe("table:table-cell",sWe("text:p",w,{}),m)+"\n")}else a.push(t)}}a.push("        </table:table-row>\n")}return a.push("      </table:table>\n"),a.join("")};return function(e,t){var r=[WHe],i=oWe({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=oWe({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(r.push("<office:document"+i+a+">\n"),r.push(bXe().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+i+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var i=t["!cols"][r];if(null==i.width&&null==i.wpx&&null==i.wch)continue;mGe(i),i.ods=n;var a=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+a+'"/>\n'),e.push("  </style:style>\n"),++n}});var r=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var i=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+i+'"/>\n'),e.push("  </style:style>\n"),++r}}),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push("  <office:body>\n"),r.push("    <office:spreadsheet>\n");for(var o=0;o!=e.SheetNames.length;++o)r.push(n(e.Sheets[e.SheetNames[o]],e,o));return r.push("    </office:spreadsheet>\n"),r.push("  </office:body>\n"),"fods"==t.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function NKe(e,t){if("fods"==t.bookType)return LKe(e,t);var n=HHe(),r="",i=[],a=[];return VHe(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),VHe(n,r="content.xml",LKe(e,t)),i.push([r,"text/xml"]),a.push([r,"ContentFile"]),VHe(n,r="styles.xml",RKe(e,t)),i.push([r,"text/xml"]),a.push([r,"StylesFile"]),VHe(n,r="meta.xml",WHe+bXe()),i.push([r,"text/xml"]),a.push([r,"MetadataFile"]),VHe(n,r="manifest.rdf",function(e){var t=[WHe];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(gXe(e[n][0],e[n][1])),t.push(yXe("",e[n][0]));return t.push(gXe("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(a)),i.push([r,"application/rdf+xml"]),VHe(n,r="META-INF/manifest.xml",function(e){var t=[WHe];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(i)),n}
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function jKe(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function FKe(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):bVe(nWe(e))}function zKe(e){var t=e.reduce(function(e,t){return e+t.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(e,r),r+=e.length}),n}function BKe(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function VKe(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function HKe(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function WKe(e){for(var t=[],n=[0];n[0]<e.length;){var r,i=n[0],a=BKe(e,n),o=7&a,s=0;if(0==(a=Math.floor(a/8)))break;switch(o){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:s=4,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=BKe(e,n),r=e.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(i))}var u={data:r,type:o};null==t[a]?t[a]=[u]:t[a].push(u)}return t}function UKe(e){var t=[];return e.forEach(function(e,n){e.forEach(function(e){e.data&&(t.push(VKe(8*n+e.type)),2==e.type&&t.push(VKe(e.data.length)),t.push(e.data))})}),zKe(t)}function XKe(e){for(var t,n=[],r=[0];r[0]<e.length;){var i=BKe(e,r),a=WKe(e.slice(r[0],r[0]+i));r[0]+=i;var o={id:HKe(a[1][0].data),messages:[]};a[2].forEach(function(t){var n=WKe(t.data),i=HKe(n[3][0].data);o.messages.push({meta:n,data:e.slice(r[0],r[0]+i)}),r[0]+=i}),(null==(t=a[3])?void 0:t[0])&&(o.merge=HKe(a[3][0].data)>>>0>0),n.push(o)}return n}function GKe(e){var t=[];return e.forEach(function(e){var n=[];n[1]=[{data:VKe(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:VKe(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(e){r.push(e.data),e.meta[3]=[{type:0,data:VKe(e.data.length)}],n[2].push({data:UKe(e.meta),type:2})});var i=UKe(n);t.push(VKe(i.length)),t.push(i),r.forEach(function(e){return t.push(e)})}),zKe(t)}function YKe(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=BKe(t,n),i=[];n[0]<t.length;){var a=3&t[n[0]];if(0!=a){var o=0,s=0;if(1==a?(s=4+(t[n[0]]>>2&7),o=(224&t[n[0]++])<<3,o|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==a?(o=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(o=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[zKe(i)],0==o)throw new Error("Invalid offset 0");if(o>i[0].length)throw new Error("Invalid offset beyond length");if(s>=o)for(i.push(i[0].slice(-o)),s-=o;s>=i[i.length-1].length;)i.push(i[i.length-1]),s-=i[i.length-1].length;i.push(i[0].slice(-o,-o+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=zKe(i);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function KKe(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(YKe(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error("data is not a valid framed stream!");return zKe(t)}function qKe(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var a=VKe(r),o=a.length;t.push(a),r<=60?(o++,t.push(new Uint8Array([r-1<<2]))):r<=256?(o+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(o+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(o+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(o+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),o+=r,i[0]=0,i[1]=255&o,i[2]=o>>8&255,i[3]=o>>16&255,n+=r}return zKe(t)}function ZKe(e,t){var n=new Uint8Array(32),r=jKe(n),i=12,a=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=255&i;e[t+15]|=n>=0?0:128}(n,i,e.v),a|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,a,!0),n.slice(0,i)}function JKe(e,t){var n=new Uint8Array(32),r=jKe(n),i=12,a=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":n[2]=6,r.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,a,!0),n.slice(0,i)}function QKe(e){return BKe(WKe(e)[1][0].data)}function $Ke(e,t,n){var r,i,a,o;if(!(null==(r=e[6])?void 0:r[0])||!(null==(i=e[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";if((null==(o=null==(a=e[8])?void 0:a[0])?void 0:o.data)&&HKe(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var s=0,l=jKe(e[7][0].data),u=0,c=[],d=jKe(e[4][0].data),f=0,h=[],p=0;p<t.length;++p)if(null!=t[p]){var m,v;switch(l.setUint16(2*p,u,!0),d.setUint16(2*p,f,!0),typeof t[p]){case"string":m=ZKe({t:"s",v:t[p]},n),v=JKe({t:"s",v:t[p]},n);break;case"number":m=ZKe({t:"n",v:t[p]},n),v=JKe({t:"n",v:t[p]},n);break;case"boolean":m=ZKe({t:"b",v:t[p]},n),v=JKe({t:"b",v:t[p]},n);break;default:throw new Error("Unsupported value "+t[p])}c.push(m),u+=m.length,h.push(v),f+=v.length,++s}else l.setUint16(2*p,65535,!0),d.setUint16(2*p,65535);for(e[2][0].data=VKe(s);p<e[7][0].data.length/2;++p)l.setUint16(2*p,65535,!0),d.setUint16(2*p,65535,!0);return e[6][0].data=zKe(c),e[3][0].data=zKe(h),s}function eqe(e){var t;(t=[["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]],function(e){for(var n=0;n!=t.length;++n){var r=t[n];void 0===e[r[0]]&&(e[r[0]]=r[1]),"n"===r[2]&&(e[r[0]]=Number(e[r[0]]))}})(e)}function tqe(e,t){return"ods"==t.bookType?NKe(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length;var r=kUe(n["!ref"]);r.s.r=r.s.c=0,r.e.c>9&&(r.e.c=9),r.e.r>49&&(r.e.r=49);var i=lqe(n,{range:r,header:1}),a=["~Sh33tJ5~"];i.forEach(function(e){return e.forEach(function(e){"string"==typeof e&&a.push(e)})});var o={},s=[],l=yHe.read(t.numbers,{type:"base64"});l.FileIndex.map(function(e,t){return[e,l.FullPaths[t]]}).forEach(function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&XKe(KKe(t.content)).forEach(function(e){s.push(e.id),o[e.id]={deps:[],location:n,type:HKe(e.messages[0].meta[1][0].data)}})}),s.sort(function(e,t){return e-t});var u=s.filter(function(e){return e>1}).map(function(e){return[e,VKe(e)]});l.FileIndex.map(function(e,t){return[e,l.FullPaths[t]]}).forEach(function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&XKe(KKe(t.content)).forEach(function(e){e.messages.forEach(function(t){u.forEach(function(t){e.messages.some(function(e){return 11006!=HKe(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])})&&o[t[0]].deps.push(e.id)})})})});for(var c,d=yHe.find(l,o[1].location),f=XKe(KKe(d.content)),h=0;h<f.length;++h){var p=f[h];1==p.id&&(c=p)}var m=QKe(WKe(c.messages[0].data)[1][0].data);for(f=XKe(KKe((d=yHe.find(l,o[m].location)).content)),h=0;h<f.length;++h)(p=f[h]).id==m&&(c=p);for(m=QKe(WKe(c.messages[0].data)[2][0].data),f=XKe(KKe((d=yHe.find(l,o[m].location)).content)),h=0;h<f.length;++h)(p=f[h]).id==m&&(c=p);for(m=QKe(WKe(c.messages[0].data)[2][0].data),f=XKe(KKe((d=yHe.find(l,o[m].location)).content)),h=0;h<f.length;++h)(p=f[h]).id==m&&(c=p);var v=WKe(c.messages[0].data);v[6][0].data=VKe(r.e.r+1),v[7][0].data=VKe(r.e.c+1);for(var g=QKe(v[46][0].data),y=yHe.find(l,o[g].location),b=XKe(KKe(y.content)),w=0;w<b.length&&b[w].id!=g;++w);if(b[w].id!=g)throw"Bad ColumnRowUIDMapArchive";var x=WKe(b[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var S=0;S<=r.e.c;++S){var _=[];_[1]=_[2]=[{type:0,data:VKe(S+420690)}],x[1].push({type:2,data:UKe(_)}),x[2].push({type:0,data:VKe(S)}),x[3].push({type:0,data:VKe(S)})}x[4]=[],x[5]=[],x[6]=[];for(var k=0;k<=r.e.r;++k)(_=[])[1]=_[2]=[{type:0,data:VKe(k+726270)}],x[4].push({type:2,data:UKe(_)}),x[5].push({type:0,data:VKe(k)}),x[6].push({type:0,data:VKe(k)});b[w].messages[0].data=UKe(x),y.content=qKe(GKe(b)),y.size=y.content.length,delete v[46];var A=WKe(v[4][0].data);A[7][0].data=VKe(r.e.r+1);var C=QKe(WKe(A[1][0].data)[2][0].data);if((b=XKe(KKe((y=yHe.find(l,o[C].location)).content)))[0].id!=C)throw"Bad HeaderStorageBucket";var T=WKe(b[0].messages[0].data);for(k=0;k<i.length;++k){var O=WKe(T[2][0].data);O[1][0].data=VKe(k),O[4][0].data=VKe(i[k].length),T[2][k]={type:T[2][0].type,data:UKe(O)}}b[0].messages[0].data=UKe(T),y.content=qKe(GKe(b)),y.size=y.content.length;var I=QKe(A[2][0].data);if((b=XKe(KKe((y=yHe.find(l,o[I].location)).content)))[0].id!=I)throw"Bad HeaderStorageBucket";for(T=WKe(b[0].messages[0].data),S=0;S<=r.e.c;++S)(O=WKe(T[2][0].data))[1][0].data=VKe(S),O[4][0].data=VKe(r.e.r+1),T[2][S]={type:T[2][0].type,data:UKe(O)};b[0].messages[0].data=UKe(T),y.content=qKe(GKe(b)),y.size=y.content.length;var P=QKe(A[4][0].data);!function(){for(var e,t=yHe.find(l,o[P].location),n=XKe(KKe(t.content)),r=0;r<n.length;++r){var i=n[r];i.id==P&&(e=i)}var s=WKe(e.messages[0].data);s[3]=[];var u=[];a.forEach(function(e,t){u[1]=[{type:0,data:VKe(t)}],u[2]=[{type:0,data:VKe(1)}],u[3]=[{type:2,data:FKe(e)}],s[3].push({type:2,data:UKe(u)})}),e.messages[0].data=UKe(s);var c=qKe(GKe(n));t.content=c,t.size=t.content.length}();var E=WKe(A[3][0].data),M=E[1][0];delete E[2];var D=WKe(M.data),R=QKe(D[2][0].data);!function(){for(var e,t=yHe.find(l,o[R].location),n=XKe(KKe(t.content)),s=0;s<n.length;++s){var u=n[s];u.id==R&&(e=u)}var c=WKe(e.messages[0].data);delete c[6],delete E[7];var d=new Uint8Array(c[5][0].data);c[5]=[];for(var f=0,h=0;h<=r.e.r;++h){var p=WKe(d);f+=$Ke(p,i[h],a),p[1][0].data=VKe(h),c[5].push({data:UKe(p),type:2})}c[1]=[{type:0,data:VKe(r.e.c+1)}],c[2]=[{type:0,data:VKe(r.e.r+1)}],c[3]=[{type:0,data:VKe(f)}],c[4]=[{type:0,data:VKe(r.e.r+1)}],e.messages[0].data=UKe(c);var m=qKe(GKe(n));t.content=m,t.size=t.content.length}(),M.data=UKe(D),A[3][0].data=UKe(E),v[4][0].data=UKe(A),c.messages[0].data=UKe(v);var L=qKe(GKe(f));return d.content=L,d.size=d.content.length,l}(e,t):"xlsb"==t.bookType?function(e,t){NGe=1024,e&&!e.SSF&&(e.SSF=NHe(RVe));e&&e.SSF&&(mHe(),pHe(e.SSF),t.revssf=kHe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,OYe?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=HGe.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};eqe(t=t||{});var a=HHe(),o="",s=0;t.cellXfs=[],MYe(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(VHe(a,o="docProps/core.xml",SXe(e.Props,t)),i.coreprops.push(o),vXe(t.rels,2,o,hXe.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,VHe(a,o,AXe(e.Props)),i.extprops.push(o),vXe(t.rels,3,o,hXe.EXT_PROPS),e.Custprops!==e.Props&&xHe(e.Custprops||{}).length>0&&(VHe(a,o="docProps/custom.xml",CXe(e.Custprops)),i.custprops.push(o),vXe(t.rels,4,o,hXe.CUST_PROPS));for(s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},d=e.Sheets[e.SheetNames[s-1]];(d||{})["!type"];if(VHe(a,o="xl/worksheets/sheet"+s+"."+n,oKe(s-1,o,t,e,c)),i.sheets.push(o),vXe(t.wbrels,-1,"worksheets/sheet"+s+"."+n,hXe.WS[0]),d){var f=d["!comments"],h=!1,p="";f&&f.length>0&&(VHe(a,p="xl/comments"+s+"."+n,sKe(f,p)),i.comments.push(p),vXe(c,-1,"../comments"+s+"."+n,hXe.CMNT),h=!0),d["!legacy"]&&h&&VHe(a,"xl/drawings/vmlDrawing"+s+".vml",jGe(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}c["!id"].rId1&&VHe(a,pXe(o),mXe(c))}null!=t.Strings&&t.Strings.length>0&&(VHe(a,o="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?sGe:aGe)(e,n)}(t.Strings,o,t)),i.strs.push(o),vXe(t.wbrels,-1,"sharedStrings."+n,hXe.SST));VHe(a,o="xl/workbook."+n,function(e,t){return(".bin"===t.slice(-4)?aKe:nKe)(e)}(e,o)),i.workbooks.push(o),vXe(t.rels,1,o,hXe.WB),VHe(a,o="xl/theme/theme1.xml",DGe(e.Themes,t)),i.themes.push(o),vXe(t.wbrels,-1,"theme/theme1.xml",hXe.THEME),VHe(a,o="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?MGe:bGe)(e,n)}(e,o,t)),i.styles.push(o),vXe(t.wbrels,-1,"styles."+n,hXe.STY),e.vbaraw&&r&&(VHe(a,o="xl/vbaProject.bin",e.vbaraw),i.vba.push(o),vXe(t.wbrels,-1,"vbaProject.bin",hXe.VBA));return VHe(a,o="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?RGe:LGe)()}(o)),i.metadata.push(o),vXe(t.wbrels,-1,"metadata."+n,hXe.XLMETA),VHe(a,"[Content_Types].xml",fXe(i,t)),VHe(a,"_rels/.rels",mXe(t.rels)),VHe(a,"xl/_rels/workbook."+n+".rels",mXe(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t):function(e,t){NGe=1024,e&&!e.SSF&&(e.SSF=NHe(RVe));e&&e.SSF&&(mHe(),pHe(e.SSF),t.revssf=kHe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,OYe?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=HGe.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};eqe(t=t||{});var a=HHe(),o="",s=0;t.cellXfs=[],MYe(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(VHe(a,o="docProps/core.xml",SXe(e.Props,t)),i.coreprops.push(o),vXe(t.rels,2,o,hXe.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,VHe(a,o,AXe(e.Props)),i.extprops.push(o),vXe(t.rels,3,o,hXe.EXT_PROPS),e.Custprops!==e.Props&&xHe(e.Custprops||{}).length>0&&(VHe(a,o="docProps/custom.xml",CXe(e.Custprops)),i.custprops.push(o),vXe(t.rels,4,o,hXe.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var d={"!id":{}},f=e.Sheets[e.SheetNames[s-1]];(f||{})["!type"];if(VHe(a,o="xl/worksheets/sheet"+s+"."+n,jYe(s-1,t,e,d)),i.sheets.push(o),vXe(t.wbrels,-1,"worksheets/sheet"+s+"."+n,hXe.WS[0]),f){var h=f["!comments"],p=!1,m="";if(h&&h.length>0){var v=!1;h.forEach(function(e){e[1].forEach(function(e){1==e.T&&(v=!0)})}),v&&(VHe(a,m="xl/threadedComments/threadedComment"+s+"."+n,zGe(h,c,t)),i.threadedcomments.push(m),vXe(d,-1,"../threadedComments/threadedComment"+s+"."+n,hXe.TCMNT)),VHe(a,m="xl/comments"+s+"."+n,FGe(h)),i.comments.push(m),vXe(d,-1,"../comments"+s+"."+n,hXe.CMNT),p=!0}f["!legacy"]&&p&&VHe(a,"xl/drawings/vmlDrawing"+s+".vml",jGe(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}d["!id"].rId1&&VHe(a,pXe(o),mXe(d))}null!=t.Strings&&t.Strings.length>0&&(VHe(a,o="xl/sharedStrings."+n,aGe(t.Strings,t)),i.strs.push(o),vXe(t.wbrels,-1,"sharedStrings."+n,hXe.SST));VHe(a,o="xl/workbook."+n,nKe(e)),i.workbooks.push(o),vXe(t.rels,1,o,hXe.WB),VHe(a,o="xl/theme/theme1.xml",DGe(e.Themes,t)),i.themes.push(o),vXe(t.wbrels,-1,"theme/theme1.xml",hXe.THEME),VHe(a,o="xl/styles."+n,bGe(e,t)),i.styles.push(o),vXe(t.wbrels,-1,"styles."+n,hXe.STY),e.vbaraw&&r&&(VHe(a,o="xl/vbaProject.bin",e.vbaraw),i.vba.push(o),vXe(t.wbrels,-1,"vbaProject.bin",hXe.VBA));VHe(a,o="xl/metadata."+n,LGe()),i.metadata.push(o),vXe(t.wbrels,-1,"metadata."+n,hXe.XLMETA),c.length>1&&(VHe(a,o="xl/persons/person.xml",function(e){var t=[WHe,sWe("personList",null,{xmlns:pWe,"xmlns:x":SWe[0]}).replace(/[\/]>/,">")];return e.forEach(function(e,n){t.push(sWe("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),t.push("</personList>"),t.join("")}(c)),i.people.push(o),vXe(t.wbrels,-1,"persons/person.xml",hXe.PEOPLE));return VHe(a,"[Content_Types].xml",fXe(i,t)),VHe(a,"_rels/.rels",mXe(t.rels)),VHe(a,"xl/_rels/workbook."+n+".rels",mXe(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t)}function nqe(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return wHe(t.file,yHe.write(e,{type:mVe?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return yHe.write(e,t)}function rqe(e,t){var n=NHe(t||{});return function(e,t){var n={},r=mVe?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";t.compression&&(n.compression="DEFLATE");if(t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?yHe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof i){if("binary"==t.type||"base64"==t.type)return i;i=new Uint8Array(wVe(i))}return t.password&&"undefined"!=typeof encrypt_agile?nqe(encrypt_agile(i,t.password),t):"file"===t.type?wHe(t.file,i):"string"==t.type?tWe(i):i}(tqe(e,n),n)}function iqe(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return hVe(nWe(r));case"binary":return nWe(r);case"string":return e;case"file":return wHe(t.file,r,"utf8");case"buffer":return mVe?vVe(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):iqe(r,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function aqe(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?hVe(n):"string"==t.type?tWe(n):n;case"file":return wHe(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function oqe(e,t){lVe(),tKe(e);var n=NHe(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=oqe(e,n);return n.type="array",wVe(r)}var i=0;if(n.sheet&&(i="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return iqe(hKe(e,n),n);case"slk":case"sylk":return iqe($Xe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"htm":case"html":return iqe(PKe(e.Sheets[e.SheetNames[i]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return hVe(e);case"binary":case"string":return e;case"file":return wHe(t.file,e,"binary");case"buffer":return mVe?vVe(e,"binary"):e.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}(fqe(e.Sheets[e.SheetNames[i]],n),n);case"csv":return iqe(dqe(e.Sheets[e.SheetNames[i]],n),n,"\ufeff");case"dif":return iqe(eGe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"dbf":return aqe(QXe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"prn":return iqe(nGe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"rtf":return iqe(uGe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"eth":return iqe(tGe.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"fods":return iqe(NKe(e,n),n);case"wk1":return aqe(rGe.sheet_to_wk1(e.Sheets[e.SheetNames[i]],n),n);case"wk3":return aqe(rGe.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),aqe(OKe(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return nqe(gKe(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return rqe(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function sqe(e,t,n,r,i,a,o,s){var l=bUe(n),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,f=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:n,enumerable:!1})}catch(kJe){f.__rowNum__=n}else f.__rowNum__=n;if(!o||e[n])for(var h=t.s.c;h<=t.e.c;++h){var p=o?e[n][h]:e[r[h]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=a[h]){if(null==m)if("e"==p.t&&null===m)f[a[h]]=null;else if(void 0!==u)f[a[h]]=u;else{if(!c||null!==m)continue;f[a[h]]=null}else f[a[h]]=c&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:OUe(p,m,s);null!=m&&(d=!1)}}else{if(void 0===u)continue;null!=a[h]&&(f[a[h]]=u)}}return{row:f,isempty:d}}function lqe(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=CUe(c);break;case"number":(l=CUe(e["!ref"])).s.r=c;break;default:l=c}r>0&&(i=0);var d=bUe(l.s.r),f=[],h=[],p=0,m=0,v=Array.isArray(e),g=l.s.r,y=0,b={};v&&!e[g]&&(e[g]=[]);var w=u.skipHidden&&e["!cols"]||[],x=u.skipHidden&&e["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(w[y]||{}).hidden)switch(f[y]=xUe(y),n=v?e[g][y]:e[f[y]+d],r){case 1:a[y]=y-l.s.c;break;case 2:a[y]=f[y];break;case 3:a[y]=u.header[y-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=o=OUe(n,null,u),m=b[o]||0){do{s=o+"_"+m++}while(b[s]);b[o]=m,b[s]=1}else b[o]=1;a[y]=s}for(g=l.s.r+i;g<=l.e.r;++g)if(!(x[g]||{}).hidden){var S=sqe(e,l,g,f,r,a,v,u);(!1===S.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(h[p++]=S.row)}return h.length=p,h}var uqe=/"/g;function cqe(e,t,n,r,i,a,o,s){for(var l=!0,u=[],c="",d=bUe(n),f=t.s.c;f<=t.e.c;++f)if(r[f]){var h=s.dense?(e[n]||[])[f]:e[r[f]+d];if(null==h)c="";else if(null!=h.v){l=!1,c=""+(s.rawNumbers&&"n"==h.t?h.v:OUe(h,null,s));for(var p=0,m=0;p!==c.length;++p)if((m=c.charCodeAt(p))===i||m===a||34===m||s.forceQuotes){c='"'+c.replace(uqe,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==h.f||h.F?c="":(l=!1,(c="="+h.f).indexOf(",")>=0&&(c='"'+c.replace(uqe,'""')+'"'));u.push(c)}return!1===s.blankrows&&l?null:u.join(o)}function dqe(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=CUe(e["!ref"]),a=void 0!==r.FS?r.FS:",",o=a.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),u=new RegExp(("|"==a?"\\|":a)+"+$"),c="",d=[];r.dense=Array.isArray(e);for(var f=r.skipHidden&&e["!cols"]||[],h=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(f[p]||{}).hidden||(d[p]=xUe(p));for(var m=0,v=i.s.r;v<=i.e.r;++v)(h[v]||{}).hidden||null!=(c=cqe(e,i,v,d,o,l,a,r))&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?s:"")+c));return delete r.dense,n.join("")}function fqe(e,t){return t||(t={}),t.FS="\t",t.RS="\n",dqe(e,t)}function hqe(e,t,n){var r,i=n||{},a=+!i.skipHeader,o=e||{},s=0,l=0;if(o&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var u="string"==typeof i.origin?SUe(i.origin):i.origin;s=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:s+t.length-1+a}};if(o["!ref"]){var d=CUe(o["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),-1==s&&(s=d.e.r+1,c.e.r=s+t.length-1+a)}else-1==s&&(s=0,c.e.r=t.length-1+a);var f=i.header||[],h=0;t.forEach(function(e,t){xHe(e).forEach(function(n){-1==(h=f.indexOf(n))&&(f[h=f.length]=n);var u=e[n],c="z",d="",p=_Ue({c:l+h,r:s+t+a});r=pqe(o,p),!u||"object"!=typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",i.cellDates||(c="n",u=CHe(u)),d=i.dateNF||RVe[14]):null===u&&i.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,d&&(r.z=d)):o[p]=r={t:c,v:u},d&&(r.z=d)):o[p]=u})}),c.e.c=Math.max(c.e.c,l+f.length-1);var p=bUe(s);if(a)for(h=0;h<f.length;++h)o[xUe(h+l)+p]={t:"s",v:f[h]};return o["!ref"]=AUe(c),o}function pqe(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=SUe(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return pqe(e,_Ue("number"!=typeof t?t:{r:t,c:n||0}))}function mqe(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var vqe={encode_col:xUe,encode_row:bUe,encode_cell:_Ue,encode_range:AUe,decode_col:wUe,decode_row:yUe,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:SUe,decode_range:kUe,format_cell:OUe,sheet_add_aoa:PUe,sheet_add_json:hqe,sheet_add_dom:EKe,aoa_to_sheet:EUe,json_to_sheet:function(e,t){return hqe(null,e,t)},table_to_sheet:MKe,table_to_book:function(e,t){return IUe(MKe(e,t),t)},sheet_to_csv:dqe,sheet_to_txt:fqe,sheet_to_json:lqe,sheet_to_html:PKe,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,a=CUe(e["!ref"]),o="",s=[],l=[],u=Array.isArray(e);for(i=a.s.c;i<=a.e.c;++i)s[i]=xUe(i);for(var c=a.s.r;c<=a.e.r;++c)for(o=bUe(c),i=a.s.c;i<=a.e.c;++i)if(n=s[i]+o,r="",void 0!==(t=u?(e[c]||[])[i]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l},sheet_to_row_object_array:lqe,sheet_get_cell:pqe,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=o+i);++i);}if(eKe(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n},book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:mqe,cell_set_internal_link:function(e,t,n){return mqe(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var i="string"!=typeof t?t:CUe(t),a="string"==typeof t?t:AUe(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=pqe(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const gqe=["src"],yqe={key:1,class:"empty-img",src:NNe},bqe=yr({__name:"TableEmpty",props:{top:{type:String,default:"0px"},bottom:{type:String,default:"0px"},img:{type:String,default:""},msg:{type:String},color:{type:String,default:"#999999"}},setup(e){const{t:t}=Zd(),n=e.msg||t("msg.noneRecord");return(t,r)=>(Aa(),Ia("div",{class:"table-empty-wrapper",style:V({paddingTop:e.top,paddingBottom:e.bottom})},[e.img?(Aa(),Ia("img",{key:0,class:"empty-img",src:e.img},null,8,gqe)):(Aa(),Ia("img",yqe)),La("div",{class:"msg",style:V({color:e.color})},ne(Lt(n)),5)],4))}}),wqe={class:"emotion-wrapper"},xqe={class:"title"},Sqe={class:"chart-box"},_qe={class:"bottom-tip"},kqe=yr({__name:"EmotionalSummary",props:{list:{type:Array,default:()=>[]}},setup(e){const{t:t}=Zd(),n=e,r=[{color:"#91cc75",label:t("ai.positive")},{color:"#6692fa",label:t("ai.neutral")},{color:"#ee6666",label:t("ai.negative")}];return Er(()=>{ta(()=>n.list,e=>{e.length&&fn(()=>{const e=document.getElementById("emotion-dom");e.style.width="560px";const t=Qle(e),i={color:r.map(e=>e.color),tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["50%","70%"],data:n.list,label:{show:"false",formatter:"{d}%"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.setOption(i)})},{immediate:!0})}),(n,i)=>(Aa(),Ia("div",wqe,[La("div",xqe,ne(Lt(t)("ai.sentimentSummary")),1),Xn(La("div",Sqe,[i[0]||(i[0]=La("div",{id:"emotion-dom",style:{width:"100%",height:"300px"}},null,-1)),La("div",_qe,[(Aa(),Ia(ba,null,Gr(r,e=>La("div",{class:"tip",key:e.color},[La("span",{class:"dot",style:V({background:e.color})},null,4),La("span",null,ne(e.label),1)])),64))])],512),[[Xo,e.list.length]]),e.list.length?Va("v-if",!0):(Aa(),Pa(bqe,{key:0,msg:Lt(t)("msg.noneData"),top:"120px"},null,8,["msg"]))]))}}),Aqe={class:"emotion-wrapper-table"},Cqe={class:"title-block"},Tqe={class:"title"},Oqe={class:"groups"},Iqe={class:"table"},Pqe=yr({__name:"EmotionalTable",props:{list:{type:Object,default:()=>({positiveList:[],negativeList:[]})}},setup(e){const{t:t,locale:n}=Zd(),r=e,i={pagination:{itemsPerPage:"{size} \u6761/\u9875",jumpTo:"\u8df3\u81f3",page:"\u9875",total:"\u5171 {total} \u9879\u6570\u636e"}},a={pagination:{itemsPerPage:"{size} / page",jumpTo:"jump to",page:"",total:"Total {total} items"}},o=vo(()=>"zh"===n.value?i:a),s=Et("positiveList"),l=[{value:"positiveList",label:t("ai.positive")},{value:"negativeList",label:t("ai.negative")}],u=[{colKey:"word",title:t("ai.content"),ellipsis:!0},{colKey:"count",title:t("ai.frequency")},{colKey:"line",title:t("ai.count")}],c=Et([]),d=bt({current:1,pageSize:5,total:0,showPageSize:!1,maxPageBtn:5}),f=e=>{const t=r.list[e];d.current=1,d.total=t.length,c.value=t},h=(e,t)=>{"pagination"===t.trigger&&(d.current=e.pagination.current)};return ta(()=>r.list,e=>{d.total=e.positiveList.length,c.value=e.positiveList},{immediate:!0}),(e,n)=>{const r=mG,i=pG,a=UZ,p=QZ;return Aa(),Ia("div",Aqe,[La("div",Cqe,[La("div",Tqe,ne(Lt(t)("ai.sentimentWordList")),1),La("div",Oqe,[Na(i,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=e=>s.value=e),onChange:f},{default:Wn(()=>[(Aa(),Ia(ba,null,Gr(l,e=>Na(r,{key:e.value,value:e.value},{default:Wn(()=>[za(ne(e.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])])]),La("div",Iqe,[(Aa(),Pa(p,{key:o.value,"global-config":o.value},{default:Wn(()=>[Na(a,{"row-key":"name",hideSortTips:"",data:c.value,columns:u,pagination:d,onChange:h},null,8,["data","pagination"])]),_:1},8,["global-config"]))])])}}}),Eqe={class:"title"},Mqe={key:0,class:"content"},Dqe={class:"texts"},Rqe=jNe(yr({__name:"UserPortrait",props:{portraiMsg:{}},setup(e){const{t:t}=Zd();return(e,n)=>(Aa(),Ia("div",{class:G(["partrait",{"partrait-bg":e.portraiMsg}])},[La("div",Eqe,ne(Lt(t)("ai.userProfile")),1),e.portraiMsg?(Aa(),Ia("div",Mqe,[n[0]||(n[0]=La("img",{src:"data:image/png;base64, ",alt:"",class:"symbol"},null,-1)),La("div",Dqe,ne(e.portraiMsg),1)])):(Aa(),Pa(bqe,{key:1,msg:Lt(t)("msg.noneData"),top:"86px"},null,8,["msg"]))],2))}}),[["__scopeId","data-v-32ab7572"]]),Lqe={class:"common-wrapper"},Nqe={class:"title"},jqe={key:0,class:"content"},Fqe={key:0,class:"txt-box"},zqe={class:"symbol"},Bqe=yr({__name:"CommonBox",props:{title:{},list:{}},setup(e){const{t:t}=Zd(),n=e,r=Et([]),i=e=>{e&&r.value.push(e)},a=vo(()=>Object.prototype.toString.call(n.list).slice(8,-1));return Er(()=>{ta(()=>n.list,()=>{n.list.length&&"Array"===a.value&&fn(()=>{r.value.forEach((e,t)=>{e.scrollHeight>e.clientHeight&&n.list[t]&&(n.list[t].tip=!0)})})},{immediate:!0})}),(e,n)=>{const r=wD;return Aa(),Ia("div",Lqe,[La("div",Nqe,ne(e.title),1),e.list.length?(Aa(),Ia("div",jqe,[Va(" \u7eaf\u5b57\u7b26\u4e32 "),"String"===a.value?(Aa(),Ia("div",Fqe,ne(e.list),1)):(Aa(),Ia(ba,{key:1},[Va(" \u6587\u672c\u6570\u7ec4 "),(Aa(!0),Ia(ba,null,Gr(e.list,(e,t)=>(Aa(),Ia("div",{class:"item",key:t},[La("div",zqe,ne(t+1),1),Na(r,{overlayClassName:"limit-widht-pop",content:e.text,disabled:!e.tip},{default:Wn(()=>[La("div",{class:"text",ref_for:!0,ref:i},ne(e.text),1)]),_:2},1032,["content","disabled"])]))),128))],64))])):(Aa(),Pa(bqe,{key:1,msg:Lt(t)("msg.noneData"),top:"100px"},null,8,["msg"]))])}}}),Vqe={class:"header"},Hqe={class:"title"},Wqe={class:"jump-btn"},Uqe={key:0,class:"ai-summary"},Xqe={class:"emotion-analysis"},Gqe={class:"emo-title"},Yqe={class:"emo-content"},Kqe={class:"analysis"},qqe={class:"word-table",style:{width:"604px"}},Zqe={class:"product-summary"},Jqe={class:"summary-title"},Qqe={class:"summart-content"},$qe={key:1,class:"noComment"},eZe={class:"noCommentText"},tZe=yr({__name:"NewCommentDialog",props:{commentCountFlag:{},visible:{type:Boolean},site:{},shopId:{},taskKey:{},commentAiAnalysis:{}},emits:["update:visible"],setup(e,{emit:t}){const{t:n}=Zd(),r=e,i=/macintosh|mac os x/i.test(navigator.userAgent),a=Et([]),o=Et({positiveList:[],negativeList:[]}),s=Et(""),l=Et([]),u=Et([]),c=Et([]),d=Et([]),f=Et([]),h=e=>{if(null===e)return[];const t=e?.split("\n")??[];let n=[];return t.forEach(e=>{/^(([1-9]|[1-4][0-9]|50)\.|\*)/.test(e)&&(0===e.indexOf("*")?n.push({text:e.split("*")[1].trim(),tip:!1}):n.push({text:e.split(".")[1].trim(),tip:!1}))}),n.length||(n=e),n};Er(()=>{if(![0,1].includes(r.commentCountFlag)&&r.commentAiAnalysis&&Object.keys(r.commentAiAnalysis).length){const e=r.commentAiAnalysis;a.value=[{name:n("ai.positive"),value:e.positiveCount},{name:n("ai.neutral"),value:e.normalCount},{name:n("ai.negative"),value:e.negativeCount}],o.value={positiveList:e.positiveList??[],negativeList:e.negativeList??[]},s.value=e.userPortrait??"",l.value=h(e.usageScene),u.value=h(e.purchaseMotivation),c.value=h(e.advantages),d.value=h(e.disadvantages),f.value=h(e.expect)}});const p=t,m=vo({get:()=>r.visible,set(e){p("update:visible",e)}}),v=()=>{p("update:visible",!1)},g=()=>{window.open(`https://www.shopdora.com/my/analysis/newComment?shopId=${r.shopId}&taskKey=${r.taskKey}&site=${r.site}`,"_blank")};return(e,t)=>{const r=VO,h=wD,p=JZ;return Aa(),Pa(p,{"t-drawer":"",visible:m.value,"onUpdate:visible":t[0]||(t[0]=e=>m.value=e),footer:!1,preventScrollThrough:!1,closeBtn:!0,destroyOnClose:"",size:"95vh",onClose:v,placement:"bottom",attach:"body"},{body:Wn(()=>[La("div",{class:"commentCrxZh",style:V({padding:Lt(i)||2!=e.commentCountFlag?"0 24px":"0 14px"})},[La("div",Vqe,[La("div",Hqe,ne(Lt(n)("ai.aiReviewSummary")),1),La("div",Wqe,[Na(h,{content:Lt(n)("ai.skuViewDetail")},{default:Wn(()=>[Na(r,{onClick:g},{default:Wn(()=>[za(ne(Lt(n)("ai.goToWebDetail")),1)]),_:1})]),_:1},8,["content"])])]),2==e.commentCountFlag?(Aa(),Ia("div",Uqe,[La("div",Xqe,[La("div",Gqe,ne(Lt(n)("ai.sentimentAnalysis")),1),La("div",Yqe,[La("div",Kqe,[Na(kqe,{list:a.value},null,8,["list"])]),La("div",qqe,[Na(Pqe,{list:o.value},null,8,["list"])])])]),La("div",Zqe,[La("div",Jqe,ne(Lt(n)("ai.productSummary")),1),La("div",Qqe,[La("div",null,[Na(Rqe,{portraiMsg:s.value},null,8,["portraiMsg"])]),La("div",null,[Na(Bqe,{title:Lt(n)("ai.usageScenarios"),list:l.value},null,8,["title","list"])]),La("div",null,[Na(Bqe,{title:Lt(n)("ai.userAttractiveSellingPoints"),list:u.value},null,8,["title","list"])]),La("div",null,[Na(Bqe,{title:Lt(n)("ai.productAdvantages"),list:c.value},null,8,["title","list"])]),La("div",null,[Na(Bqe,{title:Lt(n)("ai.areasForImprovement"),list:d.value},null,8,["title","list"])]),La("div",null,[Na(Bqe,{title:Lt(n)("ai.userExpectations"),list:f.value},null,8,["title","list"])])])])])):(Aa(),Ia("div",$qe,[t[1]||(t[1]=La("div",{class:"img"},[La("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABQCAYAAABh05mTAAAAAXNSR0IArs4c6QAACahJREFUeF7tnH2MXFUVwM95M7Ptdje6pbvz7n1t0xhZgVaMhEKIICaUColGrSKJgmJCg4kYFTEBw0e7RSMmImrERIEEFDQRFD9iYuUjkQ9DBJSIXcHFmKbtm/d2t7Ca3W53Z+Ydc17mNpfnzLyPuW9ntsz8s9n5uPec3z3n3HPPuTMI/UfHBLDjEfoDQB+iASPoQ+xDNEDAwBA9b4lEhIhIBnTNbYiehsgAlea9DLLnIR4+fHjtpk2bjvchpnQkIiogYr1SqXwAAH4OAJdLKX+nnk85XO5v70lLJKIiItYqlcqtADABAHuklPvU87lTSTlBT0N0XfcmRPwaEd3sOM7X3xQQicjiRUTEIOVivuHtCpbrujcj4m1EdIvjOAwztNAOxzYioy5DLpbYaVqSF8RO5Wq1eEYgKuGmp6ffzYZYLpf/2onAeUDUZDwLAKhcLr/YiYxGLVEJMjU1tWZ4ePhVAFhPRNscxznI7p3FtU1DVHK4rrsFEQ8AwOvz8/Onjo+PL5kAacoSQ1ie5/2UiD6BiPcKIXZnTUlygBimTJ7n3UNEVyPiz4QQn8y6yFG3NgpxZmbmHbVa7QUAGCai9zmO82QWkCYhqvld170QEf8IAPPFYvHssbGxf/YURF4ZLUHeBwC3AMATUsodWdxFg9hxiqPmr1QqjwPARQBwm5Ty1iyLm+vG0oAYFgoOHjy4fmBg4M8AcCoAfEZKeX9agU0l29rCXgUA9wHAq8vLy+du2bLl9SyLmzvEiDV+GgDuzyq0iWOfghRZ1KuklD9Ou6hxeamRmKhPornPYwCwoxP34bGyFiCahJfHpZQXm7TAExWmOMppX28WyIMg2L5x48ZX0gbyrKUwNc+RI0dOsyzr+U43ujgGxi1Rd2sTKUUWy1EQTaVc3YIY5o15JbftlMoj+e8KRH23np6eNn7MilPK9DE0br5c3FlNmsUV4wTO8nrecuQKsWGRxktPSUGaKs3FzZc7xDgBTobX+xANrGIfYrch6smwAVm6OkQnLdlMltiAx7lgvauaG5ycT1oAEGSBmRpiAyBXbAKuZheLxUGDunRlqFqtttiocnMmwfdWUl1bSQVRS2KH6/X6HgC4DBFHIgWIVAJ0gxpbQETmOQB4uFAoTJTL5fm0eWViiGpgrvV5nvdbALiUzR8AwjxwlT+UHvuFEB/ktmwakGkghn0K13WvQcQfAsAyABS5u8cu0IBZ5fL7KgA6DAClhhEo+bmfPUBEn3Uc50dpao5pIKpm1H4iej8A8KYSBmMGiIiPBEFw0+DgYGVujr2jNx8jIyOwuLgoLcviGxW7NG9S+uyXUl6apmyXCKIy7ZmZGVmv1yeJiOMgW5+ywGeFEO9N6wbdwBwJS08BwHmaRXK4nLMs64xyuewldemkEJUrfwwRH9askF2AXfrzUsq7Dhw4MLB161Z26Z5+TE5OlrZt27ZcqVSuBYDvA4DSI7RGy7Ius237F0ldOinE8A6M67p3I+JubVK2RF69HUKIJ5JO2m3CSk7P8y4iIu4ChnoovRDxbiHENUnv/sRC1IucQ0NDLyHiuG7+ALBQKpVOGx0dPZLU/HsAYtiZnJ2d3VitVl8BgCE9PBHR1MLCwplJb0gkgRi6su/77wmC4Blt1VRa8LIQ4szVEA/V4kXi4ksAcHo0XbMs63zbtv+UxLuSQAxd2ff9PUEQ7I3GDwD4jZTyw0km67YFRhJsdRv31wDwoSZxPvHF0iQQQ9P3PO9pIjo/OhkR3e44zleTxo9eAandsvgGIt4YNQ5EfEYIcUGSENUWosqVfN9/exAEfJtqjebO4U6GiFcIIfgiU8cXMFcSsJLX8zy+2PSgZhxqk1myLGubbdv/issZ4yCGYDzPu5qI7mkyEd/BOcdxnOfjJlpJQEnm0q7bbUfE5xqfUQCVgewWQtwbZyBxEFXc4Bv8H28C8bVarTa+efPm15KYfRLlVuo9St5Dhw6dUiwWpwDglKiXAcBDUsrL4+J9S4hqkqNHj75leXn5HwDgNJnkOSnluSuleF7zVCoVvoB1ThMjcQcGBs7YsGHDf9sZSTuIKrW5OAiCRyMpQJjhI+KDQogr41YqL+U7HVdLuh8goiu0zYWHDlM4y7J22rb9WDsd20FU3yX5FgBcH5lAHZNulFJ+My5mdKpsXp/XrvDdAAC3t9DxDinlV9rp2BSiloxavu+/QER8oV2vHaoz5kdt235ktVui67of4SqU5s4nLBERX7Rt+2yu5Ldy6VYQw7KX7/vvCoLgL42Sl9q5eIIQIpeSHMf51UkAcRci/jICUekbWJZ1lm3bf2uVgbSCqAoO1yHityNmzhCVO/9ASnlto3rDz3XUGkjT2zDQacTJyckiV3N8378rCILPtdITEb8shLizlUu3tcRKpfJ7ALgkskIM8URCSkQ7Hcd5ykSemDRNSvq+drFUyxO5Dsobp36QUB9V+eIfhBCXJLZErRkl6vX6ywDwVg3aG46fjfLRf4hogmPK2rVr57JUtS3LwnXr1tVGR0cX4rptqts4Ozs7dOzYsWIQBKmtn6vbx48fH0HEXUTEDbdYHQuFwumtCrX/Z4naNV1OrjnJVmXzZgurV7eXEHEx7U5KRDwGtxnmEfECIcS/W624dnnzbUT0NN+AZfmi3bskMhARt3rZ+njDZA6tMhWlP39d+KFm8b8ZRJXa8ArpVZtWsjEEFoRBZH0ot3lACPGpRiOdZeNxVehQPWH+Us9PiOjKmAVOIgvPy+O2O7mp+L9XSjnRLC6agKiETe1WES3DhUDEO23bvp43GS3VCitJ/L/v+3cQ0XUNgJ22a2OrWNpmkwkiWyFbo1qJJCvb6XtULsoFje8UCoVnq9XqXKlUGqnX6+ch4pcAYPsK97uV/hNSyr1pLbEbEE8kuY3V4N42x1mOXwON51b6wsCqhKiSef6rx1l1eaqT2JvFU1YtxGZxNkn8ygIp7jOrHmKcgivxeh+iAcp9iH2IBggYGKJvid2GmPTYZ0DOnh6io2Mf/7wU/8zUSp5YepGm0n+flHJPqhOL53lfIKLvAsCSdlroRSXzlolPTWsQ8YtCiO8lhRge9ufm5tYvLi4+CQDvXOGzat5Q0oyvjph/HxwcvHBkZKTpb0e0bVTNzMw49Xqdu3k7EZFrb2+qBxFxjfTRQqFww9jYmJuqUcWkVA+DrdJ13XXVanVNliryaqXO1fZSqbTkOM4xnUUzfeKukYQFy5Ppm1NpF7VRIOYvCLX8Jb5Eh3oDnbW0svfM+5N0IBNB7BmNelSQPkQDC9OH2IdogICBIfqWaADi/wDTBvyr4qrEeAAAAABJRU5ErkJggg==",alt:""})],-1)),La("div",eZe,ne(0===e.commentCountFlag?Lt(n)("ai.noReviewsAvailable"):Lt(n)("ai.few50Reviews")),1)]))],4)]),_:1},8,["visible"])}}}),nZe={class:"review"},rZe={class:"reviewText"},iZe={class:"reviewMain"},aZe={style:{"margin-left":"16px"}},oZe={class:"reviewText"},sZe={class:"reviewText"},lZe={class:"button"},uZe=yr({__name:"ReviewDownload",props:{visible:Boolean},emits:["update:visible","load"],setup(e,{emit:t}){const{t:n}=Zd(),r=(e,t="reviewDownload",r=null)=>n(`style.${t}.${e}`,r),i=e,a=t,o=Et(-1),s=vo({get:()=>i.visible,set(e){setTimeout(()=>{!e&&document.querySelector(".reviewDownloadCrx")?.remove()}),a("update:visible",e)}}),l=bt({isTranslate:!1}),u=Et("100"),c=Et([iDe(iDe.unix((new Date).getTime()/1e3-604800)).format("YYYY-MM-DD"),iDe(iDe.unix((new Date).getTime()/1e3)).format("YYYY-MM-DD")]),d=Et({reviewSelectTime:!0,reviewSelectText:!1}),f=e=>{"1"==e?(d.value.reviewSelectTime=!0,d.value.reviewSelectText=!1):"2"==e&&(d.value.reviewSelectTime=!1,d.value.reviewSelectText=!0)},h=()=>{a("load",{reviewSelect:d.value.reviewSelectTime,reviewTime:c.value,downloadCount:u.value,isTranslate:l.isTranslate}),s.value=!1};return(e,t)=>{const i=Dz,a=NU,l=hG,p=pG,m=VO,v=PG;return Aa(),Pa(v,{visible:s.value,"onUpdate:visible":t[5]||(t[5]=e=>s.value=e),placement:"center",class:"reviewDownloadCrx",width:r("reviewWidth"),header:`Shopdora - ${Lt(n)("tools.downloadReviews")}`,destroyOnClose:!0,preventScrollThrough:!1,footer:!1},{body:Wn(()=>[La("div",nZe,[Va(' <div class="reviewText">\n          <div class="reviewTitle">\u7ffb\u8bd1:</div>\n          <div class="reviewMain">\n            <t-checkbox v-model="reviewDate.isTranslate">\u7ffb\u8bd1\u6807\u9898\u548c\u5185\u5bb9\uff08\u4f7f\u7528\u5fae\u8f6f\u7ffb\u8bd1\u8fdb\u884c\u81ea\u52a8\u7ffb\u8bd1\uff09</t-checkbox>\n          </div>\n        </div> '),La("div",rZe,[La("div",{class:G(["reviewTitle",r("reviewTitle")])},ne(Lt(n)("option.downloadRules"))+":",3),La("div",iZe,[La("span",null,[Na(i,{onClick:t[0]||(t[0]=e=>f("1")),checked:d.value.reviewSelectTime},{default:Wn(()=>[za(ne(Lt(n)("option.downloadByReviewTimePeriod")),1)]),_:1},8,["checked"])]),La("span",aZe,[Na(i,{onClick:t[1]||(t[1]=e=>f("2")),checked:d.value.reviewSelectText},{default:Wn(()=>[za(ne(Lt(n)("option.downloadByReviews")),1)]),_:1},8,["checked"])])])]),Xn(La("div",oZe,[La("div",{class:G(["reviewTitle",r("reviewTitle")])},ne(Lt(n)("option.timePeriod"))+":",3),t[6]||(t[6]=La("div",null,null,-1)),Na(a,{"allow-input":"",clearable:"",modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=e=>c.value=e)},null,8,["modelValue"])],512),[[Xo,d.value.reviewSelectTime]]),Xn(La("div",sZe,[La("div",{class:G(["reviewTitle",r("reviewTitle")])},ne(Lt(n)("option.numberOfReviews"))+":",3),La("div",null,[Na(p,{modelValue:u.value,"onUpdate:modelValue":t[3]||(t[3]=e=>u.value=e),style:{"margin-top":"20px"}},{default:Wn(()=>[Na(l,{value:"100"},{default:Wn(()=>[za(ne(Lt(n)("option.downloadFirst100")),1)]),_:1}),Na(l,{value:"300"},{default:Wn(()=>[za(ne(Lt(n)("option.downloadFirst200")),1)]),_:1}),Na(l,{value:"-1"},{default:Wn(()=>[za(ne(Lt(n)("option.downloadAll")),1)]),_:1})]),_:1},8,["modelValue"])])],512),[[Xo,d.value.reviewSelectText]]),La("div",lZe,[t[7]||(t[7]=La("div",{style:{color:"#fd6012"}},[Va(" <span>\u4e0b\u8f7d\u5b8c\u6210\u524d\uff0c\u8bf7\u4e0d\u8981\u79bb\u5f00\u6216\u8005\u5237\u65b0\u5f53\u524d\u5546\u54c1\u9875\u9762</span> ")],-1)),La("div",null,[Na(m,{onClick:t[4]||(t[4]=e=>s.value=!1)},{default:Wn(()=>[za(ne(Lt(n)("common.cancel")),1)]),_:1}),Na(m,{onClick:h,class:G({bgc:-1!=o.value}),disabled:-1!=o.value},{default:Wn(()=>[za(ne(-1==o.value?Lt(n)("tools.download"):Lt(n)("tools.downloading")+o.value+"%"),1)]),_:1},8,["class","disabled"])])])])]),footer:Wn(()=>t[8]||(t[8]=[])),_:1},8,["visible","width","header"])}}}),cZe={class:"topHeader"},dZe={class:"top"},fZe={class:"title-wrapper"},hZe={class:"item-icon"},pZe={style:{display:"flex","align-items":"center"}},mZe={key:0,class:"putButton"},vZe={key:0,class:"desc"},gZe=["disabled"],yZe={key:1,class:"putButton"},bZe=["disabled"],wZe={key:0,class:"topTips",style:{color:"rgba(0, 0, 0, 0.4)","font-size":"12px","margin-left":"20px","margin-bottom":"12px"}},xZe=["innerHTML"],SZe={href:"https://help.shopdora.cn/?p=1166",target:"_blank"},_Ze={class:"productSkuTab"},kZe={key:0,class:"productSkuTips"},AZe={class:"productSkuTipsName"},CZe=["href"],TZe={class:"analyse"},OZe=yr({__name:"SkuTab",props:{description:Boolean,monitor:Boolean,site:String,detailPageData:Object,exchangeRate:Object,shopId:String,itemId:String},emits:["changeMonitor","changeHistory"],setup(e,{emit:t}){const n=e,r=vo(()=>RJ.getters["user/isLogin"]),i=vo(()=>RJ.getters["user/userInfo"]??{});let a=Et(yi("site"));const o=Et(yi("productShopeeList")),{t:s,locale:l}=Zd(),u=(e,t="skuTab",n=null)=>s(`style.${t}.${e}`,n),c=vo(()=>RJ.getters["user/resourceDto"]("/monitor/product/add")),d=Et(!0),f=Et(!1),h=Et(!1),p=t,m=vo(()=>[s("sku.loginViewData"),s("sku.skuBtnMonitorTip"),s("sku.viewSkuAnalysis")]),v=Et(0),g=vo(()=>!!(location.hostname.indexOf("xiapibuy")>0)&&(o.value.skuDetailData&&o.value.skuDetailData?.[0].sales&&"N/A"!==o.value.skuDetailData?.[0].sales&&"NaN"!==o.value.skuDetailData?.[0].sales));ta(()=>[r.value,n.monitor],e=>{e[0]?v.value=e[1]?2:1:v.value=0},{deep:!0,immediate:!0});const y=()=>{0==v.value?NJ():1==v.value?(async()=>{if(-1!=c.value.dataQuota&&c.value.dataQuota-c.value.dataQuotaUsed<=0)return WE.warning(s("error.monitorSize"));try{if("ok"!=await oQ("/monitor/product/add",{urls:[window.location.href]}))return WE.error(s("error.monitorRetry"));RJ.dispatch("user/getUserInfo"),v.value=2,p("changeMonitor")}catch(e){}})():p("changeHistory")},b=Et();let w=Et({sortBy:"sales",descending:!0});const x=(e,t)=>{w.value=e,b.value=t.currentDataSource},S=e=>{const t=o.value.skuDetailData.map(t=>t.skuId==e.skuId?{...t,stock:e.stock,price:e.price.single_value>-1?e.price.single_value:e.price.range_min}:t);o.value={...o.value,skuDetailData:t}},_=bt([{colKey:"sku",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[za("SKU")]),ellipsis:!0,width:"230px"},{colKey:"unitPrice",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[s("sku.skuPrice")]),sorter:(e,t)=>e.price-t.price,cell:(e,{row:t})=>{if("\u672a\u77e5"==t.price)return Na("p",null,[Na("span",null,[t.priceDisplay]),Na("span",{style:"margin-left:4px;"},[Na(_D,{content:s("error.skuPriceNotFound")},{default:()=>[" ",Na(hv,{size:"16"},null)]})])]);{let e=function(e,t=""){if(""!==e&&null!=e){t&&e.startsWith(t)&&(e=e.substring(t.length));const n=e.replace(/,/g,"");return parseFloat(n)}return"N/A"}(t.priceDisplay);return"number"==typeof e&&(e=(e/n.exchangeRate[n.site]*(n.exchangeRate["zh"===l.value?"cn":"us"]??1)).toFixed(2)),Na("p",null,[f.value?t.unitPrice?t.unitPrice:t.priceLocal:`${"zh"===l.value?s("common.rmb"):s("common.usd")}${e}`])}}},{colKey:"salesRatePercent",width:"130px",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[s("sku.skuSoldRate")]),sorter:(e,t)=>e.salesRate-t.salesRate,cell:(e,{row:t})=>r.value?"loadingState"==t.salesRate?Na(CO,{size:"20px",style:"color: #fd6012"},null):t.salesRateLocal:Na(wD,{content:s("common.clickLogin")},{default:()=>[Na("span",{style:{cursor:"pointer"},onClick:()=>{NJ()}},[za("***")])]})},{colKey:"stockNum",title:(e,{colIndex:t})=>Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[s("sku.skuQuantity")]),cell:(e,{row:t})=>r.value?t.stockNum??"N/A":Na(wD,{content:s("common.clickLogin")},{default:()=>[Na("span",{style:{cursor:"pointer"},onClick:()=>{NJ()}},[za("***")])]}),sorter:(e,t)=>e.stockNum-t.stockNum},{colKey:"sales",title:(e,{colIndex:t})=>Na(wD,{content:s("sku.skuSalesFromRatingTip")},{default:()=>[Na("span",{style:"font-weight: 500;color:#000;font-family: PingFangSC-Medium;font-size: 14px;"},[s("sku.skuSold")])]}),sorter:(e,t)=>e.sales-t.sales,cell:(e,{row:t})=>r.value?"loadingState"==t.sales?Na(CO,{size:"20px",style:"color: #fd6012"},null):Na("span",{style:"text-decoration: underline;text-decoration-style: dashed;"},[t.sales]):Na(wD,{content:s("common.clickLogin")},{default:()=>[Na("span",{style:{cursor:"pointer"},onClick:()=>{NJ()}},[za("***")])]})}]),k=e=>new Promise(t=>setTimeout(t,e));Er(()=>{ta(()=>o.value,e=>{((e,t=!0)=>{if(!e||!e.length)return;b.value=[];const r=sQ.value[n.site].localUnit;e.forEach(e=>{e.sku=""==e.sku?n.detailPageData.name:e.sku,e.stockNum=e.stock,t&&(e.priceDisplay="\u672a\u77e5"==e.price?s("common.unknown"):sDe(e.price),e.unitPrice=r+e.priceDisplay),e.calSalesRate&&(e.salesRate=e.calSalesRate,e.salesRateLocal=e.calSalesRate.toFixed(2)+"%",e.salesRatePercent=e.salesRateLocal),b.value.push({...e})}),b.value.sort((e,t)=>t.sales-e.sales)})(e.skuDetailData??[])},{deep:!0,immediate:!0}),ta(()=>r.value,e=>{h.value=e;const t=i.value.pluginConfig;if(e){if(C.value)return void(t&&1==t.loadRating?P():2==t.loadRating&&(async()=>{for(;;)try{const e=await oQ("/plugin/opRequest",{type:1});if(1===e?.cancel)break;if(1===e?.result){P();break}await k(2e3)}catch(e){break}})());let e=o.value.skuDetailData.filter(e=>e.sales);if(h.value=!0,e.length>0)return}},{immediate:!0})});const A=()=>{if(!r.value)return void NJ();let e=b.value.map(e=>({skuName:e.sku,price:e.unitPrice,sales:e.sales+"",salesR:e.salesRatePercent,stockNum:e.stockNum}));const t=vqe.book_new(),i=vqe.json_to_sheet(e);var a,o,l;vqe.book_append_sheet(t,i,s("sku.skuSalesDetails")),vqe.sheet_add_aoa(i,[[s("skuExcel.name"),s("skuExcel.price"),s("skuExcel.sold"),s("skuExcel.soldRate"),s("skuExcel.quantity")]],{origin:"A1"}),i["!cols"]=[{wch:50},{wch:20},{wch:20},{wch:20}],a=t,o=`${sQ.value[n.site].label}${s("skuExcel.site")}(${s("info.productId2")}=${n.itemId})${s("sku.skuSalesDetails")}${iDe(iDe.unix((new Date).getTime()/1e3)).format("YYYYMMDDhhmmss")}.xlsx`,(l={type:"file"}).file=o,function(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}(l),oqe(a,l)},C=vo(()=>RJ.getters["user/description"]),T=Et({analyseValue:-1,analyseTaskKey:null,analyseVisible:!1,commentAiAnalysis:{},commentCountFlag:0}),O=Et(null),I=Et(!1);ta(()=>T.value.analyseValue,e=>{100==e&&(T.value.analyseVisible=!1,clearInterval(O.value))},{deep:!0}),ta(()=>l.value,(e,t)=>{t&&e!==t&&(T.value.commentAiAnalysis={},T.value.analyseValue=-1,T.value.commentCountFlag=0,O.value&&(clearInterval(O.value),O.value=null),T.value.analyseVisible=!1,I.value=!1)});const P=async()=>{let e=[];E({maxPages:6,interval:100,callback:`fetchRatings_forSales_${n.itemId}`,onProgress:async(t,n,r,i,a)=>{e=[...e,...n.data.ratings]},onComplete:async()=>{const t={};let r=0;for(const n of e)if(n.product_items)for(const e of n.product_items){const n=e.modelid;let i=t[n];i||(i={sales:0},t[n]=i),t[n].name=e.model_name,t[n].sales=t[n].sales+1,r++}const i=o.value.skuDetailData.map(e=>{const n=t[e.skuId];return n?{...e,sales:n.sales,calSalesRate:n.sales/r*100}:e});o.value={...o.value,skuDetailData:i};const a=i.sort((e,t)=>t.sales-e.sales).slice(0,5).map(e=>e.skuId);a.length>0&&await(async e=>{const t=o.value.originData.item.models;if(t&&0!==t.length)for(const r of e){const e=t.findIndex(e=>e.model_id==r);if(e>=0){const r=t[e],i=r.extinfo.tier_index,a={};if(i&&i.length>0)for(let e=0;e<i.length;e++)a[e.toString()]=i[e];await M({selected_tiers:a,callback:`fetchVariations_${n.itemId}`,onProgress:()=>{},onComplete:e=>{const t=e.stock;S({skuId:r.model_id,stock:t,price:e.product_price.price,price_before_discount:e.product_price.price_before_discount})},onError:()=>{},interval:1e3})}}})(a)},onError:async e=>{}})},E=async({callback:e,onProgress:t,onComplete:r,onError:i,interval:a=1e3,limit:o=50,maxPages:s=60})=>{try{let i=0,l=0,u=[];const c=async t=>{const r=`https://${location.host}/api/v2/item/get_ratings?exclude_filter=1&filter=0&filter_size=0&flag=1&fold_filter=0&itemid=${n.itemId}&limit=${o}&offset=${t*o}&relevant_reviews=false&request_source=2&shopid=${n.shopId}&tag_filter=&type=0&variation_filters=`,i=new CustomEvent("fetchProxy",{detail:{url:r,callback:e}});document.dispatchEvent(i)},d=n=>{const f=n.detail?.res?.data??{},h=n.detail?.url;if(f?.item_rating_summary?.rating_total&&(l=f.item_rating_summary.rating_total),f?.ratings&&(u=[...u,...f.ratings],t)){const e=Math.min(Math.ceil(l/o),s);t(h,n.detail?.res,i+1,e,l)}!f.ratings||i>=s-1||(i+1)*o>=l?(document.removeEventListener(e,d),r&&r()):(i++,setTimeout(()=>c(i),a))};document.addEventListener(e,d),c(0)}catch(l){i&&i(l)}},M=async({selected_tiers:e,callback:t,onProgress:r,onComplete:i,onError:a,interval:o=1e3})=>{try{const r=async()=>{const r={url:`https://${location.host}/api/v4/pdp/cart_panel/select_variation_pc`,callback:t,data:{item_id:parseInt(n.itemId),shop_id:parseInt(n.shopId),quantity:1,tz_offset_in_minutes:480,selected_tiers:e,device_sz_fingerprint:decodeURIComponent(RQ("shopee_webUnique_ccd"))}},i=new CustomEvent("postProxy",{detail:r});document.dispatchEvent(i)},s=e=>{const n=e.detail?.res?.data??{};document.removeEventListener(t,s),n?.stock?i&&i(n):a&&a(e)};document.addEventListener(t,s),await r(),await new Promise(e=>setTimeout(e,o))}catch(s){}},D=()=>{r.value?C.value&&(-1!=T.value.analyseValue&&100!=T.value.analyseValue||(100!=T.value.analyseValue?(T.value.analyseValue=0,T.value.analyseVisible=!0,oQ("/plugin/commentAnalysis",{site:a.value,itemId:n.itemId,shopId:n.shopId,type:1}).then(e=>{null!=e.taskKey?(e.resData||L(e),R(e.taskKey,()=>{T.value.analyseTaskKey=e.taskKey,O.value=setInterval(()=>{R(e.taskKey,null)},8e3)})):T.value.analyseValue=100})):I.value=!0)):NJ()},R=(e,t)=>{oQ("/plugin/queryTask",{taskKey:e,site:a.value}).then(e=>{T.value.analyseValue=e.progress,T.value.commentCountFlag=e.commentCountFlag,T.value.commentAiAnalysis=e.commentAiAnalysis,0==e.status?t&&t():1==e.status&&(T.value.analyseValue=100)})},L=async e=>{const t=e.taskKey;let r=0;E({callback:`fetchRatings_${n.itemId}`,onProgress:async(e,n,i,o,s)=>{const l={url:location.href,api:e,body:n};r=s;const u=await SQ(_m.gzip(JSON.stringify(l)));await oQ("/plugin/commentCollect",{taskKey:t,data:u,site:a.value})},onComplete:async()=>{await oQ("/plugin/commentCollectDone",{taskKey:t,site:a.value,totalComments:r})},onError:async e=>{}})},N=Et({analyseDownloadValue:-1,analyseDownloadVisible:!1}),j=()=>{r.value?U.value>=0&&U.value<100||(N.value.analyseDownloadVisible=!0):NJ()},F=Et({schedule:!0,type:!0,startTime:-1,endTime:-1,downloadCount:100,list:[],ratingsNum:0,ratingTotal:0,isDownloadAll:!1}),z=async()=>{try{const e=e=>{let t=o.value.skuDetailData.find(t=>t.skuId==e);return t?`${sQ.value[a.value].localUnit}${(t.exportPrice/1e5).toFixed(2)}`:""},t=[],r=[];F.value.list.forEach((n,i)=>{const a=(n.commentImages||[]).slice(0,3),o={commentUserName:n.commentUserName,commentName:n.commentName,commentRatingStar:n.commentRatingStar,commentSkuName:n.commentSkuName,commentSkuPrice:n.commentSkuId?e(n.commentSkuId):"",commentImages:n.commentImages.join(","),commentImg1:"",commentImg2:"",commentImg3:"",commentVideos:n.commentVideos,commentTime:iDe(1e3*n.commentTime).format("YYYY-MM-DD hh:mm:ss")};let s=!1;F.value.type?F.value.startTime<=n.ctime&&n.ctime<=F.value.endTime&&(s=!0):(-1==F.value.downloadCount&&(s=!0),100==F.value.downloadCount&&i<=99&&(s=!0),300==F.value.downloadCount&&i<=299&&(s=!0)),s&&(t.push(o),r.push(a))});const i=new zRe.Workbook,l=i.addWorksheet(Y(s("analyse.productReviewAnalysis")),{properties:{defaultRowHeight:65}}),u=[s("reviewAnalysisContent.commentator"),s("reviewAnalysisContent.commentContent"),s("reviewAnalysisContent.starRating"),s("reviewAnalysisContent.variant"),s("reviewAnalysisContent.variantPrice"),s("reviewAnalysisContent.imgUrl"),s("reviewAnalysisContent.reviewImg1"),s("reviewAnalysisContent.reviewImg2"),s("reviewAnalysisContent.reviewImg3"),s("reviewAnalysisContent.videoUrl"),s("reviewAnalysisContent.commentTime")],c=l.getRow(1);u.forEach((e,t)=>{c.getCell(t+1).value=e}),c.commit();[22,240,12,24,24,200,18,18,18,35,24].forEach((e,t)=>{l.getColumn(t+1).width=e});const d=[7,8,9],f=r.flat(),h=await Promise.all(f.map(e=>e?X(e):Promise.resolve(null)));let p=0;const m=r.map(e=>{const t=[];for(let n=0;n<3;n++)e[n]?t.push(h[p++]??null):t.push(null);return t}),v=["commentUserName","commentName","commentRatingStar","commentSkuName","commentSkuPrice","commentImages","commentImg1","commentImg2","commentImg3","commentVideos","commentTime"],g=80;for(let n=0;n<t.length;n++){const e=n+2,r=l.getRow(e),a=t[n];v.forEach((e,t)=>{const n=r.getCell(t+1);n.value=a[e],"commentImages"===e&&(n.alignment={vertical:"top",wrapText:!0})});const o=m[n]||[],s=o.filter(Boolean).length;r.height=s>0?70:65;for(let t=0;t<3;t++){const n=o[t];if(n){const r=i.addImage({base64:n,extension:"jpeg"}),a=d[t]-1;l.addImage(r,{tl:{col:a,row:e-1},ext:{width:g,height:g},editAs:"oneCell"})}}r.commit()}const y=await i.xlsx.writeBuffer(),b=new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),w=URL.createObjectURL(b),x=document.createElement("a");x.href=w,x.download=`${sQ.value[a.value].label}(${s("info.productId2")}=${n.itemId})${s("tools.downloadReviews")}${iDe(iDe.unix((new Date).getTime()/1e3)).format("YYYYMMDDhhmmss")}.xlsx`,x.click(),URL.revokeObjectURL(w),F.value.schedule=!0}catch(e){F.value.schedule=!0}};let B=Date.now();const H=e=>{let t={RatingsUrl:`https://${location.host}/api/v2/item/get_ratings?exclude_filter=1&filter=0&filter_size=0&flag=1&fold_filter=0&itemid=${n.itemId}&limit=50&offset=${50*e}&relevant_reviews=false&request_source=2&shopid=${n.shopId}&tag_filter=&type=0&variation_filters=`,site:a.value,time:B},r=new CustomEvent("productRatings",{detail:t});document.dispatchEvent(r)},W=({reviewSelect:e,reviewTime:t,downloadCount:n})=>{if(F.value.type=e,F.value.startTime=iDe(t[0]).unix(),F.value.endTime=iDe(t[1]).unix(),F.value.downloadCount=n,F.value.list.length&&F.value.isDownloadAll)return z();F.value.schedule=!1,H(F.value.ratingsNum)},U=vo(()=>{if(F.value.schedule)return 100;if(F.value.list.length){let e=0;if(F.value.type||-1==F.value.downloadCount)e=Math.ceil((F.value.list.length+1)/(F.value.ratingTotal>3e3?3e3:F.value.ratingTotal)*100);else{const t=Math.min(F.value.ratingTotal,F.value.downloadCount);e=Math.ceil((F.value.list.length+1)/t*100)}return e>100?100:e}return-1}),X=e=>new Promise(t=>{if(!e)return void t(null);const n=new Image;n.crossOrigin="anonymous",n.onload=()=>{try{const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const r=e.getContext("2d");if(!r)return void t(null);r.drawImage(n,0,0);const i=e.toDataURL("image/jpeg",.8).split(",")[1];t(i)}catch{t(null)}},n.onerror=()=>t(null),n.src=e}),Y=e=>{let t=e.substring(0,31);return t=t.replace(/[:\\/?*[\]]/g,""),t||"Sheet1"};return document.addEventListener(`productRatingsDetail${B}`,function(e){const t=e.detail?.res?.data??{};if(t?.item_rating_summary?.rating_total&&(F.value.ratingTotal=t?.item_rating_summary?.rating_total),!t?.ratings)return z();if(t.ratings.map(e=>{F.value.list.push({commentName:e.comment,commentTime:e.ctime,ctime:e.ctime,commentUserName:e.author_username,commentImages:e?.images?e.images.map(e=>(e=>{if(null==e)return;let t="";return t="mx"===a.value?`https://down-${a.value}.img.susercontent.com/${e}`:`https://s-cf-${a.value}.shopeesz.com/file/${e}`,t=t.replace(/cf.shopee.id/g,"down-id.img.susercontent.com"),t=t.replace(/cf.shopee.my/g,"down-ws-my.img.susercontent.com"),t=t.replace(/cf.shopee.th/g,"down-aka-cn.img.susercontent.com"),t})("string"==typeof e?e:e?.url||e?.image||e)).filter(Boolean):[],commentVideos:e.videos?.[0]?.url??"",commentSkuName:e?.product_items?.[0]?.model_name,commentSkuId:e?.product_items?.[0]?.modelid,commentRatingStar:e?.rating_star??""})}),F.value.ratingsNum+=1,F.value.ratingTotal/50<=F.value.ratingsNum||F.value.ratingsNum>=60)return z(),void(F.value.isDownloadAll=!0);if(!F.value.type&&-1!=F.value.downloadCount&&F.value.downloadCount<=F.value.list.length)return void z();const n=setTimeout(()=>{clearTimeout(n),H(F.value.ratingsNum)},1e3)}),(e,t)=>{const i=wD,o=VO,l=UZ,c=UG,p=PG;return Aa(),Ia(ba,null,[La("div",{class:"skuDetailPage",style:V({height:!r.value||r.value&&C.value||!d.value?"auto":"386px"})},[La("div",cZe,[La("div",dZe,[La("div",fZe,[La("div",{onClick:t[0]||(t[0]=bs(e=>d.value=!d.value,["stop"]))},[d.value?(Aa(),Pa(Lt(Jm),{key:1,style:{"font-size":"26px","margin-right":"12px"}})):(Aa(),Pa(Lt(tv),{key:0,style:{"font-size":"26px","margin-right":"12px"}}))]),La("div",{class:G(["title-text",u("titleText")])},ne(Lt(s)("sku.skuSalesDetails")),3),Na(i,{content:Lt(s)("sku.skuSalesFromRatingWarn")},{default:Wn(()=>[La("span",hZe,[Na(Lt(gv),{size:"14px"})])]),_:1},8,["content"]),La("div",{class:G(["money-text",u("moneyText")]),onClick:t[1]||(t[1]=bs(e=>f.value=!f.value,["stop"]))},[La("span",null,ne(f.value?Lt(s)("info.localUnit"):Lt(s)("currency.currency")),1),La("span",null,[Na(i,{content:f.value?Lt(s)("currency.switchCurrency"):Lt(s)("currency.switchToTheLocalCurrency")},{default:Wn(()=>t[7]||(t[7]=[La("span",{style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"}},[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}})],-1)])),_:1,__:[7]},8,["content"])])],2)]),La("div",pZe,[(!r.value||r.value&&C.value)&&h.value?(Aa(),Ia("div",mZe,[Na(i,{content:0==v.value?Lt(s)("tools. exportToExcel"):Lt(s)("tools.exportToExcel")},{default:Wn(()=>[Na(o,{onClick:bs(A,["stop"]),variant:"outline",style:{"margin-right":"8px","padding-left":"8px","padding-right":"8px"}},{icon:Wn(()=>[Na(Lt(uv))]),default:Wn(()=>[za(" "+ne(Lt(s)("tools.exportToExcel")),1)]),_:1})]),_:1},8,["content"]),Va(' <t-button @click.stop="exportExcel" style="margin-right: 8px">\u5bfc\u51fa</t-button> '),2==v.value?(Aa(),Ia("div",vZe,ne(Lt(s)("common.monitorDesc")),1)):Va("v-if",!0),2!=v.value?(Aa(),Pa(i,{key:1,content:0==v.value?Lt(lLe):Lt(uLe)},{default:Wn(()=>[La("div",{class:G(["common-btn",u("commonBtn")]),onClick:bs(y,["stop"])},ne(m.value[v.value]),3)]),_:1},8,["content"])):(Aa(),Ia("div",{key:2,class:G(["common-btn",u("commonBtn")]),onClick:bs(y,["stop"])},ne(m.value[v.value]),3)),t[8]||(t[8]=za(" \xa0 ",-1)),Na(i,{content:r.value?C.value?Lt(oLe):Lt(sLe):Lt(oLe)},{default:Wn(()=>[La("div",{onClick:D,class:G(["common-btn",u("commonBtn")]),disabled:T.value.analyseValue>=0&&T.value.analyseValue<100},[za(ne(100==T.value.analyseValue?Lt(s)("tools.queryAnalysis"):-1!=T.value.analyseValue?Lt(s)("tools.analysisInProgress"):Lt(s)("tools.analyseValue"))+" ",1),Xn(La("span",{class:"loadnum"},ne(-1!=T.value.analyseValue?T.value.analyseValue+"%":""),513),[[Xo,-1!=T.value.analyseValue&&100!=T.value.analyseValue]])],10,gZe)]),_:1},8,["content"])])):Va("v-if",!0),t[9]||(t[9]=za(" \xa0 ",-1)),!r.value||r.value||r.value&&C.value?(Aa(),Ia("div",yZe,[Na(i,{content:r.value?C.value?Lt(cLe):Lt(dLe):Lt(cLe)},{default:Wn(()=>[La("div",{onClick:j,class:G(["common-btn",u("commonBtn")]),disabled:!F.value.schedule},[za(ne(-1==U.value||F.value.schedule?Lt(s)("tools.downloadReviews"):Lt(s)("tools.downloading"))+" ",1),Xn(La("span",{class:"loadnum"},ne(U.value+"%"),513),[[Xo,-1!=U.value&&!F.value.schedule]]),Va(" <span class=\"loadnum\">{{ scheduleValue != -1 ? scheduleValue + '%' : '' }}</span> ")],10,bZe)]),_:1},8,["content"])])):Va("v-if",!0)]),g.value?(Aa(),Ia("div",wZe,[La("div",{innerHTML:Lt(s)("common.tips",{shop:"<span style=color: #fd6012>Shopee</span>"})},null,8,xZe),Va('        SKU\u6570\u636e\uff1a\u8bbf\u95ee<span style="color: #fd6012">Shopee</span>\u672c\u571f\u524d\u53f0\u67e5\u770b\u3002'),La("a",SZe,ne(Lt(s)("common.helpTips")),1)])):Va("v-if",!0)]),Va(' <div class="productSku" :style="{display: skuListShow ? "" : "none"}"  v-show="skuListShow"> '),Xn(La("div",{class:"productSku",style:V({display:d.value?"":"none"})},[La("div",_Ze,[Na(l,{"row-key":"name",hideSortTips:"",size:"small",data:b.value,onSortChange:x,columns:_,sort:Lt(w),"max-height":"400"},null,8,["data","columns","sort"])]),r.value&&!C.value?(Aa(),Ia("div",kZe,[Na(Lt(gv),{size:"35px",color:"#FD6012"}),La("p",AZe,ne(Lt(s)("common.productSkuTipsName")),1),Na(o,null,{default:Wn(()=>[La("a",{href:Lt(LJ)()+"/price",target:"_blank",style:{color:"#fff"}},ne(Lt(s)("common.upgradePackage")),9,CZe)]),_:1})])):Va("v-if",!0)],4),[[Xo,d.value]])])],4),I.value?(Aa(),Pa(tZe,{key:0,visible:I.value,"onUpdate:visible":t[2]||(t[2]=e=>I.value=e),commentCountFlag:T.value.commentCountFlag,site:Lt(a),shopId:n.shopId,taskKey:T.value.analyseTaskKey,commentAiAnalysis:T.value.commentAiAnalysis},null,8,["visible","commentCountFlag","site","shopId","taskKey","commentAiAnalysis"])):Va("v-if",!0),Na(p,{header:"",visible:T.value.analyseVisible,"onUpdate:visible":t[4]||(t[4]=e=>T.value.analyseVisible=e),onClose:t[5]||(t[5]=e=>T.value.analyseVisible=!1),preventScrollThrough:!1,attach:"body",width:"520px",destroyOnClose:"",footer:!1},{default:Wn(()=>[La("div",TZe,[Na(c,{theme:"circle",percentage:T.value.analyseValue,size:"small"},null,8,["percentage"]),La("div",{class:G(["top",u("analyseTop","filtration")])},ne(Lt(s)("msg.reviewColling")),3),La("div",{class:G(["center",u("analyseCenter","filtration")])},ne(Lt(s)("msg.reviewCollectionTip")),3),La("button",{class:"button",onClick:t[3]||(t[3]=e=>T.value.analyseVisible=!1)},ne(Lt(s)("common.iKnow")),1)])]),_:1},8,["visible"]),N.value.analyseDownloadVisible?(Aa(),Pa(uZe,{key:1,onLoad:W,visible:N.value.analyseDownloadVisible,"onUpdate:visible":t[6]||(t[6]=e=>N.value.analyseDownloadVisible=e)},null,8,["visible"])):Va("v-if",!0)],64)}}}),IZe={key:0,class:"pageDetailLoginTitle"},PZe={class:"title"},EZe={class:"detail-info"},MZe={class:"detail-info-item-title",style:{whiteSpace:"nowrap"}},DZe={class:"detail-info-item-main"},RZe={class:"item-main mainColor"},LZe={class:"detail-info-item-title",style:{whiteSpace:"nowrap"}},NZe={class:"detail-info-item-main mainColor"},jZe={key:0,class:"sellerSourceTips",style:{whiteSpace:"nowrap"}},FZe={class:"detail-info-item-title",style:{whiteSpace:"nowrap"}},zZe={class:"detail-info-item-main mainColor"},BZe={class:"detail-info-item-title"},VZe={class:"detail-info-item-main"},HZe={key:0,class:"tem-main mainColor"},WZe={class:"detail-info-item-title",style:{whiteSpace:"nowrap"}},UZe={class:"detail-info-item-main"},XZe={class:"item-main",style:{whiteSpace:"nowrap"}},GZe={class:"detail-info-item-title"},YZe={class:"detail-info-item-main"},KZe={key:1,class:"item-main"},qZe={class:"detail-info-item-title"},ZZe={class:"detail-info-item-main"},JZe={key:1,class:"item-main"},QZe={class:"detail-info-item-title"},$Ze={class:"detail-info-item-main"},eJe={key:1},tJe={class:"item-main"},nJe={class:"detail-info-item-title"},rJe={class:"detail-info-item-main"},iJe={key:1,class:"item-main"},aJe={class:"item-icon"},oJe={class:"detail-info-item-title"},sJe={class:"detail-info-item-main"},lJe={key:1,class:"item-main"},uJe={class:"detail-info-item-title"},cJe={class:"detail-info-item-main"},dJe={key:1,class:"item-main"},fJe={class:"item-icon"},hJe={class:"detail-info-item-title"},pJe={class:"detail-info-item-main"},mJe={key:1,class:"item-main"},vJe={class:"item-icon"},gJe=yr({__name:"productDetailPage",setup(e){const{t:t,locale:n}=Zd(),r=(e,n="productDetailPage",r=null)=>t(`style.${n}.${e}`,r),i=Et(!0),a=Et(""),o=Et(""),s=Et(null);let l=Et(yi("site")),u=Et(yi("isVsku"));const c=Et(yi("productShopeeList"));a.value=c.value.itemid,o.value=c.value.shopid;const d=Et(!0),f=Et(!0),h=vo(()=>RJ.getters["user/isLogin"]),p=vo(()=>RJ.getters["user/description"]),m=Et(yi("exChangeRate")),v=yi("detailData"),g=Et(!1),y=()=>{h.value?(oQ("/user/behavior",{endpoint:"plugin",path:"picDownload"}),g.value=!0):NJ()},b=vo(()=>v.leafCatId?iJ(v.leafCatId,t("productDetailPage.cateNameType")):null),w=vo(()=>v.leafCatId&&"-"!=v.leafCatId?iJ(v.leafCatId,t("productDetailPage.cateNamePath")):null),x=vo(()=>{if(!v.price||"-"==v.price)return v.price;const e=l.value,t=m.value;return Number((v.price/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2))}),S=vo(()=>{if(!v.price_min||"-"==v.sales)return v.sales;const e=l.value,t=m.value;return(v.price_min/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2)}),_=vo(()=>{if(!v.price_max||"-"==v.sales)return v.sales;const e=l.value,t=m.value;return(v.price_max/t[e]*(t["zh"===n.value?"cn":"us"]??1)).toFixed(2)}),k=vo(()=>`${v.sales}`),A=vo(()=>`${v.sales30Day}`),C=vo(()=>v.salesAmount30DayLocal&&"-"!=v.salesAmount30DayLocal?v.salesAmount30DayLocal:isNaN(v.salesAmount30Day)||"-"==v.salesAmount30Day?v.salesAmount30Day:`${sQ.value[l.value].localUnit}${v.salesAmount30Day}`),T=vo(()=>{if(isNaN(v.salesAmount30DayUnit)||"-"==v.salesAmount30DayUnit)return v.salesAmount30DayUnit;const e=l.value,r=m.value;return`${"zh"===n.value?t("common.rmb"):t("common.usd")}${(v.salesAmount30Day/r[e]*(r["zh"===n.value?"cn":"us"]??1)).toFixed(2)}`}),O=vo(()=>v.salesAmountLocal&&"-"!=v.salesAmountLocal?v.salesAmountLocal:isNaN(v.salesAmount)||"-"==v.salesAmount?v.salesAmount:`${sQ.value[l.value].localUnit}${v.salesAmount}`),I=vo(()=>{if(isNaN(v.salesAmountUnit)||"-"==v.salesAmountUnit)return v.salesAmountUnit;const e=l.value,r=m.value;return`${"zh"===n.value?t("common.rmb"):t("common.usd")}${(v.salesAmount/r[e]*(r["zh"===n.value?"cn":"us"]??1)).toFixed(2)}`}),P={"\u8de8\u5883":"Cross-border","\u672c\u571f":"Local","Cross-border":"\u8de8\u5883",Local:"\u672c\u571f","\u65e0":"None",None:"\u65e0"},E=e=>P[e]||e,M=Et(v.sellerSourceTips),D=Et(v.brand);ta(()=>n.value,()=>{M.value=E(M.value);if(t("common.nothing")!==D.value){const e=E(D.value);e&&e!=D.value&&(D.value=e)}setTimeout(()=>{const e=document.querySelector(".shopdoraPirceList");e&&e.remove(),Z()},0)});const R=()=>{h.value?null!=v?.cateId&&(oQ("/user/behavior",{endpoint:"plugin",path:"detailFlowAnalysis"}),window.open(`https://www.shopdora.com/my/flow/words?itemid=${a.value}&site=${l.value}`,"_blank")):NJ()},L=()=>{h.value?null!=v?.leafCatId&&window.open(`https://www.shopdora.com/my/analysis/title?cateid=${v?.leafCatId}&title=${v.name}&site=${l.value}`.replace(/#/g,"%23"),"_blank"):NJ()},N=()=>{h.value?p.value&&null!=v?.cateId&&window.open(`https://www.shopdora.com/my/product/analysis?site=${l.value}&itemId=${a.value}`):NJ()},j=()=>{v.monitor=!0,v.monitorCreateTime=iDe().format("YYYY-MM-DD")},F=()=>{h.value?null!=v?.leafCatId&&(oQ("/user/behavior",{endpoint:"plugin",path:"detailMarketReport"}),window.open(`https://www.shopdora.com/my/category/history?cateId=${v?.leafCatId}&site=${l.value}&yearMonth=30&shopSource=0`,"_blank")):NJ()},z=Et(!1),B=()=>{h.value?p.value&&null!=v?.cateId&&(z.value=!0):NJ()},H=Et(!1),W=()=>{h.value?(oQ("/user/behavior",{endpoint:"plugin",path:"calculator"}),H.value=!0):NJ()},U=Et(!1);gi("imagesSupply",U);const X=()=>{h.value?(oQ("/user/behavior",{endpoint:"plugin",path:"figureSources"}),U.value=!0):NJ()},Y=Et({sg:!0,id:!0,th:!0,mx:!0,my:!0,tw:!0,ph:!0,br:!0,vn:!0}),K=vo(()=>Y.value[l.value]),q=()=>{if(!h.value)return void NJ();if(!Y.value[l.value])return;let e=location.hostname.indexOf("xiapibuy")>-1?1:0;const t=`https://${sQ.value[l.value].allDomain[e]}/find_similar_products??catid=${v?.cateId??"000001"}&itemid=${a.value}&shopid=${o.value}`;window.open(t)},Z=()=>{let e="";const r=document.documentElement;const i=getComputedStyle(r).fontFamily.split(",").map(e=>e.trim().replace(/^['"]|['"]$/g,"")).filter(e=>"roboto"!==e.toLowerCase()),a="zh"===n.value?t("common.rmb"):t("common.usd");e=v.price_min_cny&&v.price_max_cny&&v.price_min_cny!=v.price_max_cny?`<span  style="display: inline-block; color: #2464f8; font-size: 30px;margin-left:8px; font-family: ${i};"> ${a} ${S.value} - ${_.value} </span>`:`<span  style="display: inline-block; color: #2464f8; font-size: 30px;margin-left:8px; font-family: ${i};"> ${a} ${x.value} </span>`;let o=document.createElement("span");o.setAttribute("class","shopdoraPirceList"),o.innerHTML=e;let l=s.value.parentNode.parentNode?.querySelector("div")?.querySelector(".items-center")?.querySelector(".items-center");l||(l=s.value.parentNode.parentNode?.querySelector("section")),l&&(l.style.flexWrap="wrap",l.style.height="fit-content",l.append(o))};return Er(()=>{(()=>{let e=document.querySelector(".page-product .container section.card h1");if(e&&!document.querySelector("#shopdora_shop_title_copy")){let n=e?.innerText;e.parentNode&&(e.parentNode.style.display="inline"),e.innerHTML=`<span>${n}<button id='shopdora_shop_title_copy' style="padding: 0 6px;line-height: 20px;height: 20px;font-size: 12px;margin-left: 8px;display: inline-block;color:#fff;cursor: pointer;border: 0;;border-radius: 2px;background: #fd6012;">${t("common.clickCopy")}</button></span>`,document.querySelector("#shopdora_shop_title_copy").addEventListener("click",()=>{fJ(n)})}c.value?.description&&setTimeout(()=>{let e=document?.querySelectorAll(".page-product>.container .product-detail h2")[1];if(e&&!document.querySelector("#shopdora_shop_description_copy")){let n=e?.innerText;e.innerHTML=`${n}<button id='shopdora_shop_description_copy' style="padding: 0 6px;font-size: 14px;height: 22px;margin-left: 8px;display: inline-block;color:#fff;cursor: pointer;border: 0;;border-radius: 2px;background: #fd6012;">${t("common.clickCopy")}</button>`,document.querySelector("#shopdora_shop_description_copy").addEventListener("click",()=>{fJ(c.value.description)})}},3e3)})();const e=document.querySelector(".shopdoraPirceList");e&&e.remove(),Z()}),(e,x)=>{const S=wD,_=VO,P=JZ;return Aa(),Ia(ba,null,[h.value?Va("v-if",!0):(Aa(),Ia("div",IZe,[La("div",PZe,ne(Lt(t)("common.warnTitle")),1),La("div",{class:"button",style:V({width:r("pageDetailLoginTitleButton")}),onClick:x[0]||(x[0]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},ne(Lt(t)("common.loginNow")),5)])),La("div",{id:"shopdora-shopee-product-detail",ref_key:"shopdoraListDetail",ref:s},[Va(' <button @click="getProductRatingsDetail">11111111111</button> '),La("div",{class:G(["detail-top",r("detailTop")])},[La("div",{class:G(["shopdoraLogo",r("shopdoraLogo")])},[La("div",{class:G(["logo",r("logo")])},[x[21]||(x[21]=La("div",{class:"img"},[La("img",{src:km,alt:""})],-1)),La("div",{class:G(["logoText",r("logoText")])},ne(Lt(t)("common.textCrx")),3)],2),La("div",{class:G(["goShopdora",r("goShopdora")])},[Na(S,{class:G(r("customPopup")),content:Lt(t)("common.textCrx")},{default:Wn(()=>[Na(Lt(Av),{onClick:x[1]||(x[1]=e=>Lt(jJ)())})]),_:1},8,["class","content"])],2)],2),x[22]||(x[22]=La("div",null,null,-1)),La("div",{class:G(["detail-top-button",r("detailTopButton")])},["zh"===Lt(n)||"zh_tw"===Lt(n)?(Aa(),Pa(S,{key:0,class:G(r("customPopup")),content:Lt(t)("msg.downloadImgAndVideo")},{default:Wn(()=>[Na(_,{onClick:y},{default:Wn(()=>[za(ne(Lt(t)("tools.downloadImg")),1)]),_:1})]),_:1},8,["class","content"])):Va("v-if",!0)],2)],2),La("div",EZe,[La("div",{class:G(["detail-info-list",r("detailInfoList")])},[Va('        <div class="detail-info-items" :class="styleClass(\'detailInfoItems\')">'),La("div",{class:G(["detail-info-item",r("detailInfoItem")])},[La("div",MZe,ne(Lt(t)("info.productId"))+":",1),La("div",DZe,[La("span",RZe,ne(Lt(v).itemId),1),Na(S,{disabled:i.value,content:Lt(t)("common.clickCopy")},{default:Wn(()=>[La("span",{class:"item-icon",onClick:x[2]||(x[2]=e=>Lt(fJ)(Lt(v).itemId))},x[23]||(x[23]=[La("img",{src:Q$,style:{width:"14px",height:"14px",display:"inline-block","margin-bottom":"-3px"}},null,-1)]))]),_:1},8,["disabled","content"])])],2),La("div",{class:G(["detail-info-item itemTwo",r("detailInfoItem")])},[La("div",LZe,ne(Lt(t)("info.seller"))+":",1),La("div",NZe,[Na(S,{disabled:i.value,content:Lt(t)("msg.searchShopTip")},{default:Wn(()=>[La("span",{onClick:x[3]||(x[3]=e=>Lt(lJ)(Lt(v).nameLink)),class:"item-main cursor",style:{display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical","max-width":"130px","word-break":"break-all",overflow:"hidden"}},ne(Lt(v).shopName??Lt(t)("common.notInclude")),1)]),_:1},8,["disabled","content"]),Lt(v).sellerSourceTips?(Aa(),Ia("span",jZe,ne(M.value),1)):Va("v-if",!0)])],2),Va("        </div>"),La("div",{class:G(["detail-info-item",r("detailInfoItem")])},[La("div",FZe,ne(Lt(t)("info.brand"))+":",1),La("div",zZe,[Na(S,{disabled:i.value,content:Lt(t)("msg.searchTip")},{default:Wn(()=>[La("span",{class:"item-main cursor",style:{whiteSpace:"nowrap"},onClick:x[4]||(x[4]=e=>Lt(uJ)(Lt(v).brand))},ne(D.value),1)]),_:1},8,["disabled","content"])])],2)],2),La("div",{class:G(["detail-info-list",r("detailInfoList")]),style:{"margin-top":"8px"}},[La("div",{class:G(["detail-info-item",r("detailInfoItem")]),style:{width:"100%"}},[La("div",BZe,ne(Lt(t)("info.cate"))+":",1),La("div",VZe,[Na(S,{disabled:i.value,content:Lt(t)("msg.clickCateSearchProduct")},{default:Wn(()=>[La("span",{class:"item-main mainColor cursor",onClick:x[5]||(x[5]=e=>Lt(cJ)(w.value)),style:{display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical","max-width":"270px","word-break":"break-all",overflow:"hidden"}},ne(b.value??Lt(t)("common.notInclude")),1)]),_:1},8,["disabled","content"]),Lt(v).salestMRank?(Aa(),Ia("span",HZe,ne(`\uff08${Lt(t)("info.monthlySalesSort")}${Lt(v).salestMRank})`),1)):Va("v-if",!0),Va('            <t-popup :disabled="disablePopup" :content="productList.cateChPath" v-if="productList.cateChPath">'),Va('              <span class="item-icon"><InfoCircleIcon size="14px" /></span>'),Va("            </t-popup>")])],2),La("div",{class:G(["detail-info-item",r("detailInfoItem")]),style:{width:"100%"}},[La("div",WZe,ne(Lt(t)("info.time"))+":",1),La("div",UZe,[La("span",XZe,ne(`${Lt(v).ctime??Lt(t)("common.notInclude")}(${Lt(v).ctimeDay??"N/A"}${Lt(t)("common.day")})`),1)])],2)],2),x[28]||(x[28]=La("div",{class:"shopdora-hr"},null,-1)),La("div",{class:G(["detail-info-list",r("detailInfoList")])},[La("div",{class:G(["detail-info-item",[r("detailInfoItem"),r("maxWidth")]])},[La("div",GZe,ne(Lt(t)("info.soldD1AndD7"))+":",1),La("div",YZe,[h.value?(Aa(),Ia("span",KZe,ne(`${Lt(v).sales1Day??Lt(t)("common.notInclude")}/${Lt(v).sales7Day??Lt(t)("common.notInclude")}`),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[6]||(x[6]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"]))])],2),La("div",{class:G(["detail-info-item",[r("detailInfoItem"),r("maxWidth")]])},[La("div",qZe,ne(Lt(t)("info.soldD30Rate"))+":",1),La("div",ZZe,[h.value?(Aa(),Ia("span",JZe,ne(Lt(v).salesGrowthRateM??Lt(t)("common.notInclude")),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[7]||(x[7]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"]))])],2)],2),La("div",{class:G(["detail-info-list",r("detailInfoList")]),style:{marginTop:"8px"}},[La("div",{class:G(["detail-info-item itemTwo",[r("detailInfoItem"),r("maxWidth")]])},[La("div",QZe,ne(Lt(t)("info.soldD30"))+":",1),La("div",$Ze,[h.value?(Aa(),Ia("div",eJe,[La("span",tJe,ne(A.value??Lt(t)("common.notInclude")),1),Na(S,{disabled:i.value,content:null==Lt(v).cateId?Lt(URe):h.value?p.value?Lt(iLe):Lt(aLe):Lt(iLe)},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:B},x[24]||(x[24]=[La("img",{src:xRe,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])])):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[8]||(x[8]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"]))])],2),La("div",{class:G(["detail-info-item MaxWidth",[r("detailInfoItem"),r("maxWidth")]]),style:{whiteSpace:"nowrap",width:"100%",minWidth:"33%"}},[La("div",nJe,ne(Lt(t)("info.salesD30"))+":",1),La("div",rJe,[h.value?(Aa(),Ia("span",iJe,ne(d.value?C.value??Lt(t)("common.notInclude"):T.value??Lt(t)("common.notInclude")),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[9]||(x[9]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"])),h.value?(Aa(),Ia(ba,{key:2},[Na(S,{disabled:i.value,content:`${Lt(t)("common.clickSwitch")} ${d.value?Lt(t)("currency.currency"):Lt(t)("info.localUnit")}`},{default:Wn(()=>[La("span",aJe,[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:x[10]||(x[10]=e=>d.value=!d.value)},x[25]||(x[25]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))])]),_:1},8,["disabled","content"]),Na(S,{disabled:i.value,content:null==Lt(v).cateId?Lt(URe):h.value?p.value?Lt(iLe):Lt(aLe):Lt(iLe)},{default:Wn(()=>[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:B},x[26]||(x[26]=[La("img",{src:xRe,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))]),_:1},8,["disabled","content"])],64)):Va("v-if",!0)])],2)],2),La("div",{class:G(["detail-info-list",r("detailInfoList")]),style:{"margin-top":"8px"}},[Va('        <div class="detail-info-items" :class="styleClass(\'detailInfoItems\')">'),La("div",{class:G(["detail-info-item itemTwo",[r("detailInfoItem"),r("maxWidth")]])},[La("div",oJe,ne(Lt(t)("info.totalSold"))+":",1),La("div",sJe,[h.value?(Aa(),Ia("span",lJe,ne(k.value??Lt(t)("common.notInclude")),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[11]||(x[11]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"]))])],2),La("div",{class:G(["detail-info-item MaxWidth",[r("detailInfoItem"),r("maxWidth")]])},[La("div",uJe,ne(Lt(t)("info.totalSales"))+":",1),La("div",cJe,[h.value?(Aa(),Ia("span",dJe,ne(f.value?O.value??Lt(t)("common.notInclude"):I.value??Lt(t)("common.notInclude")),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[12]||(x[12]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"])),h.value&&Lt(v).salesAmount?(Aa(),Pa(S,{key:2,disabled:i.value,content:`${Lt(t)("common.clickSwitch")} ${f.value?Lt(t)("currency.currency"):Lt(t)("info.localUnit")}`},{default:Wn(()=>[La("span",fJe,[La("span",{class:"shopdora-list-item-info-item-main-icon",style:{"margin-bottom":"0",opacity:"0.7","margin-left":"5px",cursor:"pointer",width:"14px",height:"14px",display:"inline-block"},onClick:x[13]||(x[13]=e=>f.value=!f.value)},x[27]||(x[27]=[La("img",{src:LQ,style:{width:"14px",height:"14px",display:"inline-block"}},null,-1)]))])]),_:1},8,["disabled","content"])):Va("v-if",!0)])],2)],2),La("div",{class:G(["detail-info-list",r("detailInfoList")]),style:{"margin-top":"8px"}},[Va('        <div class="detail-info-items" :class="styleClass(\'detailInfoItems\')">'),La("div",{class:G(["detail-info-item MaxWidth",[r("detailInfoItem"),r("maxWidth")]])},[La("div",hJe,ne(Lt(t)("sku.quantity"))+":",1),La("div",pJe,[h.value?(Aa(),Ia("span",mJe,ne(Lt(v).stock??"N/A"),1)):(Aa(),Pa(S,{key:0,content:Lt(t)("common.clickLogin")},{default:Wn(()=>[La("span",{class:"item-main cursor",onClick:x[14]||(x[14]=(...e)=>Lt(NJ)&&Lt(NJ)(...e))},"***")]),_:1},8,["content"])),h.value?(Aa(),Pa(S,{key:2,content:Lt(t)("msg.reloadPage")},{default:Wn(()=>[La("span",vJe,[Na(Lt(gv),{size:"14px"})])]),_:1},8,["content"])):Va("v-if",!0)])],2),Va("        </div>")],2),Va("      <div>"),Va('        <div class="detail-info-list" :style="{ flexWrap: \'wrap\'}" :class="styleClass(\'detailInfoList\')">'),Va('          &lt;!&ndash;        <div class="detail-info-items" :class="styleClass(\'detailInfoItems\')">&ndash;&gt;'),Va("          <div class=\"detail-info-item\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("            <div class=\"detail-info-item-title\">{{ t('info.soldD1AndD7') }}:</div>"),Va('            <div class="detail-info-item-main">'),Va('              <template v-if="!shopdoraToken">'),Va("                <t-popup :content=\"t('common.clickLogin')\">"),Va('                  <span class="item-main cursor" @click="login">***</span>'),Va("                </t-popup>"),Va("              </template>"),Va('              <span class="item-main" v-else>{{'),Va("                  `${productList.sales1Day ?? t('common.notInclude')}/${productList.sales7Day ?? t('common.notInclude')}`"),Va("                }}</span>"),Va("            </div>"),Va("          </div>"),Va("          <div class=\"detail-info-item itemTwo\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("            <div class=\"detail-info-item-title\">{{ t('info.soldD30') }}:</div>"),Va('            <div class="detail-info-item-main">'),Va('              <template v-if="!shopdoraToken">'),Va("                <t-popup :content=\"t('common.clickLogin')\">"),Va('                  <span class="item-main cursor" @click="login">***</span>'),Va("                </t-popup>"),Va("              </template>"),Va("              <div v-else>"),Va("                <span class=\"item-main\">{{ sales30Day ?? t('common.notInclude') }}</span>"),Va('                <t-popup :disabled="disablePopup"'),Va('                         :content="'),Va("                    productList.cateId == null"),Va("                      ? noInclude"),Va("                      : !shopdoraToken"),Va("                      ? productSales1"),Va("                      : !description"),Va("                      ? productSales2"),Va("                      : productSales1"),Va('                  "'),Va("                >"),Va("                  <span"),Va('                    class="shopdora-list-item-info-item-main-icon"'),Va('                    style="'),Va("                      margin-bottom: 0;"),Va("                      opacity: 0.7;"),Va("                      margin-left: 5px;"),Va("                      cursor: pointer;"),Va("                      width: 14px;"),Va("                      height: 14px;"),Va("                      display: inline-block;"),Va('                    "'),Va('                    @click="produtSales"'),Va('                  ><img src="@/public/assets/my/chart.png" style="width: 14px; height: 14px; display: inline-block"'),Va("                  /></span>"),Va("                </t-popup>"),Va("              </div>"),Va("            </div>"),Va("          </div>"),Va("          &lt;!&ndash;        </div>&ndash;&gt;"),Va("          <div class=\"detail-info-item\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("            <div class=\"detail-info-item-title\">{{ t('info.soldD30Rate') }}:</div>"),Va('            <div class="detail-info-item-main">'),Va('              <template v-if="!shopdoraToken">'),Va("                <t-popup :content=\"t('common.clickLogin')\">"),Va('                  <span class="item-main cursor" @click="login">***</span>'),Va("                </t-popup>"),Va("              </template>"),Va("              <span class=\"item-main\" v-else>{{ productList.salesGrowthRateM ?? t('common.notInclude') }}</span>"),Va("            </div>"),Va("          </div>"),Va("                  "),Va('            &lt;!&ndash;        <div class="detail-info-items" :class="styleClass(\'detailInfoItems\')">&ndash;&gt;'),Va("            <div class=\"detail-info-item MaxWidth\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("              <div class=\"detail-info-item-title\">{{ t('info.salesD30') }}:</div>"),Va('              <div class="detail-info-item-main">'),Va('                <template v-if="!shopdoraToken">'),Va("                  <t-popup :content=\"t('common.clickLogin')\">"),Va('                    <span class="item-main cursor" @click="login">***</span>'),Va("                  </t-popup>"),Va("                </template>"),Va('                <span class="item-main" v-else>{{'),Va("                    salesAmount30DayUnitType"),Va("                      ? salesAmount30Day ?? t('common.notInclude')"),Va("                      : salesAmount30DayUnit ?? t('common.notInclude')"),Va("                  }}</span>"),Va('                <template v-if="shopdoraToken">'),Va('                  <t-popup :disabled="disablePopup"'),Va("                           :content=\"`${t('common.clickSwitch')} ${"),Va("                    salesAmount30DayUnitType ? t('currency.currency') : t('info.localUnit')"),Va('                  }`"'),Va("                  >"),Va('                  <span class="item-icon">'),Va("                    <span"),Va('                      class="shopdora-list-item-info-item-main-icon"'),Va('                      style="'),Va("                        margin-bottom: 0;"),Va("                        opacity: 0.7;"),Va("                        margin-left: 5px;"),Va("                        cursor: pointer;"),Va("                        width: 14px;"),Va("                        height: 14px;"),Va("                        display: inline-block;"),Va('                      "'),Va('                      @click="salesAmount30DayUnitType = !salesAmount30DayUnitType"'),Va('                    ><img src="@/public/assets/my/swap.png" style="width: 14px; height: 14px; display: inline-block"'),Va("                    /></span>"),Va("                  </span>"),Va("                  </t-popup>"),Va('                  <t-popup :disabled="disablePopup"'),Va('                           :content="'),Va("                    productList.cateId == null"),Va("                      ? noInclude"),Va("                      : !shopdoraToken"),Va("                      ? productSales1"),Va("                      : !description"),Va("                      ? productSales2"),Va("                      : productSales1"),Va('                  "'),Va("                  >"),Va("                  <span"),Va('                    class="shopdora-list-item-info-item-main-icon"'),Va('                    style="'),Va("                      margin-bottom: 0;"),Va("                      opacity: 0.7;"),Va("                      margin-left: 5px;"),Va("                      cursor: pointer;"),Va("                      width: 14px;"),Va("                      height: 14px;"),Va("                      display: inline-block;"),Va('                    "'),Va('                    @click="produtSales"'),Va('                  ><img src="@/public/assets/my/chart.png" style="width: 14px; height: 14px; display: inline-block"'),Va("                  /></span>"),Va("                  </t-popup>"),Va("                </template>"),Va("              </div>"),Va("            </div>"),Va("            <div class=\"detail-info-item itemTwo\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("              <div class=\"detail-info-item-title\">{{ t('info.totalSold') }}:</div>"),Va('              <div class="detail-info-item-main">'),Va('                <template v-if="!shopdoraToken">'),Va("                  <t-popup :content=\"t('common.clickLogin')\">"),Va('                    <span class="item-main cursor" @click="login">***</span>'),Va("                  </t-popup>"),Va("                </template>"),Va("                <span class=\"item-main\" v-else>{{ sales ?? t('common.notInclude') }}</span>"),Va("              </div>"),Va("            </div>"),Va("            &lt;!&ndash;        </div>&ndash;&gt;"),Va("            <div class=\"detail-info-item MaxWidth\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("              <div class=\"detail-info-item-title\">{{ t('info.totalSales') }}:</div>"),Va('              <div class="detail-info-item-main">'),Va('                <template v-if="!shopdoraToken">'),Va("                  <t-popup :content=\"t('common.clickLogin')\">"),Va('                    <span class="item-main cursor" @click="login">***</span>'),Va("                  </t-popup>"),Va("                </template>"),Va('                <span class="item-main" v-else>{{'),Va("                    salesAmountUnitType"),Va("                      ? salesAmount ?? t('common.notInclude')"),Va("                      : salesAmountUnit ?? t('common.notInclude')"),Va("                  }}</span>"),Va('                <template v-if="shopdoraToken && productList.salesAmount">'),Va('                  <t-popup :disabled="disablePopup"'),Va("                           :content=\"`${t('common.clickSwitch')} ${"),Va("                  salesAmountUnitType ? t('currency.currency') : t('info.localUnit')"),Va('                }`"'),Va("                  >"),Va('                <span class="item-icon">'),Va("                  <span"),Va('                    class="shopdora-list-item-info-item-main-icon"'),Va('                    style="'),Va("                      margin-bottom: 0;"),Va("                      opacity: 0.7;"),Va("                      margin-left: 5px;"),Va("                      cursor: pointer;"),Va("                      width: 14px;"),Va("                      height: 14px;"),Va("                      display: inline-block;"),Va('                    "'),Va('                    @click="salesAmountUnitType = !salesAmountUnitType"'),Va('                  ><img src="@/public/assets/my/swap.png" style="width: 14px; height: 14px; display: inline-block"'),Va("                  /></span>"),Va("                </span>"),Va("                  </t-popup>"),Va("                </template>"),Va("              </div>"),Va("          </div>"),Va("          <div class=\"detail-info-item MaxWidth\" :style=\"{ display: 'flex', whiteSpace: 'nowrap', minWidth: '50%',  maxWidth: '50%' }\" :class=\"[styleClass('detailInfoItem'), styleClass('maxWidth')]\">"),Va("            <div class=\"detail-info-item-title\">{{ t('sku.quantity') }}:</div>"),Va('            <div class="detail-info-item-main">'),Va('              <template v-if="!shopdoraToken">'),Va("                <t-popup :content=\"t('common.clickLogin')\">"),Va('                  <span class="item-main cursor" @click="login">***</span>'),Va("                </t-popup>"),Va("              </template>"),Va("              <span class=\"item-main\" v-else>{{ productList.stock ?? 'N/A' }}</span>"),Va('              <template v-if="shopdoraToken">'),Va("                <t-popup :content=\"t('msg.reloadPage')\">"),Va('                  <span class="item-icon"><InfoCircleIcon size="14px" /></span>'),Va("                </t-popup>"),Va("              </template>"),Va("            </div>"),Va("          </div>"),Va("        </div>"),Va("      </div>")]),La("div",{class:G(["detail-button",r("detailButton")])},["zh"!==Lt(n)&&"zh_tw"!==Lt(n)?(Aa(),Pa(S,{key:0,class:G(r("customPopup")),content:Lt(t)("msg.downloadImgAndVideo")},{default:Wn(()=>[Na(_,{onClick:y},{default:Wn(()=>[za(ne(Lt(t)("tools.downloadImg")),1)]),_:1})]),_:1},8,["class","content"])):Va("v-if",!0),Na(S,{class:G(r("customPopup")),content:null==Lt(v)?.cateId?Lt(URe):p.value?Lt(eLe):Lt(tLe)},{default:Wn(()=>[Na(_,{onClick:R,disabled:null==Lt(v).cateId},{default:Wn(()=>[za(ne(Lt(t)("analyse.trafficAnalysis")),1)]),_:1},8,["disabled"])]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:Lt(t)("msg.analysisTitleTip")},{default:Wn(()=>[Na(_,{onClick:L,disabled:null==Lt(v)?.leafCatId},{default:Wn(()=>[za(ne(Lt(t)("analyse.titleAnalysis")),1)]),_:1},8,["disabled"])]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:null==Lt(v)?.leafCatId?Lt(URe):h.value?p.value?Lt(nLe):Lt(rLe):Lt(nLe)},{default:Wn(()=>[Na(_,{onClick:N,disabled:null==Lt(v).cateId},{default:Wn(()=>[za(ne(Lt(t)("analyse.comprehensiveAnalysis")),1)]),_:1},8,["disabled"])]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:null==Lt(v)?.leafCatId?Lt(URe):p.value?Lt(ZRe):Lt(JRe)},{default:Wn(()=>[Na(_,{onClick:F,disabled:null==Lt(v)?.leafCatId},{default:Wn(()=>[za(ne(Lt(t)("sku.marketTrend")),1)]),_:1},8,["disabled"])]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:Lt(qRe)},{default:Wn(()=>[Na(_,{onClick:W},{default:Wn(()=>[za(ne(Lt(t)("tools.profitCalculator")),1)]),_:1})]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:Lt(XRe)},{default:Wn(()=>[Na(_,{style:{backgroundColor:"#2464f8",borderColor:"#2464f8"},onClick:X},{default:Wn(()=>[za(ne(Lt(t)("tools.imagesSupplyPage")),1)]),_:1})]),_:1},8,["class","content"]),Na(S,{class:G(r("customPopup")),content:K.value?p.value?Lt(GRe):Lt(YRe):Lt(KRe)(Y.value)},{default:Wn(()=>[Na(_,{disabled:!K.value,onClick:q},{default:Wn(()=>[za(ne(Lt(t)("analyse.hijackingAnalysis")),1)]),_:1},8,["disabled"])]),_:1},8,["class","content"])],2)],512),c.value&&!Lt(u)?(Aa(),Pa(OZe,{key:1,description:p.value,monitor:Lt(v).monitor,site:Lt(l),"detail-page-data":Lt(v),"exchange-rate":m.value,"shop-id":o.value,"item-id":a.value,onChangeHistory:N,onChangeMonitor:j},null,8,["description","monitor","site","detail-page-data","exchange-rate","shop-id","item-id"])):Va("v-if",!0),g.value?(Aa(),Pa(NBe,{key:2,onHvisible:x[15]||(x[15]=e=>g.value=!1),dialogVisible:g.value,productShopeeList:c.value,itemid:a.value,site:Lt(l)},null,8,["dialogVisible","productShopeeList","itemid","site"])):Va("v-if",!0),Na(P,{"t-drawer":"",class:"history-trend-drawer",preventScrollThrough:!1,visible:H.value,"onUpdate:visible":x[16]||(x[16]=e=>H.value=e),destroyOnClose:"",footer:!1,closeBtn:!0,size:"600px",onClose:x[17]||(x[17]=e=>H.value=!1),placement:"bottom"},{default:Wn(()=>[H.value?(Aa(),Pa(nVe,{key:0,site:Lt(l),productList:Lt(v)},null,8,["site","productList"])):Va("v-if",!0)]),_:1},8,["visible"]),U.value?(Aa(),Pa(P,{key:3,"t-drawer":"",class:"history-trend-drawer-ImgSupply",visible:U.value,"onUpdate:visible":x[18]||(x[18]=e=>U.value=e),preventScrollThrough:!1,footer:!1,closeBtn:!0,destroyOnClose:"",size:"95vh",onClose:x[19]||(x[19]=e=>U.value=!1),placement:"bottom"},{default:Wn(()=>[Na(j$,{itemid:a.value,site:Lt(l),productShopeeList:c.value},null,8,["itemid","site","productShopeeList"])]),_:1},8,["visible"])):Va("v-if",!0),z.value?(Aa(),Pa(VRe,{key:4,visible:z.value,"onUpdate:visible":x[20]||(x[20]=e=>z.value=e),params:{site:Lt(l),itemId:a.value}},null,8,["visible","params"])):Va("v-if",!0)],64)}}}),yJe=document.createElement("div");yJe.setAttribute("id","shopdora-ext-body"),document.body.appendChild(yJe);const bJe=Ss(cBe);bJe.use(nf),window.i18n=nf,bJe.mount(yJe);const wJe=vo(()=>RJ.getters["user/isLogin"]);setInterval(()=>{chrome&&chrome.runtime&&window.location.host.includes("shopee")&&window.location.host.includes("xiapi")&&(chrome.runtime.sendMessage({type:"loadData",key:"shopdoraSwitch"},e=>{"1"!=e&&"0"!=e||localStorage.setItem("shopdoraSwitch",e)}),chrome.runtime.sendMessage({greeting:"set-shopdora-token"},function(e){!1===e?(RJ.commit("user/removeToken"),RJ.commit("user/removeUserInfo")):e?.value&&RJ.getters["user/token"]!==e.value&&(RJ.commit("user/setToken",e?.value),RJ.dispatch("user/getUserInfo"))}))},3e3);let xJe="",SJe=0;const _Je=()=>{const e=chrome.runtime.getURL("inject/main.js"),t=document.createElement("script");t.type="text/javascript",t.src=e,document.documentElement.prepend(t),window.addEventListener("injectScript",e=>{const t={url:window.location.href,api:e.detail.url,param:e.detail.body??null,body:JSON.stringify(e.detail.data??"")};(async()=>{const n=gQ();if(e.detail.url.indexOf("api/v4/pdp/get_pc")>=0){const r=window.location.pathname,i=e.detail.url.indexOf("api/v4/pdp/get_pc_vsku")>=0,a=Date.now();if(r===xJe&&a-SJe<3e3)return;xJe=r,SJe=a;const o=await _Q(_m.gzip(JSON.stringify(t??"")));let s=Array.from(o.list)[0],l=[{images:[],options:[]}];s?.product_images?.first_tier_variations&&s.product_images.first_tier_variations.map(e=>{e.image&&(l[0].images.push(e.image),l[0].options.push(e.name))});let u=[],c=[];if(s.models&&Array.from(s.models).length>0){u=Array.from(s.models).map(e=>(c.push({name:e.sku,url:e.image}),{skuId:e.skuId,sku:e.sku,price:e.price,priceLocal:e.priceLocal,sales:e.sales,stock:e.stock,exportPrice:e.price,salesRate:e.salesRate,skuImage:e.image,salesRateLocal:e.salesRateLocal}))}let d={brand:s.brand,image:s.image,images:s?.images,itemid:s.itemId,price:s.price,stock:s.stock,shopid:s.shopId,description:s.description??null,video_info_list:[{default_format:s?.videoInfoList?s?.videoInfoList[0]?.defaultFormat:null,duration:s?.videoInfoList?s?.videoInfoList[0]?.duration:null,thumb_url:s?.videoInfoList?s?.videoInfoList[0]?.thumb_url:null}],historical_sold:s.salesText,sold:null,ctime:s.ctime,ctimeDay:s.ctimeDay,name:s.name,cat_id:s.cateId,catId:s.catId,leafCatId:s.leafCatId,price_max:s.priceMax,price_min:s.priceMin,shop_name:s.shopName,shop_location:s.shopLocation,cateId:s.cateId,sellerSource:s.sellerSource,liked_count:s.likedCount,salestMRank:s.salestMRank,nameLink:s.nameLink,sales30Day:s.sales30DayText,sales1Day:s.sales1DayText,sales7Day:s.sales7DayText,sales:s.salesText,salesGrowthRateM:s.salesGrowthRateMText,monitorCreateTime:s.monitorCreateTime,monitor:s.monitor,skuImages:c,tier_variations:l,skuDetailData:u,originData:e.detail.data.data},f={br:.66763,tw:4.3972,sg:.1866,th:4.9639,ph:7.7839,vn:3337.5,id:2108,mx:2.35029,my:.64333};const h=JSON.parse(sessionStorage.getItem("shopdoraExchangeRate")??JSON.stringify(f)),p=s.itemId;s.shopId;let m={},v=xQ(s),g=wQ(s),y=null;m=FJ(p,[d,v,g],h,n),y=setInterval(()=>{((e,t)=>{let n=!0;null!=localStorage.getItem("shopdoraSwitch")&&(n="1"==localStorage.getItem("shopdoraSwitch"));let r=document.querySelector(e),i=document.querySelector("#shopdora-detailPage");n?(null!=i&&i.remove(),null!=r&&t(r)):null!=i&&i.remove()})(".page-product .flex-column .flex-column ",e=>{y&&clearInterval(y);const t=document.createElement("div");t.setAttribute("id","shopdora-detailPage"),e.parentNode?.appendChild(t);const r=Ss(gJe);r.use(window.i18n),r.provide("site",n),r.provide("type","common"),r.provide("exChangeRate",h),r.provide("productShopeeList",d),r.provide("detailData",m),r.provide("isVsku",i),r.use(Mm),r.use(RJ),r.mount(t)})},1e3)}if(e.detail.url.indexOf("api/v4/search/get_ymal_items")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list);RJ.commit("product/removeShopList");const r={},i=[],a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1})}if(e.detail.url.indexOf("api/v4/shop/get_shop_tab")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[],a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e,!0),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1})}if(e.detail.url.indexOf("api/v4/shop/rcmd_items")>=0&&-1==window.location.href.indexOf("upstream=pdp")){const e=await _Q(_m.gzip(JSON.stringify(t??""))),r=Array.from(e.list),i={},a=[],o=[],s={},l={};r.forEach((e,t)=>{o.push(e.itemId);const r=bQ(Object.assign(e,{adsid:e.adsid,page:String(+(pQ("page")??1)),index:t,site:n}),!0);i[e.itemId]=r,a.push(r),s[e.itemId]=wQ(e),l[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:yQ("shopList"),data:i,keyName:vQ(),page:pQ("page")}),RJ.commit("product/setShopeeList",{type:yQ(),data:i,keyName:vQ(),page:pQ("page"),dataType:"shopList",dataListAll:a}),RJ.commit("product/setProductBasicInfo",{type:yQ("shopList"),data:l,keyName:vQ(),page:pQ("page")}),wJe.value&&RJ.commit("product/setProductInfo",{type:yQ("shopList"),data:s,keyName:vQ(),page:pQ("page")})}if(e.detail.url.indexOf("api/v4/shop/rcmd_items")>=0&&window.location.href.indexOf("upstream=pdp")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[],a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1})}if(e.detail.url.indexOf("api/v4/shop/get_shop_base")>=0&&await _Q(_m.gzip(JSON.stringify(t??""))),e.detail.url.indexOf("api/v4/recommend/recommend_v2")>=0){const r=await _Q(_m.gzip(JSON.stringify(t??""))),i=Array.from(r.list);RJ.commit("product/removeListDaily"),RJ.commit("product/removeShopList");const a={},o=[],s=[],l={},u={};i.forEach((e,t)=>{s.push(e.itemId);const r=bQ(Object.assign(e,{adsid:e.adsid,page:String(+(pQ("page")??1)),index:t,site:n}));a[e.itemId]=r,o.push(r),l[e.itemId]=wQ(e),u[e.itemId]=xQ(e)});const c=t.param?JSON.parse(t.param):{},d=c.catid||mQ("catid",e.detail.url,!1),f=parseInt(c.offset+60)/60+"";RJ.commit("product/removeDetailYouMayAlsoLike"),RJ.commit("product/setShopeeList",{type:yQ(),data:a,keyName:d,page:f,dataType:"cateList",dataListAll:o}),RJ.commit("product/setProductBasicInfo",{type:yQ(),data:u,keyName:d,page:f}),wJe.value&&RJ.commit("product/setProductInfo",{type:yQ(),data:l,keyName:d,page:f})}else if(e.detail.url.indexOf("api/v4/recommend/recommend")>=0&&-1==e.detail.url.indexOf("from_same_shop")&&-1==e.detail.url.indexOf("you_may_also_like")&&-1==e.detail.url.indexOf("api/v4/recommend/recommend_post")&&-1==e.detail.url.indexOf("api/v4/recommend/product_det")){const n=await _Q(_m.gzip(JSON.stringify(t??""))),r=Array.from(n.list);RJ.commit("product/removeListDaily"),RJ.commit("product/removeShopList");const i={},a=[],o={},s={};r.forEach((e,t)=>{a.push(e.itemId),i[e.itemId]=bQ(e),o[e.itemId]=wQ(e),s[e.itemId]=xQ(e)}),RJ.commit("product/removeDetailYouMayAlsoLike"),RJ.commit("product/setShopeeList",{type:yQ(),data:i,keyName:mQ("catid",e.detail.url),page:String(+(pQ("offset",e.detail.url)??0)/60+1)}),RJ.commit("product/setProductBasicInfo",{type:yQ(),data:s,keyName:mQ("catid",e.detail.url),page:String(+(pQ("offset",e.detail.url)??0)/60+1)}),wJe.value&&RJ.commit("product/setProductInfo",{type:yQ(),data:o,keyName:mQ("catid",e.detail.url),page:String(+(pQ("offset",e.detail.url)??0)/60+1)})}if(e.detail.url.indexOf("api/v4/recommend/recommend_post")>=0&&-1!=JSON.parse(e.detail.body??"").section.indexOf("find_similar_product")){const n=await _Q(_m.gzip(JSON.stringify(t??""))),r=Array.from(n.list),i={},a=[],o={},s={};r.forEach((e,t)=>{a.push(e.itemId),i[e.itemId]=bQ(e),o[e.itemId]=wQ(e),s[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"find_similar_product",data:i,keyName:(JSON.parse(e.detail.body??"")||{}).itemid??"111"}),RJ.commit("product/setProductBasicInfo",{type:"find_similar_product",data:s,keyName:JSON.parse(e.detail.body??"").itemid??"111",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:"find_similar_product",data:o,keyName:JSON.parse(e.detail.body??"").itemid??"111",page:1})}if(e.detail.url.indexOf("api/v4/recommend/recommend_post")>=0&&-1!=JSON.parse(e.detail.body??"").section.indexOf("from_same_shop")){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[];RJ.commit("product/removeListDaily"),RJ.commit("product/removeShopList");const a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setShopeeList",{type:"you_may_also_like",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),RJ.commit("product/setProductBasicInfo",{type:"you_may_also_like",data:o,keyName:"",page:1}),wJe.value&&(RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1}),RJ.commit("product/setProductInfo",{type:"you_may_also_like",data:a,keyName:"",page:1}))}if(e.detail.url.indexOf("api/v4/recommend/product_det")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[];RJ.commit("product/removeListDaily"),RJ.commit("product/removeShopList");const a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setShopeeList",{type:"you_may_also_like",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),RJ.commit("product/setProductBasicInfo",{type:"you_may_also_like",data:o,keyName:"",page:1}),wJe.value&&(RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1}),RJ.commit("product/setProductInfo",{type:"you_may_also_like",data:a,keyName:"",page:1}))}if(e.detail.url.indexOf("api/v4/search/search_items")>=0){const r=await _Q(_m.gzip(JSON.stringify(t??""))),i=Array.from(r.list);RJ.commit("product/removeListDaily"),RJ.commit("product/removeShopList");const a={},o=[],s=[],l={},u={};i.forEach((e,t)=>{s.push(e.itemId);let r=bQ(Object.assign(e,{adsid:e.adsid,page:String(+(pQ("page")??1)),index:t,site:n}));a[e.itemId]={...r},o.push(r),l[e.itemId]=wQ(e),u[e.itemId]=xQ(e)}),RJ.commit("product/removeDetailYouMayAlsoLike"),RJ.commit("product/setShopeeList",{type:yQ(),data:a,keyName:mQ("keyword",e.detail.url),page:String(+(pQ("newest",e.detail.url)??0)/60+1),dataType:"keywordList",dataListAll:o,totalCount:e.detail.data.total_count}),RJ.commit("product/setProductBasicInfo",{type:yQ(),data:u,keyName:mQ("keyword",e.detail.url),page:String(+(pQ("newest",e.detail.url)??0)/60+1)}),wJe.value&&RJ.commit("product/setProductInfo",{type:yQ(),data:l,keyName:mQ("keyword",e.detail.url),page:String(+(pQ("newest",e.detail.url)??0)/60+1)})}if(e.detail.url.indexOf("api/v4/collection/get_items")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[],a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/removeDetailYouMayAlsoLike"),RJ.commit("product/setShopeeList",{type:yQ(),data:r}),RJ.commit("product/setProductBasicInfo",{type:yQ(),data:o,keyName:"",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:yQ(),data:a,keyName:"",page:1})}if(e.detail.url.indexOf("api/v4/homepage/get_daily_discover")>=0){const e=await _Q(_m.gzip(JSON.stringify(t??""))),n=Array.from(e.list),r={},i=[],a={},o={};n.forEach((e,t)=>{i.push(e.itemId),r[e.itemId]=bQ(e),a[e.itemId]=wQ(e),o[e.itemId]=xQ(e)}),RJ.commit("product/setShopeeList",{type:"common",data:r}),RJ.commit("product/setProductBasicInfo",{type:"common",data:o,keyName:"",page:1}),wJe.value&&RJ.commit("product/setProductInfo",{type:"common",data:a,keyName:"",page:1})}})()})};return _Je(),window.addEventListener("message",function(e){if("showProductList"===e.data.action){const e=document.getElementsByClassName("shopee-page-controller");if(e&&e.length>0){const t=e[0].querySelectorAll("[aria-disabled]");if(t&&t.length>0){t[1].click()}else{const t=e[0].getElementsByClassName("shopee-icon-button shopee-icon-button--right");t&&t.length>0&&t[0].click()}}}}),chrome.runtime.onMessage.addListener(function(e){"setDisabled"==e.cmd&&(window.console.log("setDisabled",e.value),chrome.storage.local.set({"shopdora-disabled":e.value},()=>{}),localStorage.setItem("shopdora-disabled",e.value+""))}),e.injectScript=_Je,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
