@nabeeltahirdeveloper/chart-sdk 2.0.6 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-sdk.es.js +5 -8
- package/dist/chart-sdk.umd.js +2 -2
- package/package.json +1 -1
package/dist/chart-sdk.umd.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(A){return A instanceof this?A:new this(A)}static concat(A,...e){const t=new this(A);return e.forEach(r=>t.set(r)),t}static accessor(A){const t=(this[bl]=this[bl]={accessors:{}}).accessors,r=this.prototype;function i(n){const o=Bs(n);t[o]||(hB(r,n),t[o]=!0)}return Q.isArray(A)?A.forEach(i):i(A),this}};he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(he.prototype,({value:s},A)=>{let e=A[0].toUpperCase()+A.slice(1);return{get:()=>s,set(t){this[e]=t}}}),Q.freezeMethods(he);function pn(s,A){const e=this||ds,t=A||e,r=he.from(t.headers);let i=t.data;return Q.forEach(s,function(o){i=o.call(e,i,r.normalize(),A?A.status:void 0)}),r.normalize(),i}function Ql(s){return!!(s&&s.__CANCEL__)}let gs=class extends cA{constructor(A,e,t){super(A??"canceled",cA.ERR_CANCELED,e,t),this.name="CanceledError",this.__CANCEL__=!0}};function yl(s,A,e){const t=e.config.validateStatus;!e.status||!t||t(e.status)?s(e):A(new cA("Request failed with status code "+e.status,[cA.ERR_BAD_REQUEST,cA.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function uB(s){const A=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return A&&A[1]||""}function fB(s,A){s=s||10;const e=new Array(s),t=new Array(s);let r=0,i=0,n;return A=A!==void 0?A:1e3,function(a){const l=Date.now(),c=t[i];n||(n=l),e[r]=a,t[r]=l;let u=i,f=0;for(;u!==r;)f+=e[u++],u=u%s;if(r=(r+1)%s,r===i&&(i=(i+1)%s),l-n<A)return;const g=c&&l-c;return g?Math.round(f*1e3/g):void 0}}function dB(s,A){let e=0,t=1e3/A,r,i;const n=(l,c=Date.now())=>{e=c,r=null,i&&(clearTimeout(i),i=null),s(...l)};return[(...l)=>{const c=Date.now(),u=c-e;u>=t?n(l,c):(r=l,i||(i=setTimeout(()=>{i=null,n(r)},t-u)))},()=>r&&n(r)]}const dr=(s,A,e=3)=>{let t=0;const r=fB(50,250);return dB(i=>{const n=i.loaded,o=i.lengthComputable?i.total:void 0,a=n-t,l=r(a),c=n<=o;t=n;const u={loaded:n,total:o,progress:o?n/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-n)/l:void 0,event:i,lengthComputable:o!=null,[A?"download":"upload"]:!0};s(u)},e)},Fl=(s,A)=>{const e=s!=null;return[t=>A[0]({lengthComputable:e,total:s,loaded:t}),A[1]]},Ul=s=>(...A)=>Q.asap(()=>s(...A)),BB=jA.hasStandardBrowserEnv?((s,A)=>e=>(e=new URL(e,jA.origin),s.protocol===e.protocol&&s.host===e.host&&(A||s.port===e.port)))(new URL(jA.origin),jA.navigator&&/(msie|trident)/i.test(jA.navigator.userAgent)):()=>!0,gB=jA.hasStandardBrowserEnv?{write(s,A,e,t,r,i,n){if(typeof document>"u")return;const o=[`${s}=${encodeURIComponent(A)}`];Q.isNumber(e)&&o.push(`expires=${new Date(e).toUTCString()}`),Q.isString(t)&&o.push(`path=${t}`),Q.isString(r)&&o.push(`domain=${r}`),i===!0&&o.push("secure"),Q.isString(n)&&o.push(`SameSite=${n}`),document.cookie=o.join("; ")},read(s){if(typeof document>"u")return null;const A=document.cookie.match(new RegExp("(?:^|; )"+s+"=([^;]*)"));return A?decodeURIComponent(A[1]):null},remove(s){this.write(s,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pB(s){return typeof s!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function wB(s,A){return A?s.replace(/\/?\/$/,"")+"/"+A.replace(/^\/+/,""):s}function El(s,A,e){let t=!pB(A);return s&&(t||e==!1)?wB(s,A):A}const xl=s=>s instanceof he?{...s}:s;function Ct(s,A){A=A||{};const e={};function t(l,c,u,f){return Q.isPlainObject(l)&&Q.isPlainObject(c)?Q.merge.call({caseless:f},l,c):Q.isPlainObject(c)?Q.merge({},c):Q.isArray(c)?c.slice():c}function r(l,c,u,f){if(Q.isUndefined(c)){if(!Q.isUndefined(l))return t(void 0,l,u,f)}else return t(l,c,u,f)}function i(l,c){if(!Q.isUndefined(c))return t(void 0,c)}function n(l,c){if(Q.isUndefined(c)){if(!Q.isUndefined(l))return t(void 0,l)}else return t(void 0,c)}function o(l,c,u){if(u in A)return t(l,c);if(u in s)return t(void 0,l)}const a={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:o,headers:(l,c,u)=>r(xl(l),xl(c),u,!0)};return Q.forEach(Object.keys({...s,...A}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const u=Q.hasOwnProp(a,c)?a[c]:r,f=u(s[c],A[c],c);Q.isUndefined(f)&&u!==o||(e[c]=f)}),e}const Sl=s=>{const A=Ct({},s);let{data:e,withXSRFToken:t,xsrfHeaderName:r,xsrfCookieName:i,headers:n,auth:o}=A;if(A.headers=n=he.from(n),A.url=ml(El(A.baseURL,A.url,A.allowAbsoluteUrls),s.params,s.paramsSerializer),o&&n.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Q.isFormData(e)){if(jA.hasStandardBrowserEnv||jA.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if(Q.isFunction(e.getHeaders)){const a=e.getHeaders(),l=["content-type","content-length"];Object.entries(a).forEach(([c,u])=>{l.includes(c.toLowerCase())&&n.set(c,u)})}}if(jA.hasStandardBrowserEnv&&(t&&Q.isFunction(t)&&(t=t(A)),t||t!==!1&&BB(A.url))){const a=r&&i&&gB.read(i);a&&n.set(r,a)}return A},mB=typeof XMLHttpRequest<"u"&&function(s){return new Promise(function(e,t){const r=Sl(s);let i=r.data;const n=he.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=r,c,u,f,g,B;function d(){g&&g(),B&&B(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function m(){if(!p)return;const v=he.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:v,config:s,request:p};yl(function(T){e(T),d()},function(T){t(T),d()},E),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(t(new cA("Request aborted",cA.ECONNABORTED,s,p)),p=null)},p.onerror=function(y){const E=y&&y.message?y.message:"Network Error",U=new cA(E,cA.ERR_NETWORK,s,p);U.event=y||null,t(U),p=null},p.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||fn;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),t(new cA(y,E.clarifyTimeoutError?cA.ETIMEDOUT:cA.ECONNABORTED,s,p)),p=null},i===void 0&&n.setContentType(null),"setRequestHeader"in p&&Q.forEach(n.toJSON(),function(y,E){p.setRequestHeader(E,y)}),Q.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),o&&o!=="json"&&(p.responseType=r.responseType),l&&([f,B]=dr(l,!0),p.addEventListener("progress",f)),a&&p.upload&&([u,g]=dr(a),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(c=v=>{p&&(t(!v||v.type?new gs(null,s,p):v),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const w=uB(r.url);if(w&&jA.protocols.indexOf(w)===-1){t(new cA("Unsupported protocol "+w+":",cA.ERR_BAD_REQUEST,s));return}p.send(i||null)})},CB=(s,A)=>{const{length:e}=s=s?s.filter(Boolean):[];if(A||e){let t=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;t.abort(c instanceof cA?c:new gs(c instanceof Error?c.message:c))}};let n=A&&setTimeout(()=>{n=null,i(new cA(`timeout of ${A}ms exceeded`,cA.ETIMEDOUT))},A);const o=()=>{s&&(n&&clearTimeout(n),n=null,s.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),s=null)};s.forEach(l=>l.addEventListener("abort",i));const{signal:a}=t;return a.unsubscribe=()=>Q.asap(o),a}},vB=function*(s,A){let e=s.byteLength;if(e<A){yield s;return}let t=0,r;for(;t<e;)r=t+A,yield s.slice(t,r),t=r},bB=async function*(s,A){for await(const e of QB(s))yield*vB(e,A)},QB=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const A=s.getReader();try{for(;;){const{done:e,value:t}=await A.read();if(e)break;yield t}}finally{await A.cancel()}},Hl=(s,A,e,t)=>{const r=bB(s,A);let i=0,n,o=a=>{n||(n=!0,t&&t(a))};return new ReadableStream({async pull(a){try{const{done:l,value:c}=await r.next();if(l){o(),a.close();return}let u=c.byteLength;if(e){let f=i+=u;e(f)}a.enqueue(new Uint8Array(c))}catch(l){throw o(l),l}},cancel(a){return o(a),r.return()}},{highWaterMark:2})},Ll=64*1024,{isFunction:Br}=Q,yB=(({Request:s,Response:A})=>({Request:s,Response:A}))(Q.global),{ReadableStream:Il,TextEncoder:Tl}=Q.global,Ml=(s,...A)=>{try{return!!s(...A)}catch{return!1}},FB=s=>{s=Q.merge.call({skipUndefined:!0},yB,s);const{fetch:A,Request:e,Response:t}=s,r=A?Br(A):typeof fetch=="function",i=Br(e),n=Br(t);if(!r)return!1;const o=r&&Br(Il),a=r&&(typeof Tl=="function"?(B=>d=>B.encode(d))(new Tl):async B=>new Uint8Array(await new e(B).arrayBuffer())),l=i&&o&&Ml(()=>{let B=!1;const d=new e(jA.origin,{body:new Il,method:"POST",get duplex(){return B=!0,"half"}}).headers.has("Content-Type");return B&&!d}),c=n&&o&&Ml(()=>Q.isReadableStream(new t("").body)),u={stream:c&&(B=>B.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(B=>{!u[B]&&(u[B]=(d,p)=>{let m=d&&d[B];if(m)return m.call(d);throw new cA(`Response type '${B}' is not supported`,cA.ERR_NOT_SUPPORT,p)})});const f=async B=>{if(B==null)return 0;if(Q.isBlob(B))return B.size;if(Q.isSpecCompliantForm(B))return(await new e(jA.origin,{method:"POST",body:B}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(B)||Q.isArrayBuffer(B))return B.byteLength;if(Q.isURLSearchParams(B)&&(B=B+""),Q.isString(B))return(await a(B)).byteLength},g=async(B,d)=>{const p=Q.toFiniteNumber(B.getContentLength());return p??f(d)};return async B=>{let{url:d,method:p,data:m,signal:w,cancelToken:v,timeout:y,onDownloadProgress:E,onUploadProgress:U,responseType:T,headers:k,withCredentials:L="same-origin",fetchOptions:iA}=Sl(B),J=A||fetch;T=T?(T+"").toLowerCase():"text";let hA=CB([w,v&&v.toAbortSignal()],y),aA=null;const Z=hA&&hA.unsubscribe&&(()=>{hA.unsubscribe()});let Y;try{if(U&&l&&p!=="get"&&p!=="head"&&(Y=await g(k,m))!==0){let SA=new e(d,{method:"POST",body:m,duplex:"half"}),j;if(Q.isFormData(m)&&(j=SA.headers.get("content-type"))&&k.setContentType(j),SA.body){const[rA,mA]=Fl(Y,dr(Ul(U)));m=Hl(SA.body,Ll,rA,mA)}}Q.isString(L)||(L=L?"include":"omit");const I=i&&"credentials"in e.prototype,z={...iA,signal:hA,method:p.toUpperCase(),headers:k.normalize().toJSON(),body:m,duplex:"half",credentials:I?L:void 0};aA=i&&new e(d,z);let tA=await(i?J(aA,iA):J(d,z));const FA=c&&(T==="stream"||T==="response");if(c&&(E||FA&&Z)){const SA={};["status","statusText","headers"].forEach(fA=>{SA[fA]=tA[fA]});const j=Q.toFiniteNumber(tA.headers.get("content-length")),[rA,mA]=E&&Fl(j,dr(Ul(E),!0))||[];tA=new t(Hl(tA.body,Ll,rA,()=>{mA&&mA(),Z&&Z()}),SA)}T=T||"text";let vA=await u[Q.findKey(u,T)||"text"](tA,B);return!FA&&Z&&Z(),await new Promise((SA,j)=>{yl(SA,j,{data:vA,headers:he.from(tA.headers),status:tA.status,statusText:tA.statusText,config:B,request:aA})})}catch(I){throw Z&&Z(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new cA("Network Error",cA.ERR_NETWORK,B,aA,I&&I.response),{cause:I.cause||I}):cA.from(I,I&&I.code,B,aA,I&&I.response)}}},UB=new Map,Dl=s=>{let A=s&&s.env||{};const{fetch:e,Request:t,Response:r}=A,i=[t,r,e];let n=i.length,o=n,a,l,c=UB;for(;o--;)a=i[o],l=c.get(a),l===void 0&&c.set(a,l=o?new Map:FB(A)),c=l;return l};Dl();const wn={http:$0,xhr:mB,fetch:{get:Dl}};Q.forEach(wn,(s,A)=>{if(s){try{Object.defineProperty(s,"name",{value:A})}catch{}Object.defineProperty(s,"adapterName",{value:A})}});const kl=s=>`- ${s}`,EB=s=>Q.isFunction(s)||s===null||s===!1;function xB(s,A){s=Q.isArray(s)?s:[s];const{length:e}=s;let t,r;const i={};for(let n=0;n<e;n++){t=s[n];let o;if(r=t,!EB(t)&&(r=wn[(o=String(t)).toLowerCase()],r===void 0))throw new cA(`Unknown adapter '${o}'`);if(r&&(Q.isFunction(r)||(r=r.get(A))))break;i[o||"#"+n]=r}if(!r){const n=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?n.length>1?`since :
|
|
4
4
|
`+n.map(kl).join(`
|
|
5
5
|
`):" "+kl(n[0]):"as no adapter specified";throw new cA("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r}const _l={getAdapter:xB,adapters:wn};function mn(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new gs(null,s)}function Ol(s){return mn(s),s.headers=he.from(s.headers),s.data=pn.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),_l.getAdapter(s.adapter||ds.adapter,s)(s).then(function(t){return mn(s),t.data=pn.call(s,s.transformResponse,t),t.headers=he.from(t.headers),t},function(t){return Ql(t)||(mn(s),t&&t.response&&(t.response.data=pn.call(s,s.transformResponse,t.response),t.response.headers=he.from(t.response.headers))),Promise.reject(t)})}const Nl="1.13.5",gr={};["object","boolean","number","function","string","symbol"].forEach((s,A)=>{gr[s]=function(t){return typeof t===s||"a"+(A<1?"n ":" ")+s}});const Kl={};gr.transitional=function(A,e,t){function r(i,n){return"[Axios v"+Nl+"] Transitional option '"+i+"'"+n+(t?". "+t:"")}return(i,n,o)=>{if(A===!1)throw new cA(r(n," has been removed"+(e?" in "+e:"")),cA.ERR_DEPRECATED);return e&&!Kl[n]&&(Kl[n]=!0,console.warn(r(n," has been deprecated since v"+e+" and will be removed in the near future"))),A?A(i,n,o):!0}},gr.spelling=function(A){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${A}`),!0)};function SB(s,A,e){if(typeof s!="object")throw new cA("options must be an object",cA.ERR_BAD_OPTION_VALUE);const t=Object.keys(s);let r=t.length;for(;r-- >0;){const i=t[r],n=A[i];if(n){const o=s[i],a=o===void 0||n(o,i,s);if(a!==!0)throw new cA("option "+i+" must be "+a,cA.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new cA("Unknown option "+i,cA.ERR_BAD_OPTION)}}const pr={assertOptions:SB,validators:gr},Ce=pr.validators;let vt=class{constructor(A){this.defaults=A||{},this.interceptors={request:new Cl,response:new Cl}}async request(A,e){try{return await this._request(A,e)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
|
6
|
-
`+i):t.stack=i}catch{}}throw t}}_request(A,e){typeof A=="string"?(e=e||{},e.url=A):e=A||{},e=Ct(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:i}=e;t!==void 0&&pr.assertOptions(t,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean),legacyInterceptorReqResOrdering:Ce.transitional(Ce.boolean)},!1),r!=null&&(Q.isFunction(r)?e.paramsSerializer={serialize:r}:pr.assertOptions(r,{encode:Ce.function,serialize:Ce.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),pr.assertOptions(e,{baseUrl:Ce.spelling("baseURL"),withXsrfToken:Ce.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let n=i&&Q.merge(i.common,i[e.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],B=>{delete i[B]}),e.headers=he.concat(n,i);const o=[];let a=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(e)===!1)return;a=a&&d.synchronous;const p=e.transitional||fn;p&&p.legacyInterceptorReqResOrdering?o.unshift(d.fulfilled,d.rejected):o.push(d.fulfilled,d.rejected)});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let c,u=0,f;if(!a){const B=[Ol.bind(this),void 0];for(B.unshift(...o),B.push(...l),f=B.length,c=Promise.resolve(e);u<f;)c=c.then(B[u++],B[u++]);return c}f=o.length;let g=e;for(;u<f;){const B=o[u++],d=o[u++];try{g=B(g)}catch(p){d.call(this,p);break}}try{c=Ol.call(this,g)}catch(B){return Promise.reject(B)}for(u=0,f=l.length;u<f;)c=c.then(l[u++],l[u++]);return c}getUri(A){A=Ct(this.defaults,A);const e=El(A.baseURL,A.url,A.allowAbsoluteUrls);return ml(e,A.params,A.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(A){vt.prototype[A]=function(e,t){return this.request(Ct(t||{},{method:A,url:e,data:(t||{}).data}))}}),Q.forEach(["post","put","patch"],function(A){function e(t){return function(i,n,o){return this.request(Ct(o||{},{method:A,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}vt.prototype[A]=e(),vt.prototype[A+"Form"]=e(!0)});let HB=class Iu{constructor(A){if(typeof A!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const t=this;this.promise.then(r=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](r);t._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(o=>{t.subscribe(o),i=o}).then(r);return n.cancel=function(){t.unsubscribe(i)},n},A(function(i,n,o){t.reason||(t.reason=new gs(i,n,o),e(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}this._listeners?this._listeners.push(A):this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;const e=this._listeners.indexOf(A);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const A=new AbortController,e=t=>{A.abort(t)};return this.subscribe(e),A.signal.unsubscribe=()=>this.unsubscribe(e),A.signal}static source(){let A;return{token:new Iu(function(r){A=r}),cancel:A}}};function LB(s){return function(e){return s.apply(null,e)}}function IB(s){return Q.isObject(s)&&s.isAxiosError===!0}const Cn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cn).forEach(([s,A])=>{Cn[A]=s});function Vl(s){const A=new vt(s),e=nl(vt.prototype.request,A);return Q.extend(e,vt.prototype,A,{allOwnKeys:!0}),Q.extend(e,A,null,{allOwnKeys:!0}),e.create=function(r){return Vl(Ct(s,r))},e}const MA=Vl(ds);MA.Axios=vt,MA.CanceledError=gs,MA.CancelToken=HB,MA.isCancel=Ql,MA.VERSION=Nl,MA.toFormData=ur,MA.AxiosError=cA,MA.Cancel=MA.CanceledError,MA.all=function(A){return Promise.all(A)},MA.spread=LB,MA.isAxiosError=IB,MA.mergeConfig=Ct,MA.AxiosHeaders=he,MA.formToJSON=s=>vl(Q.isHTMLForm(s)?new FormData(s):s),MA.getAdapter=_l.getAdapter,MA.HttpStatusCode=Cn,MA.default=MA;const{Axios:Jv,AxiosError:Zv,CanceledError:Yv,isCancel:qv,CancelToken:jv,VERSION:Ab,all:eb,Cancel:tb,isAxiosError:sb,spread:rb,toFormData:ib,AxiosHeaders:nb,HttpStatusCode:ob,formToJSON:ab,getAdapter:lb,mergeConfig:cb}=MA,ke=Object.create(null);ke.open="0",ke.close="1",ke.ping="2",ke.pong="3",ke.message="4",ke.upgrade="5",ke.noop="6";const wr=Object.create(null);Object.keys(ke).forEach(s=>{wr[ke[s]]=s});const vn={type:"error",data:"parser error"},Pl=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gl=typeof ArrayBuffer=="function",Rl=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,bn=({type:s,data:A},e,t)=>Pl&&A instanceof Blob?e?t(A):zl(A,t):Gl&&(A instanceof ArrayBuffer||Rl(A))?e?t(A):zl(new Blob([A]),t):t(ke[s]+(A||"")),zl=(s,A)=>{const e=new FileReader;return e.onload=function(){const t=e.result.split(",")[1];A("b"+(t||""))},e.readAsDataURL(s)};function Wl(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Qn;function TB(s,A){if(Pl&&s.data instanceof Blob)return s.data.arrayBuffer().then(Wl).then(A);if(Gl&&(s.data instanceof ArrayBuffer||Rl(s.data)))return A(Wl(s.data));bn(s,!1,e=>{Qn||(Qn=new TextEncoder),A(Qn.encode(e))})}const Xl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Xl.length;s++)ps[Xl.charCodeAt(s)]=s;const MB=s=>{let A=s.length*.75,e=s.length,t,r=0,i,n,o,a;s[s.length-1]==="="&&(A--,s[s.length-2]==="="&&A--);const l=new ArrayBuffer(A),c=new Uint8Array(l);for(t=0;t<e;t+=4)i=ps[s.charCodeAt(t)],n=ps[s.charCodeAt(t+1)],o=ps[s.charCodeAt(t+2)],a=ps[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},DB=typeof ArrayBuffer=="function",yn=(s,A)=>{if(typeof s!="string")return{type:"message",data:$l(s,A)};const e=s.charAt(0);return e==="b"?{type:"message",data:kB(s.substring(1),A)}:wr[e]?s.length>1?{type:wr[e],data:s.substring(1)}:{type:wr[e]}:vn},kB=(s,A)=>{if(DB){const e=MB(s);return $l(e,A)}else return{base64:!0,data:s}},$l=(s,A)=>A==="blob"?s instanceof Blob?s:new Blob([s]):s instanceof ArrayBuffer?s:s.buffer,Jl="",_B=(s,A)=>{const e=s.length,t=new Array(e);let r=0;s.forEach((i,n)=>{bn(i,!1,o=>{t[n]=o,++r===e&&A(t.join(Jl))})})},OB=(s,A)=>{const e=s.split(Jl),t=[];for(let r=0;r<e.length;r++){const i=yn(e[r],A);if(t.push(i),i.type==="error")break}return t};function NB(){return new TransformStream({transform(s,A){TB(s,e=>{const t=e.length;let r;if(t<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,t);else if(t<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,t)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(t))}s.data&&typeof s.data!="string"&&(r[0]|=128),A.enqueue(r),A.enqueue(e)})}})}let Fn;function mr(s){return s.reduce((A,e)=>A+e.length,0)}function Cr(s,A){if(s[0].length===A)return s.shift();const e=new Uint8Array(A);let t=0;for(let r=0;r<A;r++)e[r]=s[0][t++],t===s[0].length&&(s.shift(),t=0);return s.length&&t<s[0].length&&(s[0]=s[0].slice(t)),e}function KB(s,A){Fn||(Fn=new TextDecoder);const e=[];let t=0,r=-1,i=!1;return new TransformStream({transform(n,o){for(e.push(n);;){if(t===0){if(mr(e)<1)break;const a=Cr(e,1);i=(a[0]&128)===128,r=a[0]&127,r<126?t=3:r===126?t=1:t=2}else if(t===1){if(mr(e)<2)break;const a=Cr(e,2);r=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),t=3}else if(t===2){if(mr(e)<8)break;const a=Cr(e,8),l=new DataView(a.buffer,a.byteOffset,a.length),c=l.getUint32(0);if(c>Math.pow(2,21)-1){o.enqueue(vn);break}r=c*Math.pow(2,32)+l.getUint32(4),t=3}else{if(mr(e)<r)break;const a=Cr(e,r);o.enqueue(yn(i?a:Fn.decode(a),A)),t=0}if(r===0||r>s){o.enqueue(vn);break}}}})}const Zl=4;function RA(s){if(s)return VB(s)}function VB(s){for(var A in RA.prototype)s[A]=RA.prototype[A];return s}RA.prototype.on=RA.prototype.addEventListener=function(s,A){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(A),this},RA.prototype.once=function(s,A){function e(){this.off(s,e),A.apply(this,arguments)}return e.fn=A,this.on(s,e),this},RA.prototype.off=RA.prototype.removeListener=RA.prototype.removeAllListeners=RA.prototype.removeEventListener=function(s,A){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+s];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var t,r=0;r<e.length;r++)if(t=e[r],t===A||t.fn===A){e.splice(r,1);break}return e.length===0&&delete this._callbacks["$"+s],this},RA.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var A=new Array(arguments.length-1),e=this._callbacks["$"+s],t=1;t<arguments.length;t++)A[t-1]=arguments[t];if(e){e=e.slice(0);for(var t=0,r=e.length;t<r;++t)e[t].apply(this,A)}return this},RA.prototype.emitReserved=RA.prototype.emit,RA.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]},RA.prototype.hasListeners=function(s){return!!this.listeners(s).length};const vr=typeof Promise=="function"&&typeof Promise.resolve=="function"?A=>Promise.resolve().then(A):(A,e)=>e(A,0),ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),PB="arraybuffer";function hb(){}function Yl(s,...A){return A.reduce((e,t)=>(s.hasOwnProperty(t)&&(e[t]=s[t]),e),{})}const GB=ve.setTimeout,RB=ve.clearTimeout;function br(s,A){A.useNativeTimers?(s.setTimeoutFn=GB.bind(ve),s.clearTimeoutFn=RB.bind(ve)):(s.setTimeoutFn=ve.setTimeout.bind(ve),s.clearTimeoutFn=ve.clearTimeout.bind(ve))}const zB=1.33;function WB(s){return typeof s=="string"?XB(s):Math.ceil((s.byteLength||s.size)*zB)}function XB(s){let A=0,e=0;for(let t=0,r=s.length;t<r;t++)A=s.charCodeAt(t),A<128?e+=1:A<2048?e+=2:A<55296||A>=57344?e+=3:(t++,e+=4);return e}function ql(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $B(s){let A="";for(let e in s)s.hasOwnProperty(e)&&(A.length&&(A+="&"),A+=encodeURIComponent(e)+"="+encodeURIComponent(s[e]));return A}function JB(s){let A={},e=s.split("&");for(let t=0,r=e.length;t<r;t++){let i=e[t].split("=");A[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return A}class ZB extends Error{constructor(A,e,t){super(A),this.description=e,this.context=t,this.type="TransportError"}}class Un extends RA{constructor(A){super(),this.writable=!1,br(this,A),this.opts=A,this.query=A.query,this.socket=A.socket,this.supportsBinary=!A.forceBase64}onError(A,e,t){return super.emitReserved("error",new ZB(A,e,t)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(A){this.readyState==="open"&&this.write(A)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(A){const e=yn(A,this.socket.binaryType);this.onPacket(e)}onPacket(A){super.emitReserved("packet",A)}onClose(A){this.readyState="closed",super.emitReserved("close",A)}pause(A){}createUri(A,e={}){return A+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const A=this.opts.hostname;return A.indexOf(":")===-1?A:"["+A+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(A){const e=$B(A);return e.length?"?"+e:""}}class YB extends Un{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(A){this.readyState="pausing";const e=()=>{this.readyState="paused",A()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(A){const e=t=>{if(this.readyState==="opening"&&t.type==="open"&&this.onOpen(),t.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};OB(A,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const A=()=>{this.write([{type:"close"}])};this.readyState==="open"?A():this.once("open",A)}write(A){this.writable=!1,_B(A,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const A=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=ql()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(A,e)}}let jl=!1;try{jl=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const qB=jl;function jB(){}class Ag extends YB{constructor(A){if(super(A),typeof location<"u"){const e=location.protocol==="https:";let t=location.port;t||(t=e?"443":"80"),this.xd=typeof location<"u"&&A.hostname!==location.hostname||t!==A.port}}doWrite(A,e){const t=this.request({method:"POST",data:A});t.on("success",e),t.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const A=this.request();A.on("data",this.onData.bind(this)),A.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=A}}class _e extends RA{constructor(A,e,t){super(),this.createRequest=A,br(this,t),this._opts=t,this._method=t.method||"GET",this._uri=e,this._data=t.data!==void 0?t.data:null,this._create()}_create(){var A;const e=Yl(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const t=this._xhr=this.createRequest(e);try{t.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&t.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}(A=this._opts.cookieJar)===null||A===void 0||A.addCookies(t),"withCredentials"in t&&(t.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(t.timeout=this._opts.requestTimeout),t.onreadystatechange=()=>{var r;t.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(t.getResponseHeader("set-cookie"))),t.readyState===4&&(t.status===200||t.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof t.status=="number"?t.status:0)},0))},t.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=_e.requestsCount++,_e.requests[this._index]=this)}_onError(A){this.emitReserved("error",A,this._xhr),this._cleanup(!0)}_cleanup(A){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=jB,A)try{this._xhr.abort()}catch{}typeof document<"u"&&delete _e.requests[this._index],this._xhr=null}}_onLoad(){const A=this._xhr.responseText;A!==null&&(this.emitReserved("data",A),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(_e.requestsCount=0,_e.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ac);else if(typeof addEventListener=="function"){const s="onpagehide"in ve?"pagehide":"unload";addEventListener(s,Ac,!1)}}function Ac(){for(let s in _e.requests)_e.requests.hasOwnProperty(s)&&_e.requests[s].abort()}const eg=(function(){const s=ec({xdomain:!1});return s&&s.responseType!==null})();class tg extends Ag{constructor(A){super(A);const e=A&&A.forceBase64;this.supportsBinary=eg&&!e}request(A={}){return Object.assign(A,{xd:this.xd},this.opts),new _e(ec,this.uri(),A)}}function ec(s){const A=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!A||qB))return new XMLHttpRequest}catch{}if(!A)try{return new ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const tc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sg extends Un{get name(){return"websocket"}doOpen(){const A=this.uri(),e=this.opts.protocols,t=tc?{}:Yl(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(t.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(A,e,t)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=A=>this.onClose({description:"websocket connection closed",context:A}),this.ws.onmessage=A=>this.onData(A.data),this.ws.onerror=A=>this.onError("websocket error",A)}write(A){this.writable=!1;for(let e=0;e<A.length;e++){const t=A[e],r=e===A.length-1;bn(t,this.supportsBinary,i=>{try{this.doWrite(t,i)}catch{}r&&vr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const A=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=ql()),this.supportsBinary||(e.b64=1),this.createUri(A,e)}}const En=ve.WebSocket||ve.MozWebSocket;class rg extends sg{createSocket(A,e,t){return tc?new En(A,e,t):e?new En(A,e):new En(A)}doWrite(A,e){this.ws.send(e)}}class ig extends Un{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(A){return this.emitReserved("error",A)}this._transport.closed.then(()=>{this.onClose()}).catch(A=>{this.onError("webtransport error",A)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(A=>{const e=KB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),t=A.readable.pipeThrough(e).getReader(),r=NB();r.readable.pipeTo(A.writable),this._writer=r.writable.getWriter();const i=()=>{t.read().then(({done:o,value:a})=>{o||(this.onPacket(a),i())}).catch(o=>{})};i();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(A){this.writable=!1;for(let e=0;e<A.length;e++){const t=A[e],r=e===A.length-1;this._writer.write(t).then(()=>{r&&vr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var A;(A=this._transport)===null||A===void 0||A.close()}}const ng={websocket:rg,webtransport:ig,polling:tg},og=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ag=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xn(s){if(s.length>8e3)throw"URI too long";const A=s,e=s.indexOf("["),t=s.indexOf("]");e!=-1&&t!=-1&&(s=s.substring(0,e)+s.substring(e,t).replace(/:/g,";")+s.substring(t,s.length));let r=og.exec(s||""),i={},n=14;for(;n--;)i[ag[n]]=r[n]||"";return e!=-1&&t!=-1&&(i.source=A,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=lg(i,i.path),i.queryKey=cg(i,i.query),i}function lg(s,A){const e=/\/{2,9}/g,t=A.replace(e,"/").split("/");return(A.slice(0,1)=="/"||A.length===0)&&t.splice(0,1),A.slice(-1)=="/"&&t.splice(t.length-1,1),t}function cg(s,A){const e={};return A.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,r,i){r&&(e[r]=i)}),e}const Sn=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qr=[];Sn&&addEventListener("offline",()=>{Qr.forEach(s=>s())},!1);class tt extends RA{constructor(A,e){if(super(),this.binaryType=PB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,A&&typeof A=="object"&&(e=A,A=null),A){const t=xn(A);e.hostname=t.host,e.secure=t.protocol==="https"||t.protocol==="wss",e.port=t.port,t.query&&(e.query=t.query)}else e.host&&(e.hostname=xn(e.host).host);br(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{const r=t.prototype.name;this.transports.push(r),this._transportsByName[r]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=JB(this.opts.query)),Sn&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Qr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(A){const e=Object.assign({},this.opts.query);e.EIO=Zl,e.transport=A,this.id&&(e.sid=this.id);const t=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[A]);return new this._transportsByName[A](t)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const A=this.opts.rememberUpgrade&&tt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(A);e.open(),this.setTransport(e)}setTransport(A){this.transport&&this.transport.removeAllListeners(),this.transport=A,A.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",tt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(A){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",A),this.emitReserved("heartbeat"),A.type){case"open":this.onHandshake(JSON.parse(A.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=A.data,this._onError(e);break;case"message":this.emitReserved("data",A.data),this.emitReserved("message",A.data);break}}onHandshake(A){this.emitReserved("handshake",A),this.id=A.sid,this.transport.query.sid=A.sid,this._pingInterval=A.pingInterval,this._pingTimeout=A.pingTimeout,this._maxPayload=A.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const A=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+A,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},A),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const A=this._getWritablePackets();this.transport.send(A),this._prevBufferLen=A.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=WB(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const A=Date.now()>this._pingTimeoutTime;return A&&(this._pingTimeoutTime=0,vr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),A}write(A,e,t){return this._sendPacket("message",A,e,t),this}send(A,e,t){return this._sendPacket("message",A,e,t),this}_sendPacket(A,e,t,r){if(typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=null),this.readyState==="closing"||this.readyState==="closed")return;t=t||{},t.compress=t.compress!==!1;const i={type:A,data:e,options:t};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const A=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),A()},t=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?t():A()}):this.upgrading?t():A()),this}_onError(A){if(tt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",A),this._onClose("transport error",A)}_onClose(A,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Sn&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const t=Qr.indexOf(this._offlineEventListener);t!==-1&&Qr.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",A,e),this.writeBuffer=[],this._prevBufferLen=0}}}tt.protocol=Zl;class hg extends tt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let A=0;A<this._upgrades.length;A++)this._probe(this._upgrades[A])}_probe(A){let e=this.createTransport(A),t=!1;tt.priorWebsocketSuccess=!1;const r=()=>{t||(e.send([{type:"ping",data:"probe"}]),e.once("packet",u=>{if(!t)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;tt.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{t||this.readyState!=="closed"&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=e.name,this.emitReserved("upgradeError",f)}}))};function i(){t||(t=!0,c(),e.close(),e=null)}const n=u=>{const f=new Error("probe error: "+u);f.transport=e.name,i(),this.emitReserved("upgradeError",f)};function o(){n("transport closed")}function a(){n("socket closed")}function l(u){e&&u.name!==e.name&&i()}const c=()=>{e.removeListener("open",r),e.removeListener("error",n),e.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};e.once("open",r),e.once("error",n),e.once("close",o),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&A!=="webtransport"?this.setTimeoutFn(()=>{t||e.open()},200):e.open()}onHandshake(A){this._upgrades=this._filterUpgrades(A.upgrades),super.onHandshake(A)}_filterUpgrades(A){const e=[];for(let t=0;t<A.length;t++)~this.transports.indexOf(A[t])&&e.push(A[t]);return e}}let ug=class extends hg{constructor(A,e={}){const t=typeof A=="object"?A:e;(!t.transports||t.transports&&typeof t.transports[0]=="string")&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map(r=>ng[r]).filter(r=>!!r)),super(A,t)}};function fg(s,A="",e){let t=s;e=e||typeof location<"u"&&location,s==null&&(s=e.protocol+"//"+e.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=e.protocol+s:s=e.host+s),/^(https?|wss?):\/\//.test(s)||(typeof e<"u"?s=e.protocol+"//"+s:s="https://"+s),t=xn(s)),t.port||(/^(http|ws)$/.test(t.protocol)?t.port="80":/^(http|ws)s$/.test(t.protocol)&&(t.port="443")),t.path=t.path||"/";const i=t.host.indexOf(":")!==-1?"["+t.host+"]":t.host;return t.id=t.protocol+"://"+i+":"+t.port+A,t.href=t.protocol+"://"+i+(e&&e.port===t.port?"":":"+t.port),t}const dg=typeof ArrayBuffer=="function",Bg=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,sc=Object.prototype.toString,gg=typeof Blob=="function"||typeof Blob<"u"&&sc.call(Blob)==="[object BlobConstructor]",pg=typeof File=="function"||typeof File<"u"&&sc.call(File)==="[object FileConstructor]";function Hn(s){return dg&&(s instanceof ArrayBuffer||Bg(s))||gg&&s instanceof Blob||pg&&s instanceof File}function yr(s,A){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let e=0,t=s.length;e<t;e++)if(yr(s[e]))return!0;return!1}if(Hn(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return yr(s.toJSON(),!0);for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e)&&yr(s[e]))return!0;return!1}function wg(s){const A=[],e=s.data,t=s;return t.data=Ln(e,A),t.attachments=A.length,{packet:t,buffers:A}}function Ln(s,A){if(!s)return s;if(Hn(s)){const e={_placeholder:!0,num:A.length};return A.push(s),e}else if(Array.isArray(s)){const e=new Array(s.length);for(let t=0;t<s.length;t++)e[t]=Ln(s[t],A);return e}else if(typeof s=="object"&&!(s instanceof Date)){const e={};for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=Ln(s[t],A));return e}return s}function mg(s,A){return s.data=In(s.data,A),delete s.attachments,s}function In(s,A){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<A.length)return A[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let e=0;e<s.length;e++)s[e]=In(s[e],A);else if(typeof s=="object")for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&(s[e]=In(s[e],A));return s}const Cg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var yA;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(yA||(yA={}));class vg{constructor(A){this.replacer=A}encode(A){return(A.type===yA.EVENT||A.type===yA.ACK)&&yr(A)?this.encodeAsBinary({type:A.type===yA.EVENT?yA.BINARY_EVENT:yA.BINARY_ACK,nsp:A.nsp,data:A.data,id:A.id}):[this.encodeAsString(A)]}encodeAsString(A){let e=""+A.type;return(A.type===yA.BINARY_EVENT||A.type===yA.BINARY_ACK)&&(e+=A.attachments+"-"),A.nsp&&A.nsp!=="/"&&(e+=A.nsp+","),A.id!=null&&(e+=A.id),A.data!=null&&(e+=JSON.stringify(A.data,this.replacer)),e}encodeAsBinary(A){const e=wg(A),t=this.encodeAsString(e.packet),r=e.buffers;return r.unshift(t),r}}class Tn extends RA{constructor(A){super(),this.reviver=A}add(A){let e;if(typeof A=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(A);const t=e.type===yA.BINARY_EVENT;t||e.type===yA.BINARY_ACK?(e.type=t?yA.EVENT:yA.ACK,this.reconstructor=new bg(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Hn(A)||A.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(A),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+A)}decodeString(A){let e=0;const t={type:Number(A.charAt(0))};if(yA[t.type]===void 0)throw new Error("unknown packet type "+t.type);if(t.type===yA.BINARY_EVENT||t.type===yA.BINARY_ACK){const i=e+1;for(;A.charAt(++e)!=="-"&&e!=A.length;);const n=A.substring(i,e);if(n!=Number(n)||A.charAt(e)!=="-")throw new Error("Illegal attachments");t.attachments=Number(n)}if(A.charAt(e+1)==="/"){const i=e+1;for(;++e&&!(A.charAt(e)===","||e===A.length););t.nsp=A.substring(i,e)}else t.nsp="/";const r=A.charAt(e+1);if(r!==""&&Number(r)==r){const i=e+1;for(;++e;){const n=A.charAt(e);if(n==null||Number(n)!=n){--e;break}if(e===A.length)break}t.id=Number(A.substring(i,e+1))}if(A.charAt(++e)){const i=this.tryParse(A.substr(e));if(Tn.isPayloadValid(t.type,i))t.data=i;else throw new Error("invalid payload")}return t}tryParse(A){try{return JSON.parse(A,this.reviver)}catch{return!1}}static isPayloadValid(A,e){switch(A){case yA.CONNECT:return rc(e);case yA.DISCONNECT:return e===void 0;case yA.CONNECT_ERROR:return typeof e=="string"||rc(e);case yA.EVENT:case yA.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Cg.indexOf(e[0])===-1);case yA.ACK:case yA.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bg{constructor(A){this.packet=A,this.buffers=[],this.reconPack=A}takeBinaryData(A){if(this.buffers.push(A),this.buffers.length===this.reconPack.attachments){const e=mg(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function rc(s){return Object.prototype.toString.call(s)==="[object Object]"}const Qg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Tn,Encoder:vg,get PacketType(){return yA}},Symbol.toStringTag,{value:"Module"}));function He(s,A,e){return s.on(A,e),function(){s.off(A,e)}}const yg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ic extends RA{constructor(A,e,t){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=A,this.nsp=e,t&&t.auth&&(this.auth=t.auth),this._opts=Object.assign({},t),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const A=this.io;this.subs=[He(A,"open",this.onopen.bind(this)),He(A,"packet",this.onpacket.bind(this)),He(A,"error",this.onerror.bind(this)),He(A,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...A){return A.unshift("message"),this.emit.apply(this,A),this}emit(A,...e){var t,r,i;if(yg.hasOwnProperty(A))throw new Error('"'+A.toString()+'" is a reserved event name');if(e.unshift(A),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const n={type:yA.EVENT,data:e};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const c=this.ids++,u=e.pop();this._registerAckCallback(c,u),n.id=c}const o=(r=(t=this.io.engine)===null||t===void 0?void 0:t.transport)===null||r===void 0?void 0:r.writable,a=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(A,e){var t;const r=(t=this.flags.timeout)!==null&&t!==void 0?t:this._opts.ackTimeout;if(r===void 0){this.acks[A]=e;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[A];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===A&&this.sendBuffer.splice(o,1);e.call(this,new Error("operation has timed out"))},r),n=(...o)=>{this.io.clearTimeoutFn(i),e.apply(this,o)};n.withError=!0,this.acks[A]=n}emitWithAck(A,...e){return new Promise((t,r)=>{const i=(n,o)=>n?r(n):t(o);i.withError=!0,e.push(i),this.emit(A,...e)})}_addToQueue(A){let e;typeof A[A.length-1]=="function"&&(e=A.pop());const t={id:this._queueSeq++,tryCount:0,pending:!1,args:A,flags:Object.assign({fromQueue:!0},this.flags)};A.push((r,...i)=>(this._queue[0],r!==null?t.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(r)):(this._queue.shift(),e&&e(null,...i)),t.pending=!1,this._drainQueue())),this._queue.push(t),this._drainQueue()}_drainQueue(A=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!A||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(A){A.nsp=this.nsp,this.io._packet(A)}onopen(){typeof this.auth=="function"?this.auth(A=>{this._sendConnectPacket(A)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(A){this.packet({type:yA.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},A):A})}onerror(A){this.connected||this.emitReserved("connect_error",A)}onclose(A,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",A,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(A=>{if(!this.sendBuffer.some(t=>String(t.id)===A)){const t=this.acks[A];delete this.acks[A],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(A){if(A.nsp===this.nsp)switch(A.type){case yA.CONNECT:A.data&&A.data.sid?this.onconnect(A.data.sid,A.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case yA.EVENT:case yA.BINARY_EVENT:this.onevent(A);break;case yA.ACK:case yA.BINARY_ACK:this.onack(A);break;case yA.DISCONNECT:this.ondisconnect();break;case yA.CONNECT_ERROR:this.destroy();const t=new Error(A.data.message);t.data=A.data.data,this.emitReserved("connect_error",t);break}}onevent(A){const e=A.data||[];A.id!=null&&e.push(this.ack(A.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(A){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const t of e)t.apply(this,A)}super.emit.apply(this,A),this._pid&&A.length&&typeof A[A.length-1]=="string"&&(this._lastOffset=A[A.length-1])}ack(A){const e=this;let t=!1;return function(...r){t||(t=!0,e.packet({type:yA.ACK,id:A,data:r}))}}onack(A){const e=this.acks[A.id];typeof e=="function"&&(delete this.acks[A.id],e.withError&&A.data.unshift(null),e.apply(this,A.data))}onconnect(A,e){this.id=A,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(A=>this.emitEvent(A)),this.receiveBuffer=[],this.sendBuffer.forEach(A=>{this.notifyOutgoingListeners(A),this.packet(A)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(A=>A()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:yA.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(A){return this.flags.compress=A,this}get volatile(){return this.flags.volatile=!0,this}timeout(A){return this.flags.timeout=A,this}onAny(A){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(A),this}prependAny(A){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(A),this}offAny(A){if(!this._anyListeners)return this;if(A){const e=this._anyListeners;for(let t=0;t<e.length;t++)if(A===e[t])return e.splice(t,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(A){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(A),this}prependAnyOutgoing(A){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(A),this}offAnyOutgoing(A){if(!this._anyOutgoingListeners)return this;if(A){const e=this._anyOutgoingListeners;for(let t=0;t<e.length;t++)if(A===e[t])return e.splice(t,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(A){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const t of e)t.apply(this,A.data)}}}function Ot(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Ot.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var A=Math.random(),e=Math.floor(A*this.jitter*s);s=(Math.floor(A*10)&1)==0?s-e:s+e}return Math.min(s,this.max)|0},Ot.prototype.reset=function(){this.attempts=0},Ot.prototype.setMin=function(s){this.ms=s},Ot.prototype.setMax=function(s){this.max=s},Ot.prototype.setJitter=function(s){this.jitter=s};class Mn extends RA{constructor(A,e){var t;super(),this.nsps={},this.subs=[],A&&typeof A=="object"&&(e=A,A=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,br(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((t=e.randomizationFactor)!==null&&t!==void 0?t:.5),this.backoff=new Ot({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=A;const r=e.parser||Qg;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(A){return arguments.length?(this._reconnection=!!A,A||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(A){return A===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=A,this)}reconnectionDelay(A){var e;return A===void 0?this._reconnectionDelay:(this._reconnectionDelay=A,(e=this.backoff)===null||e===void 0||e.setMin(A),this)}randomizationFactor(A){var e;return A===void 0?this._randomizationFactor:(this._randomizationFactor=A,(e=this.backoff)===null||e===void 0||e.setJitter(A),this)}reconnectionDelayMax(A){var e;return A===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=A,(e=this.backoff)===null||e===void 0||e.setMax(A),this)}timeout(A){return arguments.length?(this._timeout=A,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(A){if(~this._readyState.indexOf("open"))return this;this.engine=new ug(this.uri,this.opts);const e=this.engine,t=this;this._readyState="opening",this.skipReconnect=!1;const r=He(e,"open",function(){t.onopen(),A&&A()}),i=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),A?A(o):this.maybeReconnectOnOpen()},n=He(e,"error",i);if(this._timeout!==!1){const o=this._timeout,a=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),e.close()},o);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(r),this.subs.push(n),this}connect(A){return this.open(A)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const A=this.engine;this.subs.push(He(A,"ping",this.onping.bind(this)),He(A,"data",this.ondata.bind(this)),He(A,"error",this.onerror.bind(this)),He(A,"close",this.onclose.bind(this)),He(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(A){try{this.decoder.add(A)}catch(e){this.onclose("parse error",e)}}ondecoded(A){vr(()=>{this.emitReserved("packet",A)},this.setTimeoutFn)}onerror(A){this.emitReserved("error",A)}socket(A,e){let t=this.nsps[A];return t?this._autoConnect&&!t.active&&t.connect():(t=new ic(this,A,e),this.nsps[A]=t),t}_destroy(A){const e=Object.keys(this.nsps);for(const t of e)if(this.nsps[t].active)return;this._close()}_packet(A){const e=this.encoder.encode(A);for(let t=0;t<e.length;t++)this.engine.write(e[t],A.options)}cleanup(){this.subs.forEach(A=>A()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(A,e){var t;this.cleanup(),(t=this.engine)===null||t===void 0||t.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",A,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const A=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const t=this.setTimeoutFn(()=>{A.skipReconnect||(this.emitReserved("reconnect_attempt",A.backoff.attempts),!A.skipReconnect&&A.open(r=>{r?(A._reconnecting=!1,A.reconnect(),this.emitReserved("reconnect_error",r)):A.onreconnect()}))},e);this.opts.autoUnref&&t.unref(),this.subs.push(()=>{this.clearTimeoutFn(t)})}}onreconnect(){const A=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",A)}}const ws={};function Fr(s,A){typeof s=="object"&&(A=s,s=void 0),A=A||{};const e=fg(s,A.path||"/socket.io"),t=e.source,r=e.id,i=e.path,n=ws[r]&&i in ws[r].nsps,o=A.forceNew||A["force new connection"]||A.multiplex===!1||n;let a;return o?a=new Mn(t,A):(ws[r]||(ws[r]=new Mn(t,A)),a=ws[r]),e.query&&!A.query&&(A.query=e.queryKey),a.socket(e.path,A)}Object.assign(Fr,{Manager:Mn,Socket:ic,io:Fr,connect:Fr});let ue="http://localhost:8000";function nc(s){if(!s){console.warn("⚠️ [SOCKET DEBUG] setBaseUrl called with empty URL");return}if(s!==ue){const A=ue;ue=s,console.log(`🔄 [SOCKET DEBUG] SocketService: Changing baseUrl from ${A} to ${s}`),KA&&(console.log("🔄 [SOCKET DEBUG] Disconnecting old socket..."),KA.disconnect(),KA.removeAllListeners(),KA=null)}else console.log(`✅ [SOCKET DEBUG] BaseUrl already set to ${s}, no change needed`)}let KA=null;function Fg(){const A=(()=>{try{return localStorage.getItem("token")||localStorage.getItem("authToken")||localStorage.getItem("accessToken")||localStorage.getItem("jwt_token")}catch{return null}})();console.log("🔧 [SOCKET DEBUG] Creating socket for MT5 backend:",{baseUrl:ue,hasToken:!!A,tokenLength:A?.length||0,note:"Connecting to MT5 backend WebSocket (root namespace for candles)"});const e=Fr(ue,{transports:["websocket","polling"],reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:10,timeout:15e3,forceNew:!1,withCredentials:!0,autoConnect:!0,upgrade:!0,auth:A?{token:A}:void 0});return e.on("connect",()=>{console.log("✅ [SOCKET DEBUG] SocketService: connected to ROOT namespace",{socketId:e.id,baseUrl:ue,transport:e.io.engine.transport.name,namespace:e.nsp.name||"/",note:"This socket connects to CandlesGateway (root namespace)"})}),e.on("disconnect",t=>{console.log("⚠️ [SOCKET DEBUG] SocketService: disconnected:",{reason:t,socketId:e.id})}),e.on("connect_error",t=>{console.error("❌ [SOCKET DEBUG] SocketService: connection error to ROOT namespace:",{message:t?.message,description:t?.description,context:t?.context,type:t?.type,baseUrl:ue,namespace:e.nsp.name||"/",note:"CandlesGateway requires JWT authentication - check if token is valid"})}),e.on("reconnect_attempt",t=>{console.log("🔄 [SOCKET DEBUG] SocketService: reconnect attempt",{attempt:t,baseUrl:ue})}),e.on("reconnect_failed",()=>{console.error("❌ [SOCKET DEBUG] SocketService: failed to reconnect",{baseUrl:ue})}),e.on("reconnect",t=>{console.log("✅ [SOCKET DEBUG] SocketService: reconnected after",{attempts:t,socketId:e.id})}),e}function Dn(){const s=KA?.io?.uri||KA?.io?.opts?.host||null;return!KA||KA.io&&s&&s!==ue?(KA&&(console.log("🔄 [SOCKET DEBUG] Recreating socket:",{oldUri:s,newBaseUrl:ue,wasConnected:KA.connected,reason:"baseUrl changed"}),KA.disconnect(),KA.removeAllListeners(),KA=null),console.log("🔧 [SOCKET DEBUG] Creating new socket instance for MT5 backend:",ue),KA=Fg()):KA.connected?console.log("✅ [SOCKET DEBUG] Reusing existing connected socket:",{socketId:KA.id,connected:KA.connected,baseUrl:ue,uri:s}):console.log("⏳ [SOCKET DEBUG] Socket exists but not connected, waiting...",{socketId:KA.id,baseUrl:ue}),KA}function Ug(s,A){const e=Dn();return e.on(s,A),()=>e.off(s,A)}function Eg(s,A){KA&&KA.off(s,A)}function xg(s,A){Dn().emit(s,A)}function Sg(){return KA?KA.connected?"connected":"connecting":"disconnected"}const Ur={getSocket:Dn,on:Ug,off:Eg,emit:xg,getStatus:Sg,setBaseUrl:nc},Hg={},oc=b.createContext(),Ae=()=>{const s=b.useContext(oc);if(!s)throw new Error("useTrading must be used within TradingProvider");return s},Lg=({children:s,baseUrl:A,endpoints:e,accountId:t})=>{const r=A??(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yi&&yi.tagName.toUpperCase()==="SCRIPT"&&yi.src||new URL("chart-sdk.umd.js",document.baseURI).href}<"u"&&Hg?.VITE_BASE_URL)??"http://localhost:8000",n={...{candles:"/api/chart/candles",symbols:"/symbols",trades:"/trades",account:"/api/user/account"},...e},o=e?.params||{},[a,l]=b.useState("BTCUSD"),[c,u]=b.useState("M1"),[f,g]=b.useState([]),[B,d]=b.useState(!0),[p,m]=b.useState([]),[w,v]=b.useState(!1),[y,E]=b.useState(1e5),[U,T]=b.useState(null),[k,L]=b.useState([]),[iA,J]=b.useState(!0),[hA,aA]=b.useState(!1),[Z,Y]=b.useState(!0),[I,z]=b.useState("candles"),[tA,FA]=b.useState(!1),[vA,SA]=b.useState("dark"),j=b.useRef(null);b.useEffect(()=>{Ur.setBaseUrl(r)},[r]);const rA=b.useRef(new Map),mA=b.useRef(null),fA=1e3,OA=b.useCallback(async()=>{if(!t){console.log("⚠️ No accountId, skipping orders fetch");return}try{const uA=localStorage.getItem("token");if(!uA){console.log("⚠️ No token, skipping orders fetch");return}v(!0);const UA=await MA.get(`${r}/trades/account/${t}`,{headers:{Authorization:`Bearer ${uA}`}});let W=[];Array.isArray(UA.data)?W=UA.data:UA.data?.data&&Array.isArray(UA.data.data)&&(W=UA.data.data);const D=W.filter(X=>X.closePrice===null||X.closePrice===void 0).map(X=>({id:X.id,ticket:X.id?.substring(0,8),symbol:X.symbol,type:X.type,volume:X.volume,price:X.openPrice,stopLoss:X.stopLoss,takeProfit:X.takeProfit,comment:X.comment||"",status:"OPEN",swap:0,profit:X.profit||0,profitCurrency:"USD",time:new Date(X.openedAt||X.openAt||Date.now()).toLocaleTimeString(),openAt:X.openedAt||X.openAt,closeAt:X.closedAt||X.closeAt}));m(D)}catch(uA){console.error("❌ Error fetching orders:",uA.response?.data||uA.message),m([])}finally{v(!1)}},[r,t]),LA=b.useCallback((uA,UA)=>!UA||!uA.price||isNaN(UA)||isNaN(uA.price)?uA.profit||0:(uA.type==="BUY"?UA-uA.price:uA.price-UA)*uA.volume,[]),ge=b.useCallback(async()=>{try{const uA=localStorage.getItem("token");if(!uA){console.log("⚠️ No token, skipping balance fetch");return}const UA=await MA.get(`${r}${n.account}`,{headers:{Authorization:`Bearer ${uA}`}});if(UA.data&&UA.data.data){const W=parseFloat(UA.data.data.balance);isNaN(W)||E(W)}}catch(uA){console.error("❌ Error fetching user balance:",uA.response?.data||uA.message)}},[r]),Et=b.useMemo(()=>{const uA=y,UA=p.reduce((dA,QA)=>dA+QA.volume*QA.price*.01,0),W=p.reduce((dA,QA)=>{const JA=f.find(pe=>pe.symbol===QA.symbol);if(JA){const pe=QA.type==="BUY"?parseFloat(JA.bid||0):parseFloat(JA.ask||0);if(pe&&pe>0&&!isNaN(pe))return dA+LA(QA,pe)}return dA+(QA.profit||0)},0),D=uA+W,X=D-UA,N=UA>0?D/UA*100:0;return{balance:uA,equity:D,margin:UA,freeMargin:X,level:N.toFixed(2)}},[p,f,y,LA]);b.useEffect(()=>{localStorage.getItem("token")&&t&&(OA(),ge())},[OA,ge,t]),b.useEffect(()=>{(async()=>{try{d(!0);const UA=n.symbols.includes("?")?`${r}${n.symbols}`:`${r}${n.symbols}`,W=await MA.get(UA);let D=[];Array.isArray(W.data)?(console.log("1 console",W.data),D=W.data):W.data&&W.data.data&&Array.isArray(W.data.data)?(console.log("2 console",W.data.data),D=W.data.data):W.data&&W.data.prices&&Array.isArray(W.data.prices)?(console.log("3 console",W.data.price),D=W.data.prices):W.data&&Array.isArray(W.data)&&(D=W.data,console.log("else format",W.data));const X=D.map(N=>N.symbol&&(N.bid!==void 0||N.price!==void 0)?{symbol:N.symbol,bid:N.bid??N.price??0,ask:N.ask??N.price??0,change:N.change??0}:N);X.length>0?(g(X),X.find(dA=>dA.symbol===a)||l(X[0].symbol)):g([])}catch(UA){console.error("❌ Error fetching symbols:",UA.response?.data||UA.message),g([])}finally{d(!1)}})()},[r,n.symbols]);const xt=b.useCallback(()=>{const uA=rA.current;if(uA.size===0)return;const UA=new Map(uA);uA.clear(),g(W=>W.map(D=>{const X=UA.get(D.symbol);return X?{...D,...X}:D})),m(W=>{let D=!1;const X=W.map(N=>{const dA=UA.get(N.symbol);if(!dA)return N;const QA=N.type==="BUY"?parseFloat(dA.bid||0):parseFloat(dA.ask||0);if(!QA||isNaN(QA)||QA<=0)return N;const JA=LA(N,QA);return JA===N.profit?N:(D=!0,{...N,profit:JA})});return D?X:W})},[LA]);b.useEffect(()=>{j.current||(j.current=Ur.getSocket());const uA=j.current,UA=()=>console.log("✅ TradingContext: Connected"),W=()=>console.log("⚠️ TradingContext: Disconnected"),D=N=>{N?.symbol&&(rA.current.set(N.symbol,N),mA.current||(mA.current=setTimeout(()=>{mA.current=null,xt()},fA)))},X=async N=>{if(console.log("🔔 Trade closed event received:",N),!!N){if(N.newBalance!==void 0){const dA=parseFloat(N.newBalance);isNaN(dA)||E(dA)}if(window.notify){const dA=N.profitLoss||N.profit||0,QA=dA>=0?`+${dA.toFixed(2)}`:dA.toFixed(2),JA=N.symbol||"Trade",pe=N.reason||"Closed";window.notify(`Trade Closed: ${pe} | ${JA} | P/L: ${QA} USD`,dA>=0?"success":"error")}N.tradeId&&m(dA=>dA.filter(QA=>QA.id!==N.tradeId)),await OA(),await ge()}};return uA.on("connect",UA),uA.on("disconnect",W),uA.on("priceUpdate",D),uA.on("tradeClosed",X),()=>{uA.off("connect",UA),uA.off("disconnect",W),uA.off("priceUpdate",D),uA.off("tradeClosed",X),mA.current&&(clearTimeout(mA.current),mA.current=null),rA.current.clear()}},[xt,OA,ge]),b.useEffect(()=>{try{const uA=document.documentElement;if(!uA)return;uA.dataset.theme=vA}catch{}},[vA]);const Te=b.useMemo(()=>f.find(uA=>uA.symbol===a)||{bid:"0.00000",ask:"0.00000",change:0},[f,a]),qt=b.useMemo(()=>({selectedSymbol:a,setSelectedSymbol:l,selectedTimeframe:c,setSelectedTimeframe:u,symbols:f,setSymbols:g,symbolsLoading:B,orders:p,setOrders:m,ordersLoading:w,fetchOrders:OA,fetchUserBalance:ge,userBalance:y,setUserBalance:E,accountSummary:Et,currentSymbolData:Te,activeTool:U,setActiveTool:T,chartObjects:k,setChartObjects:L,showGrid:iA,setShowGrid:J,snapToGrid:hA,setSnapToGrid:aA,drawingsVisible:Z,setDrawingsVisible:Y,chartType:I,setChartType:z,chartLocked:tA,setChartLocked:FA,theme:vA,setTheme:SA,baseUrl:r,endpoints:n,endpointParams:o,accountId:t}),[a,c,f,B,p,w,OA,ge,y,Et,Te,U,k,iA,hA,Z,I,tA,vA,r,n,o]);return h.jsx(oc.Provider,{value:qt,children:s})};var ac={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lc=b.createContext&&b.createContext(ac),Ig=["attr","size","title"];function Tg(s,A){if(s==null)return{};var e=Mg(s,A),t,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);for(r=0;r<i.length;r++)t=i[r],!(A.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(s,t)&&(e[t]=s[t])}return e}function Mg(s,A){if(s==null)return{};var e={};for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)){if(A.indexOf(t)>=0)continue;e[t]=s[t]}return e}function Er(){return Er=Object.assign?Object.assign.bind():function(s){for(var A=1;A<arguments.length;A++){var e=arguments[A];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])}return s},Er.apply(this,arguments)}function cc(s,A){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(s);A&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),e.push.apply(e,t)}return e}function xr(s){for(var A=1;A<arguments.length;A++){var e=arguments[A]!=null?arguments[A]:{};A%2?cc(Object(e),!0).forEach(function(t){Dg(s,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):cc(Object(e)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(e,t))})}return s}function Dg(s,A,e){return A=kg(A),A in s?Object.defineProperty(s,A,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[A]=e,s}function kg(s){var A=_g(s,"string");return typeof A=="symbol"?A:A+""}function _g(s,A){if(typeof s!="object"||!s)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var t=e.call(s,A);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(s)}function hc(s){return s&&s.map((A,e)=>b.createElement(A.tag,xr({key:e},A.attr),hc(A.child)))}function ms(s){return A=>b.createElement(Og,Er({attr:xr({},s.attr)},A),hc(s.child))}function Og(s){var A=e=>{var{attr:t,size:r,title:i}=s,n=Tg(s,Ig),o=r||e.size||"1em",a;return e.className&&(a=e.className),s.className&&(a=(a?a+" ":"")+s.className),b.createElement("svg",Er({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,n,{className:a,style:xr(xr({color:s.color||e.color},e.style),s.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),i&&b.createElement("title",null,i),s.children)};return lc!==void 0?b.createElement(lc.Consumer,null,e=>A(e)):A(ac)}function Ng(s){return ms({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(s)}function Kg(s){return ms({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(s)}const uc=({bidPrice:s,askPrice:A,onBuyClick:e,onSellClick:t})=>{const{theme:r}=Ae(),i=r==="light",[n,o]=b.useState("0.01"),a=i?"bg-slate-100":"bg-[#12161d]",l=i?"text-slate-700":"text-white",c=i?"hover:bg-slate-200":"hover:bg-[#1e2635]",u=B=>{const d=parseFloat(n)||.01,p=Math.max(.01,d+B);o(p.toFixed(2))},f=()=>{e&&e({volume:parseFloat(n)})},g=()=>{t&&t({volume:parseFloat(n)})};return h.jsxs("div",{className:"flex items-stretch h-[30px] text-xs font-semibold select-none",children:[h.jsxs("button",{onClick:g,className:"flex items-stretch overflow-hidden",children:[h.jsx("span",{className:"flex items-center px-2.5 font-mono tabular-nums bg-[#BD3E3E] text-white",children:s||"—"}),h.jsx("span",{className:"flex items-center px-2.5 tracking-wide bg-[#DE4848] text-white",children:"SELL"})]}),h.jsxs("div",{className:`flex items-stretch ${a}`,children:[h.jsx("button",{type:"button",onClick:()=>u(-.01),className:`w-5 flex items-center justify-center ${l} ${c} transition-colors`,children:h.jsx(Ng,{size:8})}),h.jsx("input",{type:"number",value:n,onChange:B=>{const d=B.target.value;(d===""||parseFloat(d)>=0)&&o(d)},onBlur:()=>{const B=parseFloat(n);o(isNaN(B)||B<.01?"0.01":B.toFixed(2))},className:`w-14 text-center focus:outline-none ${a} ${l}`,step:"0.01",min:"0.01",style:{MozAppearance:"textfield"}}),h.jsx("button",{type:"button",onClick:()=>u(.01),className:`w-5 flex items-center justify-center ${l} ${c} transition-colors`,children:h.jsx(Kg,{size:8})})]}),h.jsxs("button",{onClick:f,className:"flex items-stretch overflow-hidden",children:[h.jsx("span",{className:"flex items-center px-2.5 tracking-wide bg-[#2869CE] text-white",children:"BUY"}),h.jsx("span",{className:"flex items-center px-2.5 font-mono tabular-nums bg-[#2F7CF2] text-white",children:A||"—"})]})]})},Vg={},fc=({isOpen:s,onClose:A,orderType:e,bidPrice:t,askPrice:r,onExecuteTrade:i,userAccountId:n,initialVolume:o})=>{const{selectedSymbol:a,selectedTimeframe:l,setOrders:c,symbols:u,fetchOrders:f,theme:g,baseUrl:B,endpoints:d}=Ae(),p=g==="light",[m,w]=b.useState("0.01"),[v,y]=b.useState(""),[E,U]=b.useState(""),[T,k]=b.useState(""),[L,iA]=b.useState(!1),[J,hA]=b.useState(null),[aA,Z]=b.useState(""),[Y,I]=b.useState(e||"BUY"),[z,tA]=b.useState(parseFloat(t)||0),[FA,vA]=b.useState(parseFloat(r)||0),[SA,j]=b.useState("text-white"),[rA,mA]=b.useState("text-white"),fA=b.useRef(parseFloat(t)||0),OA=b.useRef(parseFloat(r)||0);b.useEffect(()=>{if(!s)return;const W=Ur.getSocket(),D=N=>{if(!(!N||!N.symbol)&&N.symbol.toUpperCase()===a?.toUpperCase()){const dA=parseFloat(N.bid)||0,QA=parseFloat(N.ask)||0;dA>0&&(dA>fA.current?(j("text-green-400"),setTimeout(()=>j("text-white"),500)):dA<fA.current&&fA.current>0&&(j("text-red-400"),setTimeout(()=>j("text-white"),500)),tA(dA),fA.current=dA),QA>0&&(QA>OA.current?(mA("text-green-400"),setTimeout(()=>mA("text-white"),500)):QA<OA.current&&OA.current>0&&(mA("text-red-400"),setTimeout(()=>mA("text-white"),500)),vA(QA),OA.current=QA)}};W.on("priceUpdate",D);const X=u.find(N=>N.symbol===a);if(X){const N=parseFloat(X.bid)||0,dA=parseFloat(X.ask)||0;N>0&&(tA(N),fA.current=N),dA>0&&(vA(dA),OA.current=dA)}return()=>{W.off("priceUpdate",D)}},[s,a,u]),b.useEffect(()=>{if(s){w(o?String(o):"0.01"),y(""),U(""),k(""),Z(""),I(e||"BUY");const W=parseFloat(t)||0,D=parseFloat(r)||0;W>0&&(tA(W),fA.current=W),D>0&&(vA(D),OA.current=D)}},[s,e,t,r,o]);const LA=z||0,ge=FA||0,Et=W=>{const D=parseFloat(m)||.01,X=Math.max(.01,D+W);w(X.toFixed(2))},xt=W=>{const D=parseFloat(v)||0,X=parseFloat(Y==="BUY"?FA:z)||0;if(!X){Z("Current price not available. Please wait...");return}let N=D+W;Y==="BUY"?N=Math.max(1e-5,Math.min(N,X-1e-5)):N=Math.max(X+1e-5,N),y(N>0?N.toFixed(5):""),Z("")},Te=W=>{const D=parseFloat(E)||0,X=parseFloat(Y==="BUY"?FA:z)||0;if(!X){Z("Current price not available. Please wait...");return}let N=D+W;Y==="BUY"?N=Math.max(X+1e-5,N):N=Math.max(1e-5,Math.min(N,X-1e-5)),U(N>0?N.toFixed(5):""),Z("")},qt=async W=>{Z("");const D=W||Y,X=parseFloat(D==="BUY"?FA:z),N=parseFloat(m),dA=v?parseFloat(v):null,QA=E?parseFloat(E):null;if(!N||N<=0||isNaN(N)){Z("Please enter a valid volume (minimum 0.01)");return}if(N<.01){Z("Volume must be at least 0.01");return}if(!X||X<=0||isNaN(X)){Z("Invalid price. Please refresh and try again.");return}if(dA!==null&&dA!==""){if(isNaN(dA)||dA<=0){Z("Stop Loss must be a valid positive number");return}if(D==="BUY"&&dA>=X){Z("Stop Loss must be below the current price for BUY orders");return}if(D==="SELL"&&dA<=X){Z("Stop Loss must be above the current price for SELL orders");return}}if(QA!==null&&QA!==""){if(isNaN(QA)||QA<=0){Z("Take Profit must be a valid positive number");return}if(D==="BUY"){if(QA<=X){Z(`Take Profit must be above the entry price (${X.toFixed(5)}) for BUY orders`);return}}else if(D==="SELL"&&QA>=X){Z(`Take Profit must be below the entry price (${X.toFixed(5)}) for SELL orders`);return}}I(D),hA(D),iA(!0);const JA=new Date,pe=JA.toLocaleTimeString(),ze=`temp_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,Qi=localStorage.getItem("token");if(!Qi){Z("Please login to place trades"),iA(!1),hA(null);return}const _o={accountId:n,symbol:a,type:D,volume:N,price:X,takeProfit:QA,stopLoss:dA,comment:T.trim()||null},Oo={ticket:ze.substring(0,8),symbol:a,type:D,volume:parseFloat(N),price:parseFloat(X),time:pe,stopLoss:dA?parseFloat(dA):null,takeProfit:QA?parseFloat(QA):null,swap:0,profit:0,profitCurrency:"USD",comment:T.trim()||"",id:ze,status:"OPEN",openAt:JA.toISOString()};if(c&&c(C=>[...C,Oo]),i){iA(!1),hA(null),A();const C={symbol:a,type:D,lotSize:N,entryPrice:X,stopLoss:dA,takeProfit:QA,comment:T.trim()||null};Promise.resolve(i(C)).then(()=>{console.log("✅ Trade executed successfully via parent handler"),f&&f()}).catch(F=>{console.error("❌ Trade execution failed:",F),c&&c(S=>S.filter(M=>M.id!==ze))})}else{iA(!1),hA(null),A();const C=B||Vg?.VITE_BASE_URL||"http://localhost:8000",F=d?.trades||"/api/trades";MA.post(`${C}${F}`,_o,{headers:{Authorization:`Bearer ${Qi}`,"Content-Type":"application/json"}}).then(S=>{if(S.data&&S.data.data){const M=S.data.data.trade;c&&c(x=>x.map(K=>K.id===ze?{...K,id:M.id,ticket:M.id.substring(0,8),time:pe,openAt:M.openAt}:K)),console.log("✅ Trade saved successfully:",M),window.notify&&window.notify(`Trade placed successfully: ${M.symbol} ${M.type}`,"success")}else{c&&c(x=>x.filter(K=>K.id!==ze));const M=S.data?.message||"Failed to place trade";window.notify&&window.notify(M,"error")}}).catch(S=>{console.error("Error placing trade:",S),c&&c(x=>x.filter(K=>K.id!==ze));let M="Failed to place trade";if(S.response){const x=S.response.status,K=S.response.data;x===400?M=K?.message||"Invalid trade data. Please check your inputs.":x===401?M="Authentication failed. Please login again.":x===404?M=K?.message||"Symbol not found. Please select a valid symbol.":x===500?M="Server error. Please try again later.":M=K?.message||`Error: ${x}`}else S.request&&(M="Network error. Please check your internet connection.");window.notify&&window.notify(M,"error")})}},UA=((parseFloat(m)||0)*1e5).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return s?h.jsxs("div",{className:`w-full flex flex-col pointer-events-auto z-30 h-full ${p?"bg-white border-r border-slate-300":"bg-[#12161d] border-r border-slate-700"}`,children:[h.jsxs("div",{className:`px-4 py-2.5 flex items-center justify-between border-b ${p?"border-slate-300 bg-white":"border-slate-700 bg-[#12161d]"}`,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:`text-sm font-semibold ${p?"text-slate-800":"text-white"}`,children:"Market Execution"}),h.jsx("button",{className:`p-0.5 transition-colors ${p?"text-slate-600 hover:text-slate-800":"text-white hover:text-white"}`,children:h.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),h.jsx("button",{onClick:A,className:`p-1 rounded transition-colors ${p?"text-slate-600 hover:text-slate-800 hover:bg-slate-100":"text-white hover:text-white hover:bg-[#12161d]"}`,children:h.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"overflow-y-auto p-4 space-y-4 flex-1",children:[aA&&h.jsx("div",{className:"p-2 rounded-lg bg-rose-500/10 border border-rose-500/50 text-rose-400 text-xs",children:aA}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-4",children:[h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Volume"}),h.jsxs("span",{className:`text-sm ${p?"text-slate-700":"text-white"}`,children:[UA," ",a]})]}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>Et(-.01),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,children:"−"}),h.jsx("input",{type:"number",value:m,onChange:W=>{w(W.target.value),Z("")},className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-white"}`,step:"0.01",min:"0.01",placeholder:"0.01"}),h.jsx("button",{type:"button",onClick:()=>Et(.01),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,children:"+"})]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Stop Loss"})}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>xt(-1e-4),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Decrease SL",children:"−"}),h.jsx("input",{type:"text",value:v,onChange:W=>{const D=W.target.value;(D===""||/^\d*\.?\d*$/.test(D))&&(y(D),Z(""))},onBlur:W=>{const D=parseFloat(W.target.value);!isNaN(D)&&D>0?y(D.toFixed(5)):W.target.value===""&&y("")},placeholder:"0.00000",className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`}),h.jsx("button",{type:"button",onClick:()=>xt(1e-4),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Increase SL",children:"+"})]})]}),h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Take Profit"})}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>Te(-1e-4),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Decrease TP",children:"−"}),h.jsx("input",{type:"text",value:E,onChange:W=>{const D=W.target.value;(D===""||/^\d*\.?\d*$/.test(D))&&(U(D),Z(""))},onBlur:W=>{const D=parseFloat(W.target.value);!isNaN(D)&&D>0?U(D.toFixed(5)):W.target.value===""&&U("")},placeholder:"0.00000",className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`}),h.jsx("button",{type:"button",onClick:()=>Te(1e-4),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Increase TP",children:"+"})]})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:`block text-sm font-medium mb-2 ${p?"text-slate-700":"text-white"}`,children:"Comment"}),h.jsx("textarea",{value:T,onChange:W=>k(W.target.value),placeholder:"Optional comment",rows:2,className:`w-full px-3 py-2 rounded text-sm focus:outline-none focus:border-secondary resize-none ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`})]}),h.jsxs("div",{className:`flex items-center justify-between py-2 border-t ${p?"border-slate-400":"border-slate-700"}`,children:[h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:p?"text-slate-700":"text-white",children:"Bid: "}),h.jsx("span",{className:`${SA} font-medium transition-colors duration-400`,children:LA>0?LA.toFixed(5):"---"})]}),h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:p?"text-slate-700":"text-white",children:"Ask: "}),h.jsx("span",{className:`${rA} font-medium transition-colors duration-400`,children:ge>0?ge.toFixed(5):"---"})]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[h.jsx("button",{onClick:()=>qt("SELL"),disabled:L,className:"px-4 py-3 bg-rose-600 hover:bg-rose-700 text-white font-semibold rounded text-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:L&&J==="SELL"?h.jsxs("span",{className:"flex items-center justify-center gap-2",children:[h.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Placing..."]}):"Sell by Market"}),h.jsx("button",{onClick:()=>qt("BUY"),disabled:L,className:"px-4 py-3 bg-sky-600 hover:bg-sky-700 text-white font-semibold rounded text-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:L&&J==="BUY"?h.jsxs("span",{className:"flex items-center justify-center gap-2",children:[h.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Placing..."]}):"Buy by Market"})]})]})]}):null};function zA(s){if(s==null)return null;if(typeof s=="number"){if(Number.isNaN(s)||!Number.isFinite(s))return null;let A;s>1e10?A=s/1e3:(s<1e9,A=s);const e=Math.floor(A);return e<946684800||e>4102444800?null:e}if(typeof s=="string"){const A=Date.parse(s);return Number.isNaN(A)?null:Math.floor(A/1e3)}if(typeof s=="object"&&"year"in s&&"month"in s&&"day"in s){const e=new Date(Date.UTC(s.year,s.month-1,s.day)).getTime();return Number.isNaN(e)?null:Math.floor(e/1e3)}return null}function Pg(s,A){if(!s||s.length<2)return[];const e=[],t=2;for(let r=1;r<s.length;r++){const i=s[r-1].time,n=s[r].time,o=n-i;o>A*t&&e.push({from:i,to:n,gapSeconds:o,gapHours:(o/3600).toFixed(1),fromDate:new Date(i*1e3).toISOString(),toDate:new Date(n*1e3).toISOString()})}return e}function Gg(s,A="America/New_York"){const e=new Date(s*1e3),t=new Date(e.toLocaleString("en-US",{timeZone:A})),r=t.getDay();return!(r===0||r===6||r===5&&t.getHours()>=17)}function dc(s){return Array.isArray(s)?s.map(A=>({...A,time:zA(A.time)})).filter(A=>A.time!=null):[]}function Rg(s){if(!s||s.length<2)return!0;for(let A=1;A<s.length;A++)if(s[A].time<=s[A-1].time)return!1;return!0}function Nt(s,A){return!Number.isFinite(s)||!Number.isFinite(A)||A<=0?s:Math.floor(s/A)*A}const ee="17:00-17:00",te="America/New_York",Oe="24x7",Ne="UTC",Bc={EURUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},GBPUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDCHF:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},AUDUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDCAD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},NZDUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURGBP:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},GBPJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},CADJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},XAUUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},XAGUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},OILUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},BTCUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},ETHUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},BNBUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},SOLUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},ADAUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},XRPUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},DOGEUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},DOTUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},MATICUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},LINKUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"}},gc={type:"forex",sessionTZ:te,session:ee,priceMode:"mid"};function Cs(s){return s&&Bc[s.toUpperCase()]||gc}function zg(s){return Cs(s).type==="forex"}function Wg(s){return Cs(s).type==="crypto"}function Xg(s){return Cs(s).session==="24x7"}function pc(s){if(!s||typeof s!="object")return!1;const{time:A,open:e,high:t,low:r,close:i,volume:n}=s;return!(zA(A)==null||typeof e!="number"||!Number.isFinite(e)||typeof t!="number"||!Number.isFinite(t)||typeof r!="number"||!Number.isFinite(r)||typeof i!="number"||!Number.isFinite(i)||n!=null&&(typeof n!="number"||n<0||!Number.isFinite(n))||t<e||t<i||t<r||r>e||r>i||r>t||e<=0||t<=0||r<=0||i<=0)}function wc(s){const A=n=>Math.round(n*1e5)/1e5;let e=A(s.open),t=A(s.high),r=A(s.low),i=A(s.close);return t=Math.max(t,e,i,r),r=Math.min(r,e,i,t),{...s,open:e,high:t,low:r,close:i,volume:s.volume!=null?Math.round(s.volume):s.volume}}function mc(s){if(!Array.isArray(s)||s.length===0)return[];const A=new Map;return s.forEach(e=>{const t=zA(e.time);if(t!=null)if(A.has(t)){const r=A.get(t);A.set(t,{...e,time:t,open:e.open,high:Math.max(r.high,e.high),low:Math.min(r.low,e.low),close:e.close,volume:(r.volume||0)+(e.volume||0)})}else A.set(t,{...e,time:t})}),Array.from(A.values())}function $g(s,A="percentile"){if(!Array.isArray(s)||s.length<3)return s;const e=s.map(n=>n.close).filter(n=>Number.isFinite(n));if(e.length<3)return s;const t=[...e].sort((n,o)=>n-o);let r,i;if(A==="percentile"){const n=Math.floor(t.length*.25),o=Math.floor(t.length*.75),a=t[n],l=t[o],c=l-a;r=a-1.5*c,i=l+1.5*c}else{const n=e.reduce((l,c)=>l+c,0)/e.length,o=e.reduce((l,c)=>l+Math.pow(c-n,2),0)/e.length,a=Math.sqrt(o);if(a===0)return s;r=n-3*a,i=n+3*a}return s.map((n,o)=>{const a=n.close;if(a<r||a>i){if(o===0)return n;const l=s[o-1].close;return{...n,open:l,high:Math.max(l,n.high),low:Math.min(l,n.low),close:l}}return n})}function Jg(s,A){if(!Array.isArray(s)||s.length===0)return s;const e=[],t=Math.max(A*10080,604800),r=1e4;for(let o=0;o<s.length;o++)if(e.push(s[o]),o<s.length-1){const a=s[o].time,l=s[o+1].time,c=l-a;if(c>t&&((c/3600).toFixed(1),(t/3600).toFixed(1)),c>A&&c<=t){const u=s[o];let f=a+A,g=0;for(f=Nt(f,A);f<l&&g<r;){const B=Nt(f,A);e.some(p=>p.time===B)||(e.push({time:B,open:u.close,high:u.close,low:u.close,close:u.close,volume:0}),g++),f+=A}if(f<l&&g>=r){const B=Nt(l-A,A);e.some(p=>p.time===B)||e.push({time:B,open:u.close,high:u.close,low:u.close,close:u.close,volume:0})}}}e.sort((o,a)=>o.time-a.time);const i=[],n=new Set;for(const o of e)n.has(o.time)||(n.add(o.time),i.push(o));return i}function Sr(s){if(!s||typeof s!="string")return 60;const A=s.toUpperCase();if(A==="MN")return 2592e3;let e=A.match(/^([MHDW])(\d+)$/);if(e){const t=e[1];return parseInt(e[2],10)*({M:60,H:3600,D:86400,W:604800}[t]||60)}if(e=s.match(/^(\d+)([mhdwy])$/i),e){const t=parseInt(e[1],10),r=e[2].toLowerCase();return t*({m:60,h:3600,d:86400,w:604800,y:31536e3}[r]||60)}return 60}function Cc(s,A,e){if(!Array.isArray(s)||s.length===0)return{candles:[],stats:{original:0,processed:0,duplicates:0,outliers:0,gaps:[]}};const t=Cs(A),r=Sr(e),o=dc(s).map(p=>({...p,time:Nt(p.time,r)})).filter(p=>pc(p)).map(p=>wc(p)),a=mc(o);a.sort((p,m)=>p.time-m.time);const l=a.filter((p,m)=>m===0?!0:p.time>a[m-1].time),c=l.length>10?$g(l,"percentile"):l,u=mc(c);u.sort((p,m)=>p.time-m.time);const f=Jg(u,r),g=[];for(let p=1;p<f.length;p++){const m=f[p].time-f[p-1].time;m>r*2&&g.push({from:f[p-1].time,to:f[p].time,gapSeconds:m,gapMinutes:Math.round(m/60),fromDate:new Date(f[p-1].time*1e3).toISOString(),toDate:new Date(f[p].time*1e3).toISOString()})}const B=c.filter((p,m)=>m===0?!1:p.close===c[m-1].close&&p.open===c[m-1].close).length,d={original:s.length,processed:f.length,duplicates:s.length-a.length,outliers:B,gaps:g,filledGaps:f.length-u.length,symbolConfig:t};return{candles:f,stats:d}}function vc(s,A,e="1m"){if(!s||!A||!pc(s))return null;const t=zA(s.time);if(t==null)return null;const r=Sr(e),i=Nt(t,r);return wc({...s,time:i})}var kn=function(s,A){return kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},kn(s,A)};function Le(s,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");kn(s,A);function e(){this.constructor=s}s.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var _n=function(){return _n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},_n.apply(this,arguments)};function oe(s,A,e,t){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function o(c){try{l(t.next(c))}catch(u){n(u)}}function a(c){try{l(t.throw(c))}catch(u){n(u)}}function l(c){c.done?i(c.value):r(c.value).then(o,a)}l((t=t.apply(s,[])).next())})}function se(s,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,r,i,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(l){return function(c){return a([l,c])}}function a(l){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,r=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){e.label=l[1];break}if(l[0]===6&&e.label<i[1]){e.label=i[1],i=l;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(l);break}i[2]&&e.ops.pop(),e.trys.pop();continue}l=A.call(s,e)}catch(c){l=[6,c],r=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Hr(s,A,e){if(arguments.length===2)for(var t=0,r=A.length,i;t<r;t++)(i||!(t in A))&&(i||(i=Array.prototype.slice.call(A,0,t)),i[t]=A[t]);return s.concat(i||A)}for(var Ze=(function(){function s(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return s.prototype.add=function(A,e,t,r){return new s(this.left+A,this.top+e,this.width+t,this.height+r)},s.fromClientRect=function(A,e){return new s(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},s.fromDOMRectList=function(A,e){var t=Array.from(e).find(function(r){return r.width!==0});return t?new s(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),Lr=function(s,A){return Ze.fromClientRect(s,A.getBoundingClientRect())},Zg=function(s){var A=s.body,e=s.documentElement;if(!A||!e)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),r=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Ze(0,0,t,r)},Ir=function(s){for(var A=[],e=0,t=s.length;e<t;){var r=s.charCodeAt(e++);if(r>=55296&&r<=56319&&e<t){var i=s.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},PA=function(){for(var s=[],A=0;A<arguments.length;A++)s[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var e=s.length;if(!e)return"";for(var t=[],r=-1,i="";++r<e;){var n=s[r];n<=65535?t.push(n):(n-=65536,t.push((n>>10)+55296,n%1024+56320)),(r+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yg=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tr=0;Tr<bc.length;Tr++)Yg[bc.charCodeAt(Tr)]=Tr;for(var Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mr=0;Mr<Qc.length;Mr++)vs[Qc.charCodeAt(Mr)]=Mr;for(var qg=function(s){var A=s.length*.75,e=s.length,t,r=0,i,n,o,a;s[s.length-1]==="="&&(A--,s[s.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)i=vs[s.charCodeAt(t)],n=vs[s.charCodeAt(t+1)],o=vs[s.charCodeAt(t+2)],a=vs[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},jg=function(s){for(var A=s.length,e=[],t=0;t<A;t+=2)e.push(s[t+1]<<8|s[t]);return e},Ap=function(s){for(var A=s.length,e=[],t=0;t<A;t+=4)e.push(s[t+3]<<24|s[t+2]<<16|s[t+1]<<8|s[t]);return e},bt=5,On=11,Nn=2,ep=On-bt,yc=65536>>bt,tp=1<<bt,Kn=tp-1,sp=1024>>bt,rp=yc+sp,ip=rp,np=32,op=ip+np,ap=65536>>On,lp=1<<ep,cp=lp-1,Fc=function(s,A,e){return s.slice?s.slice(A,e):new Uint16Array(Array.prototype.slice.call(s,A,e))},hp=function(s,A,e){return s.slice?s.slice(A,e):new Uint32Array(Array.prototype.slice.call(s,A,e))},up=function(s,A){var e=qg(s),t=Array.isArray(e)?Ap(e):new Uint32Array(e),r=Array.isArray(e)?jg(e):new Uint16Array(e),i=24,n=Fc(r,i/2,t[4]/2),o=t[5]===2?Fc(r,(i+t[4])/2):hp(t,Math.ceil((i+t[4])/4));return new fp(t[0],t[1],t[2],t[3],n,o)},fp=(function(){function s(A,e,t,r,i,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=i,this.data=n}return s.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>bt],e=(e<<Nn)+(A&Kn),this.data[e];if(A<=65535)return e=this.index[yc+(A-55296>>bt)],e=(e<<Nn)+(A&Kn),this.data[e];if(A<this.highStart)return e=op-ap+(A>>On),e=this.index[e],e+=A>>bt&cp,e=this.index[e],e=(e<<Nn)+(A&Kn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dp=typeof Uint8Array>"u"?[]:new Uint8Array(256),Dr=0;Dr<Uc.length;Dr++)dp[Uc.charCodeAt(Dr)]=Dr;var Bp="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAA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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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nCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAG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x1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAA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AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAB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FgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJ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B4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJ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IAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ec=50,gp=1,xc=2,Sc=3,pp=4,wp=5,Hc=7,Lc=8,Ic=9,st=10,Vn=11,Tc=12,Pn=13,mp=14,bs=15,Gn=16,kr=17,Qs=18,Cp=19,Mc=20,Rn=21,ys=22,zn=23,Kt=24,we=25,Fs=26,Us=27,Vt=28,vp=29,Qt=30,bp=31,_r=32,Or=33,Wn=34,Xn=35,$n=36,Es=37,Jn=38,Nr=39,Kr=40,Zn=41,Dc=42,Qp=43,yp=[9001,65288],kc="!",bA="×",Vr="÷",Yn=up(Bp),Ye=[Qt,$n],qn=[gp,xc,Sc,wp],_c=[st,Lc],Oc=[Us,Fs],Fp=qn.concat(_c),Nc=[Jn,Nr,Kr,Wn,Xn],Up=[bs,Pn],Ep=function(s,A){A===void 0&&(A="strict");var e=[],t=[],r=[];return s.forEach(function(i,n){var o=Yn.get(i);if(o>Ec?(r.push(!0),o-=Ec):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return t.push(n),e.push(Gn);if(o===pp||o===Vn){if(n===0)return t.push(n),e.push(Qt);var a=e[n-1];return Fp.indexOf(a)===-1?(t.push(t[n-1]),e.push(a)):(t.push(n),e.push(Qt))}if(t.push(n),o===bp)return e.push(A==="strict"?Rn:Es);if(o===Dc||o===vp)return e.push(Qt);if(o===Qp)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Es):e.push(Qt);e.push(o)}),[t,e,r]},jn=function(s,A,e,t){var r=t[e];if(Array.isArray(s)?s.indexOf(r)!==-1:s===r)for(var i=e;i<=t.length;){i++;var n=t[i];if(n===A)return!0;if(n!==st)break}if(r===st)for(var i=e;i>0;){i--;var o=t[i];if(Array.isArray(s)?s.indexOf(o)!==-1:s===o)for(var a=e;a<=t.length;){a++;var n=t[a];if(n===A)return!0;if(n!==st)break}if(o!==st)break}return!1},Kc=function(s,A){for(var e=s;e>=0;){var t=A[e];if(t===st)e--;else return t}return 0},xp=function(s,A,e,t,r){if(e[t]===0)return bA;var i=t-1;if(Array.isArray(r)&&r[i]===!0)return bA;var n=i-1,o=i+1,a=A[i],l=n>=0?A[n]:0,c=A[o];if(a===xc&&c===Sc)return bA;if(qn.indexOf(a)!==-1)return kc;if(qn.indexOf(c)!==-1||_c.indexOf(c)!==-1)return bA;if(Kc(i,A)===Lc)return Vr;if(Yn.get(s[i])===Vn||(a===_r||a===Or)&&Yn.get(s[o])===Vn||a===Hc||c===Hc||a===Ic||[st,Pn,bs].indexOf(a)===-1&&c===Ic||[kr,Qs,Cp,Kt,Vt].indexOf(c)!==-1||Kc(i,A)===ys||jn(zn,ys,i,A)||jn([kr,Qs],Rn,i,A)||jn(Tc,Tc,i,A))return bA;if(a===st)return Vr;if(a===zn||c===zn)return bA;if(c===Gn||a===Gn)return Vr;if([Pn,bs,Rn].indexOf(c)!==-1||a===mp||l===$n&&Up.indexOf(a)!==-1||a===Vt&&c===$n||c===Mc||Ye.indexOf(c)!==-1&&a===we||Ye.indexOf(a)!==-1&&c===we||a===Us&&[Es,_r,Or].indexOf(c)!==-1||[Es,_r,Or].indexOf(a)!==-1&&c===Fs||Ye.indexOf(a)!==-1&&Oc.indexOf(c)!==-1||Oc.indexOf(a)!==-1&&Ye.indexOf(c)!==-1||[Us,Fs].indexOf(a)!==-1&&(c===we||[ys,bs].indexOf(c)!==-1&&A[o+1]===we)||[ys,bs].indexOf(a)!==-1&&c===we||a===we&&[we,Vt,Kt].indexOf(c)!==-1)return bA;if([we,Vt,Kt,kr,Qs].indexOf(c)!==-1)for(var u=i;u>=0;){var f=A[u];if(f===we)return bA;if([Vt,Kt].indexOf(f)!==-1)u--;else break}if([Us,Fs].indexOf(c)!==-1)for(var u=[kr,Qs].indexOf(a)!==-1?n:i;u>=0;){var f=A[u];if(f===we)return bA;if([Vt,Kt].indexOf(f)!==-1)u--;else break}if(Jn===a&&[Jn,Nr,Wn,Xn].indexOf(c)!==-1||[Nr,Wn].indexOf(a)!==-1&&[Nr,Kr].indexOf(c)!==-1||[Kr,Xn].indexOf(a)!==-1&&c===Kr||Nc.indexOf(a)!==-1&&[Mc,Fs].indexOf(c)!==-1||Nc.indexOf(c)!==-1&&a===Us||Ye.indexOf(a)!==-1&&Ye.indexOf(c)!==-1||a===Kt&&Ye.indexOf(c)!==-1||Ye.concat(we).indexOf(a)!==-1&&c===ys&&yp.indexOf(s[o])===-1||Ye.concat(we).indexOf(c)!==-1&&a===Qs)return bA;if(a===Zn&&c===Zn){for(var g=e[i],B=1;g>0&&(g--,A[g]===Zn);)B++;if(B%2!==0)return bA}return a===_r&&c===Or?bA:Vr},Sp=function(s,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=Ep(s,A.lineBreak),t=e[0],r=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(r=r.map(function(o){return[we,Qt,Dc].indexOf(o)!==-1?Es:o}));var n=A.wordBreak==="keep-all"?i.map(function(o,a){return o&&s[a]>=19968&&s[a]<=40959}):void 0;return[t,r,n]},Hp=(function(){function s(A,e,t,r){this.codePoints=A,this.required=e===kc,this.start=t,this.end=r}return s.prototype.slice=function(){return PA.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),Lp=function(s,A){var e=Ir(s),t=Sp(e,A),r=t[0],i=t[1],n=t[2],o=e.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=bA;l<o&&(c=xp(e,i,r,++l,n))===bA;);if(c!==bA||l===o){var u=new Hp(e,c,a,l);return a=l,{value:u,done:!1}}return{done:!0,value:null}}}},Ip=1,Tp=2,xs=4,Vc=8,Pr=10,Pc=47,Ss=92,Mp=9,Dp=32,Gr=34,Hs=61,kp=35,_p=36,Op=37,Rr=39,zr=40,Ls=41,Np=95,fe=45,Kp=33,Vp=60,Pp=62,Gp=64,Rp=91,zp=93,Wp=61,Xp=123,Wr=63,$p=125,Gc=124,Jp=126,Zp=128,Rc=65533,Ao=42,yt=43,Yp=44,qp=58,jp=59,Is=46,Aw=0,ew=8,tw=11,sw=14,rw=31,iw=127,Ke=-1,zc=48,Wc=97,Xc=101,nw=102,ow=117,aw=122,$c=65,Jc=69,Zc=70,lw=85,cw=90,re=function(s){return s>=zc&&s<=57},hw=function(s){return s>=55296&&s<=57343},Pt=function(s){return re(s)||s>=$c&&s<=Zc||s>=Wc&&s<=nw},uw=function(s){return s>=Wc&&s<=aw},fw=function(s){return s>=$c&&s<=cw},dw=function(s){return uw(s)||fw(s)},Bw=function(s){return s>=Zp},Xr=function(s){return s===Pr||s===Mp||s===Dp},$r=function(s){return dw(s)||Bw(s)||s===Np},Yc=function(s){return $r(s)||re(s)||s===fe},gw=function(s){return s>=Aw&&s<=ew||s===tw||s>=sw&&s<=rw||s===iw},rt=function(s,A){return s!==Ss?!1:A!==Pr},Jr=function(s,A,e){return s===fe?$r(A)||rt(A,e):$r(s)?!0:!!(s===Ss&&rt(s,A))},eo=function(s,A,e){return s===yt||s===fe?re(A)?!0:A===Is&&re(e):re(s===Is?A:s)},pw=function(s){var A=0,e=1;(s[A]===yt||s[A]===fe)&&(s[A]===fe&&(e=-1),A++);for(var t=[];re(s[A]);)t.push(s[A++]);var r=t.length?parseInt(PA.apply(void 0,t),10):0;s[A]===Is&&A++;for(var i=[];re(s[A]);)i.push(s[A++]);var n=i.length,o=n?parseInt(PA.apply(void 0,i),10):0;(s[A]===Jc||s[A]===Xc)&&A++;var a=1;(s[A]===yt||s[A]===fe)&&(s[A]===fe&&(a=-1),A++);for(var l=[];re(s[A]);)l.push(s[A++]);var c=l.length?parseInt(PA.apply(void 0,l),10):0;return e*(r+o*Math.pow(10,-n))*Math.pow(10,a*c)},ww={type:2},mw={type:3},Cw={type:4},vw={type:13},bw={type:8},Qw={type:21},yw={type:9},Fw={type:10},Uw={type:11},Ew={type:12},xw={type:14},Zr={type:23},Sw={type:1},Hw={type:25},Lw={type:24},Iw={type:26},Tw={type:27},Mw={type:28},Dw={type:29},kw={type:31},to={type:32},qc=(function(){function s(){this._value=[]}return s.prototype.write=function(A){this._value=this._value.concat(Ir(A))},s.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==to;)A.push(e),e=this.consumeToken();return A},s.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Gr:return this.consumeStringToken(Gr);case kp:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Yc(e)||rt(t,r)){var i=Jr(e,t,r)?Tp:Ip,n=this.consumeName();return{type:5,value:n,flags:i}}break;case _p:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),vw;break;case Rr:return this.consumeStringToken(Rr);case zr:return ww;case Ls:return mw;case Ao:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),xw;break;case yt:if(eo(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yp:return Cw;case fe:var o=A,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(eo(o,a,l))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Jr(o,a,l))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===fe&&l===Pp)return this.consumeCodePoint(),this.consumeCodePoint(),Lw;break;case Is:if(eo(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Pc:if(this.peekCodePoint(0)===Ao)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===Ao&&(c=this.consumeCodePoint(),c===Pc))return this.consumeToken();if(c===Ke)return this.consumeToken()}break;case qp:return Iw;case jp:return Tw;case Vp:if(this.peekCodePoint(0)===Kp&&this.peekCodePoint(1)===fe&&this.peekCodePoint(2)===fe)return this.consumeCodePoint(),this.consumeCodePoint(),Hw;break;case Gp:var u=this.peekCodePoint(0),f=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Jr(u,f,g)){var n=this.consumeName();return{type:7,value:n}}break;case Rp:return Mw;case Ss:if(rt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case zp:return Dw;case Wp:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),bw;break;case Xp:return Uw;case $p:return Ew;case ow:case lw:var B=this.peekCodePoint(0),d=this.peekCodePoint(1);return B===yt&&(Pt(d)||d===Wr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Gc:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),yw;if(this.peekCodePoint(0)===Gc)return this.consumeCodePoint(),Qw;break;case Jp:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),Fw;break;case Ke:return to}return Xr(A)?(this.consumeWhiteSpace(),kw):re(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):$r(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:PA(A)}},s.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},s.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},s.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},s.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();Pt(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===Wr&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(PA.apply(void 0,A.map(function(a){return a===Wr?zc:a})),16),i=parseInt(PA.apply(void 0,A.map(function(a){return a===Wr?Zc:a})),16);return{type:30,start:r,end:i}}var n=parseInt(PA.apply(void 0,A),16);if(this.peekCodePoint(0)===fe&&Pt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];Pt(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(PA.apply(void 0,o),16);return{type:30,start:n,end:i}}else return{type:30,start:n,end:n}},s.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===zr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===zr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},s.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Rr||e===Gr){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===Ls)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Zr)}for(;;){var r=this.consumeCodePoint();if(r===Ke||r===Ls)return{type:22,value:PA.apply(void 0,A)};if(Xr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===Ls?(this.consumeCodePoint(),{type:22,value:PA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Zr);if(r===Gr||r===Rr||r===zr||gw(r))return this.consumeBadUrlRemnants(),Zr;if(r===Ss)if(rt(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Zr;else A.push(r)}},s.prototype.consumeWhiteSpace=function(){for(;Xr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ls||A===Ke)return;rt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var r=Math.min(e,A);t+=PA.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},s.prototype.consumeStringToken=function(A){var e="",t=0;do{var r=this._value[t];if(r===Ke||r===void 0||r===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(r===Pr)return this._value.splice(0,t),Sw;if(r===Ss){var i=this._value[t+1];i!==Ke&&i!==void 0&&(i===Pr?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rt(r,i)&&(e+=this.consumeStringSlice(t),e+=PA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},s.prototype.consumeNumber=function(){var A=[],e=xs,t=this.peekCodePoint(0);for((t===yt||t===fe)&&A.push(this.consumeCodePoint());re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===Is&&re(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Vc;re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((t===Jc||t===Xc)&&((r===yt||r===fe)&&re(i)||re(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Vc;re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[pw(A),e]},s.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Jr(r,i,n)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return r===Op?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},s.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Pt(A)){for(var e=PA(A);Pt(this.peekCodePoint(0))&&e.length<6;)e+=PA(this.consumeCodePoint());Xr(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return t===0||hw(t)||t>1114111?Rc:t}return A===Ke?Rc:A},s.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Yc(e))A+=PA(e);else if(rt(e,this.peekCodePoint(0)))A+=PA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},s})(),jc=(function(){function s(A){this._tokens=A}return s.create=function(A){var e=new qc;return e.write(A),new s(e.read())},s.parseValue=function(A){return s.create(A).parseComponentValue()},s.parseValues=function(A){return s.create(A).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},s.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},s.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Ow(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},s.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?to:A},s.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},s})(),Ts=function(s){return s.type===15},Gt=function(s){return s.type===17},HA=function(s){return s.type===20},_w=function(s){return s.type===0},so=function(s,A){return HA(s)&&s.value===A},Ah=function(s){return s.type!==31},Rt=function(s){return s.type!==31&&s.type!==4},Ve=function(s){var A=[],e=[];return s.forEach(function(t){if(t.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}t.type!==31&&e.push(t)}),e.length&&A.push(e),A},Ow=function(s,A){return A===11&&s.type===12||A===28&&s.type===29?!0:A===2&&s.type===3},it=function(s){return s.type===17||s.type===15},WA=function(s){return s.type===16||it(s)},eh=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},YA={type:17,number:0,flags:xs},ro={type:16,number:50,flags:xs},nt={type:16,number:100,flags:xs},Ms=function(s,A,e){var t=s[0],r=s[1];return[IA(t,A),IA(typeof r<"u"?r:t,e)]},IA=function(s,A){if(s.type===16)return s.number/100*A;if(Ts(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},th="deg",sh="grad",rh="rad",ih="turn",Yr={name:"angle",parse:function(s,A){if(A.type===15)switch(A.unit){case th:return Math.PI*A.number/180;case sh:return Math.PI/200*A.number;case rh:return A.number;case ih:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},nh=function(s){return s.type===15&&(s.unit===th||s.unit===sh||s.unit===rh||s.unit===ih)},oh=function(s){var A=s.filter(HA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[YA,YA];case"to top":case"bottom":return be(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[YA,nt];case"to right":case"left":return be(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[nt,nt];case"to bottom":case"top":return be(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[nt,YA];case"to left":case"right":return be(270)}return 0},be=function(s){return Math.PI*s/180},ot={name:"color",parse:function(s,A){if(A.type===18){var e=Nw[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(s,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3);return lt(parseInt(t+t,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3),n=A.value.substring(3,4);return lt(parseInt(t+t,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(n+n,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6);return lt(parseInt(t,16),parseInt(r,16),parseInt(i,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6),n=A.value.substring(6,8);return lt(parseInt(t,16),parseInt(r,16),parseInt(i,16),parseInt(n,16)/255)}}if(A.type===20){var o=qe[A.value.toUpperCase()];if(typeof o<"u")return o}return qe.TRANSPARENT}},at=function(s){return(255&s)===0},$A=function(s){var A=255&s,e=255&s>>8,t=255&s>>16,r=255&s>>24;return A<255?"rgba("+r+","+t+","+e+","+A/255+")":"rgb("+r+","+t+","+e+")"},lt=function(s,A,e,t){return(s<<24|A<<16|e<<8|Math.round(t*255)<<0)>>>0},ah=function(s,A){if(s.type===17)return s.number;if(s.type===16){var e=A===3?1:255;return A===3?s.number/100*e:Math.round(s.number/100*e)}return 0},lh=function(s,A){var e=A.filter(Rt);if(e.length===3){var t=e.map(ah),r=t[0],i=t[1],n=t[2];return lt(r,i,n,1)}if(e.length===4){var o=e.map(ah),r=o[0],i=o[1],n=o[2],a=o[3];return lt(r,i,n,a)}return 0};function io(s,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-s)*e*6+s:e<1/2?A:e<2/3?(A-s)*6*(2/3-e)+s:s}var ch=function(s,A){var e=A.filter(Rt),t=e[0],r=e[1],i=e[2],n=e[3],o=(t.type===17?be(t.number):Yr.parse(s,t))/(Math.PI*2),a=WA(r)?r.number/100:0,l=WA(i)?i.number/100:0,c=typeof n<"u"&&WA(n)?IA(n,1):1;if(a===0)return lt(l*255,l*255,l*255,1);var u=l<=.5?l*(a+1):l+a-l*a,f=l*2-u,g=io(f,u,o+1/3),B=io(f,u,o),d=io(f,u,o-1/3);return lt(g*255,B*255,d*255,c)},Nw={hsl:ch,hsla:ch,rgb:lh,rgba:lh},Ds=function(s,A){return ot.parse(s,jc.create(A).parseComponentValue())},qe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Kw={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,A){return A.map(function(e){if(HA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vw={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qr=function(s,A){var e=ot.parse(s,A[0]),t=A[1];return t&&WA(t)?{color:e,stop:t}:{color:e,stop:null}},hh=function(s,A){var e=s[0],t=s[s.length-1];e.stop===null&&(e.stop=YA),t.stop===null&&(t.stop=nt);for(var r=[],i=0,n=0;n<s.length;n++){var o=s[n].stop;if(o!==null){var a=IA(o,A);a>i?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,n=0;n<r.length;n++){var c=r[n];if(c===null)l===null&&(l=n);else if(l!==null){for(var u=n-l,f=r[l-1],g=(c-f)/(u+1),B=1;B<=u;B++)r[l+B-1]=g*B;l=null}}return s.map(function(d,p){var m=d.color;return{color:m,stop:Math.max(Math.min(1,r[p]/A),0)}})},Pw=function(s,A,e){var t=A/2,r=e/2,i=IA(s[0],A)-t,n=r-IA(s[1],e);return(Math.atan2(n,i)+Math.PI*2)%(Math.PI*2)},Gw=function(s,A,e){var t=typeof s=="number"?s:Pw(s,A,e),r=Math.abs(A*Math.sin(t))+Math.abs(e*Math.cos(t)),i=A/2,n=e/2,o=r/2,a=Math.sin(t-Math.PI/2)*o,l=Math.cos(t-Math.PI/2)*o;return[r,i-l,i+l,n-a,n+a]},Ie=function(s,A){return Math.sqrt(s*s+A*A)},uh=function(s,A,e,t,r){var i=[[0,0],[0,A],[s,0],[s,A]];return i.reduce(function(n,o){var a=o[0],l=o[1],c=Ie(e-a,t-l);return(r?c<n.optimumDistance:c>n.optimumDistance)?{optimumCorner:o,optimumDistance:c}:n},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Rw=function(s,A,e,t,r){var i=0,n=0;switch(s.size){case 0:s.shape===0?i=n=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-r)):s.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-t)),n=Math.min(Math.abs(e),Math.abs(e-r)));break;case 2:if(s.shape===0)i=n=Math.min(Ie(A,e),Ie(A,e-r),Ie(A-t,e),Ie(A-t,e-r));else if(s.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-r))/Math.min(Math.abs(A),Math.abs(A-t)),a=uh(t,r,A,e,!0),l=a[0],c=a[1];i=Ie(l-A,(c-e)/o),n=o*i}break;case 1:s.shape===0?i=n=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-r)):s.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-t)),n=Math.max(Math.abs(e),Math.abs(e-r)));break;case 3:if(s.shape===0)i=n=Math.max(Ie(A,e),Ie(A,e-r),Ie(A-t,e),Ie(A-t,e-r));else if(s.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-t)),u=uh(t,r,A,e,!1),l=u[0],c=u[1];i=Ie(l-A,(c-e)/o),n=o*i}break}return Array.isArray(s.size)&&(i=IA(s.size[0],t),n=s.size.length===2?IA(s.size[1],r):i),[i,n]},zw=function(s,A){var e=be(180),t=[];return Ve(A).forEach(function(r,i){if(i===0){var n=r[0];if(n.type===20&&n.value==="to"){e=oh(r);return}else if(nh(n)){e=Yr.parse(s,n);return}}var o=qr(s,r);t.push(o)}),{angle:e,stops:t,type:1}},jr=function(s,A){var e=be(180),t=[];return Ve(A).forEach(function(r,i){if(i===0){var n=r[0];if(n.type===20&&["top","left","right","bottom"].indexOf(n.value)!==-1){e=oh(r);return}else if(nh(n)){e=(Yr.parse(s,n)+be(270))%be(360);return}}var o=qr(s,r);t.push(o)}),{angle:e,stops:t,type:1}},Ww=function(s,A){var e=be(180),t=[],r=1,i=0,n=3,o=[];return Ve(A).forEach(function(a,l){var c=a[0];if(l===0){if(HA(c)&&c.value==="linear"){r=1;return}else if(HA(c)&&c.value==="radial"){r=2;return}}if(c.type===18){if(c.name==="from"){var u=ot.parse(s,c.values[0]);t.push({stop:YA,color:u})}else if(c.name==="to"){var u=ot.parse(s,c.values[0]);t.push({stop:nt,color:u})}else if(c.name==="color-stop"){var f=c.values.filter(Rt);if(f.length===2){var u=ot.parse(s,f[1]),g=f[0];Gt(g)&&t.push({stop:{type:16,number:g.number*100,flags:g.flags},color:u})}}}}),r===1?{angle:(e+be(180))%be(360),stops:t,type:r}:{size:n,shape:i,stops:t,position:o,type:r}},fh="closest-side",dh="farthest-side",Bh="closest-corner",gh="farthest-corner",ph="circle",wh="ellipse",mh="cover",Ch="contain",Xw=function(s,A){var e=0,t=3,r=[],i=[];return Ve(A).forEach(function(n,o){var a=!0;if(o===0){var l=!1;a=n.reduce(function(u,f){if(l)if(HA(f))switch(f.value){case"center":return i.push(ro),u;case"top":case"left":return i.push(YA),u;case"right":case"bottom":return i.push(nt),u}else(WA(f)||it(f))&&i.push(f);else if(HA(f))switch(f.value){case ph:return e=0,!1;case wh:return e=1,!1;case"at":return l=!0,!1;case fh:return t=0,!1;case mh:case dh:return t=1,!1;case Ch:case Bh:return t=2,!1;case gh:return t=3,!1}else if(it(f)||WA(f))return Array.isArray(t)||(t=[]),t.push(f),!1;return u},a)}if(a){var c=qr(s,n);r.push(c)}}),{size:t,shape:e,stops:r,position:i,type:2}},Ai=function(s,A){var e=0,t=3,r=[],i=[];return Ve(A).forEach(function(n,o){var a=!0;if(o===0?a=n.reduce(function(c,u){if(HA(u))switch(u.value){case"center":return i.push(ro),!1;case"top":case"left":return i.push(YA),!1;case"right":case"bottom":return i.push(nt),!1}else if(WA(u)||it(u))return i.push(u),!1;return c},a):o===1&&(a=n.reduce(function(c,u){if(HA(u))switch(u.value){case ph:return e=0,!1;case wh:return e=1,!1;case Ch:case fh:return t=0,!1;case dh:return t=1,!1;case Bh:return t=2,!1;case mh:case gh:return t=3,!1}else if(it(u)||WA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return c},a)),a){var l=qr(s,n);r.push(l)}}),{size:t,shape:e,stops:r,position:i,type:2}},$w=function(s){return s.type===1},Jw=function(s){return s.type===2},no={name:"image",parse:function(s,A){if(A.type===22){var e={url:A.value,type:0};return s.cache.addImage(A.value),e}if(A.type===18){var t=vh[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(s,A.values)}throw new Error("Unsupported image type "+A.type)}};function Zw(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!vh[s.name])}var vh={"linear-gradient":zw,"-moz-linear-gradient":jr,"-ms-linear-gradient":jr,"-o-linear-gradient":jr,"-webkit-linear-gradient":jr,"radial-gradient":Xw,"-moz-radial-gradient":Ai,"-ms-radial-gradient":Ai,"-o-radial-gradient":Ai,"-webkit-radial-gradient":Ai,"-webkit-gradient":Ww},Yw={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(t){return Rt(t)&&Zw(t)}).map(function(t){return no.parse(s,t)})}},qw={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,A){return A.map(function(e){if(HA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},jw={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(WA)}).map(eh)}},A1={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(HA).map(function(t){return t.value}).join(" ")}).map(e1)}},e1=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},zt;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(zt||(zt={}));var t1={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(s1)})}},s1=function(s){return HA(s)||WA(s)},ei=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},r1=ei("top"),i1=ei("right"),n1=ei("bottom"),o1=ei("left"),ti=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return eh(e.filter(WA))}}},a1=ti("top-left"),l1=ti("top-right"),c1=ti("bottom-right"),h1=ti("bottom-left"),si=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u1=si("top"),f1=si("right"),d1=si("bottom"),B1=si("left"),ri=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Ts(e)?e.number:0}}},g1=ri("top"),p1=ri("right"),w1=ri("bottom"),m1=ri("left"),C1={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},v1={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,A){return A==="rtl"?1:0}},b1={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).reduce(function(e,t){return e|Q1(t.value)},0)}},Q1=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},y1={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},F1={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ii;(function(s){s.NORMAL="normal",s.STRICT="strict"})(ii||(ii={}));var U1={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){return A==="strict"?ii.STRICT:ii.NORMAL}},E1={name:"line-height",initialValue:"normal",prefix:!1,type:4},bh=function(s,A){return HA(s)&&s.value==="normal"?1.2*A:s.type===17?A*s.number:WA(s)?IA(s,A):A},x1={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,A){return A.type===20&&A.value==="none"?null:no.parse(s,A)}},S1={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,A){return A==="inside"?0:1}},oo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ni=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},H1=ni("top"),L1=ni("right"),I1=ni("bottom"),T1=ni("left"),M1={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},D1={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){return A==="break-word"?"break-word":"normal"}},oi=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},k1=oi("top"),_1=oi("right"),O1=oi("bottom"),N1=oi("left"),K1={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},V1={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},P1={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.length===1&&so(A[0],"none")?[]:Ve(A).map(function(e){for(var t={color:qe.TRANSPARENT,offsetX:YA,offsetY:YA,blur:YA},r=0,i=0;i<e.length;i++){var n=e[i];it(n)?(r===0?t.offsetX=n:r===1?t.offsetY=n:t.blur=n,r++):t.color=ot.parse(s,n)}return t})}},G1={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},R1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=X1[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},z1=function(s){var A=s.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},W1=function(s){var A=s.filter(function(a){return a.type===17}).map(function(a){return a.number}),e=A[0],t=A[1];A[2],A[3];var r=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var n=A[12],o=A[13];return A[14],A[15],A.length===16?[e,t,r,i,n,o]:null},X1={matrix:z1,matrix3d:W1},Qh={type:16,number:50,flags:xs},$1=[Qh,Qh],J1={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,A){var e=A.filter(WA);return e.length!==2?$1:[e[0],e[1]]}},Z1={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ks;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(ks||(ks={}));for(var Y1={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){switch(A){case"break-all":return ks.BREAK_ALL;case"keep-all":return ks.KEEP_ALL;default:return ks.NORMAL}}},q1={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,A){if(A.type===20)return{auto:!0,order:0};if(Gt(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},yh={name:"time",parse:function(s,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},j1={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,A){return Gt(A)?A.number:1}},Am={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},em={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},tm={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,A){var e=[],t=[];return A.forEach(function(r){switch(r.type){case 20:case 0:e.push(r.value);break;case 17:e.push(r.number.toString());break;case 4:t.push(e.join(" ")),e.length=0;break}}),e.length&&t.push(e.join(" ")),t.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},sm={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},rm={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,A){return Gt(A)?A.number:HA(A)&&A.value==="bold"?700:400}},im={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.filter(HA).map(function(e){return e.value})}},nm={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},XA=function(s,A){return(s&A)!==0},om={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},am={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var t=[],r=A.filter(Ah),i=0;i<r.length;i++){var n=r[i],o=r[i+1];if(n.type===20){var a=o&&Gt(o)?o.number:1;t.push({counter:n.value,increment:a})}}return t}},lm={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return[];for(var e=[],t=A.filter(Ah),r=0;r<t.length;r++){var i=t[r],n=t[r+1];if(HA(i)&&i.value!=="none"){var o=n&&Gt(n)?n.number:0;e.push({counter:i.value,reset:o})}}return e}},cm={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,A){return A.filter(Ts).map(function(e){return yh.parse(s,e)})}},hm={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var t=[],r=A.filter(_w);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var n=r[i].value,o=r[i+1].value;t.push({open:n,close:o})}return t}},Fh=function(s,A,e){if(!s)return"";var t=s[Math.min(A,s.length-1)];return t?e?t.open:t.close:""},um={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.length===1&&so(A[0],"none")?[]:Ve(A).map(function(e){for(var t={color:255,offsetX:YA,offsetY:YA,blur:YA,spread:YA,inset:!1},r=0,i=0;i<e.length;i++){var n=e[i];so(n,"inset")?t.inset=!0:it(n)?(r===0?t.offsetX=n:r===1?t.offsetY=n:r===2?t.blur=n:t.spread=n,r++):t.color=ot.parse(s,n)}return t})}},fm={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,A){var e=[0,1,2],t=[];return A.filter(HA).forEach(function(r){switch(r.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),e.forEach(function(r){t.indexOf(r)===-1&&t.push(r)}),t}},dm={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Bm={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,A){return Ts(A)?A.number:0}},gm=(function(){function s(A,e){var t,r;this.animationDuration=R(A,cm,e.animationDuration),this.backgroundClip=R(A,Kw,e.backgroundClip),this.backgroundColor=R(A,Vw,e.backgroundColor),this.backgroundImage=R(A,Yw,e.backgroundImage),this.backgroundOrigin=R(A,qw,e.backgroundOrigin),this.backgroundPosition=R(A,jw,e.backgroundPosition),this.backgroundRepeat=R(A,A1,e.backgroundRepeat),this.backgroundSize=R(A,t1,e.backgroundSize),this.borderTopColor=R(A,r1,e.borderTopColor),this.borderRightColor=R(A,i1,e.borderRightColor),this.borderBottomColor=R(A,n1,e.borderBottomColor),this.borderLeftColor=R(A,o1,e.borderLeftColor),this.borderTopLeftRadius=R(A,a1,e.borderTopLeftRadius),this.borderTopRightRadius=R(A,l1,e.borderTopRightRadius),this.borderBottomRightRadius=R(A,c1,e.borderBottomRightRadius),this.borderBottomLeftRadius=R(A,h1,e.borderBottomLeftRadius),this.borderTopStyle=R(A,u1,e.borderTopStyle),this.borderRightStyle=R(A,f1,e.borderRightStyle),this.borderBottomStyle=R(A,d1,e.borderBottomStyle),this.borderLeftStyle=R(A,B1,e.borderLeftStyle),this.borderTopWidth=R(A,g1,e.borderTopWidth),this.borderRightWidth=R(A,p1,e.borderRightWidth),this.borderBottomWidth=R(A,w1,e.borderBottomWidth),this.borderLeftWidth=R(A,m1,e.borderLeftWidth),this.boxShadow=R(A,um,e.boxShadow),this.color=R(A,C1,e.color),this.direction=R(A,v1,e.direction),this.display=R(A,b1,e.display),this.float=R(A,y1,e.cssFloat),this.fontFamily=R(A,tm,e.fontFamily),this.fontSize=R(A,sm,e.fontSize),this.fontStyle=R(A,nm,e.fontStyle),this.fontVariant=R(A,im,e.fontVariant),this.fontWeight=R(A,rm,e.fontWeight),this.letterSpacing=R(A,F1,e.letterSpacing),this.lineBreak=R(A,U1,e.lineBreak),this.lineHeight=R(A,E1,e.lineHeight),this.listStyleImage=R(A,x1,e.listStyleImage),this.listStylePosition=R(A,S1,e.listStylePosition),this.listStyleType=R(A,oo,e.listStyleType),this.marginTop=R(A,H1,e.marginTop),this.marginRight=R(A,L1,e.marginRight),this.marginBottom=R(A,I1,e.marginBottom),this.marginLeft=R(A,T1,e.marginLeft),this.opacity=R(A,j1,e.opacity);var i=R(A,M1,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=R(A,D1,e.overflowWrap),this.paddingTop=R(A,k1,e.paddingTop),this.paddingRight=R(A,_1,e.paddingRight),this.paddingBottom=R(A,O1,e.paddingBottom),this.paddingLeft=R(A,N1,e.paddingLeft),this.paintOrder=R(A,fm,e.paintOrder),this.position=R(A,V1,e.position),this.textAlign=R(A,K1,e.textAlign),this.textDecorationColor=R(A,Am,(t=e.textDecorationColor)!==null&&t!==void 0?t:e.color),this.textDecorationLine=R(A,em,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=R(A,P1,e.textShadow),this.textTransform=R(A,G1,e.textTransform),this.transform=R(A,R1,e.transform),this.transformOrigin=R(A,J1,e.transformOrigin),this.visibility=R(A,Z1,e.visibility),this.webkitTextStrokeColor=R(A,dm,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=R(A,Bm,e.webkitTextStrokeWidth),this.wordBreak=R(A,Y1,e.wordBreak),this.zIndex=R(A,q1,e.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return at(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return XA(this.display,4)||XA(this.display,33554432)||XA(this.display,268435456)||XA(this.display,536870912)||XA(this.display,67108864)||XA(this.display,134217728)},s})(),pm=(function(){function s(A,e){this.content=R(A,om,e.content),this.quotes=R(A,hm,e.quotes)}return s})(),Uh=(function(){function s(A,e){this.counterIncrement=R(A,am,e.counterIncrement),this.counterReset=R(A,lm,e.counterReset)}return s})(),R=function(s,A,e){var t=new qc,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;t.write(r);var i=new jc(t.read());switch(A.type){case 2:var n=i.parseComponentValue();return A.parse(s,HA(n)?n.value:A.initialValue);case 0:return A.parse(s,i.parseComponentValue());case 1:return A.parse(s,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return Yr.parse(s,i.parseComponentValue());case"color":return ot.parse(s,i.parseComponentValue());case"image":return no.parse(s,i.parseComponentValue());case"length":var o=i.parseComponentValue();return it(o)?o:YA;case"length-percentage":var a=i.parseComponentValue();return WA(a)?a:YA;case"time":return yh.parse(s,i.parseComponentValue())}break}},wm="data-html2canvas-debug",mm=function(s){var A=s.getAttribute(wm);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ao=function(s,A){var e=mm(s);return e===1||A===e},Pe=(function(){function s(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ao(e,3))debugger;this.styles=new gm(A,window.getComputedStyle(e,null)),Qo(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Lr(this.context,e),ao(e,4)&&(this.flags|=16)}return s})(),Cm="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQ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ACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZ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ExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)i=_s[s.charCodeAt(t)],n=_s[s.charCodeAt(t+1)],o=_s[s.charCodeAt(t+2)],a=_s[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},bm=function(s){for(var A=s.length,e=[],t=0;t<A;t+=2)e.push(s[t+1]<<8|s[t]);return e},Qm=function(s){for(var A=s.length,e=[],t=0;t<A;t+=4)e.push(s[t+3]<<24|s[t+2]<<16|s[t+1]<<8|s[t]);return e},Ft=5,lo=11,co=2,ym=lo-Ft,xh=65536>>Ft,Fm=1<<Ft,ho=Fm-1,Um=1024>>Ft,Em=xh+Um,xm=Em,Sm=32,Hm=xm+Sm,Lm=65536>>lo,Im=1<<ym,Tm=Im-1,Sh=function(s,A,e){return s.slice?s.slice(A,e):new Uint16Array(Array.prototype.slice.call(s,A,e))},Mm=function(s,A,e){return s.slice?s.slice(A,e):new Uint32Array(Array.prototype.slice.call(s,A,e))},Dm=function(s,A){var e=vm(s),t=Array.isArray(e)?Qm(e):new Uint32Array(e),r=Array.isArray(e)?bm(e):new Uint16Array(e),i=24,n=Sh(r,i/2,t[4]/2),o=t[5]===2?Sh(r,(i+t[4])/2):Mm(t,Math.ceil((i+t[4])/4));return new km(t[0],t[1],t[2],t[3],n,o)},km=(function(){function s(A,e,t,r,i,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=i,this.data=n}return s.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ft],e=(e<<co)+(A&ho),this.data[e];if(A<=65535)return e=this.index[xh+(A-55296>>Ft)],e=(e<<co)+(A&ho),this.data[e];if(A<this.highStart)return e=Hm-Lm+(A>>lo),e=this.index[e],e+=A>>Ft&Tm,e=this.index[e],e=(e<<co)+(A&ho),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Hh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_m=typeof Uint8Array>"u"?[]:new Uint8Array(256),li=0;li<Hh.length;li++)_m[Hh.charCodeAt(li)]=li;var Om=1,uo=2,fo=3,Lh=4,Ih=5,Nm=7,Th=8,Bo=9,go=10,Mh=11,Dh=12,kh=13,_h=14,po=15,Km=function(s){for(var A=[],e=0,t=s.length;e<t;){var r=s.charCodeAt(e++);if(r>=55296&&r<=56319&&e<t){var i=s.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},Vm=function(){for(var s=[],A=0;A<arguments.length;A++)s[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var e=s.length;if(!e)return"";for(var t=[],r=-1,i="";++r<e;){var n=s[r];n<=65535?t.push(n):(n-=65536,t.push((n>>10)+55296,n%1024+56320)),(r+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},Pm=Dm(Cm),Qe="×",wo="÷",Gm=function(s){return Pm.get(s)},Rm=function(s,A,e){var t=e-2,r=A[t],i=A[e-1],n=A[e];if(i===uo&&n===fo)return Qe;if(i===uo||i===fo||i===Lh||n===uo||n===fo||n===Lh)return wo;if(i===Th&&[Th,Bo,Mh,Dh].indexOf(n)!==-1||(i===Mh||i===Bo)&&(n===Bo||n===go)||(i===Dh||i===go)&&n===go||n===kh||n===Ih||n===Nm||i===Om)return Qe;if(i===kh&&n===_h){for(;r===Ih;)r=A[--t];if(r===_h)return Qe}if(i===po&&n===po){for(var o=0;r===po;)o++,r=A[--t];if(o%2===0)return Qe}return wo},zm=function(s){var A=Km(s),e=A.length,t=0,r=0,i=A.map(Gm);return{next:function(){if(t>=e)return{done:!0,value:null};for(var n=Qe;t<e&&(n=Rm(A,i,++t))===Qe;);if(n!==Qe||t===e){var o=Vm.apply(null,A.slice(r,t));return r=t,{value:o,done:!1}}return{done:!0,value:null}}}},Wm=function(s){for(var A=zm(s),e=[],t;!(t=A.next()).done;)t.value&&e.push(t.value.slice());return e},Xm=function(s){var A=123;if(s.createRange){var e=s.createRange();if(e.getBoundingClientRect){var t=s.createElement("boundtest");t.style.height=A+"px",t.style.display="block",s.body.appendChild(t),e.selectNode(t);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(s.body.removeChild(t),i===A)return!0}}return!1},$m=function(s){var A=s.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",s.body.appendChild(A);var e=s.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var t=A.firstChild,r=Ir(t.data).map(function(a){return PA(a)}),i=0,n={},o=r.every(function(a,l){e.setStart(t,i),e.setEnd(t,i+a.length);var c=e.getBoundingClientRect();i+=a.length;var u=c.x>n.x||c.y>n.y;return n=c,l===0?!0:u});return s.body.removeChild(A),o},Jm=function(){return typeof new Image().crossOrigin<"u"},Zm=function(){return typeof new XMLHttpRequest().responseType=="string"},Ym=function(s){var A=new Image,e=s.createElement("canvas"),t=e.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},Oh=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},qm=function(s){var A=s.createElement("canvas"),e=100;A.width=e,A.height=e;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,e,e);var r=new Image,i=A.toDataURL();r.src=i;var n=mo(e,e,0,0,r);return t.fillStyle="red",t.fillRect(0,0,e,e),Nh(n).then(function(o){t.drawImage(o,0,0);var a=t.getImageData(0,0,e,e).data;t.fillStyle="red",t.fillRect(0,0,e,e);var l=s.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",Oh(a)?Nh(mo(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Oh(t.getImageData(0,0,e,e).data)}).catch(function(){return!1})},mo=function(s,A,e,t,r){var i="http://www.w3.org/2000/svg",n=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return n.setAttributeNS(null,"width",s.toString()),n.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),n.appendChild(o),o.appendChild(r),n},Nh=function(s){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},qA={get SUPPORT_RANGE_BOUNDS(){var s=Xm(document);return Object.defineProperty(qA,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=qA.SUPPORT_RANGE_BOUNDS&&$m(document);return Object.defineProperty(qA,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Ym(document);return Object.defineProperty(qA,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?qm(document):Promise.resolve(!1);return Object.defineProperty(qA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Jm();return Object.defineProperty(qA,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Zm();return Object.defineProperty(qA,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qA,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(qA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},Os=(function(){function s(A,e){this.text=A,this.bounds=e}return s})(),jm=function(s,A,e,t){var r=tC(A,e),i=[],n=0;return r.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(qA.SUPPORT_RANGE_BOUNDS){var a=Kh(t,n,o.length).getClientRects();if(a.length>1){var l=Co(o),c=0;l.forEach(function(f){i.push(new Os(f,Ze.fromDOMRectList(s,Kh(t,c+n,f.length).getClientRects()))),c+=f.length})}else i.push(new Os(o,Ze.fromDOMRectList(s,a)))}else{var u=t.splitText(o.length);i.push(new Os(o,AC(s,t))),t=u}else qA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));n+=o.length}),i},AC=function(s,A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(t,A);var i=Lr(s,t);return t.firstChild&&r.replaceChild(t.firstChild,t),i}}return Ze.EMPTY},Kh=function(s,A,e){var t=s.ownerDocument;if(!t)throw new Error("Node has no owner document");var r=t.createRange();return r.setStart(s,A),r.setEnd(s,A+e),r},Co=function(s){if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(s)).map(function(e){return e.segment})}return Wm(s)},eC=function(s,A){if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(s)).map(function(t){return t.segment})}return rC(s,A)},tC=function(s,A){return A.letterSpacing!==0?Co(s):eC(s,A)},sC=[32,160,4961,65792,65793,4153,4241],rC=function(s,A){for(var e=Lp(s,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],r,i=function(){if(r.value){var n=r.value.slice(),o=Ir(n),a="";o.forEach(function(l){sC.indexOf(l)===-1?a+=PA(l):(a.length&&t.push(a),t.push(PA(l)),a="")}),a.length&&t.push(a)}};!(r=e.next()).done;)i();return t},iC=(function(){function s(A,e,t){this.text=nC(e.data,t.textTransform),this.textBounds=jm(A,this.text,t,e)}return s})(),nC=function(s,A){switch(A){case 1:return s.toLowerCase();case 3:return s.replace(oC,aC);case 2:return s.toUpperCase();default:return s}},oC=/(^|\s|:|-|\(|\))([a-z])/g,aC=function(s,A,e){return s.length>0?A+e.toUpperCase():s},Vh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return A})(Pe),Ph=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return A})(Pe),Gh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this,i=new XMLSerializer,n=Lr(e,t);return t.setAttribute("width",n.width+"px"),t.setAttribute("height",n.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return A})(Pe),Rh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.value=t.value,r}return A})(Pe),vo=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.start=t.start,r.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,r}return A})(Pe),lC=[{type:15,flags:0,unit:"px",number:3}],cC=[{type:16,flags:0,number:50}],hC=function(s){return s.width>s.height?new Ze(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new Ze(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},uC=function(s){var A=s.type===fC?new Array(s.value.length+1).join("•"):s.value;return A.length===0?s.placeholder||"":A},ci="checkbox",hi="radio",fC="password",zh=707406591,bo=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=uC(t),(r.type===ci||r.type===hi)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=hC(r.bounds)),r.type){case ci:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=lC;break;case hi:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=cC;break}return r}return A})(Pe),Wh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this,i=t.options[t.selectedIndex||0];return r.value=i&&i.text||"",r}return A})(Pe),Xh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.value=t.value,r}return A})(Pe),$h=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Zh(e,t.contentWindow.document.documentElement);var i=t.contentWindow.document.documentElement?Ds(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):qe.TRANSPARENT,n=t.contentWindow.document.body?Ds(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):qe.TRANSPARENT;r.backgroundColor=at(i)?at(n)?r.styles.backgroundColor:n:i}}catch{}return r}return A})(Pe),dC=["OL","UL","MENU"],ui=function(s,A,e,t){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Yh(r)&&r.data.trim().length>0)e.textNodes.push(new iC(s,r,e.styles));else if(Wt(r))if(su(r)&&r.assignedNodes)r.assignedNodes().forEach(function(o){return ui(s,o,e,t)});else{var n=Jh(s,r);n.styles.isVisible()&&(BC(r,n,t)?n.flags|=4:gC(n.styles)&&(n.flags|=2),dC.indexOf(r.tagName)!==-1&&(n.flags|=8),e.elements.push(n),r.slot,r.shadowRoot?ui(s,r.shadowRoot,n,t):!di(r)&&!qh(r)&&!Bi(r)&&ui(s,r,n,t))}},Jh=function(s,A){return Fo(A)?new Vh(s,A):jh(A)?new Ph(s,A):qh(A)?new Gh(s,A):pC(A)?new Rh(s,A):wC(A)?new vo(s,A):mC(A)?new bo(s,A):Bi(A)?new Wh(s,A):di(A)?new Xh(s,A):eu(A)?new $h(s,A):new Pe(s,A)},Zh=function(s,A){var e=Jh(s,A);return e.flags|=4,ui(s,A,e,e),e},BC=function(s,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||yo(s)&&e.styles.isTransparent()},gC=function(s){return s.isPositioned()||s.isFloating()},Yh=function(s){return s.nodeType===Node.TEXT_NODE},Wt=function(s){return s.nodeType===Node.ELEMENT_NODE},Qo=function(s){return Wt(s)&&typeof s.style<"u"&&!fi(s)},fi=function(s){return typeof s.className=="object"},pC=function(s){return s.tagName==="LI"},wC=function(s){return s.tagName==="OL"},mC=function(s){return s.tagName==="INPUT"},CC=function(s){return s.tagName==="HTML"},qh=function(s){return s.tagName==="svg"},yo=function(s){return s.tagName==="BODY"},jh=function(s){return s.tagName==="CANVAS"},Au=function(s){return s.tagName==="VIDEO"},Fo=function(s){return s.tagName==="IMG"},eu=function(s){return s.tagName==="IFRAME"},tu=function(s){return s.tagName==="STYLE"},vC=function(s){return s.tagName==="SCRIPT"},di=function(s){return s.tagName==="TEXTAREA"},Bi=function(s){return s.tagName==="SELECT"},su=function(s){return s.tagName==="SLOT"},ru=function(s){return s.tagName.indexOf("-")>0},bC=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},s.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},s.prototype.pop=function(A){var e=this;A.forEach(function(t){return e.counters[t].pop()})},s.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,i=!0;t!==null&&t.forEach(function(o){var a=e.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var n=[];return i&&r.forEach(function(o){var a=e.counters[o.counter];n.push(o.counter),a||(a=e.counters[o.counter]=[]),a.push(o.reset)}),n},s})(),iu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},nu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},QC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Xt=function(s,A,e,t,r,i){return s<A||s>e?Ks(s,r,i.length>0):t.integers.reduce(function(n,o,a){for(;s>=o;)s-=o,n+=t.values[a];return n},"")+i},ou=function(s,A,e,t){var r="";do e||s--,r=t(s)+r,s/=A;while(s*A>=A);return r},GA=function(s,A,e,t,r){var i=e-A+1;return(s<0?"-":"")+(ou(Math.abs(s),i,t,function(n){return PA(Math.floor(n%i)+A)})+r)},Ut=function(s,A,e){e===void 0&&(e=". ");var t=A.length;return ou(Math.abs(s),t,!1,function(r){return A[Math.floor(r%t)]})+e},$t=1,ct=2,ht=4,Ns=8,je=function(s,A,e,t,r,i){if(s<-9999||s>9999)return Ks(s,4,r.length>0);var n=Math.abs(s),o=r;if(n===0)return A[0]+o;for(var a=0;n>0&&a<=4;a++){var l=n%10;l===0&&XA(i,$t)&&o!==""?o=A[l]+o:l>1||l===1&&a===0||l===1&&a===1&&XA(i,ct)||l===1&&a===1&&XA(i,ht)&&s>100||l===1&&a>1&&XA(i,Ns)?o=A[l]+(a>0?e[a-1]:"")+o:l===1&&a>0&&(o=e[a-1]+o),n=Math.floor(n/10)}return(s<0?t:"")+o},au="十百千萬",lu="拾佰仟萬",cu="マイナス",Uo="마이너스",Ks=function(s,A,e){var t=e?". ":"",r=e?"、":"",i=e?", ":"",n=e?" ":"";switch(A){case 0:return"•"+n;case 1:return"◦"+n;case 2:return"◾"+n;case 5:var o=GA(s,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ut(s,"〇一二三四五六七八九",r);case 6:return Xt(s,1,3999,iu,3,t).toLowerCase();case 7:return Xt(s,1,3999,iu,3,t);case 8:return GA(s,945,969,!1,t);case 9:return GA(s,97,122,!1,t);case 10:return GA(s,65,90,!1,t);case 11:return GA(s,1632,1641,!0,t);case 12:case 49:return Xt(s,1,9999,nu,3,t);case 35:return Xt(s,1,9999,nu,3,t).toLowerCase();case 13:return GA(s,2534,2543,!0,t);case 14:case 30:return GA(s,6112,6121,!0,t);case 15:return Ut(s,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ut(s,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return je(s,"零一二三四五六七八九",au,"負",r,ct|ht|Ns);case 47:return je(s,"零壹貳參肆伍陸柒捌玖",lu,"負",r,$t|ct|ht|Ns);case 42:return je(s,"零一二三四五六七八九",au,"负",r,ct|ht|Ns);case 41:return je(s,"零壹贰叁肆伍陆柒捌玖",lu,"负",r,$t|ct|ht|Ns);case 26:return je(s,"〇一二三四五六七八九","十百千万",cu,r,0);case 25:return je(s,"零壱弐参四伍六七八九","拾百千万",cu,r,$t|ct|ht);case 31:return je(s,"영일이삼사오육칠팔구","십백천만",Uo,i,$t|ct|ht);case 33:return je(s,"零一二三四五六七八九","十百千萬",Uo,i,0);case 32:return je(s,"零壹貳參四五六七八九","拾百千",Uo,i,$t|ct|ht);case 18:return GA(s,2406,2415,!0,t);case 20:return Xt(s,1,19999,yC,3,t);case 21:return GA(s,2790,2799,!0,t);case 22:return GA(s,2662,2671,!0,t);case 22:return Xt(s,1,10999,QC,3,t);case 23:return Ut(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ut(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return GA(s,3302,3311,!0,t);case 28:return Ut(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ut(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return GA(s,3792,3801,!0,t);case 37:return GA(s,6160,6169,!0,t);case 38:return GA(s,4160,4169,!0,t);case 39:return GA(s,2918,2927,!0,t);case 40:return GA(s,1776,1785,!0,t);case 43:return GA(s,3046,3055,!0,t);case 44:return GA(s,3174,3183,!0,t);case 45:return GA(s,3664,3673,!0,t);case 46:return GA(s,3872,3881,!0,t);default:return GA(s,48,57,!0,t)}},hu="data-html2canvas-ignore",uu=(function(){function s(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new bC,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(A,e){var t=this,r=FC(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,o=r.contentWindow,a=o.document,l=xC(r).then(function(){return oe(t,void 0,void 0,function(){var c,u;return se(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(IC),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),c=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,EC(a)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,u)}).then(function(){return r})]:[2,r]}})})});return a.open(),a.write(HC(document.doctype)+"<html></html>"),LC(this.referenceElement.ownerDocument,i,n),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},s.prototype.createElementClone=function(A){if(ao(A,2))debugger;if(jh(A))return this.createCanvasClone(A);if(Au(A))return this.createVideoClone(A);if(tu(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Fo(e)&&(Fo(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),ru(e)?this.createCustomElementClone(e):e},s.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Eo(A.style,e),e},s.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(i,n){return n&&typeof n.cssText=="string"?i+n.cssText:i},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},s.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var i=A.getContext("2d"),n=r.getContext("2d");if(n)if(!this.options.allowTaint&&i)n.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var o=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(o){var a=o.getContextAttributes();a?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}n.drawImage(A,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},s.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},s.prototype.appendChildNode=function(A,e,t){(!Wt(e)||!vC(e)&&!e.hasAttribute(hu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Wt(e)||!tu(e))&&A.appendChild(this.cloneNode(e,t))},s.prototype.cloneChildNodes=function(A,e,t){for(var r=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Wt(i)&&su(i)&&typeof i.assignedNodes=="function"){var n=i.assignedNodes();n.length&&n.forEach(function(o){return r.appendChildNode(e,o,t)})}else this.appendChildNode(e,i,t)},s.prototype.cloneNode=function(A,e){if(Yh(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Wt(A)&&(Qo(A)||fi(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var i=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Qo(r)&&(this.clonedReferenceElement=r),yo(r)&&DC(r);var a=this.counters.parse(new Uh(this.context,i)),l=this.resolvePseudoContent(A,r,n,Vs.BEFORE);ru(A)&&(e=!0),Au(A)||this.cloneChildNodes(A,r,e),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(A,r,o,Vs.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||fi(A))&&!eu(A)||e)&&Eo(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(di(A)||Bi(A))&&(di(r)||Bi(r))&&(r.value=A.value),r}return A.cloneNode(!1)},s.prototype.resolvePseudoContent=function(A,e,t,r){var i=this;if(t){var n=t.content,o=e.ownerDocument;if(!(!o||!n||n==="none"||n==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Uh(this.context,t));var a=new pm(this.context,t),l=o.createElement("html2canvaspseudoelement");Eo(t,l),a.content.forEach(function(u){if(u.type===0)l.appendChild(o.createTextNode(u.value));else if(u.type===22){var f=o.createElement("img");f.src=u.value,f.style.opacity="1",l.appendChild(f)}else if(u.type===18){if(u.name==="attr"){var g=u.values.filter(HA);g.length&&l.appendChild(o.createTextNode(A.getAttribute(g[0].value)||""))}else if(u.name==="counter"){var B=u.values.filter(Rt),d=B[0],p=B[1];if(d&&HA(d)){var m=i.counters.getCounterValue(d.value),w=p&&HA(p)?oo.parse(i.context,p.value):3;l.appendChild(o.createTextNode(Ks(m,w,!1)))}}else if(u.name==="counters"){var v=u.values.filter(Rt),d=v[0],y=v[1],p=v[2];if(d&&HA(d)){var E=i.counters.getCounterValues(d.value),U=p&&HA(p)?oo.parse(i.context,p.value):3,T=y&&y.type===0?y.value:"",k=E.map(function(J){return Ks(J,U,!1)}).join(T);l.appendChild(o.createTextNode(k))}}}else if(u.type===20)switch(u.value){case"open-quote":l.appendChild(o.createTextNode(Fh(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(Fh(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(u.value))}}),l.className=xo+" "+So;var c=r===Vs.BEFORE?" "+xo:" "+So;return fi(e)?e.className.baseValue+=c:e.className+=c,l}}},s.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},s})(),Vs;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(Vs||(Vs={}));var FC=function(s,A){var e=s.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(hu,"true"),s.body.appendChild(e),e},UC=function(s){return new Promise(function(A){if(s.complete){A();return}if(!s.src){A();return}s.onload=A,s.onerror=A})},EC=function(s){return Promise.all([].slice.call(s.images,0).map(UC))},xC=function(s){return new Promise(function(A,e){var t=s.contentWindow;if(!t)return e("No window assigned for iframe");var r=t.document;t.onload=s.onload=function(){t.onload=s.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),A(s))},50)}})},SC=["all","d","content"],Eo=function(s,A){for(var e=s.length-1;e>=0;e--){var t=s.item(e);SC.indexOf(t)===-1&&A.style.setProperty(t,s.getPropertyValue(t))}return A},HC=function(s){var A="";return s&&(A+="<!DOCTYPE ",s.name&&(A+=s.name),s.internalSubset&&(A+=s.internalSubset),s.publicId&&(A+='"'+s.publicId+'"'),s.systemId&&(A+='"'+s.systemId+'"'),A+=">"),A},LC=function(s,A,e){s&&s.defaultView&&(A!==s.defaultView.pageXOffset||e!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(A,e)},IC=function(s){var A=s[0],e=s[1],t=s[2];A.scrollLeft=e,A.scrollTop=t},TC=":before",MC=":after",xo="___html2canvas___pseudoelement_before",So="___html2canvas___pseudoelement_after",fu=`{
|
|
6
|
+
`+i):t.stack=i}catch{}}throw t}}_request(A,e){typeof A=="string"?(e=e||{},e.url=A):e=A||{},e=Ct(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:i}=e;t!==void 0&&pr.assertOptions(t,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean),legacyInterceptorReqResOrdering:Ce.transitional(Ce.boolean)},!1),r!=null&&(Q.isFunction(r)?e.paramsSerializer={serialize:r}:pr.assertOptions(r,{encode:Ce.function,serialize:Ce.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),pr.assertOptions(e,{baseUrl:Ce.spelling("baseURL"),withXsrfToken:Ce.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let n=i&&Q.merge(i.common,i[e.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],B=>{delete i[B]}),e.headers=he.concat(n,i);const o=[];let a=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(e)===!1)return;a=a&&d.synchronous;const p=e.transitional||fn;p&&p.legacyInterceptorReqResOrdering?o.unshift(d.fulfilled,d.rejected):o.push(d.fulfilled,d.rejected)});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let c,u=0,f;if(!a){const B=[Ol.bind(this),void 0];for(B.unshift(...o),B.push(...l),f=B.length,c=Promise.resolve(e);u<f;)c=c.then(B[u++],B[u++]);return c}f=o.length;let g=e;for(;u<f;){const B=o[u++],d=o[u++];try{g=B(g)}catch(p){d.call(this,p);break}}try{c=Ol.call(this,g)}catch(B){return Promise.reject(B)}for(u=0,f=l.length;u<f;)c=c.then(l[u++],l[u++]);return c}getUri(A){A=Ct(this.defaults,A);const e=El(A.baseURL,A.url,A.allowAbsoluteUrls);return ml(e,A.params,A.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(A){vt.prototype[A]=function(e,t){return this.request(Ct(t||{},{method:A,url:e,data:(t||{}).data}))}}),Q.forEach(["post","put","patch"],function(A){function e(t){return function(i,n,o){return this.request(Ct(o||{},{method:A,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}vt.prototype[A]=e(),vt.prototype[A+"Form"]=e(!0)});let HB=class Iu{constructor(A){if(typeof A!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const t=this;this.promise.then(r=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](r);t._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(o=>{t.subscribe(o),i=o}).then(r);return n.cancel=function(){t.unsubscribe(i)},n},A(function(i,n,o){t.reason||(t.reason=new gs(i,n,o),e(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}this._listeners?this._listeners.push(A):this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;const e=this._listeners.indexOf(A);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const A=new AbortController,e=t=>{A.abort(t)};return this.subscribe(e),A.signal.unsubscribe=()=>this.unsubscribe(e),A.signal}static source(){let A;return{token:new Iu(function(r){A=r}),cancel:A}}};function LB(s){return function(e){return s.apply(null,e)}}function IB(s){return Q.isObject(s)&&s.isAxiosError===!0}const Cn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cn).forEach(([s,A])=>{Cn[A]=s});function Vl(s){const A=new vt(s),e=nl(vt.prototype.request,A);return Q.extend(e,vt.prototype,A,{allOwnKeys:!0}),Q.extend(e,A,null,{allOwnKeys:!0}),e.create=function(r){return Vl(Ct(s,r))},e}const MA=Vl(ds);MA.Axios=vt,MA.CanceledError=gs,MA.CancelToken=HB,MA.isCancel=Ql,MA.VERSION=Nl,MA.toFormData=ur,MA.AxiosError=cA,MA.Cancel=MA.CanceledError,MA.all=function(A){return Promise.all(A)},MA.spread=LB,MA.isAxiosError=IB,MA.mergeConfig=Ct,MA.AxiosHeaders=he,MA.formToJSON=s=>vl(Q.isHTMLForm(s)?new FormData(s):s),MA.getAdapter=_l.getAdapter,MA.HttpStatusCode=Cn,MA.default=MA;const{Axios:Jv,AxiosError:Zv,CanceledError:Yv,isCancel:qv,CancelToken:jv,VERSION:Ab,all:eb,Cancel:tb,isAxiosError:sb,spread:rb,toFormData:ib,AxiosHeaders:nb,HttpStatusCode:ob,formToJSON:ab,getAdapter:lb,mergeConfig:cb}=MA,ke=Object.create(null);ke.open="0",ke.close="1",ke.ping="2",ke.pong="3",ke.message="4",ke.upgrade="5",ke.noop="6";const wr=Object.create(null);Object.keys(ke).forEach(s=>{wr[ke[s]]=s});const vn={type:"error",data:"parser error"},Pl=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gl=typeof ArrayBuffer=="function",Rl=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,bn=({type:s,data:A},e,t)=>Pl&&A instanceof Blob?e?t(A):zl(A,t):Gl&&(A instanceof ArrayBuffer||Rl(A))?e?t(A):zl(new Blob([A]),t):t(ke[s]+(A||"")),zl=(s,A)=>{const e=new FileReader;return e.onload=function(){const t=e.result.split(",")[1];A("b"+(t||""))},e.readAsDataURL(s)};function Wl(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Qn;function TB(s,A){if(Pl&&s.data instanceof Blob)return s.data.arrayBuffer().then(Wl).then(A);if(Gl&&(s.data instanceof ArrayBuffer||Rl(s.data)))return A(Wl(s.data));bn(s,!1,e=>{Qn||(Qn=new TextEncoder),A(Qn.encode(e))})}const Xl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Xl.length;s++)ps[Xl.charCodeAt(s)]=s;const MB=s=>{let A=s.length*.75,e=s.length,t,r=0,i,n,o,a;s[s.length-1]==="="&&(A--,s[s.length-2]==="="&&A--);const l=new ArrayBuffer(A),c=new Uint8Array(l);for(t=0;t<e;t+=4)i=ps[s.charCodeAt(t)],n=ps[s.charCodeAt(t+1)],o=ps[s.charCodeAt(t+2)],a=ps[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},DB=typeof ArrayBuffer=="function",yn=(s,A)=>{if(typeof s!="string")return{type:"message",data:$l(s,A)};const e=s.charAt(0);return e==="b"?{type:"message",data:kB(s.substring(1),A)}:wr[e]?s.length>1?{type:wr[e],data:s.substring(1)}:{type:wr[e]}:vn},kB=(s,A)=>{if(DB){const e=MB(s);return $l(e,A)}else return{base64:!0,data:s}},$l=(s,A)=>A==="blob"?s instanceof Blob?s:new Blob([s]):s instanceof ArrayBuffer?s:s.buffer,Jl="",_B=(s,A)=>{const e=s.length,t=new Array(e);let r=0;s.forEach((i,n)=>{bn(i,!1,o=>{t[n]=o,++r===e&&A(t.join(Jl))})})},OB=(s,A)=>{const e=s.split(Jl),t=[];for(let r=0;r<e.length;r++){const i=yn(e[r],A);if(t.push(i),i.type==="error")break}return t};function NB(){return new TransformStream({transform(s,A){TB(s,e=>{const t=e.length;let r;if(t<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,t);else if(t<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,t)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(t))}s.data&&typeof s.data!="string"&&(r[0]|=128),A.enqueue(r),A.enqueue(e)})}})}let Fn;function mr(s){return s.reduce((A,e)=>A+e.length,0)}function Cr(s,A){if(s[0].length===A)return s.shift();const e=new Uint8Array(A);let t=0;for(let r=0;r<A;r++)e[r]=s[0][t++],t===s[0].length&&(s.shift(),t=0);return s.length&&t<s[0].length&&(s[0]=s[0].slice(t)),e}function KB(s,A){Fn||(Fn=new TextDecoder);const e=[];let t=0,r=-1,i=!1;return new TransformStream({transform(n,o){for(e.push(n);;){if(t===0){if(mr(e)<1)break;const a=Cr(e,1);i=(a[0]&128)===128,r=a[0]&127,r<126?t=3:r===126?t=1:t=2}else if(t===1){if(mr(e)<2)break;const a=Cr(e,2);r=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),t=3}else if(t===2){if(mr(e)<8)break;const a=Cr(e,8),l=new DataView(a.buffer,a.byteOffset,a.length),c=l.getUint32(0);if(c>Math.pow(2,21)-1){o.enqueue(vn);break}r=c*Math.pow(2,32)+l.getUint32(4),t=3}else{if(mr(e)<r)break;const a=Cr(e,r);o.enqueue(yn(i?a:Fn.decode(a),A)),t=0}if(r===0||r>s){o.enqueue(vn);break}}}})}const Zl=4;function RA(s){if(s)return VB(s)}function VB(s){for(var A in RA.prototype)s[A]=RA.prototype[A];return s}RA.prototype.on=RA.prototype.addEventListener=function(s,A){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(A),this},RA.prototype.once=function(s,A){function e(){this.off(s,e),A.apply(this,arguments)}return e.fn=A,this.on(s,e),this},RA.prototype.off=RA.prototype.removeListener=RA.prototype.removeAllListeners=RA.prototype.removeEventListener=function(s,A){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+s];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var t,r=0;r<e.length;r++)if(t=e[r],t===A||t.fn===A){e.splice(r,1);break}return e.length===0&&delete this._callbacks["$"+s],this},RA.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var A=new Array(arguments.length-1),e=this._callbacks["$"+s],t=1;t<arguments.length;t++)A[t-1]=arguments[t];if(e){e=e.slice(0);for(var t=0,r=e.length;t<r;++t)e[t].apply(this,A)}return this},RA.prototype.emitReserved=RA.prototype.emit,RA.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]},RA.prototype.hasListeners=function(s){return!!this.listeners(s).length};const vr=typeof Promise=="function"&&typeof Promise.resolve=="function"?A=>Promise.resolve().then(A):(A,e)=>e(A,0),ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),PB="arraybuffer";function hb(){}function Yl(s,...A){return A.reduce((e,t)=>(s.hasOwnProperty(t)&&(e[t]=s[t]),e),{})}const GB=ve.setTimeout,RB=ve.clearTimeout;function br(s,A){A.useNativeTimers?(s.setTimeoutFn=GB.bind(ve),s.clearTimeoutFn=RB.bind(ve)):(s.setTimeoutFn=ve.setTimeout.bind(ve),s.clearTimeoutFn=ve.clearTimeout.bind(ve))}const zB=1.33;function WB(s){return typeof s=="string"?XB(s):Math.ceil((s.byteLength||s.size)*zB)}function XB(s){let A=0,e=0;for(let t=0,r=s.length;t<r;t++)A=s.charCodeAt(t),A<128?e+=1:A<2048?e+=2:A<55296||A>=57344?e+=3:(t++,e+=4);return e}function ql(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $B(s){let A="";for(let e in s)s.hasOwnProperty(e)&&(A.length&&(A+="&"),A+=encodeURIComponent(e)+"="+encodeURIComponent(s[e]));return A}function JB(s){let A={},e=s.split("&");for(let t=0,r=e.length;t<r;t++){let i=e[t].split("=");A[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return A}class ZB extends Error{constructor(A,e,t){super(A),this.description=e,this.context=t,this.type="TransportError"}}class Un extends RA{constructor(A){super(),this.writable=!1,br(this,A),this.opts=A,this.query=A.query,this.socket=A.socket,this.supportsBinary=!A.forceBase64}onError(A,e,t){return super.emitReserved("error",new ZB(A,e,t)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(A){this.readyState==="open"&&this.write(A)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(A){const e=yn(A,this.socket.binaryType);this.onPacket(e)}onPacket(A){super.emitReserved("packet",A)}onClose(A){this.readyState="closed",super.emitReserved("close",A)}pause(A){}createUri(A,e={}){return A+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const A=this.opts.hostname;return A.indexOf(":")===-1?A:"["+A+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(A){const e=$B(A);return e.length?"?"+e:""}}class YB extends Un{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(A){this.readyState="pausing";const e=()=>{this.readyState="paused",A()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(A){const e=t=>{if(this.readyState==="opening"&&t.type==="open"&&this.onOpen(),t.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};OB(A,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const A=()=>{this.write([{type:"close"}])};this.readyState==="open"?A():this.once("open",A)}write(A){this.writable=!1,_B(A,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const A=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=ql()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(A,e)}}let jl=!1;try{jl=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const qB=jl;function jB(){}class Ag extends YB{constructor(A){if(super(A),typeof location<"u"){const e=location.protocol==="https:";let t=location.port;t||(t=e?"443":"80"),this.xd=typeof location<"u"&&A.hostname!==location.hostname||t!==A.port}}doWrite(A,e){const t=this.request({method:"POST",data:A});t.on("success",e),t.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const A=this.request();A.on("data",this.onData.bind(this)),A.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=A}}class _e extends RA{constructor(A,e,t){super(),this.createRequest=A,br(this,t),this._opts=t,this._method=t.method||"GET",this._uri=e,this._data=t.data!==void 0?t.data:null,this._create()}_create(){var A;const e=Yl(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const t=this._xhr=this.createRequest(e);try{t.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&t.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}(A=this._opts.cookieJar)===null||A===void 0||A.addCookies(t),"withCredentials"in t&&(t.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(t.timeout=this._opts.requestTimeout),t.onreadystatechange=()=>{var r;t.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(t.getResponseHeader("set-cookie"))),t.readyState===4&&(t.status===200||t.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof t.status=="number"?t.status:0)},0))},t.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=_e.requestsCount++,_e.requests[this._index]=this)}_onError(A){this.emitReserved("error",A,this._xhr),this._cleanup(!0)}_cleanup(A){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=jB,A)try{this._xhr.abort()}catch{}typeof document<"u"&&delete _e.requests[this._index],this._xhr=null}}_onLoad(){const A=this._xhr.responseText;A!==null&&(this.emitReserved("data",A),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(_e.requestsCount=0,_e.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ac);else if(typeof addEventListener=="function"){const s="onpagehide"in ve?"pagehide":"unload";addEventListener(s,Ac,!1)}}function Ac(){for(let s in _e.requests)_e.requests.hasOwnProperty(s)&&_e.requests[s].abort()}const eg=(function(){const s=ec({xdomain:!1});return s&&s.responseType!==null})();class tg extends Ag{constructor(A){super(A);const e=A&&A.forceBase64;this.supportsBinary=eg&&!e}request(A={}){return Object.assign(A,{xd:this.xd},this.opts),new _e(ec,this.uri(),A)}}function ec(s){const A=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!A||qB))return new XMLHttpRequest}catch{}if(!A)try{return new ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const tc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sg extends Un{get name(){return"websocket"}doOpen(){const A=this.uri(),e=this.opts.protocols,t=tc?{}:Yl(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(t.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(A,e,t)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=A=>this.onClose({description:"websocket connection closed",context:A}),this.ws.onmessage=A=>this.onData(A.data),this.ws.onerror=A=>this.onError("websocket error",A)}write(A){this.writable=!1;for(let e=0;e<A.length;e++){const t=A[e],r=e===A.length-1;bn(t,this.supportsBinary,i=>{try{this.doWrite(t,i)}catch{}r&&vr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const A=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=ql()),this.supportsBinary||(e.b64=1),this.createUri(A,e)}}const En=ve.WebSocket||ve.MozWebSocket;class rg extends sg{createSocket(A,e,t){return tc?new En(A,e,t):e?new En(A,e):new En(A)}doWrite(A,e){this.ws.send(e)}}class ig extends Un{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(A){return this.emitReserved("error",A)}this._transport.closed.then(()=>{this.onClose()}).catch(A=>{this.onError("webtransport error",A)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(A=>{const e=KB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),t=A.readable.pipeThrough(e).getReader(),r=NB();r.readable.pipeTo(A.writable),this._writer=r.writable.getWriter();const i=()=>{t.read().then(({done:o,value:a})=>{o||(this.onPacket(a),i())}).catch(o=>{})};i();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(A){this.writable=!1;for(let e=0;e<A.length;e++){const t=A[e],r=e===A.length-1;this._writer.write(t).then(()=>{r&&vr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var A;(A=this._transport)===null||A===void 0||A.close()}}const ng={websocket:rg,webtransport:ig,polling:tg},og=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ag=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xn(s){if(s.length>8e3)throw"URI too long";const A=s,e=s.indexOf("["),t=s.indexOf("]");e!=-1&&t!=-1&&(s=s.substring(0,e)+s.substring(e,t).replace(/:/g,";")+s.substring(t,s.length));let r=og.exec(s||""),i={},n=14;for(;n--;)i[ag[n]]=r[n]||"";return e!=-1&&t!=-1&&(i.source=A,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=lg(i,i.path),i.queryKey=cg(i,i.query),i}function lg(s,A){const e=/\/{2,9}/g,t=A.replace(e,"/").split("/");return(A.slice(0,1)=="/"||A.length===0)&&t.splice(0,1),A.slice(-1)=="/"&&t.splice(t.length-1,1),t}function cg(s,A){const e={};return A.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,r,i){r&&(e[r]=i)}),e}const Sn=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qr=[];Sn&&addEventListener("offline",()=>{Qr.forEach(s=>s())},!1);class tt extends RA{constructor(A,e){if(super(),this.binaryType=PB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,A&&typeof A=="object"&&(e=A,A=null),A){const t=xn(A);e.hostname=t.host,e.secure=t.protocol==="https"||t.protocol==="wss",e.port=t.port,t.query&&(e.query=t.query)}else e.host&&(e.hostname=xn(e.host).host);br(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{const r=t.prototype.name;this.transports.push(r),this._transportsByName[r]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=JB(this.opts.query)),Sn&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Qr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(A){const e=Object.assign({},this.opts.query);e.EIO=Zl,e.transport=A,this.id&&(e.sid=this.id);const t=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[A]);return new this._transportsByName[A](t)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const A=this.opts.rememberUpgrade&&tt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(A);e.open(),this.setTransport(e)}setTransport(A){this.transport&&this.transport.removeAllListeners(),this.transport=A,A.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",tt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(A){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",A),this.emitReserved("heartbeat"),A.type){case"open":this.onHandshake(JSON.parse(A.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=A.data,this._onError(e);break;case"message":this.emitReserved("data",A.data),this.emitReserved("message",A.data);break}}onHandshake(A){this.emitReserved("handshake",A),this.id=A.sid,this.transport.query.sid=A.sid,this._pingInterval=A.pingInterval,this._pingTimeout=A.pingTimeout,this._maxPayload=A.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const A=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+A,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},A),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const A=this._getWritablePackets();this.transport.send(A),this._prevBufferLen=A.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=WB(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const A=Date.now()>this._pingTimeoutTime;return A&&(this._pingTimeoutTime=0,vr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),A}write(A,e,t){return this._sendPacket("message",A,e,t),this}send(A,e,t){return this._sendPacket("message",A,e,t),this}_sendPacket(A,e,t,r){if(typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=null),this.readyState==="closing"||this.readyState==="closed")return;t=t||{},t.compress=t.compress!==!1;const i={type:A,data:e,options:t};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const A=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),A()},t=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?t():A()}):this.upgrading?t():A()),this}_onError(A){if(tt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",A),this._onClose("transport error",A)}_onClose(A,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Sn&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const t=Qr.indexOf(this._offlineEventListener);t!==-1&&Qr.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",A,e),this.writeBuffer=[],this._prevBufferLen=0}}}tt.protocol=Zl;class hg extends tt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let A=0;A<this._upgrades.length;A++)this._probe(this._upgrades[A])}_probe(A){let e=this.createTransport(A),t=!1;tt.priorWebsocketSuccess=!1;const r=()=>{t||(e.send([{type:"ping",data:"probe"}]),e.once("packet",u=>{if(!t)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;tt.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{t||this.readyState!=="closed"&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=e.name,this.emitReserved("upgradeError",f)}}))};function i(){t||(t=!0,c(),e.close(),e=null)}const n=u=>{const f=new Error("probe error: "+u);f.transport=e.name,i(),this.emitReserved("upgradeError",f)};function o(){n("transport closed")}function a(){n("socket closed")}function l(u){e&&u.name!==e.name&&i()}const c=()=>{e.removeListener("open",r),e.removeListener("error",n),e.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};e.once("open",r),e.once("error",n),e.once("close",o),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&A!=="webtransport"?this.setTimeoutFn(()=>{t||e.open()},200):e.open()}onHandshake(A){this._upgrades=this._filterUpgrades(A.upgrades),super.onHandshake(A)}_filterUpgrades(A){const e=[];for(let t=0;t<A.length;t++)~this.transports.indexOf(A[t])&&e.push(A[t]);return e}}let ug=class extends hg{constructor(A,e={}){const t=typeof A=="object"?A:e;(!t.transports||t.transports&&typeof t.transports[0]=="string")&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map(r=>ng[r]).filter(r=>!!r)),super(A,t)}};function fg(s,A="",e){let t=s;e=e||typeof location<"u"&&location,s==null&&(s=e.protocol+"//"+e.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=e.protocol+s:s=e.host+s),/^(https?|wss?):\/\//.test(s)||(typeof e<"u"?s=e.protocol+"//"+s:s="https://"+s),t=xn(s)),t.port||(/^(http|ws)$/.test(t.protocol)?t.port="80":/^(http|ws)s$/.test(t.protocol)&&(t.port="443")),t.path=t.path||"/";const i=t.host.indexOf(":")!==-1?"["+t.host+"]":t.host;return t.id=t.protocol+"://"+i+":"+t.port+A,t.href=t.protocol+"://"+i+(e&&e.port===t.port?"":":"+t.port),t}const dg=typeof ArrayBuffer=="function",Bg=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,sc=Object.prototype.toString,gg=typeof Blob=="function"||typeof Blob<"u"&&sc.call(Blob)==="[object BlobConstructor]",pg=typeof File=="function"||typeof File<"u"&&sc.call(File)==="[object FileConstructor]";function Hn(s){return dg&&(s instanceof ArrayBuffer||Bg(s))||gg&&s instanceof Blob||pg&&s instanceof File}function yr(s,A){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let e=0,t=s.length;e<t;e++)if(yr(s[e]))return!0;return!1}if(Hn(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return yr(s.toJSON(),!0);for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e)&&yr(s[e]))return!0;return!1}function wg(s){const A=[],e=s.data,t=s;return t.data=Ln(e,A),t.attachments=A.length,{packet:t,buffers:A}}function Ln(s,A){if(!s)return s;if(Hn(s)){const e={_placeholder:!0,num:A.length};return A.push(s),e}else if(Array.isArray(s)){const e=new Array(s.length);for(let t=0;t<s.length;t++)e[t]=Ln(s[t],A);return e}else if(typeof s=="object"&&!(s instanceof Date)){const e={};for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=Ln(s[t],A));return e}return s}function mg(s,A){return s.data=In(s.data,A),delete s.attachments,s}function In(s,A){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<A.length)return A[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let e=0;e<s.length;e++)s[e]=In(s[e],A);else if(typeof s=="object")for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&(s[e]=In(s[e],A));return s}const Cg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var yA;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(yA||(yA={}));class vg{constructor(A){this.replacer=A}encode(A){return(A.type===yA.EVENT||A.type===yA.ACK)&&yr(A)?this.encodeAsBinary({type:A.type===yA.EVENT?yA.BINARY_EVENT:yA.BINARY_ACK,nsp:A.nsp,data:A.data,id:A.id}):[this.encodeAsString(A)]}encodeAsString(A){let e=""+A.type;return(A.type===yA.BINARY_EVENT||A.type===yA.BINARY_ACK)&&(e+=A.attachments+"-"),A.nsp&&A.nsp!=="/"&&(e+=A.nsp+","),A.id!=null&&(e+=A.id),A.data!=null&&(e+=JSON.stringify(A.data,this.replacer)),e}encodeAsBinary(A){const e=wg(A),t=this.encodeAsString(e.packet),r=e.buffers;return r.unshift(t),r}}class Tn extends RA{constructor(A){super(),this.reviver=A}add(A){let e;if(typeof A=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(A);const t=e.type===yA.BINARY_EVENT;t||e.type===yA.BINARY_ACK?(e.type=t?yA.EVENT:yA.ACK,this.reconstructor=new bg(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Hn(A)||A.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(A),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+A)}decodeString(A){let e=0;const t={type:Number(A.charAt(0))};if(yA[t.type]===void 0)throw new Error("unknown packet type "+t.type);if(t.type===yA.BINARY_EVENT||t.type===yA.BINARY_ACK){const i=e+1;for(;A.charAt(++e)!=="-"&&e!=A.length;);const n=A.substring(i,e);if(n!=Number(n)||A.charAt(e)!=="-")throw new Error("Illegal attachments");t.attachments=Number(n)}if(A.charAt(e+1)==="/"){const i=e+1;for(;++e&&!(A.charAt(e)===","||e===A.length););t.nsp=A.substring(i,e)}else t.nsp="/";const r=A.charAt(e+1);if(r!==""&&Number(r)==r){const i=e+1;for(;++e;){const n=A.charAt(e);if(n==null||Number(n)!=n){--e;break}if(e===A.length)break}t.id=Number(A.substring(i,e+1))}if(A.charAt(++e)){const i=this.tryParse(A.substr(e));if(Tn.isPayloadValid(t.type,i))t.data=i;else throw new Error("invalid payload")}return t}tryParse(A){try{return JSON.parse(A,this.reviver)}catch{return!1}}static isPayloadValid(A,e){switch(A){case yA.CONNECT:return rc(e);case yA.DISCONNECT:return e===void 0;case yA.CONNECT_ERROR:return typeof e=="string"||rc(e);case yA.EVENT:case yA.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Cg.indexOf(e[0])===-1);case yA.ACK:case yA.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bg{constructor(A){this.packet=A,this.buffers=[],this.reconPack=A}takeBinaryData(A){if(this.buffers.push(A),this.buffers.length===this.reconPack.attachments){const e=mg(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function rc(s){return Object.prototype.toString.call(s)==="[object Object]"}const Qg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Tn,Encoder:vg,get PacketType(){return yA}},Symbol.toStringTag,{value:"Module"}));function He(s,A,e){return s.on(A,e),function(){s.off(A,e)}}const yg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ic extends RA{constructor(A,e,t){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=A,this.nsp=e,t&&t.auth&&(this.auth=t.auth),this._opts=Object.assign({},t),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const A=this.io;this.subs=[He(A,"open",this.onopen.bind(this)),He(A,"packet",this.onpacket.bind(this)),He(A,"error",this.onerror.bind(this)),He(A,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...A){return A.unshift("message"),this.emit.apply(this,A),this}emit(A,...e){var t,r,i;if(yg.hasOwnProperty(A))throw new Error('"'+A.toString()+'" is a reserved event name');if(e.unshift(A),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const n={type:yA.EVENT,data:e};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const c=this.ids++,u=e.pop();this._registerAckCallback(c,u),n.id=c}const o=(r=(t=this.io.engine)===null||t===void 0?void 0:t.transport)===null||r===void 0?void 0:r.writable,a=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(A,e){var t;const r=(t=this.flags.timeout)!==null&&t!==void 0?t:this._opts.ackTimeout;if(r===void 0){this.acks[A]=e;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[A];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===A&&this.sendBuffer.splice(o,1);e.call(this,new Error("operation has timed out"))},r),n=(...o)=>{this.io.clearTimeoutFn(i),e.apply(this,o)};n.withError=!0,this.acks[A]=n}emitWithAck(A,...e){return new Promise((t,r)=>{const i=(n,o)=>n?r(n):t(o);i.withError=!0,e.push(i),this.emit(A,...e)})}_addToQueue(A){let e;typeof A[A.length-1]=="function"&&(e=A.pop());const t={id:this._queueSeq++,tryCount:0,pending:!1,args:A,flags:Object.assign({fromQueue:!0},this.flags)};A.push((r,...i)=>(this._queue[0],r!==null?t.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(r)):(this._queue.shift(),e&&e(null,...i)),t.pending=!1,this._drainQueue())),this._queue.push(t),this._drainQueue()}_drainQueue(A=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!A||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(A){A.nsp=this.nsp,this.io._packet(A)}onopen(){typeof this.auth=="function"?this.auth(A=>{this._sendConnectPacket(A)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(A){this.packet({type:yA.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},A):A})}onerror(A){this.connected||this.emitReserved("connect_error",A)}onclose(A,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",A,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(A=>{if(!this.sendBuffer.some(t=>String(t.id)===A)){const t=this.acks[A];delete this.acks[A],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(A){if(A.nsp===this.nsp)switch(A.type){case yA.CONNECT:A.data&&A.data.sid?this.onconnect(A.data.sid,A.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case yA.EVENT:case yA.BINARY_EVENT:this.onevent(A);break;case yA.ACK:case yA.BINARY_ACK:this.onack(A);break;case yA.DISCONNECT:this.ondisconnect();break;case yA.CONNECT_ERROR:this.destroy();const t=new Error(A.data.message);t.data=A.data.data,this.emitReserved("connect_error",t);break}}onevent(A){const e=A.data||[];A.id!=null&&e.push(this.ack(A.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(A){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const t of e)t.apply(this,A)}super.emit.apply(this,A),this._pid&&A.length&&typeof A[A.length-1]=="string"&&(this._lastOffset=A[A.length-1])}ack(A){const e=this;let t=!1;return function(...r){t||(t=!0,e.packet({type:yA.ACK,id:A,data:r}))}}onack(A){const e=this.acks[A.id];typeof e=="function"&&(delete this.acks[A.id],e.withError&&A.data.unshift(null),e.apply(this,A.data))}onconnect(A,e){this.id=A,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(A=>this.emitEvent(A)),this.receiveBuffer=[],this.sendBuffer.forEach(A=>{this.notifyOutgoingListeners(A),this.packet(A)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(A=>A()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:yA.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(A){return this.flags.compress=A,this}get volatile(){return this.flags.volatile=!0,this}timeout(A){return this.flags.timeout=A,this}onAny(A){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(A),this}prependAny(A){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(A),this}offAny(A){if(!this._anyListeners)return this;if(A){const e=this._anyListeners;for(let t=0;t<e.length;t++)if(A===e[t])return e.splice(t,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(A){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(A),this}prependAnyOutgoing(A){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(A),this}offAnyOutgoing(A){if(!this._anyOutgoingListeners)return this;if(A){const e=this._anyOutgoingListeners;for(let t=0;t<e.length;t++)if(A===e[t])return e.splice(t,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(A){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const t of e)t.apply(this,A.data)}}}function Ot(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Ot.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var A=Math.random(),e=Math.floor(A*this.jitter*s);s=(Math.floor(A*10)&1)==0?s-e:s+e}return Math.min(s,this.max)|0},Ot.prototype.reset=function(){this.attempts=0},Ot.prototype.setMin=function(s){this.ms=s},Ot.prototype.setMax=function(s){this.max=s},Ot.prototype.setJitter=function(s){this.jitter=s};class Mn extends RA{constructor(A,e){var t;super(),this.nsps={},this.subs=[],A&&typeof A=="object"&&(e=A,A=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,br(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((t=e.randomizationFactor)!==null&&t!==void 0?t:.5),this.backoff=new Ot({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=A;const r=e.parser||Qg;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(A){return arguments.length?(this._reconnection=!!A,A||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(A){return A===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=A,this)}reconnectionDelay(A){var e;return A===void 0?this._reconnectionDelay:(this._reconnectionDelay=A,(e=this.backoff)===null||e===void 0||e.setMin(A),this)}randomizationFactor(A){var e;return A===void 0?this._randomizationFactor:(this._randomizationFactor=A,(e=this.backoff)===null||e===void 0||e.setJitter(A),this)}reconnectionDelayMax(A){var e;return A===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=A,(e=this.backoff)===null||e===void 0||e.setMax(A),this)}timeout(A){return arguments.length?(this._timeout=A,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(A){if(~this._readyState.indexOf("open"))return this;this.engine=new ug(this.uri,this.opts);const e=this.engine,t=this;this._readyState="opening",this.skipReconnect=!1;const r=He(e,"open",function(){t.onopen(),A&&A()}),i=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),A?A(o):this.maybeReconnectOnOpen()},n=He(e,"error",i);if(this._timeout!==!1){const o=this._timeout,a=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),e.close()},o);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(r),this.subs.push(n),this}connect(A){return this.open(A)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const A=this.engine;this.subs.push(He(A,"ping",this.onping.bind(this)),He(A,"data",this.ondata.bind(this)),He(A,"error",this.onerror.bind(this)),He(A,"close",this.onclose.bind(this)),He(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(A){try{this.decoder.add(A)}catch(e){this.onclose("parse error",e)}}ondecoded(A){vr(()=>{this.emitReserved("packet",A)},this.setTimeoutFn)}onerror(A){this.emitReserved("error",A)}socket(A,e){let t=this.nsps[A];return t?this._autoConnect&&!t.active&&t.connect():(t=new ic(this,A,e),this.nsps[A]=t),t}_destroy(A){const e=Object.keys(this.nsps);for(const t of e)if(this.nsps[t].active)return;this._close()}_packet(A){const e=this.encoder.encode(A);for(let t=0;t<e.length;t++)this.engine.write(e[t],A.options)}cleanup(){this.subs.forEach(A=>A()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(A,e){var t;this.cleanup(),(t=this.engine)===null||t===void 0||t.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",A,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const A=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const t=this.setTimeoutFn(()=>{A.skipReconnect||(this.emitReserved("reconnect_attempt",A.backoff.attempts),!A.skipReconnect&&A.open(r=>{r?(A._reconnecting=!1,A.reconnect(),this.emitReserved("reconnect_error",r)):A.onreconnect()}))},e);this.opts.autoUnref&&t.unref(),this.subs.push(()=>{this.clearTimeoutFn(t)})}}onreconnect(){const A=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",A)}}const ws={};function Fr(s,A){typeof s=="object"&&(A=s,s=void 0),A=A||{};const e=fg(s,A.path||"/socket.io"),t=e.source,r=e.id,i=e.path,n=ws[r]&&i in ws[r].nsps,o=A.forceNew||A["force new connection"]||A.multiplex===!1||n;let a;return o?a=new Mn(t,A):(ws[r]||(ws[r]=new Mn(t,A)),a=ws[r]),e.query&&!A.query&&(A.query=e.queryKey),a.socket(e.path,A)}Object.assign(Fr,{Manager:Mn,Socket:ic,io:Fr,connect:Fr});let ue="http://localhost:8000";function nc(s){if(!s){console.warn("⚠️ [SOCKET DEBUG] setBaseUrl called with empty URL");return}if(s!==ue){const A=ue;ue=s,console.log(`🔄 [SOCKET DEBUG] SocketService: Changing baseUrl from ${A} to ${s}`),KA&&(console.log("🔄 [SOCKET DEBUG] Disconnecting old socket..."),KA.disconnect(),KA.removeAllListeners(),KA=null)}else console.log(`✅ [SOCKET DEBUG] BaseUrl already set to ${s}, no change needed`)}let KA=null;function Fg(){const A=(()=>{try{return localStorage.getItem("token")||localStorage.getItem("authToken")||localStorage.getItem("accessToken")||localStorage.getItem("jwt_token")}catch{return null}})();console.log("🔧 [SOCKET DEBUG] Creating socket for MT5 backend:",{baseUrl:ue,hasToken:!!A,tokenLength:A?.length||0,note:"Connecting to MT5 backend WebSocket (root namespace for candles)"});const e=Fr(ue,{transports:["polling","websocket"],reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:10,timeout:15e3,forceNew:!1,withCredentials:!1,autoConnect:!0,upgrade:!0,auth:A?{token:A}:void 0});return e.on("connect",()=>{console.log("✅ [SOCKET DEBUG] SocketService: connected to ROOT namespace",{socketId:e.id,baseUrl:ue,transport:e.io.engine.transport.name,namespace:e.nsp.name||"/",note:"This socket connects to CandlesGateway (root namespace)"})}),e.on("disconnect",t=>{console.log("⚠️ [SOCKET DEBUG] SocketService: disconnected:",{reason:t,socketId:e.id})}),e.on("connect_error",t=>{console.error("❌ [SOCKET DEBUG] SocketService: connection error to ROOT namespace:",{message:t?.message,description:t?.description,context:t?.context,type:t?.type,baseUrl:ue,namespace:e.nsp.name||"/",note:"CandlesGateway requires JWT authentication - check if token is valid"})}),e.on("reconnect_attempt",t=>{console.log("🔄 [SOCKET DEBUG] SocketService: reconnect attempt",{attempt:t,baseUrl:ue})}),e.on("reconnect_failed",()=>{console.error("❌ [SOCKET DEBUG] SocketService: failed to reconnect",{baseUrl:ue})}),e.on("reconnect",t=>{console.log("✅ [SOCKET DEBUG] SocketService: reconnected after",{attempts:t,socketId:e.id})}),e}function Dn(){const s=KA?.io?.uri||KA?.io?.opts?.host||null;return!KA||KA.io&&s&&s!==ue?(KA&&(console.log("🔄 [SOCKET DEBUG] Recreating socket:",{oldUri:s,newBaseUrl:ue,wasConnected:KA.connected,reason:"baseUrl changed"}),KA.disconnect(),KA.removeAllListeners(),KA=null),console.log("🔧 [SOCKET DEBUG] Creating new socket instance for MT5 backend:",ue),KA=Fg()):KA.connected?console.log("✅ [SOCKET DEBUG] Reusing existing connected socket:",{socketId:KA.id,connected:KA.connected,baseUrl:ue,uri:s}):console.log("⏳ [SOCKET DEBUG] Socket exists but not connected, waiting...",{socketId:KA.id,baseUrl:ue}),KA}function Ug(s,A){const e=Dn();return e.on(s,A),()=>e.off(s,A)}function Eg(s,A){KA&&KA.off(s,A)}function xg(s,A){Dn().emit(s,A)}function Sg(){return KA?KA.connected?"connected":"connecting":"disconnected"}const Ur={getSocket:Dn,on:Ug,off:Eg,emit:xg,getStatus:Sg,setBaseUrl:nc},Hg={},oc=b.createContext(),Ae=()=>{const s=b.useContext(oc);if(!s)throw new Error("useTrading must be used within TradingProvider");return s},Lg=({children:s,baseUrl:A,endpoints:e,accountId:t})=>{const r=A??(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yi&&yi.tagName.toUpperCase()==="SCRIPT"&&yi.src||new URL("chart-sdk.umd.js",document.baseURI).href}<"u"&&Hg?.VITE_BASE_URL)??"http://localhost:8000",n={...{candles:"/api/chart/candles",symbols:"/symbols",trades:"/trades",account:"/api/user/account"},...e},o=e?.params||{},[a,l]=b.useState("BTCUSD"),[c,u]=b.useState("M1"),[f,g]=b.useState([]),[B,d]=b.useState(!0),[p,m]=b.useState([]),[w,v]=b.useState(!1),[y,E]=b.useState(1e5),[U,T]=b.useState(null),[k,L]=b.useState([]),[iA,J]=b.useState(!0),[hA,aA]=b.useState(!1),[Z,Y]=b.useState(!0),[I,z]=b.useState("candles"),[tA,FA]=b.useState(!1),[vA,SA]=b.useState("dark"),j=b.useRef(null);b.useEffect(()=>{Ur.setBaseUrl(r)},[r]);const rA=b.useRef(new Map),mA=b.useRef(null),fA=1e3,OA=b.useCallback(async()=>{if(!t){console.log("⚠️ No accountId, skipping orders fetch");return}try{const uA=localStorage.getItem("token");if(!uA){console.log("⚠️ No token, skipping orders fetch");return}v(!0);const UA=await MA.get(`${r}/trades/account/${t}`,{headers:{Authorization:`Bearer ${uA}`}});let W=[];Array.isArray(UA.data)?W=UA.data:UA.data?.data&&Array.isArray(UA.data.data)&&(W=UA.data.data);const D=W.filter(X=>X.closePrice===null||X.closePrice===void 0).map(X=>({id:X.id,ticket:X.id?.substring(0,8),symbol:X.symbol,type:X.type,volume:X.volume,price:X.openPrice,stopLoss:X.stopLoss,takeProfit:X.takeProfit,comment:X.comment||"",status:"OPEN",swap:0,profit:X.profit||0,profitCurrency:"USD",time:new Date(X.openedAt||X.openAt||Date.now()).toLocaleTimeString(),openAt:X.openedAt||X.openAt,closeAt:X.closedAt||X.closeAt}));m(D)}catch(uA){console.error("❌ Error fetching orders:",uA.response?.data||uA.message),m([])}finally{v(!1)}},[r,t]),LA=b.useCallback((uA,UA)=>!UA||!uA.price||isNaN(UA)||isNaN(uA.price)?uA.profit||0:(uA.type==="BUY"?UA-uA.price:uA.price-UA)*uA.volume,[]),ge=b.useCallback(async()=>{try{const uA=localStorage.getItem("token");if(!uA){console.log("⚠️ No token, skipping balance fetch");return}const UA=await MA.get(`${r}${n.account}`,{headers:{Authorization:`Bearer ${uA}`}});if(UA.data&&UA.data.data){const W=parseFloat(UA.data.data.balance);isNaN(W)||E(W)}}catch(uA){console.error("❌ Error fetching user balance:",uA.response?.data||uA.message)}},[r]),Et=b.useMemo(()=>{const uA=y,UA=p.reduce((dA,QA)=>dA+QA.volume*QA.price*.01,0),W=p.reduce((dA,QA)=>{const JA=f.find(pe=>pe.symbol===QA.symbol);if(JA){const pe=QA.type==="BUY"?parseFloat(JA.bid||0):parseFloat(JA.ask||0);if(pe&&pe>0&&!isNaN(pe))return dA+LA(QA,pe)}return dA+(QA.profit||0)},0),D=uA+W,X=D-UA,N=UA>0?D/UA*100:0;return{balance:uA,equity:D,margin:UA,freeMargin:X,level:N.toFixed(2)}},[p,f,y,LA]);b.useEffect(()=>{localStorage.getItem("token")&&t&&(OA(),ge())},[OA,ge,t]),b.useEffect(()=>{(async()=>{try{d(!0);const UA=n.symbols.includes("?")?`${r}${n.symbols}`:`${r}${n.symbols}`,W=await MA.get(UA);let D=[];Array.isArray(W.data)?(console.log("1 console",W.data),D=W.data):W.data&&W.data.data&&Array.isArray(W.data.data)?(console.log("2 console",W.data.data),D=W.data.data):W.data&&W.data.prices&&Array.isArray(W.data.prices)?(console.log("3 console",W.data.price),D=W.data.prices):W.data&&Array.isArray(W.data)&&(D=W.data,console.log("else format",W.data));const X=D.map(N=>N.symbol&&(N.bid!==void 0||N.price!==void 0)?{symbol:N.symbol,bid:N.bid??N.price??0,ask:N.ask??N.price??0,change:N.change??0}:N);X.length>0?(g(X),X.find(dA=>dA.symbol===a)||l(X[0].symbol)):g([])}catch(UA){console.error("❌ Error fetching symbols:",UA.response?.data||UA.message),g([])}finally{d(!1)}})()},[r,n.symbols]);const xt=b.useCallback(()=>{const uA=rA.current;if(uA.size===0)return;const UA=new Map(uA);uA.clear(),g(W=>W.map(D=>{const X=UA.get(D.symbol);return X?{...D,...X}:D})),m(W=>{let D=!1;const X=W.map(N=>{const dA=UA.get(N.symbol);if(!dA)return N;const QA=N.type==="BUY"?parseFloat(dA.bid||0):parseFloat(dA.ask||0);if(!QA||isNaN(QA)||QA<=0)return N;const JA=LA(N,QA);return JA===N.profit?N:(D=!0,{...N,profit:JA})});return D?X:W})},[LA]);b.useEffect(()=>{j.current||(j.current=Ur.getSocket());const uA=j.current,UA=()=>console.log("✅ TradingContext: Connected"),W=()=>console.log("⚠️ TradingContext: Disconnected"),D=N=>{N?.symbol&&(rA.current.set(N.symbol,N),mA.current||(mA.current=setTimeout(()=>{mA.current=null,xt()},fA)))},X=async N=>{if(console.log("🔔 Trade closed event received:",N),!!N){if(N.newBalance!==void 0){const dA=parseFloat(N.newBalance);isNaN(dA)||E(dA)}if(window.notify){const dA=N.profitLoss||N.profit||0,QA=dA>=0?`+${dA.toFixed(2)}`:dA.toFixed(2),JA=N.symbol||"Trade",pe=N.reason||"Closed";window.notify(`Trade Closed: ${pe} | ${JA} | P/L: ${QA} USD`,dA>=0?"success":"error")}N.tradeId&&m(dA=>dA.filter(QA=>QA.id!==N.tradeId)),await OA(),await ge()}};return uA.on("connect",UA),uA.on("disconnect",W),uA.on("priceUpdate",D),uA.on("tradeClosed",X),()=>{uA.off("connect",UA),uA.off("disconnect",W),uA.off("priceUpdate",D),uA.off("tradeClosed",X),mA.current&&(clearTimeout(mA.current),mA.current=null),rA.current.clear()}},[xt,OA,ge]),b.useEffect(()=>{try{const uA=document.documentElement;if(!uA)return;uA.dataset.theme=vA}catch{}},[vA]);const Te=b.useMemo(()=>f.find(uA=>uA.symbol===a)||{bid:"0.00000",ask:"0.00000",change:0},[f,a]),qt=b.useMemo(()=>({selectedSymbol:a,setSelectedSymbol:l,selectedTimeframe:c,setSelectedTimeframe:u,symbols:f,setSymbols:g,symbolsLoading:B,orders:p,setOrders:m,ordersLoading:w,fetchOrders:OA,fetchUserBalance:ge,userBalance:y,setUserBalance:E,accountSummary:Et,currentSymbolData:Te,activeTool:U,setActiveTool:T,chartObjects:k,setChartObjects:L,showGrid:iA,setShowGrid:J,snapToGrid:hA,setSnapToGrid:aA,drawingsVisible:Z,setDrawingsVisible:Y,chartType:I,setChartType:z,chartLocked:tA,setChartLocked:FA,theme:vA,setTheme:SA,baseUrl:r,endpoints:n,endpointParams:o,accountId:t}),[a,c,f,B,p,w,OA,ge,y,Et,Te,U,k,iA,hA,Z,I,tA,vA,r,n,o]);return h.jsx(oc.Provider,{value:qt,children:s})};var ac={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lc=b.createContext&&b.createContext(ac),Ig=["attr","size","title"];function Tg(s,A){if(s==null)return{};var e=Mg(s,A),t,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);for(r=0;r<i.length;r++)t=i[r],!(A.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(s,t)&&(e[t]=s[t])}return e}function Mg(s,A){if(s==null)return{};var e={};for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)){if(A.indexOf(t)>=0)continue;e[t]=s[t]}return e}function Er(){return Er=Object.assign?Object.assign.bind():function(s){for(var A=1;A<arguments.length;A++){var e=arguments[A];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])}return s},Er.apply(this,arguments)}function cc(s,A){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(s);A&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),e.push.apply(e,t)}return e}function xr(s){for(var A=1;A<arguments.length;A++){var e=arguments[A]!=null?arguments[A]:{};A%2?cc(Object(e),!0).forEach(function(t){Dg(s,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):cc(Object(e)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(e,t))})}return s}function Dg(s,A,e){return A=kg(A),A in s?Object.defineProperty(s,A,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[A]=e,s}function kg(s){var A=_g(s,"string");return typeof A=="symbol"?A:A+""}function _g(s,A){if(typeof s!="object"||!s)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var t=e.call(s,A);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(s)}function hc(s){return s&&s.map((A,e)=>b.createElement(A.tag,xr({key:e},A.attr),hc(A.child)))}function ms(s){return A=>b.createElement(Og,Er({attr:xr({},s.attr)},A),hc(s.child))}function Og(s){var A=e=>{var{attr:t,size:r,title:i}=s,n=Tg(s,Ig),o=r||e.size||"1em",a;return e.className&&(a=e.className),s.className&&(a=(a?a+" ":"")+s.className),b.createElement("svg",Er({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,n,{className:a,style:xr(xr({color:s.color||e.color},e.style),s.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),i&&b.createElement("title",null,i),s.children)};return lc!==void 0?b.createElement(lc.Consumer,null,e=>A(e)):A(ac)}function Ng(s){return ms({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(s)}function Kg(s){return ms({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(s)}const uc=({bidPrice:s,askPrice:A,onBuyClick:e,onSellClick:t})=>{const{theme:r}=Ae(),i=r==="light",[n,o]=b.useState("0.01"),a=i?"bg-slate-100":"bg-[#12161d]",l=i?"text-slate-700":"text-white",c=i?"hover:bg-slate-200":"hover:bg-[#1e2635]",u=B=>{const d=parseFloat(n)||.01,p=Math.max(.01,d+B);o(p.toFixed(2))},f=()=>{e&&e({volume:parseFloat(n)})},g=()=>{t&&t({volume:parseFloat(n)})};return h.jsxs("div",{className:"flex items-stretch h-[30px] text-xs font-semibold select-none",children:[h.jsxs("button",{onClick:g,className:"flex items-stretch overflow-hidden",children:[h.jsx("span",{className:"flex items-center px-2.5 font-mono tabular-nums bg-[#BD3E3E] text-white",children:s||"—"}),h.jsx("span",{className:"flex items-center px-2.5 tracking-wide bg-[#DE4848] text-white",children:"SELL"})]}),h.jsxs("div",{className:`flex items-stretch ${a}`,children:[h.jsx("button",{type:"button",onClick:()=>u(-.01),className:`w-5 flex items-center justify-center ${l} ${c} transition-colors`,children:h.jsx(Ng,{size:8})}),h.jsx("input",{type:"number",value:n,onChange:B=>{const d=B.target.value;(d===""||parseFloat(d)>=0)&&o(d)},onBlur:()=>{const B=parseFloat(n);o(isNaN(B)||B<.01?"0.01":B.toFixed(2))},className:`w-14 text-center focus:outline-none ${a} ${l}`,step:"0.01",min:"0.01",style:{MozAppearance:"textfield"}}),h.jsx("button",{type:"button",onClick:()=>u(.01),className:`w-5 flex items-center justify-center ${l} ${c} transition-colors`,children:h.jsx(Kg,{size:8})})]}),h.jsxs("button",{onClick:f,className:"flex items-stretch overflow-hidden",children:[h.jsx("span",{className:"flex items-center px-2.5 tracking-wide bg-[#2869CE] text-white",children:"BUY"}),h.jsx("span",{className:"flex items-center px-2.5 font-mono tabular-nums bg-[#2F7CF2] text-white",children:A||"—"})]})]})},Vg={},fc=({isOpen:s,onClose:A,orderType:e,bidPrice:t,askPrice:r,onExecuteTrade:i,userAccountId:n,initialVolume:o})=>{const{selectedSymbol:a,selectedTimeframe:l,setOrders:c,symbols:u,fetchOrders:f,theme:g,baseUrl:B,endpoints:d}=Ae(),p=g==="light",[m,w]=b.useState("0.01"),[v,y]=b.useState(""),[E,U]=b.useState(""),[T,k]=b.useState(""),[L,iA]=b.useState(!1),[J,hA]=b.useState(null),[aA,Z]=b.useState(""),[Y,I]=b.useState(e||"BUY"),[z,tA]=b.useState(parseFloat(t)||0),[FA,vA]=b.useState(parseFloat(r)||0),[SA,j]=b.useState("text-white"),[rA,mA]=b.useState("text-white"),fA=b.useRef(parseFloat(t)||0),OA=b.useRef(parseFloat(r)||0);b.useEffect(()=>{if(!s)return;const W=Ur.getSocket(),D=N=>{if(!(!N||!N.symbol)&&N.symbol.toUpperCase()===a?.toUpperCase()){const dA=parseFloat(N.bid)||0,QA=parseFloat(N.ask)||0;dA>0&&(dA>fA.current?(j("text-green-400"),setTimeout(()=>j("text-white"),500)):dA<fA.current&&fA.current>0&&(j("text-red-400"),setTimeout(()=>j("text-white"),500)),tA(dA),fA.current=dA),QA>0&&(QA>OA.current?(mA("text-green-400"),setTimeout(()=>mA("text-white"),500)):QA<OA.current&&OA.current>0&&(mA("text-red-400"),setTimeout(()=>mA("text-white"),500)),vA(QA),OA.current=QA)}};W.on("priceUpdate",D);const X=u.find(N=>N.symbol===a);if(X){const N=parseFloat(X.bid)||0,dA=parseFloat(X.ask)||0;N>0&&(tA(N),fA.current=N),dA>0&&(vA(dA),OA.current=dA)}return()=>{W.off("priceUpdate",D)}},[s,a,u]),b.useEffect(()=>{if(s){w(o?String(o):"0.01"),y(""),U(""),k(""),Z(""),I(e||"BUY");const W=parseFloat(t)||0,D=parseFloat(r)||0;W>0&&(tA(W),fA.current=W),D>0&&(vA(D),OA.current=D)}},[s,e,t,r,o]);const LA=z||0,ge=FA||0,Et=W=>{const D=parseFloat(m)||.01,X=Math.max(.01,D+W);w(X.toFixed(2))},xt=W=>{const D=parseFloat(v)||0,X=parseFloat(Y==="BUY"?FA:z)||0;if(!X){Z("Current price not available. Please wait...");return}let N=D+W;Y==="BUY"?N=Math.max(1e-5,Math.min(N,X-1e-5)):N=Math.max(X+1e-5,N),y(N>0?N.toFixed(5):""),Z("")},Te=W=>{const D=parseFloat(E)||0,X=parseFloat(Y==="BUY"?FA:z)||0;if(!X){Z("Current price not available. Please wait...");return}let N=D+W;Y==="BUY"?N=Math.max(X+1e-5,N):N=Math.max(1e-5,Math.min(N,X-1e-5)),U(N>0?N.toFixed(5):""),Z("")},qt=async W=>{Z("");const D=W||Y,X=parseFloat(D==="BUY"?FA:z),N=parseFloat(m),dA=v?parseFloat(v):null,QA=E?parseFloat(E):null;if(!N||N<=0||isNaN(N)){Z("Please enter a valid volume (minimum 0.01)");return}if(N<.01){Z("Volume must be at least 0.01");return}if(!X||X<=0||isNaN(X)){Z("Invalid price. Please refresh and try again.");return}if(dA!==null&&dA!==""){if(isNaN(dA)||dA<=0){Z("Stop Loss must be a valid positive number");return}if(D==="BUY"&&dA>=X){Z("Stop Loss must be below the current price for BUY orders");return}if(D==="SELL"&&dA<=X){Z("Stop Loss must be above the current price for SELL orders");return}}if(QA!==null&&QA!==""){if(isNaN(QA)||QA<=0){Z("Take Profit must be a valid positive number");return}if(D==="BUY"){if(QA<=X){Z(`Take Profit must be above the entry price (${X.toFixed(5)}) for BUY orders`);return}}else if(D==="SELL"&&QA>=X){Z(`Take Profit must be below the entry price (${X.toFixed(5)}) for SELL orders`);return}}I(D),hA(D),iA(!0);const JA=new Date,pe=JA.toLocaleTimeString(),ze=`temp_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,Qi=localStorage.getItem("token");if(!Qi){Z("Please login to place trades"),iA(!1),hA(null);return}const _o={accountId:n,symbol:a,type:D,volume:N,price:X,takeProfit:QA,stopLoss:dA,comment:T.trim()||null},Oo={ticket:ze.substring(0,8),symbol:a,type:D,volume:parseFloat(N),price:parseFloat(X),time:pe,stopLoss:dA?parseFloat(dA):null,takeProfit:QA?parseFloat(QA):null,swap:0,profit:0,profitCurrency:"USD",comment:T.trim()||"",id:ze,status:"OPEN",openAt:JA.toISOString()};if(c&&c(C=>[...C,Oo]),i){iA(!1),hA(null),A();const C={symbol:a,type:D,lotSize:N,entryPrice:X,stopLoss:dA,takeProfit:QA,comment:T.trim()||null};Promise.resolve(i(C)).then(()=>{console.log("✅ Trade executed successfully via parent handler"),f&&f()}).catch(F=>{console.error("❌ Trade execution failed:",F),c&&c(S=>S.filter(M=>M.id!==ze))})}else{iA(!1),hA(null),A();const C=B||Vg?.VITE_BASE_URL||"http://localhost:8000",F=d?.trades||"/api/trades";MA.post(`${C}${F}`,_o,{headers:{Authorization:`Bearer ${Qi}`,"Content-Type":"application/json"}}).then(S=>{if(S.data&&S.data.data){const M=S.data.data.trade;c&&c(x=>x.map(K=>K.id===ze?{...K,id:M.id,ticket:M.id.substring(0,8),time:pe,openAt:M.openAt}:K)),console.log("✅ Trade saved successfully:",M),window.notify&&window.notify(`Trade placed successfully: ${M.symbol} ${M.type}`,"success")}else{c&&c(x=>x.filter(K=>K.id!==ze));const M=S.data?.message||"Failed to place trade";window.notify&&window.notify(M,"error")}}).catch(S=>{console.error("Error placing trade:",S),c&&c(x=>x.filter(K=>K.id!==ze));let M="Failed to place trade";if(S.response){const x=S.response.status,K=S.response.data;x===400?M=K?.message||"Invalid trade data. Please check your inputs.":x===401?M="Authentication failed. Please login again.":x===404?M=K?.message||"Symbol not found. Please select a valid symbol.":x===500?M="Server error. Please try again later.":M=K?.message||`Error: ${x}`}else S.request&&(M="Network error. Please check your internet connection.");window.notify&&window.notify(M,"error")})}},UA=((parseFloat(m)||0)*1e5).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return s?h.jsxs("div",{className:`w-full flex flex-col pointer-events-auto z-30 h-full ${p?"bg-white border-r border-slate-300":"bg-[#12161d] border-r border-slate-700"}`,children:[h.jsxs("div",{className:`px-4 py-2.5 flex items-center justify-between border-b ${p?"border-slate-300 bg-white":"border-slate-700 bg-[#12161d]"}`,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:`text-sm font-semibold ${p?"text-slate-800":"text-white"}`,children:"Market Execution"}),h.jsx("button",{className:`p-0.5 transition-colors ${p?"text-slate-600 hover:text-slate-800":"text-white hover:text-white"}`,children:h.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),h.jsx("button",{onClick:A,className:`p-1 rounded transition-colors ${p?"text-slate-600 hover:text-slate-800 hover:bg-slate-100":"text-white hover:text-white hover:bg-[#12161d]"}`,children:h.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"overflow-y-auto p-4 space-y-4 flex-1",children:[aA&&h.jsx("div",{className:"p-2 rounded-lg bg-rose-500/10 border border-rose-500/50 text-rose-400 text-xs",children:aA}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-4",children:[h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Volume"}),h.jsxs("span",{className:`text-sm ${p?"text-slate-700":"text-white"}`,children:[UA," ",a]})]}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>Et(-.01),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,children:"−"}),h.jsx("input",{type:"number",value:m,onChange:W=>{w(W.target.value),Z("")},className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-white"}`,step:"0.01",min:"0.01",placeholder:"0.01"}),h.jsx("button",{type:"button",onClick:()=>Et(.01),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,children:"+"})]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Stop Loss"})}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>xt(-1e-4),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Decrease SL",children:"−"}),h.jsx("input",{type:"text",value:v,onChange:W=>{const D=W.target.value;(D===""||/^\d*\.?\d*$/.test(D))&&(y(D),Z(""))},onBlur:W=>{const D=parseFloat(W.target.value);!isNaN(D)&&D>0?y(D.toFixed(5)):W.target.value===""&&y("")},placeholder:"0.00000",className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`}),h.jsx("button",{type:"button",onClick:()=>xt(1e-4),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Increase SL",children:"+"})]})]}),h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsx("label",{className:`text-sm font-medium ${p?"text-slate-700":"text-white"}`,children:"Take Profit"})}),h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("button",{type:"button",onClick:()=>Te(-1e-4),className:`absolute left-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Decrease TP",children:"−"}),h.jsx("input",{type:"text",value:E,onChange:W=>{const D=W.target.value;(D===""||/^\d*\.?\d*$/.test(D))&&(U(D),Z(""))},onBlur:W=>{const D=parseFloat(W.target.value);!isNaN(D)&&D>0?U(D.toFixed(5)):W.target.value===""&&U("")},placeholder:"0.00000",className:`w-full px-10 py-2 rounded text-sm focus:outline-none focus:border-secondary text-center ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`}),h.jsx("button",{type:"button",onClick:()=>Te(1e-4),className:`absolute right-1 w-8 h-8 flex items-center justify-center rounded text-sm transition-colors z-10 ${p?"bg-slate-100 hover:bg-slate-400 text-slate-700":"bg-[#12161d] hover:bg-slate-600 text-white"}`,title:"Increase TP",children:"+"})]})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:`block text-sm font-medium mb-2 ${p?"text-slate-700":"text-white"}`,children:"Comment"}),h.jsx("textarea",{value:T,onChange:W=>k(W.target.value),placeholder:"Optional comment",rows:2,className:`w-full px-3 py-2 rounded text-sm focus:outline-none focus:border-secondary resize-none ${p?"bg-white border border-slate-400 text-slate-800":"bg-[#12161d] border border-slate-700 text-slate-100"}`})]}),h.jsxs("div",{className:`flex items-center justify-between py-2 border-t ${p?"border-slate-400":"border-slate-700"}`,children:[h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:p?"text-slate-700":"text-white",children:"Bid: "}),h.jsx("span",{className:`${SA} font-medium transition-colors duration-400`,children:LA>0?LA.toFixed(5):"---"})]}),h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:p?"text-slate-700":"text-white",children:"Ask: "}),h.jsx("span",{className:`${rA} font-medium transition-colors duration-400`,children:ge>0?ge.toFixed(5):"---"})]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[h.jsx("button",{onClick:()=>qt("SELL"),disabled:L,className:"px-4 py-3 bg-rose-600 hover:bg-rose-700 text-white font-semibold rounded text-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:L&&J==="SELL"?h.jsxs("span",{className:"flex items-center justify-center gap-2",children:[h.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Placing..."]}):"Sell by Market"}),h.jsx("button",{onClick:()=>qt("BUY"),disabled:L,className:"px-4 py-3 bg-sky-600 hover:bg-sky-700 text-white font-semibold rounded text-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:L&&J==="BUY"?h.jsxs("span",{className:"flex items-center justify-center gap-2",children:[h.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Placing..."]}):"Buy by Market"})]})]})]}):null};function zA(s){if(s==null)return null;if(typeof s=="number"){if(Number.isNaN(s)||!Number.isFinite(s))return null;let A;s>1e10?A=s/1e3:(s<1e9,A=s);const e=Math.floor(A);return e<946684800||e>4102444800?null:e}if(typeof s=="string"){const A=Date.parse(s);return Number.isNaN(A)?null:Math.floor(A/1e3)}if(typeof s=="object"&&"year"in s&&"month"in s&&"day"in s){const e=new Date(Date.UTC(s.year,s.month-1,s.day)).getTime();return Number.isNaN(e)?null:Math.floor(e/1e3)}return null}function Pg(s,A){if(!s||s.length<2)return[];const e=[],t=2;for(let r=1;r<s.length;r++){const i=s[r-1].time,n=s[r].time,o=n-i;o>A*t&&e.push({from:i,to:n,gapSeconds:o,gapHours:(o/3600).toFixed(1),fromDate:new Date(i*1e3).toISOString(),toDate:new Date(n*1e3).toISOString()})}return e}function Gg(s,A="America/New_York"){const e=new Date(s*1e3),t=new Date(e.toLocaleString("en-US",{timeZone:A})),r=t.getDay();return!(r===0||r===6||r===5&&t.getHours()>=17)}function dc(s){return Array.isArray(s)?s.map(A=>({...A,time:zA(A.time)})).filter(A=>A.time!=null):[]}function Rg(s){if(!s||s.length<2)return!0;for(let A=1;A<s.length;A++)if(s[A].time<=s[A-1].time)return!1;return!0}function Nt(s,A){return!Number.isFinite(s)||!Number.isFinite(A)||A<=0?s:Math.floor(s/A)*A}const ee="17:00-17:00",te="America/New_York",Oe="24x7",Ne="UTC",Bc={EURUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},GBPUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDCHF:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},AUDUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},USDCAD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},NZDUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURGBP:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},GBPJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},CADJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},EURJPY:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},XAUUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},XAGUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},OILUSD:{type:"forex",sessionTZ:te,session:ee,priceMode:"mid"},BTCUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},ETHUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},BNBUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},SOLUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},ADAUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},XRPUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},DOGEUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},DOTUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},MATICUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"},LINKUSDT:{type:"crypto",session:Oe,sessionTZ:Ne,priceMode:"last"}},gc={type:"forex",sessionTZ:te,session:ee,priceMode:"mid"};function Cs(s){return s&&Bc[s.toUpperCase()]||gc}function zg(s){return Cs(s).type==="forex"}function Wg(s){return Cs(s).type==="crypto"}function Xg(s){return Cs(s).session==="24x7"}function pc(s){if(!s||typeof s!="object")return!1;const{time:A,open:e,high:t,low:r,close:i,volume:n}=s;return!(zA(A)==null||typeof e!="number"||!Number.isFinite(e)||typeof t!="number"||!Number.isFinite(t)||typeof r!="number"||!Number.isFinite(r)||typeof i!="number"||!Number.isFinite(i)||n!=null&&(typeof n!="number"||n<0||!Number.isFinite(n))||t<e||t<i||t<r||r>e||r>i||r>t||e<=0||t<=0||r<=0||i<=0)}function wc(s){const A=n=>Math.round(n*1e5)/1e5;let e=A(s.open),t=A(s.high),r=A(s.low),i=A(s.close);return t=Math.max(t,e,i,r),r=Math.min(r,e,i,t),{...s,open:e,high:t,low:r,close:i,volume:s.volume!=null?Math.round(s.volume):s.volume}}function mc(s){if(!Array.isArray(s)||s.length===0)return[];const A=new Map;return s.forEach(e=>{const t=zA(e.time);if(t!=null)if(A.has(t)){const r=A.get(t);A.set(t,{...e,time:t,open:e.open,high:Math.max(r.high,e.high),low:Math.min(r.low,e.low),close:e.close,volume:(r.volume||0)+(e.volume||0)})}else A.set(t,{...e,time:t})}),Array.from(A.values())}function $g(s,A="percentile"){if(!Array.isArray(s)||s.length<3)return s;const e=s.map(n=>n.close).filter(n=>Number.isFinite(n));if(e.length<3)return s;const t=[...e].sort((n,o)=>n-o);let r,i;if(A==="percentile"){const n=Math.floor(t.length*.25),o=Math.floor(t.length*.75),a=t[n],l=t[o],c=l-a;r=a-1.5*c,i=l+1.5*c}else{const n=e.reduce((l,c)=>l+c,0)/e.length,o=e.reduce((l,c)=>l+Math.pow(c-n,2),0)/e.length,a=Math.sqrt(o);if(a===0)return s;r=n-3*a,i=n+3*a}return s.map((n,o)=>{const a=n.close;if(a<r||a>i){if(o===0)return n;const l=s[o-1].close;return{...n,open:l,high:Math.max(l,n.high),low:Math.min(l,n.low),close:l}}return n})}function Jg(s,A){if(!Array.isArray(s)||s.length===0)return s;const e=[],t=Math.max(A*10080,604800),r=1e4;for(let o=0;o<s.length;o++)if(e.push(s[o]),o<s.length-1){const a=s[o].time,l=s[o+1].time,c=l-a;if(c>t&&((c/3600).toFixed(1),(t/3600).toFixed(1)),c>A&&c<=t){const u=s[o];let f=a+A,g=0;for(f=Nt(f,A);f<l&&g<r;){const B=Nt(f,A);e.some(p=>p.time===B)||(e.push({time:B,open:u.close,high:u.close,low:u.close,close:u.close,volume:0}),g++),f+=A}if(f<l&&g>=r){const B=Nt(l-A,A);e.some(p=>p.time===B)||e.push({time:B,open:u.close,high:u.close,low:u.close,close:u.close,volume:0})}}}e.sort((o,a)=>o.time-a.time);const i=[],n=new Set;for(const o of e)n.has(o.time)||(n.add(o.time),i.push(o));return i}function Sr(s){if(!s||typeof s!="string")return 60;const A=s.toUpperCase();if(A==="MN")return 2592e3;let e=A.match(/^([MHDW])(\d+)$/);if(e){const t=e[1];return parseInt(e[2],10)*({M:60,H:3600,D:86400,W:604800}[t]||60)}if(e=s.match(/^(\d+)([mhdwy])$/i),e){const t=parseInt(e[1],10),r=e[2].toLowerCase();return t*({m:60,h:3600,d:86400,w:604800,y:31536e3}[r]||60)}return 60}function Cc(s,A,e){if(!Array.isArray(s)||s.length===0)return{candles:[],stats:{original:0,processed:0,duplicates:0,outliers:0,gaps:[]}};const t=Cs(A),r=Sr(e),o=dc(s).map(p=>({...p,time:Nt(p.time,r)})).filter(p=>pc(p)).map(p=>wc(p)),a=mc(o);a.sort((p,m)=>p.time-m.time);const l=a.filter((p,m)=>m===0?!0:p.time>a[m-1].time),c=l.length>10?$g(l,"percentile"):l,u=mc(c);u.sort((p,m)=>p.time-m.time);const f=Jg(u,r),g=[];for(let p=1;p<f.length;p++){const m=f[p].time-f[p-1].time;m>r*2&&g.push({from:f[p-1].time,to:f[p].time,gapSeconds:m,gapMinutes:Math.round(m/60),fromDate:new Date(f[p-1].time*1e3).toISOString(),toDate:new Date(f[p].time*1e3).toISOString()})}const B=c.filter((p,m)=>m===0?!1:p.close===c[m-1].close&&p.open===c[m-1].close).length,d={original:s.length,processed:f.length,duplicates:s.length-a.length,outliers:B,gaps:g,filledGaps:f.length-u.length,symbolConfig:t};return{candles:f,stats:d}}function vc(s,A,e="1m"){if(!s||!A||!pc(s))return null;const t=zA(s.time);if(t==null)return null;const r=Sr(e),i=Nt(t,r);return wc({...s,time:i})}var kn=function(s,A){return kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},kn(s,A)};function Le(s,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");kn(s,A);function e(){this.constructor=s}s.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var _n=function(){return _n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},_n.apply(this,arguments)};function oe(s,A,e,t){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function o(c){try{l(t.next(c))}catch(u){n(u)}}function a(c){try{l(t.throw(c))}catch(u){n(u)}}function l(c){c.done?i(c.value):r(c.value).then(o,a)}l((t=t.apply(s,[])).next())})}function se(s,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,r,i,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(l){return function(c){return a([l,c])}}function a(l){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,r=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){e.label=l[1];break}if(l[0]===6&&e.label<i[1]){e.label=i[1],i=l;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(l);break}i[2]&&e.ops.pop(),e.trys.pop();continue}l=A.call(s,e)}catch(c){l=[6,c],r=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Hr(s,A,e){if(arguments.length===2)for(var t=0,r=A.length,i;t<r;t++)(i||!(t in A))&&(i||(i=Array.prototype.slice.call(A,0,t)),i[t]=A[t]);return s.concat(i||A)}for(var Ze=(function(){function s(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return s.prototype.add=function(A,e,t,r){return new s(this.left+A,this.top+e,this.width+t,this.height+r)},s.fromClientRect=function(A,e){return new s(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},s.fromDOMRectList=function(A,e){var t=Array.from(e).find(function(r){return r.width!==0});return t?new s(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),Lr=function(s,A){return Ze.fromClientRect(s,A.getBoundingClientRect())},Zg=function(s){var A=s.body,e=s.documentElement;if(!A||!e)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),r=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Ze(0,0,t,r)},Ir=function(s){for(var A=[],e=0,t=s.length;e<t;){var r=s.charCodeAt(e++);if(r>=55296&&r<=56319&&e<t){var i=s.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},PA=function(){for(var s=[],A=0;A<arguments.length;A++)s[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var e=s.length;if(!e)return"";for(var t=[],r=-1,i="";++r<e;){var n=s[r];n<=65535?t.push(n):(n-=65536,t.push((n>>10)+55296,n%1024+56320)),(r+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yg=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tr=0;Tr<bc.length;Tr++)Yg[bc.charCodeAt(Tr)]=Tr;for(var Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mr=0;Mr<Qc.length;Mr++)vs[Qc.charCodeAt(Mr)]=Mr;for(var qg=function(s){var A=s.length*.75,e=s.length,t,r=0,i,n,o,a;s[s.length-1]==="="&&(A--,s[s.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)i=vs[s.charCodeAt(t)],n=vs[s.charCodeAt(t+1)],o=vs[s.charCodeAt(t+2)],a=vs[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},jg=function(s){for(var A=s.length,e=[],t=0;t<A;t+=2)e.push(s[t+1]<<8|s[t]);return e},Ap=function(s){for(var A=s.length,e=[],t=0;t<A;t+=4)e.push(s[t+3]<<24|s[t+2]<<16|s[t+1]<<8|s[t]);return e},bt=5,On=11,Nn=2,ep=On-bt,yc=65536>>bt,tp=1<<bt,Kn=tp-1,sp=1024>>bt,rp=yc+sp,ip=rp,np=32,op=ip+np,ap=65536>>On,lp=1<<ep,cp=lp-1,Fc=function(s,A,e){return s.slice?s.slice(A,e):new Uint16Array(Array.prototype.slice.call(s,A,e))},hp=function(s,A,e){return s.slice?s.slice(A,e):new Uint32Array(Array.prototype.slice.call(s,A,e))},up=function(s,A){var e=qg(s),t=Array.isArray(e)?Ap(e):new Uint32Array(e),r=Array.isArray(e)?jg(e):new Uint16Array(e),i=24,n=Fc(r,i/2,t[4]/2),o=t[5]===2?Fc(r,(i+t[4])/2):hp(t,Math.ceil((i+t[4])/4));return new fp(t[0],t[1],t[2],t[3],n,o)},fp=(function(){function s(A,e,t,r,i,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=i,this.data=n}return s.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>bt],e=(e<<Nn)+(A&Kn),this.data[e];if(A<=65535)return e=this.index[yc+(A-55296>>bt)],e=(e<<Nn)+(A&Kn),this.data[e];if(A<this.highStart)return e=op-ap+(A>>On),e=this.index[e],e+=A>>bt&cp,e=this.index[e],e=(e<<Nn)+(A&Kn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dp=typeof Uint8Array>"u"?[]:new Uint8Array(256),Dr=0;Dr<Uc.length;Dr++)dp[Uc.charCodeAt(Dr)]=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wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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YwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAc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UAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAM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FAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwAr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B4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB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KwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4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AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ec=50,gp=1,xc=2,Sc=3,pp=4,wp=5,Hc=7,Lc=8,Ic=9,st=10,Vn=11,Tc=12,Pn=13,mp=14,bs=15,Gn=16,kr=17,Qs=18,Cp=19,Mc=20,Rn=21,ys=22,zn=23,Kt=24,we=25,Fs=26,Us=27,Vt=28,vp=29,Qt=30,bp=31,_r=32,Or=33,Wn=34,Xn=35,$n=36,Es=37,Jn=38,Nr=39,Kr=40,Zn=41,Dc=42,Qp=43,yp=[9001,65288],kc="!",bA="×",Vr="÷",Yn=up(Bp),Ye=[Qt,$n],qn=[gp,xc,Sc,wp],_c=[st,Lc],Oc=[Us,Fs],Fp=qn.concat(_c),Nc=[Jn,Nr,Kr,Wn,Xn],Up=[bs,Pn],Ep=function(s,A){A===void 0&&(A="strict");var e=[],t=[],r=[];return s.forEach(function(i,n){var o=Yn.get(i);if(o>Ec?(r.push(!0),o-=Ec):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return t.push(n),e.push(Gn);if(o===pp||o===Vn){if(n===0)return t.push(n),e.push(Qt);var a=e[n-1];return Fp.indexOf(a)===-1?(t.push(t[n-1]),e.push(a)):(t.push(n),e.push(Qt))}if(t.push(n),o===bp)return e.push(A==="strict"?Rn:Es);if(o===Dc||o===vp)return e.push(Qt);if(o===Qp)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Es):e.push(Qt);e.push(o)}),[t,e,r]},jn=function(s,A,e,t){var r=t[e];if(Array.isArray(s)?s.indexOf(r)!==-1:s===r)for(var i=e;i<=t.length;){i++;var n=t[i];if(n===A)return!0;if(n!==st)break}if(r===st)for(var i=e;i>0;){i--;var o=t[i];if(Array.isArray(s)?s.indexOf(o)!==-1:s===o)for(var a=e;a<=t.length;){a++;var n=t[a];if(n===A)return!0;if(n!==st)break}if(o!==st)break}return!1},Kc=function(s,A){for(var e=s;e>=0;){var t=A[e];if(t===st)e--;else return t}return 0},xp=function(s,A,e,t,r){if(e[t]===0)return bA;var i=t-1;if(Array.isArray(r)&&r[i]===!0)return bA;var n=i-1,o=i+1,a=A[i],l=n>=0?A[n]:0,c=A[o];if(a===xc&&c===Sc)return bA;if(qn.indexOf(a)!==-1)return kc;if(qn.indexOf(c)!==-1||_c.indexOf(c)!==-1)return bA;if(Kc(i,A)===Lc)return Vr;if(Yn.get(s[i])===Vn||(a===_r||a===Or)&&Yn.get(s[o])===Vn||a===Hc||c===Hc||a===Ic||[st,Pn,bs].indexOf(a)===-1&&c===Ic||[kr,Qs,Cp,Kt,Vt].indexOf(c)!==-1||Kc(i,A)===ys||jn(zn,ys,i,A)||jn([kr,Qs],Rn,i,A)||jn(Tc,Tc,i,A))return bA;if(a===st)return Vr;if(a===zn||c===zn)return bA;if(c===Gn||a===Gn)return Vr;if([Pn,bs,Rn].indexOf(c)!==-1||a===mp||l===$n&&Up.indexOf(a)!==-1||a===Vt&&c===$n||c===Mc||Ye.indexOf(c)!==-1&&a===we||Ye.indexOf(a)!==-1&&c===we||a===Us&&[Es,_r,Or].indexOf(c)!==-1||[Es,_r,Or].indexOf(a)!==-1&&c===Fs||Ye.indexOf(a)!==-1&&Oc.indexOf(c)!==-1||Oc.indexOf(a)!==-1&&Ye.indexOf(c)!==-1||[Us,Fs].indexOf(a)!==-1&&(c===we||[ys,bs].indexOf(c)!==-1&&A[o+1]===we)||[ys,bs].indexOf(a)!==-1&&c===we||a===we&&[we,Vt,Kt].indexOf(c)!==-1)return bA;if([we,Vt,Kt,kr,Qs].indexOf(c)!==-1)for(var u=i;u>=0;){var f=A[u];if(f===we)return bA;if([Vt,Kt].indexOf(f)!==-1)u--;else break}if([Us,Fs].indexOf(c)!==-1)for(var u=[kr,Qs].indexOf(a)!==-1?n:i;u>=0;){var f=A[u];if(f===we)return bA;if([Vt,Kt].indexOf(f)!==-1)u--;else break}if(Jn===a&&[Jn,Nr,Wn,Xn].indexOf(c)!==-1||[Nr,Wn].indexOf(a)!==-1&&[Nr,Kr].indexOf(c)!==-1||[Kr,Xn].indexOf(a)!==-1&&c===Kr||Nc.indexOf(a)!==-1&&[Mc,Fs].indexOf(c)!==-1||Nc.indexOf(c)!==-1&&a===Us||Ye.indexOf(a)!==-1&&Ye.indexOf(c)!==-1||a===Kt&&Ye.indexOf(c)!==-1||Ye.concat(we).indexOf(a)!==-1&&c===ys&&yp.indexOf(s[o])===-1||Ye.concat(we).indexOf(c)!==-1&&a===Qs)return bA;if(a===Zn&&c===Zn){for(var g=e[i],B=1;g>0&&(g--,A[g]===Zn);)B++;if(B%2!==0)return bA}return a===_r&&c===Or?bA:Vr},Sp=function(s,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=Ep(s,A.lineBreak),t=e[0],r=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(r=r.map(function(o){return[we,Qt,Dc].indexOf(o)!==-1?Es:o}));var n=A.wordBreak==="keep-all"?i.map(function(o,a){return o&&s[a]>=19968&&s[a]<=40959}):void 0;return[t,r,n]},Hp=(function(){function s(A,e,t,r){this.codePoints=A,this.required=e===kc,this.start=t,this.end=r}return s.prototype.slice=function(){return PA.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),Lp=function(s,A){var e=Ir(s),t=Sp(e,A),r=t[0],i=t[1],n=t[2],o=e.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=bA;l<o&&(c=xp(e,i,r,++l,n))===bA;);if(c!==bA||l===o){var u=new Hp(e,c,a,l);return a=l,{value:u,done:!1}}return{done:!0,value:null}}}},Ip=1,Tp=2,xs=4,Vc=8,Pr=10,Pc=47,Ss=92,Mp=9,Dp=32,Gr=34,Hs=61,kp=35,_p=36,Op=37,Rr=39,zr=40,Ls=41,Np=95,fe=45,Kp=33,Vp=60,Pp=62,Gp=64,Rp=91,zp=93,Wp=61,Xp=123,Wr=63,$p=125,Gc=124,Jp=126,Zp=128,Rc=65533,Ao=42,yt=43,Yp=44,qp=58,jp=59,Is=46,Aw=0,ew=8,tw=11,sw=14,rw=31,iw=127,Ke=-1,zc=48,Wc=97,Xc=101,nw=102,ow=117,aw=122,$c=65,Jc=69,Zc=70,lw=85,cw=90,re=function(s){return s>=zc&&s<=57},hw=function(s){return s>=55296&&s<=57343},Pt=function(s){return re(s)||s>=$c&&s<=Zc||s>=Wc&&s<=nw},uw=function(s){return s>=Wc&&s<=aw},fw=function(s){return s>=$c&&s<=cw},dw=function(s){return uw(s)||fw(s)},Bw=function(s){return s>=Zp},Xr=function(s){return s===Pr||s===Mp||s===Dp},$r=function(s){return dw(s)||Bw(s)||s===Np},Yc=function(s){return $r(s)||re(s)||s===fe},gw=function(s){return s>=Aw&&s<=ew||s===tw||s>=sw&&s<=rw||s===iw},rt=function(s,A){return s!==Ss?!1:A!==Pr},Jr=function(s,A,e){return s===fe?$r(A)||rt(A,e):$r(s)?!0:!!(s===Ss&&rt(s,A))},eo=function(s,A,e){return s===yt||s===fe?re(A)?!0:A===Is&&re(e):re(s===Is?A:s)},pw=function(s){var A=0,e=1;(s[A]===yt||s[A]===fe)&&(s[A]===fe&&(e=-1),A++);for(var t=[];re(s[A]);)t.push(s[A++]);var r=t.length?parseInt(PA.apply(void 0,t),10):0;s[A]===Is&&A++;for(var i=[];re(s[A]);)i.push(s[A++]);var n=i.length,o=n?parseInt(PA.apply(void 0,i),10):0;(s[A]===Jc||s[A]===Xc)&&A++;var a=1;(s[A]===yt||s[A]===fe)&&(s[A]===fe&&(a=-1),A++);for(var l=[];re(s[A]);)l.push(s[A++]);var c=l.length?parseInt(PA.apply(void 0,l),10):0;return e*(r+o*Math.pow(10,-n))*Math.pow(10,a*c)},ww={type:2},mw={type:3},Cw={type:4},vw={type:13},bw={type:8},Qw={type:21},yw={type:9},Fw={type:10},Uw={type:11},Ew={type:12},xw={type:14},Zr={type:23},Sw={type:1},Hw={type:25},Lw={type:24},Iw={type:26},Tw={type:27},Mw={type:28},Dw={type:29},kw={type:31},to={type:32},qc=(function(){function s(){this._value=[]}return s.prototype.write=function(A){this._value=this._value.concat(Ir(A))},s.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==to;)A.push(e),e=this.consumeToken();return A},s.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Gr:return this.consumeStringToken(Gr);case kp:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Yc(e)||rt(t,r)){var i=Jr(e,t,r)?Tp:Ip,n=this.consumeName();return{type:5,value:n,flags:i}}break;case _p:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),vw;break;case Rr:return this.consumeStringToken(Rr);case zr:return ww;case Ls:return mw;case Ao:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),xw;break;case yt:if(eo(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yp:return Cw;case fe:var o=A,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(eo(o,a,l))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Jr(o,a,l))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===fe&&l===Pp)return this.consumeCodePoint(),this.consumeCodePoint(),Lw;break;case Is:if(eo(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Pc:if(this.peekCodePoint(0)===Ao)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===Ao&&(c=this.consumeCodePoint(),c===Pc))return this.consumeToken();if(c===Ke)return this.consumeToken()}break;case qp:return Iw;case jp:return Tw;case Vp:if(this.peekCodePoint(0)===Kp&&this.peekCodePoint(1)===fe&&this.peekCodePoint(2)===fe)return this.consumeCodePoint(),this.consumeCodePoint(),Hw;break;case Gp:var u=this.peekCodePoint(0),f=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Jr(u,f,g)){var n=this.consumeName();return{type:7,value:n}}break;case Rp:return Mw;case Ss:if(rt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case zp:return Dw;case Wp:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),bw;break;case Xp:return Uw;case $p:return Ew;case ow:case lw:var B=this.peekCodePoint(0),d=this.peekCodePoint(1);return B===yt&&(Pt(d)||d===Wr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Gc:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),yw;if(this.peekCodePoint(0)===Gc)return this.consumeCodePoint(),Qw;break;case Jp:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),Fw;break;case Ke:return to}return Xr(A)?(this.consumeWhiteSpace(),kw):re(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):$r(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:PA(A)}},s.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},s.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},s.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},s.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();Pt(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===Wr&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(PA.apply(void 0,A.map(function(a){return a===Wr?zc:a})),16),i=parseInt(PA.apply(void 0,A.map(function(a){return a===Wr?Zc:a})),16);return{type:30,start:r,end:i}}var n=parseInt(PA.apply(void 0,A),16);if(this.peekCodePoint(0)===fe&&Pt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];Pt(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(PA.apply(void 0,o),16);return{type:30,start:n,end:i}}else return{type:30,start:n,end:n}},s.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===zr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===zr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},s.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Rr||e===Gr){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===Ls)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Zr)}for(;;){var r=this.consumeCodePoint();if(r===Ke||r===Ls)return{type:22,value:PA.apply(void 0,A)};if(Xr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===Ls?(this.consumeCodePoint(),{type:22,value:PA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Zr);if(r===Gr||r===Rr||r===zr||gw(r))return this.consumeBadUrlRemnants(),Zr;if(r===Ss)if(rt(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Zr;else A.push(r)}},s.prototype.consumeWhiteSpace=function(){for(;Xr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ls||A===Ke)return;rt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var r=Math.min(e,A);t+=PA.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},s.prototype.consumeStringToken=function(A){var e="",t=0;do{var r=this._value[t];if(r===Ke||r===void 0||r===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(r===Pr)return this._value.splice(0,t),Sw;if(r===Ss){var i=this._value[t+1];i!==Ke&&i!==void 0&&(i===Pr?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rt(r,i)&&(e+=this.consumeStringSlice(t),e+=PA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},s.prototype.consumeNumber=function(){var A=[],e=xs,t=this.peekCodePoint(0);for((t===yt||t===fe)&&A.push(this.consumeCodePoint());re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===Is&&re(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Vc;re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((t===Jc||t===Xc)&&((r===yt||r===fe)&&re(i)||re(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Vc;re(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[pw(A),e]},s.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Jr(r,i,n)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return r===Op?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},s.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Pt(A)){for(var e=PA(A);Pt(this.peekCodePoint(0))&&e.length<6;)e+=PA(this.consumeCodePoint());Xr(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return t===0||hw(t)||t>1114111?Rc:t}return A===Ke?Rc:A},s.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Yc(e))A+=PA(e);else if(rt(e,this.peekCodePoint(0)))A+=PA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},s})(),jc=(function(){function s(A){this._tokens=A}return s.create=function(A){var e=new qc;return e.write(A),new s(e.read())},s.parseValue=function(A){return s.create(A).parseComponentValue()},s.parseValues=function(A){return s.create(A).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},s.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},s.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Ow(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},s.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?to:A},s.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},s})(),Ts=function(s){return s.type===15},Gt=function(s){return s.type===17},HA=function(s){return s.type===20},_w=function(s){return s.type===0},so=function(s,A){return HA(s)&&s.value===A},Ah=function(s){return s.type!==31},Rt=function(s){return s.type!==31&&s.type!==4},Ve=function(s){var A=[],e=[];return s.forEach(function(t){if(t.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}t.type!==31&&e.push(t)}),e.length&&A.push(e),A},Ow=function(s,A){return A===11&&s.type===12||A===28&&s.type===29?!0:A===2&&s.type===3},it=function(s){return s.type===17||s.type===15},WA=function(s){return s.type===16||it(s)},eh=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},YA={type:17,number:0,flags:xs},ro={type:16,number:50,flags:xs},nt={type:16,number:100,flags:xs},Ms=function(s,A,e){var t=s[0],r=s[1];return[IA(t,A),IA(typeof r<"u"?r:t,e)]},IA=function(s,A){if(s.type===16)return s.number/100*A;if(Ts(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},th="deg",sh="grad",rh="rad",ih="turn",Yr={name:"angle",parse:function(s,A){if(A.type===15)switch(A.unit){case th:return Math.PI*A.number/180;case sh:return Math.PI/200*A.number;case rh:return A.number;case ih:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},nh=function(s){return s.type===15&&(s.unit===th||s.unit===sh||s.unit===rh||s.unit===ih)},oh=function(s){var A=s.filter(HA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[YA,YA];case"to top":case"bottom":return be(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[YA,nt];case"to right":case"left":return be(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[nt,nt];case"to bottom":case"top":return be(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[nt,YA];case"to left":case"right":return be(270)}return 0},be=function(s){return Math.PI*s/180},ot={name:"color",parse:function(s,A){if(A.type===18){var e=Nw[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(s,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3);return lt(parseInt(t+t,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3),n=A.value.substring(3,4);return lt(parseInt(t+t,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(n+n,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6);return lt(parseInt(t,16),parseInt(r,16),parseInt(i,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6),n=A.value.substring(6,8);return lt(parseInt(t,16),parseInt(r,16),parseInt(i,16),parseInt(n,16)/255)}}if(A.type===20){var o=qe[A.value.toUpperCase()];if(typeof o<"u")return o}return qe.TRANSPARENT}},at=function(s){return(255&s)===0},$A=function(s){var A=255&s,e=255&s>>8,t=255&s>>16,r=255&s>>24;return A<255?"rgba("+r+","+t+","+e+","+A/255+")":"rgb("+r+","+t+","+e+")"},lt=function(s,A,e,t){return(s<<24|A<<16|e<<8|Math.round(t*255)<<0)>>>0},ah=function(s,A){if(s.type===17)return s.number;if(s.type===16){var e=A===3?1:255;return A===3?s.number/100*e:Math.round(s.number/100*e)}return 0},lh=function(s,A){var e=A.filter(Rt);if(e.length===3){var t=e.map(ah),r=t[0],i=t[1],n=t[2];return lt(r,i,n,1)}if(e.length===4){var o=e.map(ah),r=o[0],i=o[1],n=o[2],a=o[3];return lt(r,i,n,a)}return 0};function io(s,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-s)*e*6+s:e<1/2?A:e<2/3?(A-s)*6*(2/3-e)+s:s}var ch=function(s,A){var e=A.filter(Rt),t=e[0],r=e[1],i=e[2],n=e[3],o=(t.type===17?be(t.number):Yr.parse(s,t))/(Math.PI*2),a=WA(r)?r.number/100:0,l=WA(i)?i.number/100:0,c=typeof n<"u"&&WA(n)?IA(n,1):1;if(a===0)return lt(l*255,l*255,l*255,1);var u=l<=.5?l*(a+1):l+a-l*a,f=l*2-u,g=io(f,u,o+1/3),B=io(f,u,o),d=io(f,u,o-1/3);return lt(g*255,B*255,d*255,c)},Nw={hsl:ch,hsla:ch,rgb:lh,rgba:lh},Ds=function(s,A){return ot.parse(s,jc.create(A).parseComponentValue())},qe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Kw={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,A){return A.map(function(e){if(HA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vw={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qr=function(s,A){var e=ot.parse(s,A[0]),t=A[1];return t&&WA(t)?{color:e,stop:t}:{color:e,stop:null}},hh=function(s,A){var e=s[0],t=s[s.length-1];e.stop===null&&(e.stop=YA),t.stop===null&&(t.stop=nt);for(var r=[],i=0,n=0;n<s.length;n++){var o=s[n].stop;if(o!==null){var a=IA(o,A);a>i?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,n=0;n<r.length;n++){var c=r[n];if(c===null)l===null&&(l=n);else if(l!==null){for(var u=n-l,f=r[l-1],g=(c-f)/(u+1),B=1;B<=u;B++)r[l+B-1]=g*B;l=null}}return s.map(function(d,p){var m=d.color;return{color:m,stop:Math.max(Math.min(1,r[p]/A),0)}})},Pw=function(s,A,e){var t=A/2,r=e/2,i=IA(s[0],A)-t,n=r-IA(s[1],e);return(Math.atan2(n,i)+Math.PI*2)%(Math.PI*2)},Gw=function(s,A,e){var t=typeof s=="number"?s:Pw(s,A,e),r=Math.abs(A*Math.sin(t))+Math.abs(e*Math.cos(t)),i=A/2,n=e/2,o=r/2,a=Math.sin(t-Math.PI/2)*o,l=Math.cos(t-Math.PI/2)*o;return[r,i-l,i+l,n-a,n+a]},Ie=function(s,A){return Math.sqrt(s*s+A*A)},uh=function(s,A,e,t,r){var i=[[0,0],[0,A],[s,0],[s,A]];return i.reduce(function(n,o){var a=o[0],l=o[1],c=Ie(e-a,t-l);return(r?c<n.optimumDistance:c>n.optimumDistance)?{optimumCorner:o,optimumDistance:c}:n},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Rw=function(s,A,e,t,r){var i=0,n=0;switch(s.size){case 0:s.shape===0?i=n=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-r)):s.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-t)),n=Math.min(Math.abs(e),Math.abs(e-r)));break;case 2:if(s.shape===0)i=n=Math.min(Ie(A,e),Ie(A,e-r),Ie(A-t,e),Ie(A-t,e-r));else if(s.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-r))/Math.min(Math.abs(A),Math.abs(A-t)),a=uh(t,r,A,e,!0),l=a[0],c=a[1];i=Ie(l-A,(c-e)/o),n=o*i}break;case 1:s.shape===0?i=n=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-r)):s.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-t)),n=Math.max(Math.abs(e),Math.abs(e-r)));break;case 3:if(s.shape===0)i=n=Math.max(Ie(A,e),Ie(A,e-r),Ie(A-t,e),Ie(A-t,e-r));else if(s.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-t)),u=uh(t,r,A,e,!1),l=u[0],c=u[1];i=Ie(l-A,(c-e)/o),n=o*i}break}return Array.isArray(s.size)&&(i=IA(s.size[0],t),n=s.size.length===2?IA(s.size[1],r):i),[i,n]},zw=function(s,A){var e=be(180),t=[];return Ve(A).forEach(function(r,i){if(i===0){var n=r[0];if(n.type===20&&n.value==="to"){e=oh(r);return}else if(nh(n)){e=Yr.parse(s,n);return}}var o=qr(s,r);t.push(o)}),{angle:e,stops:t,type:1}},jr=function(s,A){var e=be(180),t=[];return Ve(A).forEach(function(r,i){if(i===0){var n=r[0];if(n.type===20&&["top","left","right","bottom"].indexOf(n.value)!==-1){e=oh(r);return}else if(nh(n)){e=(Yr.parse(s,n)+be(270))%be(360);return}}var o=qr(s,r);t.push(o)}),{angle:e,stops:t,type:1}},Ww=function(s,A){var e=be(180),t=[],r=1,i=0,n=3,o=[];return Ve(A).forEach(function(a,l){var c=a[0];if(l===0){if(HA(c)&&c.value==="linear"){r=1;return}else if(HA(c)&&c.value==="radial"){r=2;return}}if(c.type===18){if(c.name==="from"){var u=ot.parse(s,c.values[0]);t.push({stop:YA,color:u})}else if(c.name==="to"){var u=ot.parse(s,c.values[0]);t.push({stop:nt,color:u})}else if(c.name==="color-stop"){var f=c.values.filter(Rt);if(f.length===2){var u=ot.parse(s,f[1]),g=f[0];Gt(g)&&t.push({stop:{type:16,number:g.number*100,flags:g.flags},color:u})}}}}),r===1?{angle:(e+be(180))%be(360),stops:t,type:r}:{size:n,shape:i,stops:t,position:o,type:r}},fh="closest-side",dh="farthest-side",Bh="closest-corner",gh="farthest-corner",ph="circle",wh="ellipse",mh="cover",Ch="contain",Xw=function(s,A){var e=0,t=3,r=[],i=[];return Ve(A).forEach(function(n,o){var a=!0;if(o===0){var l=!1;a=n.reduce(function(u,f){if(l)if(HA(f))switch(f.value){case"center":return i.push(ro),u;case"top":case"left":return i.push(YA),u;case"right":case"bottom":return i.push(nt),u}else(WA(f)||it(f))&&i.push(f);else if(HA(f))switch(f.value){case ph:return e=0,!1;case wh:return e=1,!1;case"at":return l=!0,!1;case fh:return t=0,!1;case mh:case dh:return t=1,!1;case Ch:case Bh:return t=2,!1;case gh:return t=3,!1}else if(it(f)||WA(f))return Array.isArray(t)||(t=[]),t.push(f),!1;return u},a)}if(a){var c=qr(s,n);r.push(c)}}),{size:t,shape:e,stops:r,position:i,type:2}},Ai=function(s,A){var e=0,t=3,r=[],i=[];return Ve(A).forEach(function(n,o){var a=!0;if(o===0?a=n.reduce(function(c,u){if(HA(u))switch(u.value){case"center":return i.push(ro),!1;case"top":case"left":return i.push(YA),!1;case"right":case"bottom":return i.push(nt),!1}else if(WA(u)||it(u))return i.push(u),!1;return c},a):o===1&&(a=n.reduce(function(c,u){if(HA(u))switch(u.value){case ph:return e=0,!1;case wh:return e=1,!1;case Ch:case fh:return t=0,!1;case dh:return t=1,!1;case Bh:return t=2,!1;case mh:case gh:return t=3,!1}else if(it(u)||WA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return c},a)),a){var l=qr(s,n);r.push(l)}}),{size:t,shape:e,stops:r,position:i,type:2}},$w=function(s){return s.type===1},Jw=function(s){return s.type===2},no={name:"image",parse:function(s,A){if(A.type===22){var e={url:A.value,type:0};return s.cache.addImage(A.value),e}if(A.type===18){var t=vh[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(s,A.values)}throw new Error("Unsupported image type "+A.type)}};function Zw(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!vh[s.name])}var vh={"linear-gradient":zw,"-moz-linear-gradient":jr,"-ms-linear-gradient":jr,"-o-linear-gradient":jr,"-webkit-linear-gradient":jr,"radial-gradient":Xw,"-moz-radial-gradient":Ai,"-ms-radial-gradient":Ai,"-o-radial-gradient":Ai,"-webkit-radial-gradient":Ai,"-webkit-gradient":Ww},Yw={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(t){return Rt(t)&&Zw(t)}).map(function(t){return no.parse(s,t)})}},qw={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,A){return A.map(function(e){if(HA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},jw={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(WA)}).map(eh)}},A1={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(HA).map(function(t){return t.value}).join(" ")}).map(e1)}},e1=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},zt;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(zt||(zt={}));var t1={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,A){return Ve(A).map(function(e){return e.filter(s1)})}},s1=function(s){return HA(s)||WA(s)},ei=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},r1=ei("top"),i1=ei("right"),n1=ei("bottom"),o1=ei("left"),ti=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return eh(e.filter(WA))}}},a1=ti("top-left"),l1=ti("top-right"),c1=ti("bottom-right"),h1=ti("bottom-left"),si=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u1=si("top"),f1=si("right"),d1=si("bottom"),B1=si("left"),ri=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Ts(e)?e.number:0}}},g1=ri("top"),p1=ri("right"),w1=ri("bottom"),m1=ri("left"),C1={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},v1={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,A){return A==="rtl"?1:0}},b1={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).reduce(function(e,t){return e|Q1(t.value)},0)}},Q1=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},y1={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},F1={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ii;(function(s){s.NORMAL="normal",s.STRICT="strict"})(ii||(ii={}));var U1={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){return A==="strict"?ii.STRICT:ii.NORMAL}},E1={name:"line-height",initialValue:"normal",prefix:!1,type:4},bh=function(s,A){return HA(s)&&s.value==="normal"?1.2*A:s.type===17?A*s.number:WA(s)?IA(s,A):A},x1={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,A){return A.type===20&&A.value==="none"?null:no.parse(s,A)}},S1={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,A){return A==="inside"?0:1}},oo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ni=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},H1=ni("top"),L1=ni("right"),I1=ni("bottom"),T1=ni("left"),M1={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},D1={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){return A==="break-word"?"break-word":"normal"}},oi=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},k1=oi("top"),_1=oi("right"),O1=oi("bottom"),N1=oi("left"),K1={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},V1={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},P1={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.length===1&&so(A[0],"none")?[]:Ve(A).map(function(e){for(var t={color:qe.TRANSPARENT,offsetX:YA,offsetY:YA,blur:YA},r=0,i=0;i<e.length;i++){var n=e[i];it(n)?(r===0?t.offsetX=n:r===1?t.offsetY=n:t.blur=n,r++):t.color=ot.parse(s,n)}return t})}},G1={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},R1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=X1[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},z1=function(s){var A=s.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},W1=function(s){var A=s.filter(function(a){return a.type===17}).map(function(a){return a.number}),e=A[0],t=A[1];A[2],A[3];var r=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var n=A[12],o=A[13];return A[14],A[15],A.length===16?[e,t,r,i,n,o]:null},X1={matrix:z1,matrix3d:W1},Qh={type:16,number:50,flags:xs},$1=[Qh,Qh],J1={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,A){var e=A.filter(WA);return e.length!==2?$1:[e[0],e[1]]}},Z1={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ks;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(ks||(ks={}));for(var Y1={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){switch(A){case"break-all":return ks.BREAK_ALL;case"keep-all":return ks.KEEP_ALL;default:return ks.NORMAL}}},q1={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,A){if(A.type===20)return{auto:!0,order:0};if(Gt(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},yh={name:"time",parse:function(s,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},j1={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,A){return Gt(A)?A.number:1}},Am={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},em={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,A){return A.filter(HA).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},tm={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,A){var e=[],t=[];return A.forEach(function(r){switch(r.type){case 20:case 0:e.push(r.value);break;case 17:e.push(r.number.toString());break;case 4:t.push(e.join(" ")),e.length=0;break}}),e.length&&t.push(e.join(" ")),t.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},sm={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},rm={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,A){return Gt(A)?A.number:HA(A)&&A.value==="bold"?700:400}},im={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.filter(HA).map(function(e){return e.value})}},nm={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},XA=function(s,A){return(s&A)!==0},om={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},am={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var t=[],r=A.filter(Ah),i=0;i<r.length;i++){var n=r[i],o=r[i+1];if(n.type===20){var a=o&&Gt(o)?o.number:1;t.push({counter:n.value,increment:a})}}return t}},lm={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return[];for(var e=[],t=A.filter(Ah),r=0;r<t.length;r++){var i=t[r],n=t[r+1];if(HA(i)&&i.value!=="none"){var o=n&&Gt(n)?n.number:0;e.push({counter:i.value,reset:o})}}return e}},cm={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,A){return A.filter(Ts).map(function(e){return yh.parse(s,e)})}},hm={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var t=[],r=A.filter(_w);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var n=r[i].value,o=r[i+1].value;t.push({open:n,close:o})}return t}},Fh=function(s,A,e){if(!s)return"";var t=s[Math.min(A,s.length-1)];return t?e?t.open:t.close:""},um={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,A){return A.length===1&&so(A[0],"none")?[]:Ve(A).map(function(e){for(var t={color:255,offsetX:YA,offsetY:YA,blur:YA,spread:YA,inset:!1},r=0,i=0;i<e.length;i++){var n=e[i];so(n,"inset")?t.inset=!0:it(n)?(r===0?t.offsetX=n:r===1?t.offsetY=n:r===2?t.blur=n:t.spread=n,r++):t.color=ot.parse(s,n)}return t})}},fm={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,A){var e=[0,1,2],t=[];return A.filter(HA).forEach(function(r){switch(r.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),e.forEach(function(r){t.indexOf(r)===-1&&t.push(r)}),t}},dm={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Bm={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,A){return Ts(A)?A.number:0}},gm=(function(){function s(A,e){var t,r;this.animationDuration=R(A,cm,e.animationDuration),this.backgroundClip=R(A,Kw,e.backgroundClip),this.backgroundColor=R(A,Vw,e.backgroundColor),this.backgroundImage=R(A,Yw,e.backgroundImage),this.backgroundOrigin=R(A,qw,e.backgroundOrigin),this.backgroundPosition=R(A,jw,e.backgroundPosition),this.backgroundRepeat=R(A,A1,e.backgroundRepeat),this.backgroundSize=R(A,t1,e.backgroundSize),this.borderTopColor=R(A,r1,e.borderTopColor),this.borderRightColor=R(A,i1,e.borderRightColor),this.borderBottomColor=R(A,n1,e.borderBottomColor),this.borderLeftColor=R(A,o1,e.borderLeftColor),this.borderTopLeftRadius=R(A,a1,e.borderTopLeftRadius),this.borderTopRightRadius=R(A,l1,e.borderTopRightRadius),this.borderBottomRightRadius=R(A,c1,e.borderBottomRightRadius),this.borderBottomLeftRadius=R(A,h1,e.borderBottomLeftRadius),this.borderTopStyle=R(A,u1,e.borderTopStyle),this.borderRightStyle=R(A,f1,e.borderRightStyle),this.borderBottomStyle=R(A,d1,e.borderBottomStyle),this.borderLeftStyle=R(A,B1,e.borderLeftStyle),this.borderTopWidth=R(A,g1,e.borderTopWidth),this.borderRightWidth=R(A,p1,e.borderRightWidth),this.borderBottomWidth=R(A,w1,e.borderBottomWidth),this.borderLeftWidth=R(A,m1,e.borderLeftWidth),this.boxShadow=R(A,um,e.boxShadow),this.color=R(A,C1,e.color),this.direction=R(A,v1,e.direction),this.display=R(A,b1,e.display),this.float=R(A,y1,e.cssFloat),this.fontFamily=R(A,tm,e.fontFamily),this.fontSize=R(A,sm,e.fontSize),this.fontStyle=R(A,nm,e.fontStyle),this.fontVariant=R(A,im,e.fontVariant),this.fontWeight=R(A,rm,e.fontWeight),this.letterSpacing=R(A,F1,e.letterSpacing),this.lineBreak=R(A,U1,e.lineBreak),this.lineHeight=R(A,E1,e.lineHeight),this.listStyleImage=R(A,x1,e.listStyleImage),this.listStylePosition=R(A,S1,e.listStylePosition),this.listStyleType=R(A,oo,e.listStyleType),this.marginTop=R(A,H1,e.marginTop),this.marginRight=R(A,L1,e.marginRight),this.marginBottom=R(A,I1,e.marginBottom),this.marginLeft=R(A,T1,e.marginLeft),this.opacity=R(A,j1,e.opacity);var i=R(A,M1,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=R(A,D1,e.overflowWrap),this.paddingTop=R(A,k1,e.paddingTop),this.paddingRight=R(A,_1,e.paddingRight),this.paddingBottom=R(A,O1,e.paddingBottom),this.paddingLeft=R(A,N1,e.paddingLeft),this.paintOrder=R(A,fm,e.paintOrder),this.position=R(A,V1,e.position),this.textAlign=R(A,K1,e.textAlign),this.textDecorationColor=R(A,Am,(t=e.textDecorationColor)!==null&&t!==void 0?t:e.color),this.textDecorationLine=R(A,em,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=R(A,P1,e.textShadow),this.textTransform=R(A,G1,e.textTransform),this.transform=R(A,R1,e.transform),this.transformOrigin=R(A,J1,e.transformOrigin),this.visibility=R(A,Z1,e.visibility),this.webkitTextStrokeColor=R(A,dm,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=R(A,Bm,e.webkitTextStrokeWidth),this.wordBreak=R(A,Y1,e.wordBreak),this.zIndex=R(A,q1,e.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return at(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return XA(this.display,4)||XA(this.display,33554432)||XA(this.display,268435456)||XA(this.display,536870912)||XA(this.display,67108864)||XA(this.display,134217728)},s})(),pm=(function(){function s(A,e){this.content=R(A,om,e.content),this.quotes=R(A,hm,e.quotes)}return s})(),Uh=(function(){function s(A,e){this.counterIncrement=R(A,am,e.counterIncrement),this.counterReset=R(A,lm,e.counterReset)}return s})(),R=function(s,A,e){var t=new qc,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;t.write(r);var i=new jc(t.read());switch(A.type){case 2:var n=i.parseComponentValue();return A.parse(s,HA(n)?n.value:A.initialValue);case 0:return A.parse(s,i.parseComponentValue());case 1:return A.parse(s,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return Yr.parse(s,i.parseComponentValue());case"color":return ot.parse(s,i.parseComponentValue());case"image":return no.parse(s,i.parseComponentValue());case"length":var o=i.parseComponentValue();return it(o)?o:YA;case"length-percentage":var a=i.parseComponentValue();return WA(a)?a:YA;case"time":return yh.parse(s,i.parseComponentValue())}break}},wm="data-html2canvas-debug",mm=function(s){var A=s.getAttribute(wm);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ao=function(s,A){var e=mm(s);return e===1||A===e},Pe=(function(){function s(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ao(e,3))debugger;this.styles=new gm(A,window.getComputedStyle(e,null)),Qo(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Lr(this.context,e),ao(e,4)&&(this.flags|=16)}return s})(),Cm="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BO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gACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZ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AAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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:new Uint8Array(256),ai=0;ai<Eh.length;ai++)_s[Eh.charCodeAt(ai)]=ai;for(var vm=function(s){var A=s.length*.75,e=s.length,t,r=0,i,n,o,a;s[s.length-1]==="="&&(A--,s[s.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)i=_s[s.charCodeAt(t)],n=_s[s.charCodeAt(t+1)],o=_s[s.charCodeAt(t+2)],a=_s[s.charCodeAt(t+3)],c[r++]=i<<2|n>>4,c[r++]=(n&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},bm=function(s){for(var A=s.length,e=[],t=0;t<A;t+=2)e.push(s[t+1]<<8|s[t]);return e},Qm=function(s){for(var A=s.length,e=[],t=0;t<A;t+=4)e.push(s[t+3]<<24|s[t+2]<<16|s[t+1]<<8|s[t]);return e},Ft=5,lo=11,co=2,ym=lo-Ft,xh=65536>>Ft,Fm=1<<Ft,ho=Fm-1,Um=1024>>Ft,Em=xh+Um,xm=Em,Sm=32,Hm=xm+Sm,Lm=65536>>lo,Im=1<<ym,Tm=Im-1,Sh=function(s,A,e){return s.slice?s.slice(A,e):new Uint16Array(Array.prototype.slice.call(s,A,e))},Mm=function(s,A,e){return s.slice?s.slice(A,e):new Uint32Array(Array.prototype.slice.call(s,A,e))},Dm=function(s,A){var e=vm(s),t=Array.isArray(e)?Qm(e):new Uint32Array(e),r=Array.isArray(e)?bm(e):new Uint16Array(e),i=24,n=Sh(r,i/2,t[4]/2),o=t[5]===2?Sh(r,(i+t[4])/2):Mm(t,Math.ceil((i+t[4])/4));return new km(t[0],t[1],t[2],t[3],n,o)},km=(function(){function s(A,e,t,r,i,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=i,this.data=n}return s.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ft],e=(e<<co)+(A&ho),this.data[e];if(A<=65535)return e=this.index[xh+(A-55296>>Ft)],e=(e<<co)+(A&ho),this.data[e];if(A<this.highStart)return e=Hm-Lm+(A>>lo),e=this.index[e],e+=A>>Ft&Tm,e=this.index[e],e=(e<<co)+(A&ho),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Hh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_m=typeof Uint8Array>"u"?[]:new Uint8Array(256),li=0;li<Hh.length;li++)_m[Hh.charCodeAt(li)]=li;var Om=1,uo=2,fo=3,Lh=4,Ih=5,Nm=7,Th=8,Bo=9,go=10,Mh=11,Dh=12,kh=13,_h=14,po=15,Km=function(s){for(var A=[],e=0,t=s.length;e<t;){var r=s.charCodeAt(e++);if(r>=55296&&r<=56319&&e<t){var i=s.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},Vm=function(){for(var s=[],A=0;A<arguments.length;A++)s[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var e=s.length;if(!e)return"";for(var t=[],r=-1,i="";++r<e;){var n=s[r];n<=65535?t.push(n):(n-=65536,t.push((n>>10)+55296,n%1024+56320)),(r+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},Pm=Dm(Cm),Qe="×",wo="÷",Gm=function(s){return Pm.get(s)},Rm=function(s,A,e){var t=e-2,r=A[t],i=A[e-1],n=A[e];if(i===uo&&n===fo)return Qe;if(i===uo||i===fo||i===Lh||n===uo||n===fo||n===Lh)return wo;if(i===Th&&[Th,Bo,Mh,Dh].indexOf(n)!==-1||(i===Mh||i===Bo)&&(n===Bo||n===go)||(i===Dh||i===go)&&n===go||n===kh||n===Ih||n===Nm||i===Om)return Qe;if(i===kh&&n===_h){for(;r===Ih;)r=A[--t];if(r===_h)return Qe}if(i===po&&n===po){for(var o=0;r===po;)o++,r=A[--t];if(o%2===0)return Qe}return wo},zm=function(s){var A=Km(s),e=A.length,t=0,r=0,i=A.map(Gm);return{next:function(){if(t>=e)return{done:!0,value:null};for(var n=Qe;t<e&&(n=Rm(A,i,++t))===Qe;);if(n!==Qe||t===e){var o=Vm.apply(null,A.slice(r,t));return r=t,{value:o,done:!1}}return{done:!0,value:null}}}},Wm=function(s){for(var A=zm(s),e=[],t;!(t=A.next()).done;)t.value&&e.push(t.value.slice());return e},Xm=function(s){var A=123;if(s.createRange){var e=s.createRange();if(e.getBoundingClientRect){var t=s.createElement("boundtest");t.style.height=A+"px",t.style.display="block",s.body.appendChild(t),e.selectNode(t);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(s.body.removeChild(t),i===A)return!0}}return!1},$m=function(s){var A=s.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",s.body.appendChild(A);var e=s.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var t=A.firstChild,r=Ir(t.data).map(function(a){return PA(a)}),i=0,n={},o=r.every(function(a,l){e.setStart(t,i),e.setEnd(t,i+a.length);var c=e.getBoundingClientRect();i+=a.length;var u=c.x>n.x||c.y>n.y;return n=c,l===0?!0:u});return s.body.removeChild(A),o},Jm=function(){return typeof new Image().crossOrigin<"u"},Zm=function(){return typeof new XMLHttpRequest().responseType=="string"},Ym=function(s){var A=new Image,e=s.createElement("canvas"),t=e.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},Oh=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},qm=function(s){var A=s.createElement("canvas"),e=100;A.width=e,A.height=e;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,e,e);var r=new Image,i=A.toDataURL();r.src=i;var n=mo(e,e,0,0,r);return t.fillStyle="red",t.fillRect(0,0,e,e),Nh(n).then(function(o){t.drawImage(o,0,0);var a=t.getImageData(0,0,e,e).data;t.fillStyle="red",t.fillRect(0,0,e,e);var l=s.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",Oh(a)?Nh(mo(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Oh(t.getImageData(0,0,e,e).data)}).catch(function(){return!1})},mo=function(s,A,e,t,r){var i="http://www.w3.org/2000/svg",n=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return n.setAttributeNS(null,"width",s.toString()),n.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),n.appendChild(o),o.appendChild(r),n},Nh=function(s){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},qA={get SUPPORT_RANGE_BOUNDS(){var s=Xm(document);return Object.defineProperty(qA,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=qA.SUPPORT_RANGE_BOUNDS&&$m(document);return Object.defineProperty(qA,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Ym(document);return Object.defineProperty(qA,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?qm(document):Promise.resolve(!1);return Object.defineProperty(qA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Jm();return Object.defineProperty(qA,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Zm();return Object.defineProperty(qA,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qA,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(qA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},Os=(function(){function s(A,e){this.text=A,this.bounds=e}return s})(),jm=function(s,A,e,t){var r=tC(A,e),i=[],n=0;return r.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(qA.SUPPORT_RANGE_BOUNDS){var a=Kh(t,n,o.length).getClientRects();if(a.length>1){var l=Co(o),c=0;l.forEach(function(f){i.push(new Os(f,Ze.fromDOMRectList(s,Kh(t,c+n,f.length).getClientRects()))),c+=f.length})}else i.push(new Os(o,Ze.fromDOMRectList(s,a)))}else{var u=t.splitText(o.length);i.push(new Os(o,AC(s,t))),t=u}else qA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));n+=o.length}),i},AC=function(s,A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(t,A);var i=Lr(s,t);return t.firstChild&&r.replaceChild(t.firstChild,t),i}}return Ze.EMPTY},Kh=function(s,A,e){var t=s.ownerDocument;if(!t)throw new Error("Node has no owner document");var r=t.createRange();return r.setStart(s,A),r.setEnd(s,A+e),r},Co=function(s){if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(s)).map(function(e){return e.segment})}return Wm(s)},eC=function(s,A){if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(s)).map(function(t){return t.segment})}return rC(s,A)},tC=function(s,A){return A.letterSpacing!==0?Co(s):eC(s,A)},sC=[32,160,4961,65792,65793,4153,4241],rC=function(s,A){for(var e=Lp(s,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],r,i=function(){if(r.value){var n=r.value.slice(),o=Ir(n),a="";o.forEach(function(l){sC.indexOf(l)===-1?a+=PA(l):(a.length&&t.push(a),t.push(PA(l)),a="")}),a.length&&t.push(a)}};!(r=e.next()).done;)i();return t},iC=(function(){function s(A,e,t){this.text=nC(e.data,t.textTransform),this.textBounds=jm(A,this.text,t,e)}return s})(),nC=function(s,A){switch(A){case 1:return s.toLowerCase();case 3:return s.replace(oC,aC);case 2:return s.toUpperCase();default:return s}},oC=/(^|\s|:|-|\(|\))([a-z])/g,aC=function(s,A,e){return s.length>0?A+e.toUpperCase():s},Vh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return A})(Pe),Ph=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return A})(Pe),Gh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this,i=new XMLSerializer,n=Lr(e,t);return t.setAttribute("width",n.width+"px"),t.setAttribute("height",n.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return A})(Pe),Rh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.value=t.value,r}return A})(Pe),vo=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.start=t.start,r.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,r}return A})(Pe),lC=[{type:15,flags:0,unit:"px",number:3}],cC=[{type:16,flags:0,number:50}],hC=function(s){return s.width>s.height?new Ze(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new Ze(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},uC=function(s){var A=s.type===fC?new Array(s.value.length+1).join("•"):s.value;return A.length===0?s.placeholder||"":A},ci="checkbox",hi="radio",fC="password",zh=707406591,bo=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=uC(t),(r.type===ci||r.type===hi)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=hC(r.bounds)),r.type){case ci:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=lC;break;case hi:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=cC;break}return r}return A})(Pe),Wh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this,i=t.options[t.selectedIndex||0];return r.value=i&&i.text||"",r}return A})(Pe),Xh=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.value=t.value,r}return A})(Pe),$h=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Zh(e,t.contentWindow.document.documentElement);var i=t.contentWindow.document.documentElement?Ds(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):qe.TRANSPARENT,n=t.contentWindow.document.body?Ds(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):qe.TRANSPARENT;r.backgroundColor=at(i)?at(n)?r.styles.backgroundColor:n:i}}catch{}return r}return A})(Pe),dC=["OL","UL","MENU"],ui=function(s,A,e,t){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Yh(r)&&r.data.trim().length>0)e.textNodes.push(new iC(s,r,e.styles));else if(Wt(r))if(su(r)&&r.assignedNodes)r.assignedNodes().forEach(function(o){return ui(s,o,e,t)});else{var n=Jh(s,r);n.styles.isVisible()&&(BC(r,n,t)?n.flags|=4:gC(n.styles)&&(n.flags|=2),dC.indexOf(r.tagName)!==-1&&(n.flags|=8),e.elements.push(n),r.slot,r.shadowRoot?ui(s,r.shadowRoot,n,t):!di(r)&&!qh(r)&&!Bi(r)&&ui(s,r,n,t))}},Jh=function(s,A){return Fo(A)?new Vh(s,A):jh(A)?new Ph(s,A):qh(A)?new Gh(s,A):pC(A)?new Rh(s,A):wC(A)?new vo(s,A):mC(A)?new bo(s,A):Bi(A)?new Wh(s,A):di(A)?new Xh(s,A):eu(A)?new $h(s,A):new Pe(s,A)},Zh=function(s,A){var e=Jh(s,A);return e.flags|=4,ui(s,A,e,e),e},BC=function(s,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||yo(s)&&e.styles.isTransparent()},gC=function(s){return s.isPositioned()||s.isFloating()},Yh=function(s){return s.nodeType===Node.TEXT_NODE},Wt=function(s){return s.nodeType===Node.ELEMENT_NODE},Qo=function(s){return Wt(s)&&typeof s.style<"u"&&!fi(s)},fi=function(s){return typeof s.className=="object"},pC=function(s){return s.tagName==="LI"},wC=function(s){return s.tagName==="OL"},mC=function(s){return s.tagName==="INPUT"},CC=function(s){return s.tagName==="HTML"},qh=function(s){return s.tagName==="svg"},yo=function(s){return s.tagName==="BODY"},jh=function(s){return s.tagName==="CANVAS"},Au=function(s){return s.tagName==="VIDEO"},Fo=function(s){return s.tagName==="IMG"},eu=function(s){return s.tagName==="IFRAME"},tu=function(s){return s.tagName==="STYLE"},vC=function(s){return s.tagName==="SCRIPT"},di=function(s){return s.tagName==="TEXTAREA"},Bi=function(s){return s.tagName==="SELECT"},su=function(s){return s.tagName==="SLOT"},ru=function(s){return s.tagName.indexOf("-")>0},bC=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},s.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},s.prototype.pop=function(A){var e=this;A.forEach(function(t){return e.counters[t].pop()})},s.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,i=!0;t!==null&&t.forEach(function(o){var a=e.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var n=[];return i&&r.forEach(function(o){var a=e.counters[o.counter];n.push(o.counter),a||(a=e.counters[o.counter]=[]),a.push(o.reset)}),n},s})(),iu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},nu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},QC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Xt=function(s,A,e,t,r,i){return s<A||s>e?Ks(s,r,i.length>0):t.integers.reduce(function(n,o,a){for(;s>=o;)s-=o,n+=t.values[a];return n},"")+i},ou=function(s,A,e,t){var r="";do e||s--,r=t(s)+r,s/=A;while(s*A>=A);return r},GA=function(s,A,e,t,r){var i=e-A+1;return(s<0?"-":"")+(ou(Math.abs(s),i,t,function(n){return PA(Math.floor(n%i)+A)})+r)},Ut=function(s,A,e){e===void 0&&(e=". ");var t=A.length;return ou(Math.abs(s),t,!1,function(r){return A[Math.floor(r%t)]})+e},$t=1,ct=2,ht=4,Ns=8,je=function(s,A,e,t,r,i){if(s<-9999||s>9999)return Ks(s,4,r.length>0);var n=Math.abs(s),o=r;if(n===0)return A[0]+o;for(var a=0;n>0&&a<=4;a++){var l=n%10;l===0&&XA(i,$t)&&o!==""?o=A[l]+o:l>1||l===1&&a===0||l===1&&a===1&&XA(i,ct)||l===1&&a===1&&XA(i,ht)&&s>100||l===1&&a>1&&XA(i,Ns)?o=A[l]+(a>0?e[a-1]:"")+o:l===1&&a>0&&(o=e[a-1]+o),n=Math.floor(n/10)}return(s<0?t:"")+o},au="十百千萬",lu="拾佰仟萬",cu="マイナス",Uo="마이너스",Ks=function(s,A,e){var t=e?". ":"",r=e?"、":"",i=e?", ":"",n=e?" ":"";switch(A){case 0:return"•"+n;case 1:return"◦"+n;case 2:return"◾"+n;case 5:var o=GA(s,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ut(s,"〇一二三四五六七八九",r);case 6:return Xt(s,1,3999,iu,3,t).toLowerCase();case 7:return Xt(s,1,3999,iu,3,t);case 8:return GA(s,945,969,!1,t);case 9:return GA(s,97,122,!1,t);case 10:return GA(s,65,90,!1,t);case 11:return GA(s,1632,1641,!0,t);case 12:case 49:return Xt(s,1,9999,nu,3,t);case 35:return Xt(s,1,9999,nu,3,t).toLowerCase();case 13:return GA(s,2534,2543,!0,t);case 14:case 30:return GA(s,6112,6121,!0,t);case 15:return Ut(s,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ut(s,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return je(s,"零一二三四五六七八九",au,"負",r,ct|ht|Ns);case 47:return je(s,"零壹貳參肆伍陸柒捌玖",lu,"負",r,$t|ct|ht|Ns);case 42:return je(s,"零一二三四五六七八九",au,"负",r,ct|ht|Ns);case 41:return je(s,"零壹贰叁肆伍陆柒捌玖",lu,"负",r,$t|ct|ht|Ns);case 26:return je(s,"〇一二三四五六七八九","十百千万",cu,r,0);case 25:return je(s,"零壱弐参四伍六七八九","拾百千万",cu,r,$t|ct|ht);case 31:return je(s,"영일이삼사오육칠팔구","십백천만",Uo,i,$t|ct|ht);case 33:return je(s,"零一二三四五六七八九","十百千萬",Uo,i,0);case 32:return je(s,"零壹貳參四五六七八九","拾百千",Uo,i,$t|ct|ht);case 18:return GA(s,2406,2415,!0,t);case 20:return Xt(s,1,19999,yC,3,t);case 21:return GA(s,2790,2799,!0,t);case 22:return GA(s,2662,2671,!0,t);case 22:return Xt(s,1,10999,QC,3,t);case 23:return Ut(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ut(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return GA(s,3302,3311,!0,t);case 28:return Ut(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ut(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return GA(s,3792,3801,!0,t);case 37:return GA(s,6160,6169,!0,t);case 38:return GA(s,4160,4169,!0,t);case 39:return GA(s,2918,2927,!0,t);case 40:return GA(s,1776,1785,!0,t);case 43:return GA(s,3046,3055,!0,t);case 44:return GA(s,3174,3183,!0,t);case 45:return GA(s,3664,3673,!0,t);case 46:return GA(s,3872,3881,!0,t);default:return GA(s,48,57,!0,t)}},hu="data-html2canvas-ignore",uu=(function(){function s(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new bC,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(A,e){var t=this,r=FC(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,o=r.contentWindow,a=o.document,l=xC(r).then(function(){return oe(t,void 0,void 0,function(){var c,u;return se(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(IC),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),c=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,EC(a)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,u)}).then(function(){return r})]:[2,r]}})})});return a.open(),a.write(HC(document.doctype)+"<html></html>"),LC(this.referenceElement.ownerDocument,i,n),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},s.prototype.createElementClone=function(A){if(ao(A,2))debugger;if(jh(A))return this.createCanvasClone(A);if(Au(A))return this.createVideoClone(A);if(tu(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Fo(e)&&(Fo(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),ru(e)?this.createCustomElementClone(e):e},s.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Eo(A.style,e),e},s.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(i,n){return n&&typeof n.cssText=="string"?i+n.cssText:i},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},s.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var i=A.getContext("2d"),n=r.getContext("2d");if(n)if(!this.options.allowTaint&&i)n.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var o=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(o){var a=o.getContextAttributes();a?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}n.drawImage(A,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},s.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},s.prototype.appendChildNode=function(A,e,t){(!Wt(e)||!vC(e)&&!e.hasAttribute(hu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Wt(e)||!tu(e))&&A.appendChild(this.cloneNode(e,t))},s.prototype.cloneChildNodes=function(A,e,t){for(var r=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Wt(i)&&su(i)&&typeof i.assignedNodes=="function"){var n=i.assignedNodes();n.length&&n.forEach(function(o){return r.appendChildNode(e,o,t)})}else this.appendChildNode(e,i,t)},s.prototype.cloneNode=function(A,e){if(Yh(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Wt(A)&&(Qo(A)||fi(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var i=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Qo(r)&&(this.clonedReferenceElement=r),yo(r)&&DC(r);var a=this.counters.parse(new Uh(this.context,i)),l=this.resolvePseudoContent(A,r,n,Vs.BEFORE);ru(A)&&(e=!0),Au(A)||this.cloneChildNodes(A,r,e),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(A,r,o,Vs.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||fi(A))&&!eu(A)||e)&&Eo(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(di(A)||Bi(A))&&(di(r)||Bi(r))&&(r.value=A.value),r}return A.cloneNode(!1)},s.prototype.resolvePseudoContent=function(A,e,t,r){var i=this;if(t){var n=t.content,o=e.ownerDocument;if(!(!o||!n||n==="none"||n==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Uh(this.context,t));var a=new pm(this.context,t),l=o.createElement("html2canvaspseudoelement");Eo(t,l),a.content.forEach(function(u){if(u.type===0)l.appendChild(o.createTextNode(u.value));else if(u.type===22){var f=o.createElement("img");f.src=u.value,f.style.opacity="1",l.appendChild(f)}else if(u.type===18){if(u.name==="attr"){var g=u.values.filter(HA);g.length&&l.appendChild(o.createTextNode(A.getAttribute(g[0].value)||""))}else if(u.name==="counter"){var B=u.values.filter(Rt),d=B[0],p=B[1];if(d&&HA(d)){var m=i.counters.getCounterValue(d.value),w=p&&HA(p)?oo.parse(i.context,p.value):3;l.appendChild(o.createTextNode(Ks(m,w,!1)))}}else if(u.name==="counters"){var v=u.values.filter(Rt),d=v[0],y=v[1],p=v[2];if(d&&HA(d)){var E=i.counters.getCounterValues(d.value),U=p&&HA(p)?oo.parse(i.context,p.value):3,T=y&&y.type===0?y.value:"",k=E.map(function(J){return Ks(J,U,!1)}).join(T);l.appendChild(o.createTextNode(k))}}}else if(u.type===20)switch(u.value){case"open-quote":l.appendChild(o.createTextNode(Fh(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(Fh(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(u.value))}}),l.className=xo+" "+So;var c=r===Vs.BEFORE?" "+xo:" "+So;return fi(e)?e.className.baseValue+=c:e.className+=c,l}}},s.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},s})(),Vs;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(Vs||(Vs={}));var FC=function(s,A){var e=s.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(hu,"true"),s.body.appendChild(e),e},UC=function(s){return new Promise(function(A){if(s.complete){A();return}if(!s.src){A();return}s.onload=A,s.onerror=A})},EC=function(s){return Promise.all([].slice.call(s.images,0).map(UC))},xC=function(s){return new Promise(function(A,e){var t=s.contentWindow;if(!t)return e("No window assigned for iframe");var r=t.document;t.onload=s.onload=function(){t.onload=s.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),A(s))},50)}})},SC=["all","d","content"],Eo=function(s,A){for(var e=s.length-1;e>=0;e--){var t=s.item(e);SC.indexOf(t)===-1&&A.style.setProperty(t,s.getPropertyValue(t))}return A},HC=function(s){var A="";return s&&(A+="<!DOCTYPE ",s.name&&(A+=s.name),s.internalSubset&&(A+=s.internalSubset),s.publicId&&(A+='"'+s.publicId+'"'),s.systemId&&(A+='"'+s.systemId+'"'),A+=">"),A},LC=function(s,A,e){s&&s.defaultView&&(A!==s.defaultView.pageXOffset||e!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(A,e)},IC=function(s){var A=s[0],e=s[1],t=s[2];A.scrollLeft=e,A.scrollTop=t},TC=":before",MC=":after",xo="___html2canvas___pseudoelement_before",So="___html2canvas___pseudoelement_after",fu=`{
|
|
7
7
|
content: "" !important;
|
|
8
8
|
display: none !important;
|
|
9
9
|
}`,DC=function(s){kC(s,"."+xo+TC+fu+`
|
|
10
|
-
.`+So+MC+fu)},kC=function(s,A){var e=s.ownerDocument;if(e){var t=e.createElement("style");t.textContent=A,s.appendChild(t)}},du=(function(){function s(){}return s.getOrigin=function(A){var e=s._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},s.isSameOrigin=function(A){return s.getOrigin(A)===s._origin},s.setContext=function(A){s._link=A.document.createElement("a"),s._origin=s.getOrigin(A.location.href)},s._origin="about:blank",s})(),_C=(function(){function s(A,e){this.context=A,this._options=e,this._cache={}}return s.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Lo(A)||VC(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},s.prototype.match=function(A){return this._cache[A]},s.prototype.loadImage=function(A){return oe(this,void 0,void 0,function(){var e,t,r,i,n=this;return se(this,function(o){switch(o.label){case 0:return e=du.isSameOrigin(A),t=!Ho(A)&&this._options.useCORS===!0&&qA.SUPPORT_CORS_IMAGES&&!e,r=!Ho(A)&&!e&&!Lo(A)&&typeof this._options.proxy=="string"&&qA.SUPPORT_CORS_XHR&&!t,!e&&this._options.allowTaint===!1&&!Ho(A)&&!Lo(A)&&!r&&!t?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(PC(i)||t)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return a(c)},500),n._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},s.prototype.has=function(A){return typeof this._cache[A]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,n){var o=qA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(f){return n(f)},!1),u.readAsDataURL(a.response)}else n("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=n;var l=t.indexOf("?")>-1?"&":"?";if(a.open("GET",""+t+l+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var c=e._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return n("Timed out ("+c+"ms) proxying "+r)}}a.send()})},s})(),OC=/^data:image\/svg\+xml/i,NC=/^data:image\/.*;base64,/i,KC=/^data:image\/.*/i,VC=function(s){return qA.SUPPORT_SVG_DRAWING||!GC(s)},Ho=function(s){return KC.test(s)},PC=function(s){return NC.test(s)},Lo=function(s){return s.substr(0,4)==="blob"},GC=function(s){return s.substr(-3).toLowerCase()==="svg"||OC.test(s)},P=(function(){function s(A,e){this.type=0,this.x=A,this.y=e}return s.prototype.add=function(A,e){return new s(this.x+A,this.y+e)},s})(),Jt=function(s,A,e){return new P(s.x+(A.x-s.x)*e,s.y+(A.y-s.y)*e)},gi=(function(){function s(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return s.prototype.subdivide=function(A,e){var t=Jt(this.start,this.startControl,A),r=Jt(this.startControl,this.endControl,A),i=Jt(this.endControl,this.end,A),n=Jt(t,r,A),o=Jt(r,i,A),a=Jt(n,o,A);return e?new s(this.start,t,n,a):new s(a,o,i,this.end)},s.prototype.add=function(A,e){return new s(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),ye=function(s){return s.type===1},RC=(function(){function s(A){var e=A.styles,t=A.bounds,r=Ms(e.borderTopLeftRadius,t.width,t.height),i=r[0],n=r[1],o=Ms(e.borderTopRightRadius,t.width,t.height),a=o[0],l=o[1],c=Ms(e.borderBottomRightRadius,t.width,t.height),u=c[0],f=c[1],g=Ms(e.borderBottomLeftRadius,t.width,t.height),B=g[0],d=g[1],p=[];p.push((i+a)/t.width),p.push((B+u)/t.width),p.push((n+d)/t.height),p.push((l+f)/t.height);var m=Math.max.apply(Math,p);m>1&&(i/=m,n/=m,a/=m,l/=m,u/=m,f/=m,B/=m,d/=m);var w=t.width-a,v=t.height-f,y=t.width-u,E=t.height-d,U=e.borderTopWidth,T=e.borderRightWidth,k=e.borderBottomWidth,L=e.borderLeftWidth,iA=IA(e.paddingTop,A.bounds.width),J=IA(e.paddingRight,A.bounds.width),hA=IA(e.paddingBottom,A.bounds.width),aA=IA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||n>0?kA(t.left+L/3,t.top+U/3,i-L/3,n-U/3,xA.TOP_LEFT):new P(t.left+L/3,t.top+U/3),this.topRightBorderDoubleOuterBox=i>0||n>0?kA(t.left+w,t.top+U/3,a-T/3,l-U/3,xA.TOP_RIGHT):new P(t.left+t.width-T/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=u>0||f>0?kA(t.left+y,t.top+v,u-T/3,f-k/3,xA.BOTTOM_RIGHT):new P(t.left+t.width-T/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=B>0||d>0?kA(t.left+L/3,t.top+E,B-L/3,d-k/3,xA.BOTTOM_LEFT):new P(t.left+L/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=i>0||n>0?kA(t.left+L*2/3,t.top+U*2/3,i-L*2/3,n-U*2/3,xA.TOP_LEFT):new P(t.left+L*2/3,t.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||n>0?kA(t.left+w,t.top+U*2/3,a-T*2/3,l-U*2/3,xA.TOP_RIGHT):new P(t.left+t.width-T*2/3,t.top+U*2/3),this.bottomRightBorderDoubleInnerBox=u>0||f>0?kA(t.left+y,t.top+v,u-T*2/3,f-k*2/3,xA.BOTTOM_RIGHT):new P(t.left+t.width-T*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||d>0?kA(t.left+L*2/3,t.top+E,B-L*2/3,d-k*2/3,xA.BOTTOM_LEFT):new P(t.left+L*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=i>0||n>0?kA(t.left+L/2,t.top+U/2,i-L/2,n-U/2,xA.TOP_LEFT):new P(t.left+L/2,t.top+U/2),this.topRightBorderStroke=i>0||n>0?kA(t.left+w,t.top+U/2,a-T/2,l-U/2,xA.TOP_RIGHT):new P(t.left+t.width-T/2,t.top+U/2),this.bottomRightBorderStroke=u>0||f>0?kA(t.left+y,t.top+v,u-T/2,f-k/2,xA.BOTTOM_RIGHT):new P(t.left+t.width-T/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=B>0||d>0?kA(t.left+L/2,t.top+E,B-L/2,d-k/2,xA.BOTTOM_LEFT):new P(t.left+L/2,t.top+t.height-k/2),this.topLeftBorderBox=i>0||n>0?kA(t.left,t.top,i,n,xA.TOP_LEFT):new P(t.left,t.top),this.topRightBorderBox=a>0||l>0?kA(t.left+w,t.top,a,l,xA.TOP_RIGHT):new P(t.left+t.width,t.top),this.bottomRightBorderBox=u>0||f>0?kA(t.left+y,t.top+v,u,f,xA.BOTTOM_RIGHT):new P(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=B>0||d>0?kA(t.left,t.top+E,B,d,xA.BOTTOM_LEFT):new P(t.left,t.top+t.height),this.topLeftPaddingBox=i>0||n>0?kA(t.left+L,t.top+U,Math.max(0,i-L),Math.max(0,n-U),xA.TOP_LEFT):new P(t.left+L,t.top+U),this.topRightPaddingBox=a>0||l>0?kA(t.left+Math.min(w,t.width-T),t.top+U,w>t.width+T?0:Math.max(0,a-T),Math.max(0,l-U),xA.TOP_RIGHT):new P(t.left+t.width-T,t.top+U),this.bottomRightPaddingBox=u>0||f>0?kA(t.left+Math.min(y,t.width-L),t.top+Math.min(v,t.height-k),Math.max(0,u-T),Math.max(0,f-k),xA.BOTTOM_RIGHT):new P(t.left+t.width-T,t.top+t.height-k),this.bottomLeftPaddingBox=B>0||d>0?kA(t.left+L,t.top+Math.min(E,t.height-k),Math.max(0,B-L),Math.max(0,d-k),xA.BOTTOM_LEFT):new P(t.left+L,t.top+t.height-k),this.topLeftContentBox=i>0||n>0?kA(t.left+L+aA,t.top+U+iA,Math.max(0,i-(L+aA)),Math.max(0,n-(U+iA)),xA.TOP_LEFT):new P(t.left+L+aA,t.top+U+iA),this.topRightContentBox=a>0||l>0?kA(t.left+Math.min(w,t.width+L+aA),t.top+U+iA,w>t.width+L+aA?0:a-L+aA,l-(U+iA),xA.TOP_RIGHT):new P(t.left+t.width-(T+J),t.top+U+iA),this.bottomRightContentBox=u>0||f>0?kA(t.left+Math.min(y,t.width-(L+aA)),t.top+Math.min(v,t.height+U+iA),Math.max(0,u-(T+J)),f-(k+hA),xA.BOTTOM_RIGHT):new P(t.left+t.width-(T+J),t.top+t.height-(k+hA)),this.bottomLeftContentBox=B>0||d>0?kA(t.left+L+aA,t.top+E,Math.max(0,B-(L+aA)),d-(k+hA),xA.BOTTOM_LEFT):new P(t.left+L+aA,t.top+t.height-(k+hA))}return s})(),xA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(xA||(xA={}));var kA=function(s,A,e,t,r){var i=4*((Math.sqrt(2)-1)/3),n=e*i,o=t*i,a=s+e,l=A+t;switch(r){case xA.TOP_LEFT:return new gi(new P(s,l),new P(s,l-o),new P(a-n,A),new P(a,A));case xA.TOP_RIGHT:return new gi(new P(s,A),new P(s+n,A),new P(a,l-o),new P(a,l));case xA.BOTTOM_RIGHT:return new gi(new P(a,A),new P(a,A+o),new P(s+n,l),new P(s,l));case xA.BOTTOM_LEFT:default:return new gi(new P(a,l),new P(a-n,l),new P(s,A+o),new P(s,A))}},pi=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},zC=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},wi=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},WC=(function(){function s(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return s})(),mi=(function(){function s(A,e){this.path=A,this.target=e,this.type=1}return s})(),XC=(function(){function s(A){this.opacity=A,this.type=2,this.target=6}return s})(),$C=function(s){return s.type===0},Bu=function(s){return s.type===1},JC=function(s){return s.type===2},gu=function(s,A){return s.length===A.length?s.some(function(e,t){return e===A[t]}):!1},ZC=function(s,A,e,t,r){return s.map(function(i,n){switch(n){case 0:return i.add(A,e);case 1:return i.add(A+t,e);case 2:return i.add(A+t,e+r);case 3:return i.add(A,e+r)}return i})},pu=(function(){function s(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),wu=(function(){function s(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new RC(this.container),this.container.styles.opacity<1&&this.effects.push(new XC(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new WC(t,r,i))}if(this.container.styles.overflowX!==0){var n=pi(this.curves),o=wi(this.curves);gu(n,o)?this.effects.push(new mi(n,6)):(this.effects.push(new mi(n,2)),this.effects.push(new mi(o,4)))}}return s.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,r=this.effects.slice(0);t;){var i=t.effects.filter(function(a){return!Bu(a)});if(e||t.container.styles.position!==0||!t.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var n=pi(t.curves),o=wi(t.curves);gu(n,o)||r.unshift(new mi(o,6))}}else r.unshift.apply(r,i);t=t.parent}return r.filter(function(a){return XA(a.target,A)})},s})(),Io=function(s,A,e,t){s.container.elements.forEach(function(r){var i=XA(r.flags,4),n=XA(r.flags,2),o=new wu(r,s);XA(r.styles.display,2048)&&t.push(o);var a=XA(r.flags,8)?[]:t;if(i||n){var l=i||r.styles.isPositioned()?e:A,c=new pu(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var f=0;l.negativeZIndex.some(function(B,d){return u>B.element.container.styles.zIndex.order?(f=d,!1):f>0}),l.negativeZIndex.splice(f,0,c)}else if(u>0){var g=0;l.positiveZIndex.some(function(B,d){return u>=B.element.container.styles.zIndex.order?(g=d+1,!1):g>0}),l.positiveZIndex.splice(g,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Io(o,c,i?c:e,a)}else r.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Io(o,A,e,a);XA(r.flags,8)&&mu(r,a)})},mu=function(s,A){for(var e=s instanceof vo?s.start:1,t=s instanceof vo?s.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Rh&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ks(e,i.container.styles.listStyleType,!0),e+=t?-1:1}},YC=function(s){var A=new wu(s,null),e=new pu(A),t=[];return Io(A,e,e,t),mu(A.container,t),e},Cu=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return Fe(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return Fe(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return Fe(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},qC=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return Fe(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return Fe(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return Fe(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},jC=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return Fe(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return Fe(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return Fe(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},Av=function(s,A){switch(A){case 0:return Ci(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Ci(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Ci(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Ci(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Ci=function(s,A){var e=[];return ye(s)?e.push(s.subdivide(.5,!1)):e.push(s),ye(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Fe=function(s,A,e,t){var r=[];return ye(s)?r.push(s.subdivide(.5,!1)):r.push(s),ye(e)?r.push(e.subdivide(.5,!0)):r.push(e),ye(t)?r.push(t.subdivide(.5,!0).reverse()):r.push(t),ye(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},vu=function(s){var A=s.bounds,e=s.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},vi=function(s){var A=s.styles,e=s.bounds,t=IA(A.paddingLeft,e.width),r=IA(A.paddingRight,e.width),i=IA(A.paddingTop,e.width),n=IA(A.paddingBottom,e.width);return e.add(t+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+r),-(A.borderTopWidth+A.borderBottomWidth+i+n))},ev=function(s,A){return s===0?A.bounds:s===2?vi(A):vu(A)},tv=function(s,A){return s===0?A.bounds:s===2?vi(A):vu(A)},To=function(s,A,e){var t=ev(Yt(s.styles.backgroundOrigin,A),s),r=tv(Yt(s.styles.backgroundClip,A),s),i=sv(Yt(s.styles.backgroundSize,A),e,t),n=i[0],o=i[1],a=Ms(Yt(s.styles.backgroundPosition,A),t.width-n,t.height-o),l=rv(Yt(s.styles.backgroundRepeat,A),a,i,t,r),c=Math.round(t.left+a[0]),u=Math.round(t.top+a[1]);return[l,c,u,n,o]},Zt=function(s){return HA(s)&&s.value===zt.AUTO},bi=function(s){return typeof s=="number"},sv=function(s,A,e){var t=A[0],r=A[1],i=A[2],n=s[0],o=s[1];if(!n)return[0,0];if(WA(n)&&o&&WA(o))return[IA(n,e.width),IA(o,e.height)];var a=bi(i);if(HA(n)&&(n.value===zt.CONTAIN||n.value===zt.COVER)){if(bi(i)){var l=e.width/e.height;return l<i!=(n.value===zt.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var c=bi(t),u=bi(r),f=c||u;if(Zt(n)&&(!o||Zt(o))){if(c&&u)return[t,r];if(!a&&!f)return[e.width,e.height];if(f&&a){var g=c?t:r*i,B=u?r:t/i;return[g,B]}var d=c?t:e.width,p=u?r:e.height;return[d,p]}if(a){var m=0,w=0;return WA(n)?m=IA(n,e.width):WA(o)&&(w=IA(o,e.height)),Zt(n)?m=w*i:(!o||Zt(o))&&(w=m/i),[m,w]}var v=null,y=null;if(WA(n)?v=IA(n,e.width):o&&WA(o)&&(y=IA(o,e.height)),v!==null&&(!o||Zt(o))&&(y=c&&u?v/t*r:e.height),y!==null&&Zt(n)&&(v=c&&u?y/r*t:e.width),v!==null&&y!==null)return[v,y];throw new Error("Unable to calculate background-size for element")},Yt=function(s,A){var e=s[A];return typeof e>"u"?s[0]:e},rv=function(s,A,e,t,r){var i=A[0],n=A[1],o=e[0],a=e[1];switch(s){case 2:return[new P(Math.round(t.left),Math.round(t.top+n)),new P(Math.round(t.left+t.width),Math.round(t.top+n)),new P(Math.round(t.left+t.width),Math.round(a+t.top+n)),new P(Math.round(t.left),Math.round(a+t.top+n))];case 3:return[new P(Math.round(t.left+i),Math.round(t.top)),new P(Math.round(t.left+i+o),Math.round(t.top)),new P(Math.round(t.left+i+o),Math.round(t.height+t.top)),new P(Math.round(t.left+i),Math.round(t.height+t.top))];case 1:return[new P(Math.round(t.left+i),Math.round(t.top+n)),new P(Math.round(t.left+i+o),Math.round(t.top+n)),new P(Math.round(t.left+i+o),Math.round(t.top+n+a)),new P(Math.round(t.left+i),Math.round(t.top+n+a))];default:return[new P(Math.round(r.left),Math.round(r.top)),new P(Math.round(r.left+r.width),Math.round(r.top)),new P(Math.round(r.left+r.width),Math.round(r.height+r.top)),new P(Math.round(r.left),Math.round(r.height+r.top))]}},iv="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bu="Hidden Text",nv=(function(){function s(A){this._data={},this._document=A}return s.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",n.appendChild(t),r.src=iv,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(bu)),t.appendChild(i),t.appendChild(r);var o=r.offsetTop-i.offsetTop+2;t.removeChild(i),t.appendChild(this._document.createTextNode(bu)),t.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:o,middle:a}},s.prototype.getMetrics=function(A,e){var t=A+" "+e;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},s})(),Qu=(function(){function s(A,e){this.context=A,this.options=e}return s})(),ov=1e4,av=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new nv(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return A.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return t.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),JC(e)&&(this.ctx.globalAlpha=e.opacity),$C(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Bu(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return oe(this,void 0,void 0,function(){var t;return se(this,function(r){switch(r.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return oe(this,void 0,void 0,function(){return se(this,function(t){switch(t.label){case 0:if(XA(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,t,r){var i=this;if(t===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var n=Co(e.text);n.reduce(function(o,a){return i.ctx.fillText(a,o,e.bounds.top+r),o+i.ctx.measureText(a).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(n){return n==="normal"||n==="small-caps"}).join(""),r=fv(e.fontFamily).join(", "),i=Ts(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,t){return oe(this,void 0,void 0,function(){var r,i,n,o,a,l,c,u,f=this;return se(this,function(g){return r=this.createFontStyle(t),i=r[0],n=r[1],o=r[2],this.ctx.font=i,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(n,o),l=a.baseline,c=a.middle,u=t.paintOrder,e.textBounds.forEach(function(B){u.forEach(function(d){switch(d){case 0:f.ctx.fillStyle=$A(t.color),f.renderTextWithLetterSpacing(B,t.letterSpacing,l);var p=t.textShadow;p.length&&B.text.trim().length&&(p.slice(0).reverse().forEach(function(m){f.ctx.shadowColor=$A(m.color),f.ctx.shadowOffsetX=m.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=m.offsetY.number*f.options.scale,f.ctx.shadowBlur=m.blur.number,f.renderTextWithLetterSpacing(B,t.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),t.textDecorationLine.length&&(f.ctx.fillStyle=$A(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(m){switch(m){case 1:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+l),B.bounds.width,1);break;case 2:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:f.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+c),B.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&B.text.trim().length&&(f.ctx.strokeStyle=$A(t.webkitTextStrokeColor),f.ctx.lineWidth=t.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,t,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=vi(e),n=wi(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a,w,w,l,c,u,f,y,g,B,E,d,p,m,w,v,y,E;return se(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,n=0,o=t.textNodes,U.label=1;case 1:return n<o.length?(a=o[n],[4,this.renderTextNode(a,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return n++,[3,1];case 4:if(!(t instanceof Vh))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return w=U.sent(),this.renderReplacedElement(t,r,w),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Ph&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Gh))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return w=U.sent(),this.renderReplacedElement(t,r,w),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof $h&&t.tree?(l=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,l.render(t.tree)]):[3,14];case 13:c=U.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),U.label=14;case 14:if(t instanceof bo&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===ci?t.checked&&(this.ctx.save(),this.path([new P(t.bounds.left+u*.39363,t.bounds.top+u*.79),new P(t.bounds.left+u*.16,t.bounds.top+u*.5549),new P(t.bounds.left+u*.27347,t.bounds.top+u*.44071),new P(t.bounds.left+u*.39694,t.bounds.top+u*.5649),new P(t.bounds.left+u*.72983,t.bounds.top+u*.23),new P(t.bounds.left+u*.84,t.bounds.top+u*.34085),new P(t.bounds.left+u*.39363,t.bounds.top+u*.79)]),this.ctx.fillStyle=$A(zh),this.ctx.fill(),this.ctx.restore()):t.type===hi&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,Math.PI*2,!0),this.ctx.fillStyle=$A(zh),this.ctx.fill(),this.ctx.restore())),lv(t)&&t.value.length){switch(f=this.createFontStyle(i),y=f[0],g=f[1],B=this.fontMetrics.getMetrics(y,g).baseline,this.ctx.font=y,this.ctx.fillStyle=$A(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=hv(t.styles.textAlign),E=vi(t),d=0,t.styles.textAlign){case 1:d+=E.width/2;break;case 2:d+=E.width;break}p=E.add(d,0,0,-E.height/2+1),this.ctx.save(),this.path([new P(E.left,E.top),new P(E.left+E.width,E.top),new P(E.left+E.width,E.top+E.height),new P(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os(t.value,p),i.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!XA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(m=t.styles.listStyleImage,m.type!==0)return[3,18];w=void 0,v=m.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return w=U.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=$A(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new Ze(t.bounds.left,t.bounds.top+IA(t.styles.paddingTop,t.bounds.width),t.bounds.width,bh(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(e.listValue,E),i.letterSpacing,bh(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return oe(this,void 0,void 0,function(){var t,r,m,i,n,m,o,a,m,l,c,m,u,f,m,g,B,m,d,p,m;return se(this,function(w){switch(w.label){case 0:if(XA(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:w.sent(),t=0,r=e.negativeZIndex,w.label=2;case 2:return t<r.length?(m=r[t],[4,this.renderStack(m)]):[3,5];case 3:w.sent(),w.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:w.sent(),i=0,n=e.nonInlineLevel,w.label=7;case 7:return i<n.length?(m=n[i],[4,this.renderNode(m)]):[3,10];case 8:w.sent(),w.label=9;case 9:return i++,[3,7];case 10:o=0,a=e.nonPositionedFloats,w.label=11;case 11:return o<a.length?(m=a[o],[4,this.renderStack(m)]):[3,14];case 12:w.sent(),w.label=13;case 13:return o++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,w.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:w.sent(),w.label=17;case 17:return l++,[3,15];case 18:u=0,f=e.inlineLevel,w.label=19;case 19:return u<f.length?(m=f[u],[4,this.renderNode(m)]):[3,22];case 20:w.sent(),w.label=21;case 21:return u++,[3,19];case 22:g=0,B=e.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return g<B.length?(m=B[g],[4,this.renderStack(m)]):[3,26];case 24:w.sent(),w.label=25;case 25:return g++,[3,23];case 26:d=0,p=e.positiveZIndex,w.label=27;case 27:return d<p.length?(m=p[d],[4,this.renderStack(m)]):[3,30];case 28:w.sent(),w.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach(function(r,i){var n=ye(r)?r.start:r;i===0?t.ctx.moveTo(n.x,n.y):t.ctx.lineTo(n.x,n.y),ye(r)&&t.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,t,r,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,t,r){var i;if(e.width===t&&e.height===r)return e;var n=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=n.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,r);var a=o.getContext("2d");return a.drawImage(e,0,0,e.width,e.height,0,0,t,r),o},A.prototype.renderBackgroundImage=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a;return se(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,r=function(c){var u,f,g,iA,I,z,aA,Z,k,B,iA,I,z,aA,Z,d,p,m,w,v,y,E,U,T,k,L,iA,J,hA,aA,Z,Y,I,z,tA,FA,vA,SA,j,rA,mA,fA;return se(this,function(OA){switch(OA.label){case 0:if(c.type!==0)return[3,5];u=void 0,f=c.url,OA.label=1;case 1:return OA.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return u=OA.sent(),[3,4];case 3:return OA.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return u&&(g=To(e,t,[u.width,u.height,u.width/u.height]),iA=g[0],I=g[1],z=g[2],aA=g[3],Z=g[4],k=i.ctx.createPattern(i.resizeImage(u,aA,Z),"repeat"),i.renderRepeat(iA,k,I,z)),[3,6];case 5:$w(c)?(B=To(e,t,[null,null,null]),iA=B[0],I=B[1],z=B[2],aA=B[3],Z=B[4],d=Gw(c.angle,aA,Z),p=d[0],m=d[1],w=d[2],v=d[3],y=d[4],E=document.createElement("canvas"),E.width=aA,E.height=Z,U=E.getContext("2d"),T=U.createLinearGradient(m,v,w,y),hh(c.stops,p).forEach(function(LA){return T.addColorStop(LA.stop,$A(LA.color))}),U.fillStyle=T,U.fillRect(0,0,aA,Z),aA>0&&Z>0&&(k=i.ctx.createPattern(E,"repeat"),i.renderRepeat(iA,k,I,z))):Jw(c)&&(L=To(e,t,[null,null,null]),iA=L[0],J=L[1],hA=L[2],aA=L[3],Z=L[4],Y=c.position.length===0?[ro]:c.position,I=IA(Y[0],aA),z=IA(Y[Y.length-1],Z),tA=Rw(c,I,z,aA,Z),FA=tA[0],vA=tA[1],FA>0&&vA>0&&(SA=i.ctx.createRadialGradient(J+I,hA+z,0,J+I,hA+z,FA),hh(c.stops,FA*2).forEach(function(LA){return SA.addColorStop(LA.stop,$A(LA.color))}),i.path(iA),i.ctx.fillStyle=SA,FA!==vA?(j=e.bounds.left+.5*e.bounds.width,rA=e.bounds.top+.5*e.bounds.height,mA=vA/FA,fA=1/mA,i.ctx.save(),i.ctx.translate(j,rA),i.ctx.transform(1,0,0,mA,0,0),i.ctx.translate(-j,-rA),i.ctx.fillRect(J,fA*(hA-rA)+rA,aA,Z*fA),i.ctx.restore()):i.ctx.fill())),OA.label=6;case 6:return t--,[2]}})},i=this,n=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return n<o.length?(a=o[n],[5,r(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,t,r){return oe(this,void 0,void 0,function(){return se(this,function(i){return this.path(Cu(r,t)),this.ctx.fillStyle=$A(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,t,r,i){return oe(this,void 0,void 0,function(){var n,o;return se(this,function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return a.sent(),[2];case 2:return n=qC(i,r),this.path(n),this.ctx.fillStyle=$A(e),this.ctx.fill(),o=jC(i,r),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a,l,c,u=this;return se(this,function(f){switch(f.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,r=!at(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],n=cv(Yt(t.backgroundClip,0),e.curves),r||t.boxShadow.length?(this.ctx.save(),this.path(n),this.ctx.clip(),at(t.backgroundColor)||(this.ctx.fillStyle=$A(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(g){u.ctx.save();var B=pi(e.curves),d=g.inset?0:ov,p=ZC(B,-d+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(u.path(B),u.ctx.clip(),u.mask(p)):(u.mask(B),u.ctx.clip(),u.path(p)),u.ctx.shadowOffsetX=g.offsetX.number+d,u.ctx.shadowOffsetY=g.offsetY.number,u.ctx.shadowColor=$A(g.color),u.ctx.shadowBlur=g.blur.number,u.ctx.fillStyle=g.inset?$A(g.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),f.label=2;case 2:o=0,a=0,l=i,f.label=3;case 3:return a<l.length?(c=l[a],c.style!==0&&!at(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,3)];case 6:return f.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,e.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,e.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,r,i,n){return oe(this,void 0,void 0,function(){var o,a,l,c,u,f,g,B,d,p,m,w,v,y,E,U,E,U;return se(this,function(T){return this.ctx.save(),o=Av(i,r),a=Cu(i,r),n===2&&(this.path(a),this.ctx.clip()),ye(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),ye(a[1])?(u=a[1].end.x,f=a[1].end.y):(u=a[1].x,f=a[1].y),r===0||r===2?g=Math.abs(l-u):g=Math.abs(c-f),this.ctx.beginPath(),n===3?this.formatPath(o):this.formatPath(a.slice(0,2)),B=t<3?t*3:t*2,d=t<3?t*2:t,n===3&&(B=t,d=t),p=!0,g<=B*2?p=!1:g<=B*2+d?(m=g/(2*B+d),B*=m,d*=m):(w=Math.floor((g+d)/(B+d)),v=(g-w*B)/(w-1),y=(g-(w+1)*B)/w,d=y<=0||Math.abs(d-v)<Math.abs(d-y)?v:y),p&&(n===3?this.ctx.setLineDash([0,B+d]):this.ctx.setLineDash([B,d])),n===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=$A(e),this.ctx.stroke(),this.ctx.setLineDash([]),n===2&&(ye(a[0])&&(E=a[3],U=a[0],this.ctx.beginPath(),this.formatPath([new P(E.end.x,E.end.y),new P(U.start.x,U.start.y)]),this.ctx.stroke()),ye(a[1])&&(E=a[1],U=a[2],this.ctx.beginPath(),this.formatPath([new P(E.end.x,E.end.y),new P(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return oe(this,void 0,void 0,function(){var t;return se(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=$A(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=YC(e),[4,this.renderStack(t)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Qu),lv=function(s){return s instanceof Xh||s instanceof Wh?!0:s instanceof bo&&s.type!==hi&&s.type!==ci},cv=function(s,A){switch(s){case 0:return pi(A);case 2:return zC(A);default:return wi(A)}},hv=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},uv=["-apple-system","system-ui"],fv=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(A){return uv.indexOf(A)===-1}):s},dv=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return A.prototype.render=function(e){return oe(this,void 0,void 0,function(){var t,r;return se(this,function(i){switch(i.label){case 0:return t=mo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Bv(t)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=$A(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(Qu),Bv=function(s){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},gv=(function(){function s(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return s.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Hr([this.id,this.getTime()+"ms"],A))},s.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.instances={},s})(),pv=(function(){function s(A,e){var t;this.windowBounds=e,this.instanceName="#"+s.instanceCount++,this.logger=new gv({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new _C(this,A)}return s.instanceCount=1,s})(),wv=function(s,A){return A===void 0&&(A={}),mv(s,A)};typeof window<"u"&&du.setContext(window);var mv=function(s,A){return oe(void 0,void 0,void 0,function(){var e,t,r,i,n,o,a,l,c,u,f,g,B,d,p,m,w,v,y,E,T,U,T,k,L,iA,J,hA,aA,Z,Y,I,z,tA,FA,vA,SA,j,rA,mA;return se(this,function(fA){switch(fA.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=s.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(t=e.defaultView,!t)throw new Error("Document is not attached to a Window");return r={allowTaint:(k=A.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(L=A.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:A.proxy,useCORS:(iA=A.useCORS)!==null&&iA!==void 0?iA:!1},i=_n({logging:(J=A.logging)!==null&&J!==void 0?J:!0,cache:A.cache},r),n={windowWidth:(hA=A.windowWidth)!==null&&hA!==void 0?hA:t.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:t.innerHeight,scrollX:(Z=A.scrollX)!==null&&Z!==void 0?Z:t.pageXOffset,scrollY:(Y=A.scrollY)!==null&&Y!==void 0?Y:t.pageYOffset},o=new Ze(n.scrollX,n.scrollY,n.windowWidth,n.windowHeight),a=new pv(i,o),l=(I=A.foreignObjectRendering)!==null&&I!==void 0?I:!1,c={allowTaint:(z=A.allowTaint)!==null&&z!==void 0?z:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:l,copyStyles:l},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),u=new uu(a,s,c),f=u.clonedReferenceElement,f?[4,u.toIFrame(e,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=fA.sent(),B=yo(f)||CC(f)?Zg(f.ownerDocument):Lr(a,f),d=B.width,p=B.height,m=B.left,w=B.top,v=Cv(a,f,A.backgroundColor),y={canvas:A.canvas,backgroundColor:v,scale:(FA=(tA=A.scale)!==null&&tA!==void 0?tA:t.devicePixelRatio)!==null&&FA!==void 0?FA:1,x:((vA=A.x)!==null&&vA!==void 0?vA:0)+m,y:((SA=A.y)!==null&&SA!==void 0?SA:0)+w,width:(j=A.width)!==null&&j!==void 0?j:Math.ceil(d),height:(rA=A.height)!==null&&rA!==void 0?rA:Math.ceil(p)},l?(a.logger.debug("Document cloned, using foreign object rendering"),T=new dv(a,y),[4,T.render(f)]):[3,3];case 2:return E=fA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+m+","+w+" with size "+d+"x"+p+" using computed rendering"),a.logger.debug("Starting DOM parsing"),U=Zh(a,f),v===U.styles.backgroundColor&&(U.styles.backgroundColor=qe.TRANSPARENT),a.logger.debug("Starting renderer for element at "+y.x+","+y.y+" with size "+y.width+"x"+y.height),T=new av(a,y),[4,T.render(U)];case 4:E=fA.sent(),fA.label=5;case 5:return(!((mA=A.removeContainer)!==null&&mA!==void 0)||mA)&&(uu.destroy(g)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,E]}})})},Cv=function(s,A,e){var t=A.ownerDocument,r=t.documentElement?Ds(s,getComputedStyle(t.documentElement).backgroundColor):qe.TRANSPARENT,i=t.body?Ds(s,getComputedStyle(t.body).backgroundColor):qe.TRANSPARENT,n=typeof e=="string"?Ds(s,e):e===null?qe.TRANSPARENT:4294967295;return A===t.documentElement?at(r)?at(i)?n:i:r:n};const vv={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},bv={M1:3,M5:7,M15:14,M30:30,H1:90,H4:180,D1:1095,W1:1825,MN:3650};function yu(s){if(!s)return 7;const A=String(s).toUpperCase();return bv[A]??7}function Qv(s,A){const e=String(s||"").toUpperCase(),t=A||yu(s),r={M1:1440,M5:288,M15:96,M30:48,H1:24,H4:6,D1:1,W1:1/7,MN:1/30}[e]||96,i=Math.ceil(t*(typeof r=="number"?r:96));return Math.min(Math.max(i,500),5e3)}const ie=s=>{if(!Array.isArray(s)||s.length===0)return[];const A=s.map(t=>({...t,time:zA(t.time)})).filter(t=>t.time!=null);A.sort((t,r)=>t.time-r.time);const e=new Map;for(const t of A)e.set(t.time,t);return Array.from(e.values()).sort((t,r)=>t.time-r.time)};function yv(s,A,e,t,r,i){const n=r-e,o=i-t,a=Math.sqrt(n*n+o*o);if(a===0)return Math.hypot(s-e,A-t);let l=((s-e)*n+(A-t)*o)/(a*a);l=Math.max(0,Math.min(1,l));const c=e+l*n,u=t+l*o;return Math.hypot(s-c,A-u)}function Mo(s,A,e,t,r){if(!e||!t||!r)return null;const i=e.time,n=t.time,o=n-i,a=e.price,l=t.price,c=r.price;if(Math.abs(o)<1e-9){const B=c-a;return[{time:i,price:a+B},{time:n+1,price:l+B}]}const u=(l-a)/o,f=c+u*(i-r.time),g=c+u*(n-r.time);return[{time:i,price:f},{time:n,price:g}]}const Fv=b.forwardRef(function({bidPrice:A="113.638",askPrice:e="113.649",showBuySellPanel:t=!0,onBuyClick:r,onSellClick:i},n){const o=b.useRef(null),a=b.useRef(null),l=b.useRef(null),c=b.useRef(null),u=b.useRef([]),f=b.useRef(!1),g=b.useRef(null),B=b.useRef(null),d=b.useRef(null),p=b.useRef(null),m=b.useRef([]),[w,v]=b.useState(null),[y,E]=b.useState([]),U=b.useRef(null),T=b.useRef(null),k=b.useRef(null),L=b.useRef(!1);b.useEffect(()=>{k.current=w},[w]);const iA=b.useRef(new Map),J=b.useRef(null),hA=(C,F)=>`${C}_${F}`,aA=()=>{const C=hA(j,rA);return iA.current.get(C)||null},Z=C=>{if(!C)return;const F=hA(j,rA);iA.current.set(F,C)},{activeTool:Y,setActiveTool:I,showGrid:z,snapToGrid:tA,chartObjects:FA,setChartObjects:vA,orders:SA,selectedSymbol:j,selectedTimeframe:rA,drawingsVisible:mA,chartType:fA,chartLocked:OA,theme:LA,baseUrl:ge,endpoints:Et,endpointParams:xt}=Ae(),Te=b.useRef([]),[qt,uA]=b.useState(!1),[UA,W]=b.useState(null),[D,X]=b.useState([]),[N,dA]=b.useState(!0),QA=b.useRef(null),JA=b.useRef(new Map);b.useRef(null);const pe=b.useRef(0);b.useImperativeHandle(n,()=>({zoomIn:()=>{const C=a.current?.timeScale();if(!C)return;const F=C.getVisibleRange();if(!F||!F.from||!F.to)return;const S=F.to-F.from,M=(F.from+F.to)/2,x=S*.8;try{C.setVisibleRange({from:M-x/2,to:M+x/2}),Z(C.getVisibleRange())}catch{}},zoomOut:()=>{const C=a.current?.timeScale();if(!C)return;const F=C.getVisibleRange();if(!F||!F.from||!F.to)return;const S=F.to-F.from,M=(F.from+F.to)/2,x=S*1.25;try{C.setVisibleRange({from:M-x/2,to:M+x/2}),Z(C.getVisibleRange())}catch{}},downloadChartAsPNG:()=>{const C=o.current;if(!C){typeof window.notify=="function"&&window.notify("Chart not ready","error");return}const F=C.querySelectorAll("canvas"),S=LA==="light"?"#ffffff":"#12161d";let M=null,x=0;if(F.forEach(K=>{if(K.width>0&&K.height>0){const AA=K.width*K.height;AA>x&&(x=AA,M=K)}}),M)try{const K=document.createElement("canvas");K.width=M.width,K.height=M.height;const AA=K.getContext("2d");AA.fillStyle=S,AA.fillRect(0,0,K.width,K.height),AA.drawImage(M,0,0);const V=document.createElement("a");V.download=`chart-${j}-${rA}-${Date.now()}.png`,V.href=K.toDataURL("image/png"),V.click(),typeof window.notify=="function"&&window.notify("Chart saved as PNG","success");return}catch(K){console.warn("Canvas export failed, trying html2canvas",K)}wv(C,{useCORS:!0,allowTaint:!0,backgroundColor:S,scale:2,logging:!1}).then(K=>{const AA=document.createElement("a");AA.download=`chart-${j}-${rA}-${Date.now()}.png`,AA.href=K.toDataURL("image/png"),AA.click(),typeof window.notify=="function"&&window.notify("Chart saved as PNG","success")}).catch(K=>{console.error("Chart screenshot failed",K),typeof window.notify=="function"&&window.notify("Screenshot failed. Try again.","error")})}}),[j,rA,LA]);const ze=b.useMemo(()=>D.length===0?[]:fA==="line"||fA==="area"?D.map(C=>({time:C.time,value:C.close})):D,[D,fA]),Qi=C=>{r?r(C):(W("BUY"),uA(!0))},_o=C=>{i?i(C):(W("SELL"),uA(!0))},Oo=()=>{uA(!1),W(null)};return b.useEffect(()=>{const C=o.current;if(!C)return;const F=C.getBoundingClientRect(),S=G=>{const pA=Math.abs(Number(G));return Number.isFinite(pA)?pA>=1e3?pA.toFixed(2):pA>=1?pA.toFixed(4):pA.toFixed(5):"0"},M=LA==="light",x=l0(C,{width:F.width||C.clientWidth,height:F.height||C.clientHeight,autoSize:!0,localization:{priceFormatter:S},layout:{background:{color:M?"#FFFFFF":"#0d1117",type:"solid"},textColor:M?"#020617":"#e6edf3",fontSize:12,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},grid:{vertLines:{visible:z,color:z?M?"rgba(100, 116, 139, 0.15)":"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0},horzLines:{visible:z,color:z?M?"rgba(100, 116, 139, 0.15)":"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0}},rightPriceScale:{borderColor:M?"#e5e7eb":"#21262d",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0,entireTextOnly:!1,textColor:M?"#64748b":"#8b949e"},leftPriceScale:{visible:!1},timeScale:{borderColor:M?"#e5e7eb":"#21262d",timeVisible:!0,secondsVisible:!1,rightOffset:12,barSpacing:6,minBarSpacing:4,shiftVisibleRangeOnNewBar:!1,fixLeftEdge:!1,fixRightEdge:!1,rightBarStaysOnScroll:!0,allowShiftVisibleRangeOnWhitespaceClick:!0},crosshair:{mode:Y===1?1:0,vertLine:{width:1,color:M?"#3b82f6":"#58a6ff",style:0,labelBackgroundColor:M?"#eff6ff":"#161b22",labelVisible:!0},horzLine:{width:1,color:M?"#3b82f6":"#58a6ff",style:0,labelBackgroundColor:M?"#eff6ff":"#161b22",labelVisible:!0},vertLineVisible:Y===1,horzLineVisible:Y===1},handleScroll:{mouseWheel:!0,pressedMouseMove:Y===null||Y===1,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},axisTouch:{time:!0,price:!0},mouseWheel:!0,pinch:!0}}),K=x.addCandlestickSeries({upColor:M?"#089981":"#26a69a",downColor:M?"#f23645":"#ef5350",wickUpColor:M?"#089981":"#26a69a",wickDownColor:M?"#f23645":"#ef5350",borderUpColor:M?"#089981":"#26a69a",borderDownColor:M?"#f23645":"#ef5350",borderVisible:!0});a.current=x,l.current=K,requestAnimationFrame(()=>{if(C&&x){const G=C.getBoundingClientRect();G.width>0&&G.height>0&&x.resize(G.width,G.height)}});const AA=x.timeScale(),V=()=>{if(L.current&&JA.current.size>0){const G=AA.getVisibleRange();G&&Z(G)}};AA.subscribeVisibleTimeRangeChange(V);const O=new ResizeObserver(G=>{for(const pA of G){const{width:BA,height:_}=pA.contentRect;if(BA>0&&_>0&&x){const nA=AA.getVisibleRange();x.resize(BA,_),nA&&setTimeout(()=>{try{AA.setVisibleRange(nA)}catch{}},0)}}});return O.observe(C),()=>{AA.unsubscribeVisibleTimeRangeChange(V),O.disconnect(),x.remove(),a.current=null,l.current=null,c.current=null,u.current=[]}},[]),b.useEffect(()=>{a.current&&a.current.applyOptions({grid:{vertLines:{visible:z,color:z?"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0},horzLines:{visible:z,color:z?"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0}}})},[z]),b.useEffect(()=>{const C=a.current;if(!C)return;const F=LA==="light";C.applyOptions({layout:{background:{color:F?"#FFFFFF":"#12161d"},textColor:F?"#020617":"#fff"},grid:{vertLines:{color:z?F?"rgba(100, 116, 139, 0.25)":"rgba(148, 163, 184, 0.2)":"transparent"},horzLines:{color:z?F?"rgba(100, 116, 139, 0.25)":"rgba(148, 163, 184, 0.2)":"transparent"}},rightPriceScale:{borderColor:F?"#e5e7eb":"#1e293b"},timeScale:{borderColor:F?"#e5e7eb":"#1e293b"},crosshair:{vertLine:{color:F?"#3b82f6":"#58a6ff",labelBackgroundColor:F?"#eff6ff":"#161b22",width:1},horzLine:{color:F?"#3b82f6":"#58a6ff",labelBackgroundColor:F?"#eff6ff":"#161b22",width:1}}})},[LA,z]),b.useEffect(()=>{if(!a.current)return;const F=!OA&&!(Y!==null&&Y!==1&&Y!==0),S=!OA;a.current.applyOptions({crosshair:{mode:Y===1?1:0,vertLine:{visible:Y===1,width:1,color:LA==="light"?"#94a3b8":"#64748b",style:0,labelBackgroundColor:LA==="light"?"#e5e7eb":"#1e293b"},horzLine:{visible:Y===1,width:1,color:LA==="light"?"#94a3b8":"#64748b",style:0,labelBackgroundColor:LA==="light"?"#e5e7eb":"#1e293b"}},handleScroll:{mouseWheel:S,pressedMouseMove:F,horzTouchDrag:F,vertTouchDrag:F},handleScale:{axisPressedMouseMove:{time:F,price:F},axisDoubleClickReset:{time:S,price:S},axisTouch:{time:F,price:F},mouseWheel:S,pinch:S}})},[Y,OA]),b.useEffect(()=>{(async()=>{if(!j||!rA){X([]),L.current=!1;return}try{if(dA(!0),X([]),L.current=!1,l.current)try{l.current.setData([])}catch{}console.log(`📊 Fetching candles for ${j} @ ${rA}`);const F=yu(rA),S=Qv(rA,F),M=ge||vv?.VITE_BASE_URL||"http://localhost:8000",x=Et?.candles||"/api/chart/candles",K=xt?.candles||{},AA={symbol:K.symbol||"symbol",timeframe:K.timeframe||"timeframe",limit:K.limit||"limit",daysBack:K.daysBack||"daysBack"},V={};V[AA.symbol]=j,V[AA.timeframe]=rA,V[AA.limit]=S,K.daysBack!==!1&&(V[AA.daysBack]=F);const O=await MA.get(`${M}${x}`,{params:V,timeout:1e4});let G=[];if(Array.isArray(O.data)?G=O.data:O.data&&O.data.data&&Array.isArray(O.data.data)?G=O.data.data:O.data&&Array.isArray(O.data)&&(G=O.data),G&&G.length>0){console.log(`✅ Loaded ${G.length} raw candles from server`);const{candles:pA,stats:BA}=Cc(G,j,rA);pA.length>0?(X(pA),JA.current=new Map,pA.forEach(_=>{JA.current.set(_.time,_)})):(console.warn(`⚠️ No valid candles after processing for ${j}`),X([]))}else console.warn(`⚠️ No candle data returned for ${j}`),X([])}catch(F){console.error(`❌ Error fetching ${j}:`,F.message),X([])}finally{dA(!1)}})()},[j,rA]),b.useEffect(()=>{console.log("🔧 [CANDLES DEBUG] Setting up WebSocket for candles:",{baseUrl:ge,symbol:j,timeframe:rA}),QA.current=Ur.getSocket();const C=QA.current;console.log("🔌 [CANDLES DEBUG] Socket status for CandlesGateway (ROOT namespace):",{socketId:C.id,connected:C.connected,baseUrl:ge,socketUrl:C.io?.uri||"unknown",namespace:C.nsp?.name||"/",hasAuth:!!C.auth,note:"This socket MUST connect to root namespace for CandlesGateway"});const F=()=>{if(console.log("📡 [CANDLES DEBUG] subscribeToCandles called:",{selectedSymbol:j,selectedTimeframe:rA,connected:C.connected,socketId:C.id}),j&&rA&&C.connected){const V={symbol:j,timeframe:rA};console.log("📡 [CANDLES DEBUG] Emitting subscribeCandles:",V),C.emit("subscribeCandles",V),console.log("✅ [CANDLES DEBUG] subscribeCandles event emitted successfully")}else console.warn("⚠️ [CANDLES DEBUG] Cannot subscribe to candles:",{selectedSymbol:j,selectedTimeframe:rA,connected:C.connected,socketId:C.id,reason:j?rA?"Not connected":"No timeframe":"No symbol"})},S=()=>{console.log("✅ [CANDLES DEBUG] Chart WebSocket connected to backend, socket ID:",C.id),setTimeout(()=>{j&&rA&&(console.log("📡 [CANDLES DEBUG] Backend connected, subscribing to candles..."),F())},200)},M=V=>{console.log("⚠️ [CANDLES DEBUG] Chart WebSocket disconnected:",V)},x=V=>{console.error("❌ [CANDLES DEBUG] Chart WebSocket connection error:",V),console.error("❌ [CANDLES DEBUG] Error details:",{message:V.message,description:V.description,context:V.context,type:V.type})};C.on("connect",S),C.on("disconnect",M),C.on("connect_error",x),C.on("subscription:confirmed",V=>{console.log("✅ [CANDLES DEBUG] Subscription confirmed:",V),V.type==="candles"&&console.log("✅ [CANDLES DEBUG] Candle subscription confirmed for:",{symbol:V.symbol,timeframe:V.timeframe})});const K=V=>{if(console.log("📊 [CANDLES DEBUG] candleUpdate event received:",V),!V||!V.candle||!V.symbol){console.warn("⚠️ [CANDLES DEBUG] Invalid candleUpdate data:",V);return}if(console.log("✅ [CANDLES DEBUG] Valid candleUpdate received:",{symbol:V.symbol,timeframe:V.timeframe,candle:V.candle,selectedSymbol:j,selectedTimeframe:rA}),V.symbol.toUpperCase()!==j?.toUpperCase()){console.log(`⚠️ [CANDLES DEBUG] Symbol mismatch: received ${V.symbol}, selected ${j}`);return}const{candle:O}=V;console.log("✅ [CANDLES DEBUG] Processing candle update:",{symbol:V.symbol,timeframe:V.timeframe,candle:O,candleTime:O.time,candleClose:O.close});const G=vc(O,j,rA);if(!G){console.warn("⚠️ [CANDLES DEBUG] Rejected realtime candle (invalid):",{symbol:V.symbol,candle:O});return}console.log("✅ [CANDLES DEBUG] Processed candle:",{time:G.time,open:G.open,high:G.high,low:G.low,close:G.close});const pA=Date.now();if(pA-pe.current<200)return;pe.current=pA;const BA=a.current?.timeScale(),_=BA?.getVisibleRange(),nA=l.current,$=a.current;if(!nA||!$||!L.current){console.warn("⚠️ [CANDLES DEBUG] Chart not ready for update:",{hasSeries:!!nA,hasChart:!!$,hasInitialized:L.current});return}const sA=nA?.seriesType?.(),eA=fA==="line"?"Line":fA==="area"?"Area":fA==="bars"?"Bar":"Candlestick";if(sA!==eA){console.warn("⚠️ [CANDLES DEBUG] Series type mismatch:",{expected:eA,actual:sA,chartType:fA,note:"Chart type switch might be in progress, skipping update"});return}try{const lA=JA.current.get(G.time),q=lA?{time:G.time,open:lA.open,high:Math.max(lA.high,G.close),low:Math.min(lA.low,G.close),close:G.close}:G;JA.current.set(G.time,q);try{fA==="line"||fA==="area"?nA.update({time:q.time,value:q.close}):nA.update(q),BA&&_&&Z(_),console.log("✅ [CANDLES DEBUG] Candle update completed successfully")}catch(oA){throw console.error("❌ [CANDLES DEBUG] Error in s.update():",oA),console.error("❌ [CANDLES DEBUG] Series type:",nA?.seriesType?.()),console.error("❌ [CANDLES DEBUG] Processed candle:",G),oA}}catch(lA){console.error("❌ [CANDLES DEBUG] Error updating candle:",lA),console.error("❌ [CANDLES DEBUG] Error stack:",lA.stack)}};C.on("candleUpdate",K);const AA=()=>{C.connected&&j&&rA?(console.log("✅ [CANDLES DEBUG] Socket connected, subscribing to backend..."),F()):console.log("⏳ [CANDLES DEBUG] Waiting for socket connection...",{connected:C.connected,hasSymbol:!!j,hasTimeframe:!!rA})};if(C.connected)AA();else{const V=()=>{console.log("✅ [CANDLES DEBUG] Socket connected to backend, subscribing..."),setTimeout(AA,200)};C.once("connect",V),setTimeout(()=>{C.connected&&AA()},500)}return()=>{C.off("candleUpdate",K),C.off("connect",S),C.off("disconnect",M),C.off("connect_error",x),C.off("subscription:confirmed"),j&&rA&&C.connected&&(console.log(`🔌 Unsubscribing from: ${j}@${rA}`),C.emit("unsubscribeCandles",{symbol:j,timeframe:rA}))}},[j,rA,ge]),b.useEffect(()=>{const C=l.current,F=a.current;if(!(!C||!F)&&!(D.length===0&&L.current)){if(D.length===0&&!L.current){if(N)return;const S=F.timeScale();C.setData([]),S.fitContent();return}if(!L.current){const S=F.timeScale(),M=hA(j,rA);J.current,J.current=M,console.log("sorted candles 1");const x=[...D].sort((AA,V)=>AA.time-V.time);if(console.log("📊 [CANDLES DEBUG] Initializing chart with candles:",{candleCount:x?.length,chartType:fA,seriesType:C?.seriesType?.()||"unknown",firstCandle:x[0],lastCandle:x[x?.length-1]}),console.log("sorted candles 2"),fA==="line"||fA==="area"){const AA=x?.map(V=>({time:V.time,value:V.close})).filter(V=>V.time!=null);AA.length>0&&(console.log("📊 [CANDLES DEBUG] Setting line/area data:",AA.length,"points"),C.setData(AA),console.log("✅ [CANDLES DEBUG] Line/area data set successfully"))}else console.log("sorted candles 3"),x?.length>0&&(console.log("📊 [CANDLES DEBUG] Setting candlestick data:",x?.length,"candles"),console.log("📊 [CANDLES DEBUG] First candle sample:",x[0]),console.log("📊 [CANDLES DEBUG] Last candle sample:",x[x?.length-1]),C.setData(x),console.log("✅ [CANDLES DEBUG] Candlestick data set successfully"));if(console.log("sorted candles 4"),x?.length>0){const AA=x[x?.length-1].time,V=Sr(rA)||60,O=rA==="M1"?150:rA==="M5"?120:100,G=AA-O*V;console.log("📊 [CANDLES DEBUG] Setting visible range:",{from:G,to:AA+V*2,visibleBars:O,timeframeSeconds:V});try{S.setVisibleRange({from:G,to:AA+V*2}),console.log("✅ [CANDLES DEBUG] Visible range set successfully")}catch(pA){console.warn("⚠️ [CANDLES DEBUG] Failed to set visible range, using fitContent:",pA),S.fitContent()}}else console.warn("⚠️ [CANDLES DEBUG] No candles to set visible range, using fitContent"),S.fitContent();try{F.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0}),console.log("✅ [CANDLES DEBUG] Price scale configured successfully")}catch{console.warn("⚠️ [CANDLES DEBUG] Failed to configure price scale")}L.current=!0;const K=S.getVisibleRange();Z(K),console.log("sorted candles 5"),console.log("✅ [CANDLES DEBUG] Chart initialization completed:",{hasInitialized:L.current,visibleRange:K,candleCount:x?.length})}}},[D.length,fA,j,rA]),b.useEffect(()=>{const C=a.current;if(!C||!L.current||D.length===0){console.log("⏳ [CANDLES DEBUG] Chart type switch skipped:",{hasChart:!!C,hasInitialized:L.current,candleCount:D.length,chartType:fA});return}console.log("🔄 [CANDLES DEBUG] Switching chart type:",{from:l.current?.seriesType?.()||"unknown",to:fA,candleCount:D.length});const F=C.timeScale(),S=F.getVisibleRange()||aA();if(l.current)try{C.removeSeries(l.current)}catch{}if(c.current)try{C.removeSeries(c.current),c.current=null}catch{}let M;if(fA==="bars"){const x=LA==="light";M=C.addBarSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",scaleMargins:{top:.1,bottom:.1}}),console.log("sorted candles 6");const K=[...D].sort((AA,V)=>AA.time-V.time);K?.length>0&&M.setData(K)}else if(fA==="line"){M=C.addLineSeries({color:"#38bdf8",lineWidth:2,priceLineVisible:!1,lastValueVisible:!0,scaleMargins:{top:.1,bottom:.1}});const x=ie(ze);x.length>0&&M.setData(x)}else if(fA==="area"){M=C.addAreaSeries({lineColor:"#38bdf8",topColor:"rgba(56,189,248,0.4)",bottomColor:"rgba(56,189,248,0.0)",lineWidth:2,priceLineVisible:!1,lastValueVisible:!0,scaleMargins:{top:.1,bottom:.1}});const x=ie(ze);x.length>0&&M.setData(x)}else if(fA==="volume ticks"||fA==="volume"){const x=LA==="light";M=C.addCandlestickSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",wickUpColor:x?"#089981":"#26A69A",wickDownColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",borderVisible:!0,priceScaleId:"right"}),console.log("sorted candles 7");const K=[...D].sort((O,G)=>O.time-G.time);K?.length>0&&M.setData(K);const AA=C.addHistogramSeries({priceFormat:{type:"volume"},priceScaleId:"vol",base:0,priceLineVisible:!1,lastValueVisible:!1,color:"rgba(38,166,154,0.15)"});C.priceScale("right").applyOptions({scaleMargins:{top:.05,bottom:.3}}),C.priceScale("vol").applyOptions({scaleMargins:{top:.75,bottom:0},visible:!1}),console.log("sorted candles 8");const V=K?.map(O=>({time:O.time,value:O.volume||0,color:O.close>=O.open?"rgba(38,166,154,0.25)":"rgba(239,83,80,0.25)"}));V.length>0&&AA.setData(V),c.current=AA}else{const x=LA==="light";M=C.addCandlestickSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",wickUpColor:x?"#089981":"#26A69A",wickDownColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",borderVisible:!0,scaleMargins:{top:.1,bottom:.1}}),console.log("sorted candles 9");const K=[...D].sort((AA,V)=>AA.time-V.time);K?.length>0&&M.setData(K)}if(l.current=M,S&&L.current)setTimeout(()=>{try{F.setVisibleRange(S),Z(S)}catch{if(D.length>0)try{const K=D[D.length-1].time,AA=K-6e3;F.setVisibleRange({from:AA,to:K}),Z(F.getVisibleRange())}catch{F.fitContent(),Z(F.getVisibleRange())}}try{C.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0})}catch{}},0);else if(!L.current){F.fitContent();try{C.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0})}catch{}L.current=!0,Z(F.getVisibleRange())}},[fA,D.length,ze.length]),b.useEffect(()=>{const C=a.current,F=c.current;if(!C||!F||!L.current||D.length===0||fA!=="volume"&&fA!=="volume ticks")return;console.log("sorted candles 10");const S=[...D].sort((x,K)=>x.time-K.time);console.log("sorted candles 11");const M=S?.map(x=>({time:x.time,value:x.volume||0,color:x.close>=x.open?"rgba(38,166,154,0.25)":"rgba(239,83,80,0.25)"}));M.length>0&&F.setData(M)},[D,fA]),b.useEffect(()=>{const C=a.current,F=l.current,S=o.current;if(!C||!F||!S)return;const x=Y!==null?[null,null,"trendline","parallellines","fibonacci","rectangle","pricelevel","text",null,null,null,null,null,null,null,null,null][Y]:null;if(!x){if(f.current=!1,g.current=null,B.current=null,p.current=null,d.current?.series)try{C.removeSeries(d.current.series)}catch{}d.current=null;return}if(x==="pricelevel"){const O=G=>{const pA=S.getBoundingClientRect(),BA=G.clientX-pA.left,_=G.clientY-pA.top,nA=C.timeScale().coordinateToTime(BA),$=F.coordinateToPrice(_);if(nA==null||$==null)return;const eA={type:"pricelevel",priceLine:F.createPriceLine({price:$,color:"#3b82f6",lineWidth:2,lineStyle:2,axisLabelVisible:!0,title:$.toFixed(5)}),price:$};vA(lA=>[...lA,eA]),u.current.push(eA)};return S.addEventListener("click",O),()=>{S.removeEventListener("click",O)}}if(x==="trendline"){const O=_=>{_.preventDefault(),_.stopPropagation(),_.stopImmediatePropagation();const nA=S.getBoundingClientRect(),$=_.clientX-nA.left,sA=_.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(!(eA==null||lA==null)&&(eA=zA(eA),eA!=null))if(p.current===null){p.current={time:eA,price:lA};const q=C.addLineSeries({color:"#22c55e",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"trendline",series:q},q.setData([{time:eA,value:lA}])}else{const q=p.current,oA={time:eA,price:lA},wA=1,DA=1e-5,EA=Math.abs(oA.time-q.time),NA=Math.abs(oA.price-q.price);if(EA<wA&&NA<DA){try{C.removeSeries(d.current.series)}catch{}p.current=null,d.current=null;return}const We={time:q.time,price:q.price},Xe={time:oA.time,price:oA.price},Ue=ie([{time:We.time,value:We.price},{time:Xe.time,value:Xe.price}]);if(Ue.length>0){d.current.series.setData(Ue);const ut={type:"trendline",series:d.current.series,point1:We,point2:Xe};vA(St=>[...St,ut]),u.current.push(ut)}I(null),p.current=null,d.current=null}},G=_=>{if(p.current===null||d.current?.type!=="trendline")return;_.preventDefault(),_.stopPropagation();const nA=S.getBoundingClientRect(),$=_.clientX-nA.left,sA=_.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(eA==null||lA==null||(eA=zA(eA),eA==null))return;const q=p.current,oA=ie([{time:q.time,value:q.price},{time:eA,value:lA}]);oA.length>0&&d.current.series.setData(oA)},pA=_=>{_.stopPropagation()},BA={capture:!0,passive:!1};return S.addEventListener("click",O,BA),S.addEventListener("mousemove",G,BA),S.addEventListener("mousemove",pA,BA),()=>{if(p.current=null,d.current?.type==="trendline"&&d.current?.series){try{C.removeSeries(d.current.series)}catch{}d.current=null}S.removeEventListener("click",O,BA),S.removeEventListener("mousemove",G,BA),S.removeEventListener("mousemove",pA,BA)}}if(x==="parallellines"){const O={capture:!0,passive:!1},G=$=>{$.preventDefault(),$.stopPropagation(),$.stopImmediatePropagation();const sA=S.getBoundingClientRect(),eA=$.clientX-sA.left,lA=$.clientY-sA.top;let q=C.timeScale().coordinateToTime(eA);const oA=F.coordinateToPrice(lA);if(q==null||oA==null||(q=zA(q),q==null))return;const wA={time:q,price:oA},DA=m.current;if(DA.length===0){m.current=[wA];const EA=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});EA.setData([{time:q,value:oA}]),d.current={type:"parallellines",series:EA,previewLine:null}}else if(DA.length===1){m.current=[DA[0],wA];const EA=ie([{time:DA[0].time,value:DA[0].price},{time:q,value:oA}]);EA.length>0&&d.current.series.setData(EA),d.current.previewLine=C.addLineSeries({color:"#8b5cf6",lineWidth:2,lineStyle:2,priceLineVisible:!1,lastValueVisible:!1});const NA=Mo(C,F,DA[0],wA,wA);NA&&d.current.previewLine.setData(ie([{time:NA[0].time,value:NA[0].price},{time:NA[1].time,value:NA[1].price}]))}else{const[EA,NA]=DA,We=wA;if(d.current?.previewLine){try{C.removeSeries(d.current.previewLine)}catch{}d.current.previewLine=null}const Xe=d.current?.series;if(!Xe)return;const Ue=Mo(C,F,EA,NA,We);if(!Ue)return;const ut=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});Xe.setData(ie([{time:EA.time,value:EA.price},{time:NA.time,value:NA.price}])),ut.setData(ie([{time:Ue[0].time,value:Ue[0].price},{time:Ue[1].time,value:Ue[1].price}]));const St={type:"parallellines",point1:EA,point2:NA,point3:We,baseLine:Xe,parallelLine:ut};vA(Ps=>[...Ps,St]),u.current.push(St),I(null),m.current=[],d.current=null}},pA=$=>{const sA=m.current;if(sA.length!==1||!d.current?.series)return;const eA=S.getBoundingClientRect(),lA=$.clientX-eA.left,q=$.clientY-eA.top;let oA=C.timeScale().coordinateToTime(lA);const wA=F.coordinateToPrice(q);if(oA==null||wA==null||(oA=zA(oA),oA==null))return;const DA=ie([{time:sA[0].time,value:sA[0].price},{time:oA,value:wA}]);DA.length>0&&d.current.series.setData(DA)},BA=$=>{const sA=m.current;if(sA.length!==2||!d.current?.previewLine)return;const eA=S.getBoundingClientRect(),lA=$.clientX-eA.left,q=$.clientY-eA.top;let oA=C.timeScale().coordinateToTime(lA);const wA=F.coordinateToPrice(q);if(oA==null||wA==null||(oA=zA(oA),oA==null))return;const DA={time:oA,price:wA},EA=Mo(C,F,sA[0],sA[1],DA);EA&&d.current.previewLine.setData(ie([{time:EA[0].time,value:EA[0].price},{time:EA[1].time,value:EA[1].price}]))},_=$=>{pA($),BA($)},nA=$=>{$.stopPropagation()};return S.addEventListener("click",G,O),S.addEventListener("mousemove",_,O),S.addEventListener("mousemove",nA,O),()=>{if(m.current=[],d.current?.type==="parallellines"){try{d.current.series&&C.removeSeries(d.current.series),d.current.previewLine&&C.removeSeries(d.current.previewLine)}catch{}d.current=null}S.removeEventListener("click",G,O),S.removeEventListener("mousemove",_,O),S.removeEventListener("mousemove",nA,O)}}if(p.current=null,d.current?.type==="trendline"&&d.current?.series){try{C.removeSeries(d.current.series)}catch{}d.current=null}const K=O=>{if(O.preventDefault(),O.stopPropagation(),O.stopImmediatePropagation(),x==="trendline"||x==="parallellines"||x!=="rectangle"&&x!=="fibonacci")return;const G=S.getBoundingClientRect(),pA=O.clientX-G.left,BA=O.clientY-G.top;let _=C.timeScale().coordinateToTime(pA);const nA=F.coordinateToPrice(BA);if(!(_==null||nA==null)&&(_=zA(_),_!=null)){if(f.current=!0,g.current={time:_,price:nA},B.current=null,x==="rectangle"){const $=C.addBaselineSeries({baseValue:{type:"price",price:nA},topLineColor:"#2563eb",bottomLineColor:"#2563eb",topFillColor1:"rgba(59, 130, 246, 0.38)",topFillColor2:"rgba(59, 130, 246, 0.22)",bottomFillColor1:"rgba(59, 130, 246, 0.22)",bottomFillColor2:"rgba(59, 130, 246, 0.38)",priceLineVisible:!1,lastValueVisible:!1,lineWidth:2,lineStyle:0});d.current={type:"rectangle",series:$}}if(x==="fibonacci"){const $=C.addLineSeries({color:"#f59e0b",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"fibonacci",series:$,priceLines:[]}}if(x==="parallellines"){const $=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"parallellines",series:$,firstLine:null,secondLine:null}}}},AA=O=>{if(!f.current||!g.current||!d.current)return;O.preventDefault(),O.stopPropagation(),O.stopImmediatePropagation();const G=S.getBoundingClientRect(),pA=O.clientX-G.left,BA=O.clientY-G.top;let _=C.timeScale().coordinateToTime(pA);const nA=F.coordinateToPrice(BA);if(_==null||nA==null||(_=zA(_),_==null))return;B.current={time:_,price:nA};const $=g.current;if(d.current.type==="rectangle"){const sA=Math.max($.price,nA),eA=Math.min($.price,nA),lA=zA(Math.min($.time,_)),q=zA(Math.max($.time,_));if(lA==null||q==null||Math.abs(q-lA)<1||Math.abs(sA-eA)<1e-5)return;const oA=d.current.series;oA.setData(ie([{time:lA,value:sA},{time:q,value:sA}])),oA.applyOptions({baseValue:{type:"price",price:eA}})}if(d.current.type==="fibonacci"){const sA=[{time:$.time,value:$.price},{time:_,value:nA}],eA=ie(sA);eA.length>0&&d.current.series.setData(eA),B.current={time:_,price:nA},d.current.priceLines&&(d.current.priceLines.forEach(lA=>{try{F.removePriceLine(lA)}catch{}}),d.current.priceLines=[])}if(d.current.type==="parallellines")if(d.current.firstLine){const sA=d.current.firstLine;sA.endTime-sA.startTime;const eA=sA.endPrice-sA.startPrice,lA=nA,q=lA+eA;if(d.current.secondLine)d.current.secondLine.setData([{time:$.time,value:lA},{time:_,value:q}]);else{const oA=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});oA.setData([{time:$.time,value:lA},{time:_,value:q}]),d.current.secondLine=oA}}else d.current.series.setData([{time:$.time,value:$.price},{time:_,value:nA}])},V=O=>{if(O&&(O.preventDefault(),O.stopPropagation()),!f.current||!d.current||!g.current)return;const G=g.current,pA=B.current||G;if(d.current.type==="parallellines")if(d.current.firstLine){const BA={type:"parallellines",firstLine:d.current.series,secondLine:d.current.secondLine,firstLineData:d.current.firstLine};vA(_=>[..._,BA]),u.current.push(BA),I(null),d.current=null,f.current=!1,g.current=null,B.current=null;return}else{d.current.firstLine={startTime:G.time,startPrice:G.price,endTime:pA.time,endPrice:pA.price},f.current=!1,g.current=null,B.current=null;return}if(d.current.type==="fibonacci"){const _=(B.current||G).price;if(Math.abs(G.price-_)<1e-4){try{C.removeSeries(d.current.series)}catch{}f.current=!1,g.current=null,B.current=null,d.current=null;return}const nA=Math.max(G.price,_),$=Math.min(G.price,_),sA=nA-$,eA=[{level:0,label:"0.0%"},{level:.236,label:"23.6%"},{level:.382,label:"38.2%"},{level:.5,label:"50.0%"},{level:.618,label:"61.8%"},{level:.786,label:"78.6%"},{level:1,label:"100.0%"}],lA=[],q=d.current.series;try{C.removeSeries(q)}catch{}eA.forEach(({level:wA,label:DA})=>{const EA=nA-sA*wA,NA=F.createPriceLine({price:EA,color:wA===0||wA===1?"#f59e0b":"#fbbf24",lineWidth:wA===0||wA===1?2:1,lineStyle:wA===0||wA===1?0:2,axisLabelVisible:!0,title:`${DA} (${EA.toFixed(5)})`,textColor:wA===0||wA===1?"#f59e0b":"#fbbf24"});lA.push(NA)});const oA={type:"fibonacci",priceLines:lA,startPrice:G.price,endPrice:_,high:nA,low:$};vA(wA=>[...wA,oA]),u.current.push(oA),I(null)}if(d.current.type==="rectangle"){const BA=g.current,_=B.current||BA,nA=Math.max(BA.price,_.price),$=Math.min(BA.price,_.price),sA=zA(Math.min(BA.time,_.time)),eA=zA(Math.max(BA.time,_.time));if(sA!=null&&eA!=null&&Math.abs(eA-sA)>=1&&Math.abs(nA-$)>=1e-5){const lA=d.current.series;lA.setData(ie([{time:sA,value:nA},{time:eA,value:nA}])),lA.applyOptions({baseValue:{type:"price",price:$}});const q={type:"rectangle",timeStart:sA,timeEnd:eA,priceTop:nA,priceBottom:$,series:lA};vA(oA=>[...oA,q]),u.current.push(q),I(null)}else try{C.removeSeries(d.current.series)}catch{}}f.current=!1,g.current=null,B.current=null,d.current=null};if(x==="rectangle"||x==="fibonacci"||x==="parallellines"){const O={capture:!0,passive:!1},G=pA=>{f.current||pA.stopPropagation()};return S.addEventListener("mousedown",K,O),S.addEventListener("mousemove",AA,O),S.addEventListener("mousemove",G,O),S.addEventListener("mouseup",V,O),()=>{S.removeEventListener("mousedown",K,O),S.removeEventListener("mousemove",AA,O),S.removeEventListener("mousemove",G,O),S.removeEventListener("mouseup",V,O)}}},[Y,vA,I]),b.useEffect(()=>{const C=a.current,F=l.current,S=o.current,M=Y===null||Y===1;if(!M||!C||!F||!S){M||(v(null),E([]));return}const x=10,K=8;function AA(BA,_){const nA=FA.filter($=>$.type==="trendline"&&$.point1&&$.point2);for(let $=nA.length-1;$>=0;$--){const sA=nA[$],eA=C.timeScale().timeToCoordinate(sA.point1.time),lA=F.priceToCoordinate(sA.point1.price),q=C.timeScale().timeToCoordinate(sA.point2.time),oA=F.priceToCoordinate(sA.point2.price);if(eA==null||lA==null||q==null||oA==null)continue;const wA=Math.hypot(BA-eA,_-lA),DA=Math.hypot(BA-q,_-oA);if(wA<x)return{object:sA,mode:"handle1"};if(DA<x)return{object:sA,mode:"handle2"};if(yv(BA,_,eA,lA,q,oA)<K)return{object:sA,mode:"line"}}return null}const V=BA=>{const _=S.getBoundingClientRect(),nA=BA.clientX-_.left,$=BA.clientY-_.top,sA=AA(nA,$);sA?(BA.preventDefault(),BA.stopPropagation(),v(sA.object),U.current=sA.mode,sA.mode==="line"&&(T.current={x:nA,y:$,point1:{...sA.object.point1},point2:{...sA.object.point2}})):(v(null),U.current=null)},O=BA=>{if(!U.current)return;const _=k.current;if(!_||!_.point1||!_.point2)return;const nA=S.getBoundingClientRect(),$=BA.clientX-nA.left,sA=BA.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(!(eA==null||lA==null)&&(eA=zA(eA),eA!=null)){if(U.current==="handle1"){const q={time:eA,price:lA},oA=ie([{time:q.time,value:q.price},{time:_.point2.time,value:_.point2.price}]);oA.length>0&&_.series.setData(oA);const wA={..._,point1:q};vA(DA=>{const EA=DA.map(NA=>NA===_?wA:NA);return u.current=EA,EA}),v(wA),k.current=wA}else if(U.current==="handle2"){const q={time:eA,price:lA},oA=ie([{time:_.point1.time,value:_.point1.price},{time:q.time,value:q.price}]);oA.length>0&&_.series.setData(oA);const wA={..._,point2:q};vA(DA=>{const EA=DA.map(NA=>NA===_?wA:NA);return u.current=EA,EA}),v(wA),k.current=wA}else if(U.current==="line"){const q=T.current;if(!q)return;const oA=C.timeScale().coordinateToTime(q.x),wA=F.coordinateToPrice(q.y);if(oA==null||wA==null)return;const DA=eA-oA,EA=lA-wA,NA={time:zA(q.point1.time+DA),price:q.point1.price+EA},We={time:zA(q.point2.time+DA),price:q.point2.price+EA},Xe=ie([{time:NA.time,value:NA.price},{time:We.time,value:We.price}]);Xe.length>0&&_.series.setData(Xe);const Ue={..._,point1:NA,point2:We};vA(ut=>{const St=ut.map(Ps=>Ps===_?Ue:Ps);return u.current=St,St}),v(Ue),k.current=Ue}}},G=()=>{U.current=null,T.current=null},pA={capture:!0,passive:!1};return S.addEventListener("mousedown",V,pA),S.addEventListener("mousemove",O,pA),S.addEventListener("mouseup",G,pA),()=>{S.removeEventListener("mousedown",V,pA),S.removeEventListener("mousemove",O,pA),S.removeEventListener("mouseup",G,pA)}},[Y,FA,vA]),b.useEffect(()=>{const C=a.current,F=l.current;if(!C||!F)return;const S=()=>{const x=w;if(!x||x.type!=="trendline"||!x.point1||!x.point2){E([]);return}const K=C.timeScale(),AA=K.timeToCoordinate(x.point1.time),V=F.priceToCoordinate(x.point1.price),O=K.timeToCoordinate(x.point2.time),G=F.priceToCoordinate(x.point2.price);AA!=null&&V!=null&&O!=null&&G!=null?E([{x:AA,y:V},{x:O,y:G}]):E([])};S();const M=C.timeScale();return M.subscribeVisibleTimeRangeChange(S),()=>{M.unsubscribeVisibleTimeRangeChange(S)}},[w]),b.useEffect(()=>{!a.current||!l.current||u.current.forEach(C=>{C.series&&C.series.applyOptions({visible:mA}),C.priceLine&&C.priceLine.applyOptions(mA?{color:"#3b82f6",axisLabelVisible:!0,title:typeof C.price=="number"?C.price.toFixed(5):""}:{color:"rgba(0,0,0,0)",axisLabelVisible:!1,title:""}),C.type==="fibonacci"&&C.priceLines&&C.priceLines.forEach(F=>{try{F.applyOptions({lineVisible:mA,axisLabelVisible:mA})}catch{}}),C.type==="rectangle"&&C.series&&C.series.applyOptions({visible:mA}),C.type==="parallellines"&&(C.baseLine&&C.baseLine.applyOptions({visible:mA}),C.parallelLine&&C.parallelLine.applyOptions({visible:mA}),C.firstLine&&C.firstLine.applyOptions({visible:mA}),C.secondLine&&C.secondLine.applyOptions({visible:mA}))})},[mA,FA]),b.useEffect(()=>{!mA&&w&&(v(null),E([]))},[mA,w]),b.useEffect(()=>{if(u.current.length>FA.length){const C=u.current.filter((F,S)=>!FA.includes(F));w&&C.some(F=>F===w)&&(v(null),E([])),C.forEach(F=>{if(F.series&&a.current?.removeSeries(F.series),F.priceLine&&l.current?.removePriceLine(F.priceLine),F.type==="fibonacci"&&F.priceLines&&F.priceLines.forEach(S=>{try{l.current?.removePriceLine(S)}catch{}}),F.type==="rectangle"&&F.series)try{a.current?.removeSeries(F.series)}catch{}if(F.type==="parallellines")try{F.baseLine&&a.current?.removeSeries(F.baseLine),F.parallelLine&&a.current?.removeSeries(F.parallelLine),F.firstLine&&a.current?.removeSeries(F.firstLine),F.secondLine&&a.current?.removeSeries(F.secondLine)}catch{}}),u.current=FA}},[FA,w]),b.useEffect(()=>{const C=l.current;return C?(Te.current.forEach(S=>{try{C.removePriceLine(S)}catch{}}),Te.current=[],SA.filter(S=>S.symbol===j).forEach(S=>{const M=parseFloat(S.price);if(isNaN(M))return;const K=S.type==="BUY"?"#26A69A":"#EF5350",AA=C.createPriceLine({price:M,color:K,lineWidth:2,lineStyle:0,axisLabelVisible:!0,title:`${S.type} ${S.volume} @ ${S.price}`,textColor:K});Te.current.push(AA)}),()=>{Te.current.forEach(S=>{try{C.removePriceLine(S)}catch{}}),Te.current=[]}):void 0},[SA,j]),h.jsx("div",{className:`flex-1 flex flex-col min-w-0 overflow-hidden ${LA==="light"?"bg-white":"bg-[#12161d]"}`,children:h.jsxs("div",{ref:o,className:"flex-1 w-full h-full relative",style:{cursor:Y===1||Y!==null?"crosshair":"default",minHeight:0,minWidth:0},onDoubleClick:C=>{a.current&&!f.current&&(C.preventDefault(),C.stopPropagation(),a.current.timeScale().fitContent(),Z(a.current.timeScale().getVisibleRange()))},children:[t&&h.jsx("div",{className:"absolute top-3 left-3 z-50",children:h.jsx(uc,{bidPrice:A,askPrice:e,onBuyClick:Qi,onSellClick:_o})}),h.jsx(fc,{isOpen:qt,onClose:Oo,orderType:UA,bidPrice:A,askPrice:e}),mA&&w?.type==="trendline"&&w?.point1&&w?.point2&&y.length===2&&h.jsx("div",{className:"absolute inset-0 z-20 pointer-events-none","aria-hidden":!0,children:y.map((C,F)=>h.jsx("div",{className:"absolute w-[10px] h-[10px] rounded-full border-2 border-white bg-[#22c55e] shadow",style:{left:C.x-5,top:C.y-5}},F))})]})})}),_A={container:{position:"relative",display:"inline-block",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},button:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"6px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,cursor:"pointer",minWidth:"120px",justifyContent:"space-between",transition:"all 0.15s ease"},buttonHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},arrow:{fontSize:"10px",color:"#94a3b8",transition:"transform 0.2s ease"},arrowOpen:{transform:"rotate(180deg)"},dropdown:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.4)",zIndex:1e3,minWidth:"220px",maxHeight:"320px",overflow:"hidden",display:"flex",flexDirection:"column"},searchContainer:{padding:"8px",borderBottom:"1px solid #334155"},searchInput:{width:"100%",padding:"6px 10px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"12px",outline:"none",boxSizing:"border-box"},list:{overflowY:"auto",maxHeight:"260px",padding:"4px 0"},item:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",cursor:"pointer",fontSize:"13px",color:"#cbd5e1",transition:"background-color 0.1s ease"},itemSelected:{backgroundColor:"#1e3a5f",color:"#60a5fa"},symbolName:{fontWeight:600},symbolPrice:{fontSize:"11px",color:"#94a3b8"},priceUp:{color:"#26A69A"},priceDown:{color:"#EF5350"},categoryLabel:{padding:"6px 12px 4px",fontSize:"10px",fontWeight:700,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},empty:{padding:"16px",textAlign:"center",color:"#64748b",fontSize:"12px"}};function Fu({style:s,className:A}){const{selectedSymbol:e,setSelectedSymbol:t,symbols:r,symbolsLoading:i}=Ae(),[n,o]=b.useState(!1),[a,l]=b.useState(""),[c,u]=b.useState(-1),f=b.useRef(null),g=b.useRef(null);b.useEffect(()=>{const w=v=>{f.current&&!f.current.contains(v.target)&&(o(!1),l(""))};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),b.useEffect(()=>{n&&g.current&&g.current.focus()},[n]);const B=r.filter(w=>w.symbol.toLowerCase().includes(a.toLowerCase())),d=B.filter(w=>!w.symbol.endsWith("USDT")),p=B.filter(w=>w.symbol.endsWith("USDT")),m=w=>{t(w),o(!1),l("")};return r.find(w=>w.symbol===e),h.jsxs("div",{ref:f,style:{..._A.container,...s},className:A,children:[h.jsxs("button",{style:_A.button,onClick:()=>o(!n),onMouseEnter:w=>Object.assign(w.currentTarget.style,_A.buttonHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:[h.jsx("span",{children:i?"Loading...":e||"Select Coin"}),h.jsx("span",{style:{..._A.arrow,...n?_A.arrowOpen:{}},children:"▼"})]}),n&&h.jsxs("div",{style:_A.dropdown,children:[h.jsx("div",{style:_A.searchContainer,children:h.jsx("input",{ref:g,style:_A.searchInput,type:"text",placeholder:"Search symbol...",value:a,onChange:w=>l(w.target.value)})}),h.jsx("div",{style:_A.list,children:B.length===0?h.jsx("div",{style:_A.empty,children:"No symbols found"}):h.jsxs(h.Fragment,{children:[d.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{style:_A.categoryLabel,children:"Forex & Metals"}),d.map(w=>h.jsxs("div",{style:{..._A.item,...w.symbol===e?_A.itemSelected:{}},onClick:()=>m(w.symbol),onMouseEnter:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="#334155")},onMouseLeave:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="transparent")},children:[h.jsx("span",{style:_A.symbolName,children:w.symbol}),w.bid&&h.jsx("span",{style:{..._A.symbolPrice,...parseFloat(w.change)>=0?_A.priceUp:_A.priceDown},children:parseFloat(w.bid).toFixed(5)})]},w.symbol))]}),p.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{style:_A.categoryLabel,children:"Crypto"}),p.map(w=>h.jsxs("div",{style:{..._A.item,...w.symbol===e?_A.itemSelected:{}},onClick:()=>m(w.symbol),onMouseEnter:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="#334155")},onMouseLeave:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="transparent")},children:[h.jsx("span",{style:_A.symbolName,children:w.symbol}),w.bid&&h.jsx("span",{style:{..._A.symbolPrice,...parseFloat(w.change)>=0?_A.priceUp:_A.priceDown},children:parseFloat(w.bid).toFixed(2)})]},w.symbol))]})]})})]})]})}const Ge={container:{display:"inline-flex",alignItems:"center",gap:"4px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",color:"#94a3b8",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.03em",marginRight:"4px",whiteSpace:"nowrap"},btn:{display:"flex",alignItems:"center",justifyContent:"center",width:"26px",height:"26px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"14px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",padding:0,lineHeight:1,userSelect:"none"},btnHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},input:{width:"70px",padding:"4px 6px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"center",outline:"none",boxSizing:"border-box"},presets:{display:"inline-flex",gap:"2px",marginLeft:"4px"},preset:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},presetActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}},Uv=[.01,.05,.1,.5,1];function Uu({value:s,onChange:A,min:e=.01,max:t=100,step:r=.01,presets:i=Uv,showPresets:n=!0,showLabel:o=!0,label:a="Vol",style:l,className:c}){const[u,f]=b.useState(.1),g=s!==void 0?s:u,B=b.useCallback(w=>{const v=Math.max(e,Math.min(t,parseFloat(w)||e)),y=Math.round(v/r)*r,E=parseFloat(y.toFixed(8));s!==void 0||f(E),A?.(E)},[e,t,r,s,A]),d=()=>B(g+r),p=()=>B(g-r),m=(g>=1,g.toFixed(2));return h.jsxs("div",{style:{...Ge.container,...l},className:c,children:[o&&h.jsx("span",{style:Ge.label,children:a}),h.jsx("button",{style:Ge.btn,onClick:p,onMouseEnter:w=>Object.assign(w.currentTarget.style,Ge.btnHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:"−"}),h.jsx("input",{style:Ge.input,type:"text",value:m,onChange:w=>{const v=w.target.value;if(v===""||v==="."||v==="0.")return;const y=parseFloat(v);isNaN(y)||B(y)},onBlur:()=>B(g)}),h.jsx("button",{style:Ge.btn,onClick:d,onMouseEnter:w=>Object.assign(w.currentTarget.style,Ge.btnHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:"+"}),n&&i&&i.length>0&&h.jsx("div",{style:Ge.presets,children:i.map(w=>h.jsx("button",{style:{...Ge.preset,...Math.abs(g-w)<1e-4?Ge.presetActive:{}},onClick:()=>B(w),onMouseEnter:v=>{Math.abs(g-w)>=1e-4&&Object.assign(v.currentTarget.style,{borderColor:"#3b82f6"})},onMouseLeave:v=>{Math.abs(g-w)>=1e-4&&(v.currentTarget.style.borderColor="#334155")},children:w},w))})]})}const de={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",fontWeight:700,color:"#EF5350",textTransform:"uppercase",letterSpacing:"0.03em",whiteSpace:"nowrap"},toggle:{position:"relative",width:"32px",height:"18px",borderRadius:"9px",cursor:"pointer",transition:"background-color 0.2s ease",border:"none",padding:0},toggleOff:{backgroundColor:"#334155"},toggleOn:{backgroundColor:"#EF5350"},toggleKnob:{position:"absolute",top:"2px",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#fff",transition:"left 0.2s ease"},knobOff:{left:"2px"},knobOn:{left:"16px"},inputGroup:{display:"inline-flex",alignItems:"center",gap:"4px"},input:{width:"90px",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"right",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease"},modeBtn:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"10px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},modeBtnActive:{backgroundColor:"#3b1515",borderColor:"#EF5350",color:"#EF5350"}};function Eu({value:s,onChange:A,enabled:e,onEnabledChange:t,mode:r,onModeChange:i,showToggle:n=!0,showModeSwitch:o=!0,showLabel:a=!0,label:l="SL",style:c,className:u}){const{currentSymbolData:f}=Ae(),[g,B]=b.useState(""),[d,p]=b.useState(!1),[m,w]=b.useState("price"),v=s!==void 0?s:g,y=e!==void 0?e:d,E=r!==void 0?r:m,U=b.useCallback(J=>{e!==void 0||p(J),t?.(J)},[e,t]),T=b.useCallback(J=>{r!==void 0||w(J),i?.(J)},[r,i]),k=b.useCallback(J=>{s!==void 0||B(J),A?.(J)},[s,A]),L=J=>{const hA=J.target.value;if(hA===""||hA==="."||hA==="0."){k(hA);return}const aA=parseFloat(hA);isNaN(aA)||k(hA)},iA=E==="price"?f?.bid?parseFloat(f.bid).toFixed(5):"0.00000":"50";return h.jsxs("div",{style:{...de.container,...c},className:u,children:[a&&h.jsx("span",{style:de.label,children:l}),n&&h.jsx("button",{style:{...de.toggle,...y?de.toggleOn:de.toggleOff},onClick:()=>U(!y),children:h.jsx("div",{style:{...de.toggleKnob,...y?de.knobOn:de.knobOff}})}),(y||!n)&&h.jsxs("div",{style:de.inputGroup,children:[h.jsx("input",{style:de.input,type:"text",value:v,onChange:L,placeholder:iA,onFocus:J=>J.currentTarget.style.borderColor="#EF5350",onBlur:J=>J.currentTarget.style.borderColor="#334155"}),o&&h.jsxs(h.Fragment,{children:[h.jsx("button",{style:{...de.modeBtn,...E==="price"?de.modeBtnActive:{}},onClick:()=>T("price"),children:"Price"}),h.jsx("button",{style:{...de.modeBtn,...E==="pips"?de.modeBtnActive:{}},onClick:()=>T("pips"),children:"Pips"})]})]})]})}const Be={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",fontWeight:700,color:"#26A69A",textTransform:"uppercase",letterSpacing:"0.03em",whiteSpace:"nowrap"},toggle:{position:"relative",width:"32px",height:"18px",borderRadius:"9px",cursor:"pointer",transition:"background-color 0.2s ease",border:"none",padding:0},toggleOff:{backgroundColor:"#334155"},toggleOn:{backgroundColor:"#26A69A"},toggleKnob:{position:"absolute",top:"2px",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#fff",transition:"left 0.2s ease"},knobOff:{left:"2px"},knobOn:{left:"16px"},inputGroup:{display:"inline-flex",alignItems:"center",gap:"4px"},input:{width:"90px",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"right",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease"},modeBtn:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"10px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},modeBtnActive:{backgroundColor:"#0d2e2a",borderColor:"#26A69A",color:"#26A69A"}};function xu({value:s,onChange:A,enabled:e,onEnabledChange:t,mode:r,onModeChange:i,showToggle:n=!0,showModeSwitch:o=!0,showLabel:a=!0,label:l="TP",style:c,className:u}){const{currentSymbolData:f}=Ae(),[g,B]=b.useState(""),[d,p]=b.useState(!1),[m,w]=b.useState("price"),v=s!==void 0?s:g,y=e!==void 0?e:d,E=r!==void 0?r:m,U=b.useCallback(J=>{e!==void 0||p(J),t?.(J)},[e,t]),T=b.useCallback(J=>{r!==void 0||w(J),i?.(J)},[r,i]),k=b.useCallback(J=>{s!==void 0||B(J),A?.(J)},[s,A]),L=J=>{const hA=J.target.value;if(hA===""||hA==="."||hA==="0."){k(hA);return}const aA=parseFloat(hA);isNaN(aA)||k(hA)},iA=E==="price"?f?.ask?parseFloat(f.ask).toFixed(5):"0.00000":"50";return h.jsxs("div",{style:{...Be.container,...c},className:u,children:[a&&h.jsx("span",{style:Be.label,children:l}),n&&h.jsx("button",{style:{...Be.toggle,...y?Be.toggleOn:Be.toggleOff},onClick:()=>U(!y),children:h.jsx("div",{style:{...Be.toggleKnob,...y?Be.knobOn:Be.knobOff}})}),(y||!n)&&h.jsxs("div",{style:Be.inputGroup,children:[h.jsx("input",{style:Be.input,type:"text",value:v,onChange:L,placeholder:iA,onFocus:J=>J.currentTarget.style.borderColor="#26A69A",onBlur:J=>J.currentTarget.style.borderColor="#334155"}),o&&h.jsxs(h.Fragment,{children:[h.jsx("button",{style:{...Be.modeBtn,...E==="price"?Be.modeBtnActive:{}},onClick:()=>T("price"),children:"Price"}),h.jsx("button",{style:{...Be.modeBtn,...E==="pips"?Be.modeBtnActive:{}},onClick:()=>T("pips"),children:"Pips"})]})]})]})}const Ev=[{id:1,name:"Crosshair",icon:"+"},{id:2,name:"Trend Line",icon:"╱"},{id:3,name:"Parallel Channel",icon:"═"},{id:4,name:"Fibonacci",icon:"≡"},{id:5,name:"Rectangle",icon:"▭"},{id:6,name:"Price Level",icon:"─"}],Re={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",color:"#94a3b8",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.03em",marginRight:"4px",whiteSpace:"nowrap"},btn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"14px",cursor:"pointer",transition:"all 0.15s ease",padding:0,position:"relative"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"},btnHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},tooltip:{position:"absolute",bottom:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"11px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:100},divider:{width:"1px",height:"20px",backgroundColor:"#334155",margin:"0 4px"},deleteBtn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease",padding:0},deleteBtnHover:{borderColor:"#EF5350",backgroundColor:"#3b1515",color:"#EF5350"},visibilityBtn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease",padding:0}};function Su({showLabel:s=!0,showDelete:A=!0,showVisibility:e=!0,tools:t,label:r="Draw",style:i,className:n}){const{activeTool:o,setActiveTool:a,drawingsVisible:l,setDrawingsVisible:c,chartObjects:u,setChartObjects:f}=Ae(),[g,B]=b.useState(null),d=t||Ev,p=v=>{a(o===v?null:v)},m=()=>{f([]),a(null)},w=()=>{c(!l)};return h.jsxs("div",{style:{...Re.container,...i},className:n,children:[s&&h.jsx("span",{style:Re.label,children:r}),d.map(v=>h.jsxs("button",{style:{...Re.btn,...o===v.id?Re.btnActive:{}},onClick:()=>p(v.id),onMouseEnter:y=>{B(v.id),o!==v.id&&Object.assign(y.currentTarget.style,Re.btnHover)},onMouseLeave:y=>{B(null),o!==v.id&&(y.currentTarget.style.borderColor="#334155",y.currentTarget.style.backgroundColor="#1e293b",y.currentTarget.style.color="#94a3b8")},title:v.name,children:[v.icon,g===v.id&&h.jsx("div",{style:Re.tooltip,children:v.name})]},v.id)),(A||e)&&h.jsx("div",{style:Re.divider}),e&&h.jsx("button",{style:{...Re.visibilityBtn,...l?{}:{color:"#64748b",backgroundColor:"#0f172a"}},onClick:w,onMouseEnter:v=>{v.currentTarget.style.borderColor="#3b82f6"},onMouseLeave:v=>{v.currentTarget.style.borderColor="#334155"},title:l?"Hide Drawings":"Show Drawings",children:l?"👁":"○"}),A&&h.jsx("button",{style:Re.deleteBtn,onClick:m,onMouseEnter:v=>Object.assign(v.currentTarget.style,Re.deleteBtnHover),onMouseLeave:v=>{v.currentTarget.style.borderColor="#334155",v.currentTarget.style.backgroundColor="#1e293b",v.currentTarget.style.color="#94a3b8"},title:"Delete All Drawings",children:"🗑"})]})}const Hu={toolbar:{display:"flex",alignItems:"center",gap:"12px",padding:"6px 12px",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",flexWrap:"wrap",minHeight:"42px"},divider:{width:"1px",height:"24px",backgroundColor:"#1e293b",flexShrink:0}};function xv({showCoinSelector:s=!0,showVolumeControl:A=!0,showStopLoss:e=!0,showTakeProfit:t=!0,showDrawingTools:r=!0,showDividers:i=!0,volume:n,onVolumeChange:o,stopLoss:a,onStopLossChange:l,stopLossEnabled:c,onStopLossEnabledChange:u,takeProfit:f,onTakeProfitChange:g,takeProfitEnabled:B,onTakeProfitEnabledChange:d,coinSelectorProps:p={},volumeControlProps:m={},stopLossProps:w={},takeProfitProps:v={},drawingToolsProps:y={},style:E,className:U}){const T=[];s&&T.push(h.jsx(Fu,{...p},"coin")),A&&T.push(h.jsx(Uu,{value:n,onChange:o,...m},"volume")),e&&T.push(h.jsx(Eu,{value:a,onChange:l,enabled:c,onEnabledChange:u,...w},"sl")),t&&T.push(h.jsx(xu,{value:f,onChange:g,enabled:B,onEnabledChange:d,...v},"tp")),r&&T.push(h.jsx(Su,{...y},"draw"));const k=[];return T.forEach((L,iA)=>{k.push(L),i&&iA<T.length-1&&k.push(h.jsx("div",{style:Hu.divider},`div-${iA}`))}),h.jsx("div",{style:{...Hu.toolbar,...E},className:U,children:k})}const Sv=[{label:"M1",value:"M1"},{label:"M5",value:"M5"},{label:"M15",value:"M15"},{label:"M30",value:"M30"},{label:"H1",value:"H1"},{label:"H4",value:"H4"},{label:"D1",value:"D1"},{label:"W1",value:"W1"}],Do={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},btn:{padding:"4px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}};function Hv({style:s,className:A}){const{selectedTimeframe:e,setSelectedTimeframe:t}=Ae();return h.jsx("div",{style:{...Do.container,...s},className:A,children:Sv.map(r=>h.jsx("button",{style:{...Do.btn,...e===r.value?Do.btnActive:{}},onClick:()=>t(r.value),onMouseEnter:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#3b82f6")},onMouseLeave:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#334155")},children:r.label},r.value))})}const Lv=[{label:"Candles",value:"candles",icon:"📊"},{label:"Line",value:"line",icon:"📈"},{label:"Area",value:"area",icon:"▤"},{label:"Bars",value:"bars",icon:"▥"}],ko={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},btn:{padding:"4px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"3px"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}};function Iv({style:s,className:A}){const{chartType:e,setChartType:t}=Ae();return h.jsx("div",{style:{...ko.container,...s},className:A,children:Lv.map(r=>h.jsxs("button",{style:{...ko.btn,...e===r.value?ko.btnActive:{}},onClick:()=>t(r.value),onMouseEnter:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#3b82f6")},onMouseLeave:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#334155")},title:r.label,children:[h.jsx("span",{children:r.icon}),h.jsx("span",{children:r.label})]},r.value))})}const ae={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},priceBox:{display:"flex",flexDirection:"column",alignItems:"center",padding:"4px 10px",backgroundColor:"#0f172a",borderRadius:"4px",minWidth:"80px"},priceLabel:{fontSize:"9px",color:"#64748b",textTransform:"uppercase",fontWeight:600,letterSpacing:"0.05em"},priceValue:{fontSize:"13px",fontWeight:700,fontFamily:"monospace"},spread:{fontSize:"9px",color:"#64748b",padding:"0 4px",display:"flex",flexDirection:"column",alignItems:"center",gap:"1px"},spreadLabel:{fontSize:"8px",textTransform:"uppercase",letterSpacing:"0.05em"},spreadValue:{fontSize:"10px",fontWeight:700,color:"#94a3b8"},sellBtn:{padding:"6px 16px",backgroundColor:"#7f1d1d",border:"1px solid #991b1b",borderRadius:"4px",color:"#fca5a5",fontSize:"12px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",textTransform:"uppercase",letterSpacing:"0.03em",minWidth:"70px"},sellBtnHover:{backgroundColor:"#991b1b",borderColor:"#EF5350"},buyBtn:{padding:"6px 16px",backgroundColor:"#14532d",border:"1px solid #166534",borderRadius:"4px",color:"#86efac",fontSize:"12px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",textTransform:"uppercase",letterSpacing:"0.03em",minWidth:"70px"},buyBtnHover:{backgroundColor:"#166534",borderColor:"#26A69A"},status:{fontSize:"10px",padding:"2px 8px",borderRadius:"3px",fontWeight:600,whiteSpace:"nowrap"}};function Tv({volume:s=.1,stopLoss:A,takeProfit:e,onTradeExecuted:t,style:r,className:i}){const{selectedSymbol:n,currentSymbolData:o,setOrders:a,setUserBalance:l}=Ae(),[c,u]=b.useState(null),f=parseFloat(o?.bid||0),g=parseFloat(o?.ask||0),B=g>0&&f>0?Math.abs(g-f):0,d=w=>!w||w===0?"-.-----":w>=1e3?w.toFixed(2):w>=1?w.toFixed(4):w.toFixed(5),p=w=>w===0?"-":w>=1?w.toFixed(1):w>=.01?w.toFixed(3):(w*1e4).toFixed(1)+"p",m=b.useCallback(w=>{if(!n)return;const v=w==="BUY"?g:f;if(!v||v<=0){u({type:"error",message:"No price available"});return}const y={id:Date.now().toString(),ticket:Math.floor(Math.random()*9e5)+1e5,symbol:n,type:w,volume:s,price:v,stopLoss:A?parseFloat(A):null,takeProfit:e?parseFloat(e):null,status:"OPEN",profit:0,swap:0,openAt:new Date().toISOString(),time:new Date().toLocaleTimeString()};a(U=>[...U,y]);const E=s*v*.01;l(U=>U-E),u({type:"success",message:`${w} executed`}),t?.(y),setTimeout(()=>u(null),3e3)},[n,g,f,s,A,e,a,l,t]);return h.jsxs("div",{style:{...ae.container,...r},className:i,children:[h.jsx("button",{style:ae.sellBtn,onClick:()=>m("SELL"),onMouseEnter:w=>{Object.assign(w.currentTarget.style,ae.sellBtnHover)},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#7f1d1d",w.currentTarget.style.borderColor="#991b1b"},children:"Sell"}),h.jsxs("div",{style:ae.priceBox,children:[h.jsx("span",{style:ae.priceLabel,children:"Bid"}),h.jsx("span",{style:{...ae.priceValue,color:"#EF5350"},children:d(f)})]}),h.jsxs("div",{style:ae.spread,children:[h.jsx("span",{style:ae.spreadLabel,children:"Spread"}),h.jsx("span",{style:ae.spreadValue,children:p(B)})]}),h.jsxs("div",{style:ae.priceBox,children:[h.jsx("span",{style:ae.priceLabel,children:"Ask"}),h.jsx("span",{style:{...ae.priceValue,color:"#26A69A"},children:d(g)})]}),h.jsx("button",{style:ae.buyBtn,onClick:()=>m("BUY"),onMouseEnter:w=>{Object.assign(w.currentTarget.style,ae.buyBtnHover)},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#14532d",w.currentTarget.style.borderColor="#166534"},children:"Buy"}),c&&h.jsx("span",{style:{...ae.status,backgroundColor:c.type==="success"?"#14532d":"#7f1d1d",color:c.type==="success"?"#86efac":"#fca5a5",border:`1px solid ${c.type==="success"?"#166534":"#991b1b"}`},children:c.message})]})}const CA={container:{fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",backgroundColor:"#0f172a",borderTop:"1px solid #1e293b",fontSize:"11px",overflow:"hidden",display:"flex",flexDirection:"column"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 12px",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b"},headerTitle:{color:"#94a3b8",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},summary:{display:"flex",gap:"16px",fontSize:"11px"},summaryItem:{display:"flex",gap:"4px",alignItems:"center"},summaryLabel:{color:"#64748b",fontWeight:600},summaryValue:{fontWeight:700,fontFamily:"monospace"},table:{width:"100%",borderCollapse:"collapse"},th:{padding:"4px 8px",textAlign:"left",color:"#64748b",fontWeight:700,fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #1e293b",whiteSpace:"nowrap"},td:{padding:"4px 8px",color:"#cbd5e1",borderBottom:"1px solid #1e293b",whiteSpace:"nowrap",fontFamily:"monospace",fontSize:"11px"},closeBtn:{padding:"2px 8px",backgroundColor:"#7f1d1d",border:"1px solid #991b1b",borderRadius:"3px",color:"#fca5a5",fontSize:"10px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease"},emptyRow:{padding:"16px",textAlign:"center",color:"#475569",fontSize:"12px"},scrollArea:{overflowY:"auto",maxHeight:"200px"},typeBuy:{color:"#26A69A",fontWeight:700},typeSell:{color:"#EF5350",fontWeight:700}};function Mv({style:s,className:A,maxHeight:e=200}){const{orders:t,setOrders:r,symbols:i,accountSummary:n,setUserBalance:o}=Ae(),[a,l]=b.useState(null),c=t.filter(d=>d.status==="OPEN"||!d.closeAt),u=b.useCallback((d,p)=>{const m=i.find(w=>w.symbol===d);return m?parseFloat(p==="BUY"?m.bid||0:m.ask||0):0},[i]),f=b.useCallback(d=>{if(a)return;l(d.id);const p=u(d.symbol,d.type),w=(d.type==="BUY"?p-d.price:d.price-p)*d.volume,v=d.volume*d.price*.01;r(y=>y.filter(E=>E.id!==d.id)),o(y=>y+v+w),l(null)},[a,u,r,o]),g=d=>{const p=parseFloat(d);return!p||isNaN(p)?"-":p>=1e3?p.toFixed(2):p>=1?p.toFixed(4):p.toFixed(5)},B=d=>{const p=parseFloat(d);return isNaN(p)?"-":(p>=0?"+":"")+p.toFixed(2)};return h.jsxs("div",{style:{...CA.container,...s},className:A,children:[h.jsxs("div",{style:CA.header,children:[h.jsxs("span",{style:CA.headerTitle,children:["Positions (",c.length,")"]}),h.jsxs("div",{style:CA.summary,children:[h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Balance:"}),h.jsxs("span",{style:{...CA.summaryValue,color:"#e2e8f0"},children:["$",n?.balance?.toFixed(2)||"0.00"]})]}),h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Equity:"}),h.jsxs("span",{style:{...CA.summaryValue,color:(n?.equity||0)>=(n?.balance||0)?"#26A69A":"#EF5350"},children:["$",n?.equity?.toFixed(2)||"0.00"]})]}),h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Free:"}),h.jsxs("span",{style:{...CA.summaryValue,color:"#94a3b8"},children:["$",n?.freeMargin?.toFixed(2)||"0.00"]})]})]})]}),h.jsx("div",{style:{...CA.scrollArea,maxHeight:e},children:h.jsxs("table",{style:CA.table,children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{style:CA.th,children:"Symbol"}),h.jsx("th",{style:CA.th,children:"Type"}),h.jsx("th",{style:CA.th,children:"Volume"}),h.jsx("th",{style:CA.th,children:"Open Price"}),h.jsx("th",{style:CA.th,children:"Current"}),h.jsx("th",{style:CA.th,children:"SL"}),h.jsx("th",{style:CA.th,children:"TP"}),h.jsx("th",{style:CA.th,children:"Profit"}),h.jsx("th",{style:CA.th,children:"Action"})]})}),h.jsx("tbody",{children:c.length===0?h.jsx("tr",{children:h.jsx("td",{colSpan:9,style:CA.emptyRow,children:"No open positions"})}):c.map(d=>{const p=u(d.symbol,d.type),m=d.profit||0;return h.jsxs("tr",{children:[h.jsx("td",{style:{...CA.td,fontWeight:700,color:"#e2e8f0"},children:d.symbol}),h.jsx("td",{style:{...CA.td,...d.type==="BUY"?CA.typeBuy:CA.typeSell},children:d.type}),h.jsx("td",{style:CA.td,children:d.volume}),h.jsx("td",{style:CA.td,children:g(d.price)}),h.jsx("td",{style:CA.td,children:g(p)}),h.jsx("td",{style:CA.td,children:d.stopLoss?g(d.stopLoss):"-"}),h.jsx("td",{style:CA.td,children:d.takeProfit?g(d.takeProfit):"-"}),h.jsx("td",{style:{...CA.td,color:m>=0?"#26A69A":"#EF5350",fontWeight:700},children:B(m)}),h.jsx("td",{style:CA.td,children:h.jsx("button",{style:{...CA.closeBtn,...a===d.id?{opacity:.5,cursor:"not-allowed"}:{}},onClick:()=>f(d),disabled:a===d.id,onMouseEnter:w=>{a!==d.id&&(w.currentTarget.style.backgroundColor="#991b1b")},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#7f1d1d"},children:a===d.id?"...":"Close"})})]},d.id)})})]})})]})}function Dv(s){return ms({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(s)}function kv(s){return ms({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5v-2h14v2z"},child:[]}]})(s)}const _v=({selectedSymbol:s,selectedTimeframe:A,onTimeframeChange:e,chartType:t="candles",onChartTypeChange:r,onNewOrder:i,onZoomIn:n,onZoomOut:o,onToggleBuySell:a,onDownloadChartPNG:l,onToggleFullscreen:c,marketWatchOpen:u=!0,onToggleMarketWatch:f,buySellPanelOpen:g,onMove:B})=>{const{theme:d}=Ae(),p=d==="light",m=["M1","M5","M15","M30","H1","H4","D1","W1","MN"],w={bars:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{fillRule:"evenodd",d:"M20.999 15.002H19v3a1 1 0 0 1-2.001 0V8H15a1 1 0 1 1 0-2h1.999v-3A1 1 0 1 1 19 3v10h1.999a1 1 0 0 1 0 2Zm-10.999-4H6.999v10a1 1 0 1 1-1.999 0v-3H3a1 1 0 0 1 0-2h2v-11a1 1 0 1 1 1.999 0V9H10a1 1 0 0 1 0 2Z",clipRule:"evenodd",fill:"currentColor"})]}),candles:h.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M9 3V9H11V18H9V21H7V18H5V9H7V3H9ZM17 3V6H19V16H17V19H15V16H13V6H15V3H17ZM17 8H15V14H17V8Z",fill:"currentColor"})}),area:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{d:"m2.166 16.571 7.013-7.194c.38-.583 1.116-.273 1.707.256l4.14 2.31 5.136-6.692c.277-.425 1.853-.182 1.853-.182v13.952H2.047a7.772 7.772 0 0 1 .119-2.45Z",opacity:".2",fill:"currentColor"}),h.jsx("path",{d:"M3.027 18.011a1 1 0 0 1-.81-1.58c.81-1.128 1.5-2.154 2.113-3.065 1.938-2.887 3.22-4.795 5.234-5.042 1.607-.195 3.364.683 6.28 3.212l4.35-6.086a1 1 0 0 1 1.626 1.16l-4.994 6.99a1 1 0 0 1-1.483.16c-2.824-2.552-4.481-3.587-5.536-3.454-1.108.136-2.186 1.742-3.82 4.173-.621.927-1.323 1.971-2.148 3.117a1.001 1.001 0 0 1-.812.415Z",fill:"currentColor"})]}),line:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{d:"M3.027 18.011a1 1 0 0 1-.81-1.58c.81-1.128 1.5-2.154 2.113-3.065 1.938-2.887 3.22-4.795 5.234-5.042 1.607-.195 3.364.683 6.28 3.212l4.35-6.086a1 1 0 0 1 1.626 1.16l-4.994 6.99a1 1 0 0 1-1.483.16c-2.824-2.552-4.481-3.587-5.536-3.454-1.108.136-2.186 1.742-3.82 4.173-.621.927-1.323 1.971-2.148 3.117a1.001 1.001 0 0 1-.812.415Z",fill:"currentColor"})]}),volume:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{fillRule:"evenodd",d:"M19.024 17.844H19a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v3.844a1 1 0 0 1-1 1Zm-3 0H16a1 1 0 0 1-1-1v-5.845A1 1 0 0 1 16 10h.024a1 1 0 0 1 1 .999v5.845a1 1 0 0 1-1 1Zm-3 0H13a1 1 0 0 1-1-1V6.999A1 1 0 0 1 13 6h.024a1 1 0 0 1 1 .999v9.845a1 1 0 0 1-1 1Zm-3 0H10a1 1 0 0 1-1-1V12a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v4.844a1 1 0 0 1-1 1Zm-3 0H7a1 1 0 0 1-1-1V9.999A.999.999 0 0 1 7 9h.024a1 1 0 0 1 1 .999v6.845a1 1 0 0 1-1 1Zm-3 0H4a1 1 0 0 1-1-1v-2.845a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v2.845a1 1 0 0 1-1 1Z",clipRule:"evenodd",fill:"currentColor"})]}),"volume ticks":h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),h.jsx("path",{fillRule:"evenodd",d:"M20.009 6.993h-.985v3.985a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1V6.993h-.946c-.565 0-1.023-.441-1.023-.985v-.024c0-.543.458-.984 1.023-.984h3.955c.565 0 1.023.441 1.023.984v.024c0 .544-.458.985-1.023.985Zm-3.985 6.14v5.845a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1v-5.845a1 1 0 0 1 1-.999h.024a1 1 0 0 1 1 .999Zm-4 6.845H12a1 1 0 0 1-1-1V9.133a1 1 0 0 1 1-.999h.024a1 1 0 0 1 1 .999v9.845a1 1 0 0 1-1 1Zm-3 0H9a1 1 0 0 1-1-1v-4.844a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v4.844a1 1 0 0 1-1 1Zm-3 0H6a1 1 0 0 1-1-1v-6.845a.998.998 0 0 1 1-.999h.024a1 1 0 0 1 1 .999v6.845a1 1 0 0 1-1 1Zm-3 0H3a1 1 0 0 1-1-1v-2.845a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v2.845a1 1 0 0 1-1 1ZM18 14.134h.024a1 1 0 0 1 1 1v3.844a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-3.844a1 1 0 0 1 1-1Z",clipRule:"evenodd",fill:"currentColor"})]})};return h.jsxs("div",{className:`flex items-center justify-between px-4 py-1 border-b ${p?"bg-white border-slate-200":"bg-[#12161d] border-slate-700"}`,children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("div",{className:`flex items-center gap-1 border-r pr-3 ${p?"border-slate-200":"border-slate-700"}`,children:["bars","candles","line","area"].map(v=>h.jsx("button",{onClick:()=>r(v),className:`px-1 py-1.5 text-[11px] font-medium rounded transition-colors capitalize flex items-center gap-1.5
|
|
10
|
+
.`+So+MC+fu)},kC=function(s,A){var e=s.ownerDocument;if(e){var t=e.createElement("style");t.textContent=A,s.appendChild(t)}},du=(function(){function s(){}return s.getOrigin=function(A){var e=s._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},s.isSameOrigin=function(A){return s.getOrigin(A)===s._origin},s.setContext=function(A){s._link=A.document.createElement("a"),s._origin=s.getOrigin(A.location.href)},s._origin="about:blank",s})(),_C=(function(){function s(A,e){this.context=A,this._options=e,this._cache={}}return s.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Lo(A)||VC(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},s.prototype.match=function(A){return this._cache[A]},s.prototype.loadImage=function(A){return oe(this,void 0,void 0,function(){var e,t,r,i,n=this;return se(this,function(o){switch(o.label){case 0:return e=du.isSameOrigin(A),t=!Ho(A)&&this._options.useCORS===!0&&qA.SUPPORT_CORS_IMAGES&&!e,r=!Ho(A)&&!e&&!Lo(A)&&typeof this._options.proxy=="string"&&qA.SUPPORT_CORS_XHR&&!t,!e&&this._options.allowTaint===!1&&!Ho(A)&&!Lo(A)&&!r&&!t?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(PC(i)||t)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return a(c)},500),n._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},s.prototype.has=function(A){return typeof this._cache[A]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,n){var o=qA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(f){return n(f)},!1),u.readAsDataURL(a.response)}else n("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=n;var l=t.indexOf("?")>-1?"&":"?";if(a.open("GET",""+t+l+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var c=e._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return n("Timed out ("+c+"ms) proxying "+r)}}a.send()})},s})(),OC=/^data:image\/svg\+xml/i,NC=/^data:image\/.*;base64,/i,KC=/^data:image\/.*/i,VC=function(s){return qA.SUPPORT_SVG_DRAWING||!GC(s)},Ho=function(s){return KC.test(s)},PC=function(s){return NC.test(s)},Lo=function(s){return s.substr(0,4)==="blob"},GC=function(s){return s.substr(-3).toLowerCase()==="svg"||OC.test(s)},P=(function(){function s(A,e){this.type=0,this.x=A,this.y=e}return s.prototype.add=function(A,e){return new s(this.x+A,this.y+e)},s})(),Jt=function(s,A,e){return new P(s.x+(A.x-s.x)*e,s.y+(A.y-s.y)*e)},gi=(function(){function s(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return s.prototype.subdivide=function(A,e){var t=Jt(this.start,this.startControl,A),r=Jt(this.startControl,this.endControl,A),i=Jt(this.endControl,this.end,A),n=Jt(t,r,A),o=Jt(r,i,A),a=Jt(n,o,A);return e?new s(this.start,t,n,a):new s(a,o,i,this.end)},s.prototype.add=function(A,e){return new s(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),ye=function(s){return s.type===1},RC=(function(){function s(A){var e=A.styles,t=A.bounds,r=Ms(e.borderTopLeftRadius,t.width,t.height),i=r[0],n=r[1],o=Ms(e.borderTopRightRadius,t.width,t.height),a=o[0],l=o[1],c=Ms(e.borderBottomRightRadius,t.width,t.height),u=c[0],f=c[1],g=Ms(e.borderBottomLeftRadius,t.width,t.height),B=g[0],d=g[1],p=[];p.push((i+a)/t.width),p.push((B+u)/t.width),p.push((n+d)/t.height),p.push((l+f)/t.height);var m=Math.max.apply(Math,p);m>1&&(i/=m,n/=m,a/=m,l/=m,u/=m,f/=m,B/=m,d/=m);var w=t.width-a,v=t.height-f,y=t.width-u,E=t.height-d,U=e.borderTopWidth,T=e.borderRightWidth,k=e.borderBottomWidth,L=e.borderLeftWidth,iA=IA(e.paddingTop,A.bounds.width),J=IA(e.paddingRight,A.bounds.width),hA=IA(e.paddingBottom,A.bounds.width),aA=IA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||n>0?kA(t.left+L/3,t.top+U/3,i-L/3,n-U/3,xA.TOP_LEFT):new P(t.left+L/3,t.top+U/3),this.topRightBorderDoubleOuterBox=i>0||n>0?kA(t.left+w,t.top+U/3,a-T/3,l-U/3,xA.TOP_RIGHT):new P(t.left+t.width-T/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=u>0||f>0?kA(t.left+y,t.top+v,u-T/3,f-k/3,xA.BOTTOM_RIGHT):new P(t.left+t.width-T/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=B>0||d>0?kA(t.left+L/3,t.top+E,B-L/3,d-k/3,xA.BOTTOM_LEFT):new P(t.left+L/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=i>0||n>0?kA(t.left+L*2/3,t.top+U*2/3,i-L*2/3,n-U*2/3,xA.TOP_LEFT):new P(t.left+L*2/3,t.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||n>0?kA(t.left+w,t.top+U*2/3,a-T*2/3,l-U*2/3,xA.TOP_RIGHT):new P(t.left+t.width-T*2/3,t.top+U*2/3),this.bottomRightBorderDoubleInnerBox=u>0||f>0?kA(t.left+y,t.top+v,u-T*2/3,f-k*2/3,xA.BOTTOM_RIGHT):new P(t.left+t.width-T*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||d>0?kA(t.left+L*2/3,t.top+E,B-L*2/3,d-k*2/3,xA.BOTTOM_LEFT):new P(t.left+L*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=i>0||n>0?kA(t.left+L/2,t.top+U/2,i-L/2,n-U/2,xA.TOP_LEFT):new P(t.left+L/2,t.top+U/2),this.topRightBorderStroke=i>0||n>0?kA(t.left+w,t.top+U/2,a-T/2,l-U/2,xA.TOP_RIGHT):new P(t.left+t.width-T/2,t.top+U/2),this.bottomRightBorderStroke=u>0||f>0?kA(t.left+y,t.top+v,u-T/2,f-k/2,xA.BOTTOM_RIGHT):new P(t.left+t.width-T/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=B>0||d>0?kA(t.left+L/2,t.top+E,B-L/2,d-k/2,xA.BOTTOM_LEFT):new P(t.left+L/2,t.top+t.height-k/2),this.topLeftBorderBox=i>0||n>0?kA(t.left,t.top,i,n,xA.TOP_LEFT):new P(t.left,t.top),this.topRightBorderBox=a>0||l>0?kA(t.left+w,t.top,a,l,xA.TOP_RIGHT):new P(t.left+t.width,t.top),this.bottomRightBorderBox=u>0||f>0?kA(t.left+y,t.top+v,u,f,xA.BOTTOM_RIGHT):new P(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=B>0||d>0?kA(t.left,t.top+E,B,d,xA.BOTTOM_LEFT):new P(t.left,t.top+t.height),this.topLeftPaddingBox=i>0||n>0?kA(t.left+L,t.top+U,Math.max(0,i-L),Math.max(0,n-U),xA.TOP_LEFT):new P(t.left+L,t.top+U),this.topRightPaddingBox=a>0||l>0?kA(t.left+Math.min(w,t.width-T),t.top+U,w>t.width+T?0:Math.max(0,a-T),Math.max(0,l-U),xA.TOP_RIGHT):new P(t.left+t.width-T,t.top+U),this.bottomRightPaddingBox=u>0||f>0?kA(t.left+Math.min(y,t.width-L),t.top+Math.min(v,t.height-k),Math.max(0,u-T),Math.max(0,f-k),xA.BOTTOM_RIGHT):new P(t.left+t.width-T,t.top+t.height-k),this.bottomLeftPaddingBox=B>0||d>0?kA(t.left+L,t.top+Math.min(E,t.height-k),Math.max(0,B-L),Math.max(0,d-k),xA.BOTTOM_LEFT):new P(t.left+L,t.top+t.height-k),this.topLeftContentBox=i>0||n>0?kA(t.left+L+aA,t.top+U+iA,Math.max(0,i-(L+aA)),Math.max(0,n-(U+iA)),xA.TOP_LEFT):new P(t.left+L+aA,t.top+U+iA),this.topRightContentBox=a>0||l>0?kA(t.left+Math.min(w,t.width+L+aA),t.top+U+iA,w>t.width+L+aA?0:a-L+aA,l-(U+iA),xA.TOP_RIGHT):new P(t.left+t.width-(T+J),t.top+U+iA),this.bottomRightContentBox=u>0||f>0?kA(t.left+Math.min(y,t.width-(L+aA)),t.top+Math.min(v,t.height+U+iA),Math.max(0,u-(T+J)),f-(k+hA),xA.BOTTOM_RIGHT):new P(t.left+t.width-(T+J),t.top+t.height-(k+hA)),this.bottomLeftContentBox=B>0||d>0?kA(t.left+L+aA,t.top+E,Math.max(0,B-(L+aA)),d-(k+hA),xA.BOTTOM_LEFT):new P(t.left+L+aA,t.top+t.height-(k+hA))}return s})(),xA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(xA||(xA={}));var kA=function(s,A,e,t,r){var i=4*((Math.sqrt(2)-1)/3),n=e*i,o=t*i,a=s+e,l=A+t;switch(r){case xA.TOP_LEFT:return new gi(new P(s,l),new P(s,l-o),new P(a-n,A),new P(a,A));case xA.TOP_RIGHT:return new gi(new P(s,A),new P(s+n,A),new P(a,l-o),new P(a,l));case xA.BOTTOM_RIGHT:return new gi(new P(a,A),new P(a,A+o),new P(s+n,l),new P(s,l));case xA.BOTTOM_LEFT:default:return new gi(new P(a,l),new P(a-n,l),new P(s,A+o),new P(s,A))}},pi=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},zC=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},wi=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},WC=(function(){function s(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return s})(),mi=(function(){function s(A,e){this.path=A,this.target=e,this.type=1}return s})(),XC=(function(){function s(A){this.opacity=A,this.type=2,this.target=6}return s})(),$C=function(s){return s.type===0},Bu=function(s){return s.type===1},JC=function(s){return s.type===2},gu=function(s,A){return s.length===A.length?s.some(function(e,t){return e===A[t]}):!1},ZC=function(s,A,e,t,r){return s.map(function(i,n){switch(n){case 0:return i.add(A,e);case 1:return i.add(A+t,e);case 2:return i.add(A+t,e+r);case 3:return i.add(A,e+r)}return i})},pu=(function(){function s(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),wu=(function(){function s(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new RC(this.container),this.container.styles.opacity<1&&this.effects.push(new XC(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new WC(t,r,i))}if(this.container.styles.overflowX!==0){var n=pi(this.curves),o=wi(this.curves);gu(n,o)?this.effects.push(new mi(n,6)):(this.effects.push(new mi(n,2)),this.effects.push(new mi(o,4)))}}return s.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,r=this.effects.slice(0);t;){var i=t.effects.filter(function(a){return!Bu(a)});if(e||t.container.styles.position!==0||!t.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var n=pi(t.curves),o=wi(t.curves);gu(n,o)||r.unshift(new mi(o,6))}}else r.unshift.apply(r,i);t=t.parent}return r.filter(function(a){return XA(a.target,A)})},s})(),Io=function(s,A,e,t){s.container.elements.forEach(function(r){var i=XA(r.flags,4),n=XA(r.flags,2),o=new wu(r,s);XA(r.styles.display,2048)&&t.push(o);var a=XA(r.flags,8)?[]:t;if(i||n){var l=i||r.styles.isPositioned()?e:A,c=new pu(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var f=0;l.negativeZIndex.some(function(B,d){return u>B.element.container.styles.zIndex.order?(f=d,!1):f>0}),l.negativeZIndex.splice(f,0,c)}else if(u>0){var g=0;l.positiveZIndex.some(function(B,d){return u>=B.element.container.styles.zIndex.order?(g=d+1,!1):g>0}),l.positiveZIndex.splice(g,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Io(o,c,i?c:e,a)}else r.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Io(o,A,e,a);XA(r.flags,8)&&mu(r,a)})},mu=function(s,A){for(var e=s instanceof vo?s.start:1,t=s instanceof vo?s.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Rh&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ks(e,i.container.styles.listStyleType,!0),e+=t?-1:1}},YC=function(s){var A=new wu(s,null),e=new pu(A),t=[];return Io(A,e,e,t),mu(A.container,t),e},Cu=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return Fe(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return Fe(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return Fe(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},qC=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return Fe(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return Fe(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return Fe(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},jC=function(s,A){switch(A){case 0:return Fe(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return Fe(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return Fe(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return Fe(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},Av=function(s,A){switch(A){case 0:return Ci(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Ci(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Ci(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Ci(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Ci=function(s,A){var e=[];return ye(s)?e.push(s.subdivide(.5,!1)):e.push(s),ye(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Fe=function(s,A,e,t){var r=[];return ye(s)?r.push(s.subdivide(.5,!1)):r.push(s),ye(e)?r.push(e.subdivide(.5,!0)):r.push(e),ye(t)?r.push(t.subdivide(.5,!0).reverse()):r.push(t),ye(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},vu=function(s){var A=s.bounds,e=s.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},vi=function(s){var A=s.styles,e=s.bounds,t=IA(A.paddingLeft,e.width),r=IA(A.paddingRight,e.width),i=IA(A.paddingTop,e.width),n=IA(A.paddingBottom,e.width);return e.add(t+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+r),-(A.borderTopWidth+A.borderBottomWidth+i+n))},ev=function(s,A){return s===0?A.bounds:s===2?vi(A):vu(A)},tv=function(s,A){return s===0?A.bounds:s===2?vi(A):vu(A)},To=function(s,A,e){var t=ev(Yt(s.styles.backgroundOrigin,A),s),r=tv(Yt(s.styles.backgroundClip,A),s),i=sv(Yt(s.styles.backgroundSize,A),e,t),n=i[0],o=i[1],a=Ms(Yt(s.styles.backgroundPosition,A),t.width-n,t.height-o),l=rv(Yt(s.styles.backgroundRepeat,A),a,i,t,r),c=Math.round(t.left+a[0]),u=Math.round(t.top+a[1]);return[l,c,u,n,o]},Zt=function(s){return HA(s)&&s.value===zt.AUTO},bi=function(s){return typeof s=="number"},sv=function(s,A,e){var t=A[0],r=A[1],i=A[2],n=s[0],o=s[1];if(!n)return[0,0];if(WA(n)&&o&&WA(o))return[IA(n,e.width),IA(o,e.height)];var a=bi(i);if(HA(n)&&(n.value===zt.CONTAIN||n.value===zt.COVER)){if(bi(i)){var l=e.width/e.height;return l<i!=(n.value===zt.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var c=bi(t),u=bi(r),f=c||u;if(Zt(n)&&(!o||Zt(o))){if(c&&u)return[t,r];if(!a&&!f)return[e.width,e.height];if(f&&a){var g=c?t:r*i,B=u?r:t/i;return[g,B]}var d=c?t:e.width,p=u?r:e.height;return[d,p]}if(a){var m=0,w=0;return WA(n)?m=IA(n,e.width):WA(o)&&(w=IA(o,e.height)),Zt(n)?m=w*i:(!o||Zt(o))&&(w=m/i),[m,w]}var v=null,y=null;if(WA(n)?v=IA(n,e.width):o&&WA(o)&&(y=IA(o,e.height)),v!==null&&(!o||Zt(o))&&(y=c&&u?v/t*r:e.height),y!==null&&Zt(n)&&(v=c&&u?y/r*t:e.width),v!==null&&y!==null)return[v,y];throw new Error("Unable to calculate background-size for element")},Yt=function(s,A){var e=s[A];return typeof e>"u"?s[0]:e},rv=function(s,A,e,t,r){var i=A[0],n=A[1],o=e[0],a=e[1];switch(s){case 2:return[new P(Math.round(t.left),Math.round(t.top+n)),new P(Math.round(t.left+t.width),Math.round(t.top+n)),new P(Math.round(t.left+t.width),Math.round(a+t.top+n)),new P(Math.round(t.left),Math.round(a+t.top+n))];case 3:return[new P(Math.round(t.left+i),Math.round(t.top)),new P(Math.round(t.left+i+o),Math.round(t.top)),new P(Math.round(t.left+i+o),Math.round(t.height+t.top)),new P(Math.round(t.left+i),Math.round(t.height+t.top))];case 1:return[new P(Math.round(t.left+i),Math.round(t.top+n)),new P(Math.round(t.left+i+o),Math.round(t.top+n)),new P(Math.round(t.left+i+o),Math.round(t.top+n+a)),new P(Math.round(t.left+i),Math.round(t.top+n+a))];default:return[new P(Math.round(r.left),Math.round(r.top)),new P(Math.round(r.left+r.width),Math.round(r.top)),new P(Math.round(r.left+r.width),Math.round(r.height+r.top)),new P(Math.round(r.left),Math.round(r.height+r.top))]}},iv="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bu="Hidden Text",nv=(function(){function s(A){this._data={},this._document=A}return s.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",n.appendChild(t),r.src=iv,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(bu)),t.appendChild(i),t.appendChild(r);var o=r.offsetTop-i.offsetTop+2;t.removeChild(i),t.appendChild(this._document.createTextNode(bu)),t.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:o,middle:a}},s.prototype.getMetrics=function(A,e){var t=A+" "+e;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},s})(),Qu=(function(){function s(A,e){this.context=A,this.options=e}return s})(),ov=1e4,av=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new nv(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return A.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return t.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),JC(e)&&(this.ctx.globalAlpha=e.opacity),$C(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Bu(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return oe(this,void 0,void 0,function(){var t;return se(this,function(r){switch(r.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return oe(this,void 0,void 0,function(){return se(this,function(t){switch(t.label){case 0:if(XA(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,t,r){var i=this;if(t===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var n=Co(e.text);n.reduce(function(o,a){return i.ctx.fillText(a,o,e.bounds.top+r),o+i.ctx.measureText(a).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(n){return n==="normal"||n==="small-caps"}).join(""),r=fv(e.fontFamily).join(", "),i=Ts(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,t){return oe(this,void 0,void 0,function(){var r,i,n,o,a,l,c,u,f=this;return se(this,function(g){return r=this.createFontStyle(t),i=r[0],n=r[1],o=r[2],this.ctx.font=i,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(n,o),l=a.baseline,c=a.middle,u=t.paintOrder,e.textBounds.forEach(function(B){u.forEach(function(d){switch(d){case 0:f.ctx.fillStyle=$A(t.color),f.renderTextWithLetterSpacing(B,t.letterSpacing,l);var p=t.textShadow;p.length&&B.text.trim().length&&(p.slice(0).reverse().forEach(function(m){f.ctx.shadowColor=$A(m.color),f.ctx.shadowOffsetX=m.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=m.offsetY.number*f.options.scale,f.ctx.shadowBlur=m.blur.number,f.renderTextWithLetterSpacing(B,t.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),t.textDecorationLine.length&&(f.ctx.fillStyle=$A(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(m){switch(m){case 1:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+l),B.bounds.width,1);break;case 2:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:f.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+c),B.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&B.text.trim().length&&(f.ctx.strokeStyle=$A(t.webkitTextStrokeColor),f.ctx.lineWidth=t.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,t,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=vi(e),n=wi(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a,w,w,l,c,u,f,y,g,B,E,d,p,m,w,v,y,E;return se(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,n=0,o=t.textNodes,U.label=1;case 1:return n<o.length?(a=o[n],[4,this.renderTextNode(a,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return n++,[3,1];case 4:if(!(t instanceof Vh))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return w=U.sent(),this.renderReplacedElement(t,r,w),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Ph&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Gh))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return w=U.sent(),this.renderReplacedElement(t,r,w),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof $h&&t.tree?(l=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,l.render(t.tree)]):[3,14];case 13:c=U.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),U.label=14;case 14:if(t instanceof bo&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===ci?t.checked&&(this.ctx.save(),this.path([new P(t.bounds.left+u*.39363,t.bounds.top+u*.79),new P(t.bounds.left+u*.16,t.bounds.top+u*.5549),new P(t.bounds.left+u*.27347,t.bounds.top+u*.44071),new P(t.bounds.left+u*.39694,t.bounds.top+u*.5649),new P(t.bounds.left+u*.72983,t.bounds.top+u*.23),new P(t.bounds.left+u*.84,t.bounds.top+u*.34085),new P(t.bounds.left+u*.39363,t.bounds.top+u*.79)]),this.ctx.fillStyle=$A(zh),this.ctx.fill(),this.ctx.restore()):t.type===hi&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,Math.PI*2,!0),this.ctx.fillStyle=$A(zh),this.ctx.fill(),this.ctx.restore())),lv(t)&&t.value.length){switch(f=this.createFontStyle(i),y=f[0],g=f[1],B=this.fontMetrics.getMetrics(y,g).baseline,this.ctx.font=y,this.ctx.fillStyle=$A(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=hv(t.styles.textAlign),E=vi(t),d=0,t.styles.textAlign){case 1:d+=E.width/2;break;case 2:d+=E.width;break}p=E.add(d,0,0,-E.height/2+1),this.ctx.save(),this.path([new P(E.left,E.top),new P(E.left+E.width,E.top),new P(E.left+E.width,E.top+E.height),new P(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os(t.value,p),i.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!XA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(m=t.styles.listStyleImage,m.type!==0)return[3,18];w=void 0,v=m.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return w=U.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=$A(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new Ze(t.bounds.left,t.bounds.top+IA(t.styles.paddingTop,t.bounds.width),t.bounds.width,bh(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(e.listValue,E),i.letterSpacing,bh(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return oe(this,void 0,void 0,function(){var t,r,m,i,n,m,o,a,m,l,c,m,u,f,m,g,B,m,d,p,m;return se(this,function(w){switch(w.label){case 0:if(XA(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:w.sent(),t=0,r=e.negativeZIndex,w.label=2;case 2:return t<r.length?(m=r[t],[4,this.renderStack(m)]):[3,5];case 3:w.sent(),w.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:w.sent(),i=0,n=e.nonInlineLevel,w.label=7;case 7:return i<n.length?(m=n[i],[4,this.renderNode(m)]):[3,10];case 8:w.sent(),w.label=9;case 9:return i++,[3,7];case 10:o=0,a=e.nonPositionedFloats,w.label=11;case 11:return o<a.length?(m=a[o],[4,this.renderStack(m)]):[3,14];case 12:w.sent(),w.label=13;case 13:return o++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,w.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:w.sent(),w.label=17;case 17:return l++,[3,15];case 18:u=0,f=e.inlineLevel,w.label=19;case 19:return u<f.length?(m=f[u],[4,this.renderNode(m)]):[3,22];case 20:w.sent(),w.label=21;case 21:return u++,[3,19];case 22:g=0,B=e.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return g<B.length?(m=B[g],[4,this.renderStack(m)]):[3,26];case 24:w.sent(),w.label=25;case 25:return g++,[3,23];case 26:d=0,p=e.positiveZIndex,w.label=27;case 27:return d<p.length?(m=p[d],[4,this.renderStack(m)]):[3,30];case 28:w.sent(),w.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach(function(r,i){var n=ye(r)?r.start:r;i===0?t.ctx.moveTo(n.x,n.y):t.ctx.lineTo(n.x,n.y),ye(r)&&t.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,t,r,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,t,r){var i;if(e.width===t&&e.height===r)return e;var n=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=n.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,r);var a=o.getContext("2d");return a.drawImage(e,0,0,e.width,e.height,0,0,t,r),o},A.prototype.renderBackgroundImage=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a;return se(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,r=function(c){var u,f,g,iA,I,z,aA,Z,k,B,iA,I,z,aA,Z,d,p,m,w,v,y,E,U,T,k,L,iA,J,hA,aA,Z,Y,I,z,tA,FA,vA,SA,j,rA,mA,fA;return se(this,function(OA){switch(OA.label){case 0:if(c.type!==0)return[3,5];u=void 0,f=c.url,OA.label=1;case 1:return OA.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return u=OA.sent(),[3,4];case 3:return OA.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return u&&(g=To(e,t,[u.width,u.height,u.width/u.height]),iA=g[0],I=g[1],z=g[2],aA=g[3],Z=g[4],k=i.ctx.createPattern(i.resizeImage(u,aA,Z),"repeat"),i.renderRepeat(iA,k,I,z)),[3,6];case 5:$w(c)?(B=To(e,t,[null,null,null]),iA=B[0],I=B[1],z=B[2],aA=B[3],Z=B[4],d=Gw(c.angle,aA,Z),p=d[0],m=d[1],w=d[2],v=d[3],y=d[4],E=document.createElement("canvas"),E.width=aA,E.height=Z,U=E.getContext("2d"),T=U.createLinearGradient(m,v,w,y),hh(c.stops,p).forEach(function(LA){return T.addColorStop(LA.stop,$A(LA.color))}),U.fillStyle=T,U.fillRect(0,0,aA,Z),aA>0&&Z>0&&(k=i.ctx.createPattern(E,"repeat"),i.renderRepeat(iA,k,I,z))):Jw(c)&&(L=To(e,t,[null,null,null]),iA=L[0],J=L[1],hA=L[2],aA=L[3],Z=L[4],Y=c.position.length===0?[ro]:c.position,I=IA(Y[0],aA),z=IA(Y[Y.length-1],Z),tA=Rw(c,I,z,aA,Z),FA=tA[0],vA=tA[1],FA>0&&vA>0&&(SA=i.ctx.createRadialGradient(J+I,hA+z,0,J+I,hA+z,FA),hh(c.stops,FA*2).forEach(function(LA){return SA.addColorStop(LA.stop,$A(LA.color))}),i.path(iA),i.ctx.fillStyle=SA,FA!==vA?(j=e.bounds.left+.5*e.bounds.width,rA=e.bounds.top+.5*e.bounds.height,mA=vA/FA,fA=1/mA,i.ctx.save(),i.ctx.translate(j,rA),i.ctx.transform(1,0,0,mA,0,0),i.ctx.translate(-j,-rA),i.ctx.fillRect(J,fA*(hA-rA)+rA,aA,Z*fA),i.ctx.restore()):i.ctx.fill())),OA.label=6;case 6:return t--,[2]}})},i=this,n=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return n<o.length?(a=o[n],[5,r(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,t,r){return oe(this,void 0,void 0,function(){return se(this,function(i){return this.path(Cu(r,t)),this.ctx.fillStyle=$A(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,t,r,i){return oe(this,void 0,void 0,function(){var n,o;return se(this,function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return a.sent(),[2];case 2:return n=qC(i,r),this.path(n),this.ctx.fillStyle=$A(e),this.ctx.fill(),o=jC(i,r),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return oe(this,void 0,void 0,function(){var t,r,i,n,o,a,l,c,u=this;return se(this,function(f){switch(f.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,r=!at(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],n=cv(Yt(t.backgroundClip,0),e.curves),r||t.boxShadow.length?(this.ctx.save(),this.path(n),this.ctx.clip(),at(t.backgroundColor)||(this.ctx.fillStyle=$A(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(g){u.ctx.save();var B=pi(e.curves),d=g.inset?0:ov,p=ZC(B,-d+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(u.path(B),u.ctx.clip(),u.mask(p)):(u.mask(B),u.ctx.clip(),u.path(p)),u.ctx.shadowOffsetX=g.offsetX.number+d,u.ctx.shadowOffsetY=g.offsetY.number,u.ctx.shadowColor=$A(g.color),u.ctx.shadowBlur=g.blur.number,u.ctx.fillStyle=g.inset?$A(g.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),f.label=2;case 2:o=0,a=0,l=i,f.label=3;case 3:return a<l.length?(c=l[a],c.style!==0&&!at(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,3)];case 6:return f.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,e.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,e.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,r,i,n){return oe(this,void 0,void 0,function(){var o,a,l,c,u,f,g,B,d,p,m,w,v,y,E,U,E,U;return se(this,function(T){return this.ctx.save(),o=Av(i,r),a=Cu(i,r),n===2&&(this.path(a),this.ctx.clip()),ye(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),ye(a[1])?(u=a[1].end.x,f=a[1].end.y):(u=a[1].x,f=a[1].y),r===0||r===2?g=Math.abs(l-u):g=Math.abs(c-f),this.ctx.beginPath(),n===3?this.formatPath(o):this.formatPath(a.slice(0,2)),B=t<3?t*3:t*2,d=t<3?t*2:t,n===3&&(B=t,d=t),p=!0,g<=B*2?p=!1:g<=B*2+d?(m=g/(2*B+d),B*=m,d*=m):(w=Math.floor((g+d)/(B+d)),v=(g-w*B)/(w-1),y=(g-(w+1)*B)/w,d=y<=0||Math.abs(d-v)<Math.abs(d-y)?v:y),p&&(n===3?this.ctx.setLineDash([0,B+d]):this.ctx.setLineDash([B,d])),n===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=$A(e),this.ctx.stroke(),this.ctx.setLineDash([]),n===2&&(ye(a[0])&&(E=a[3],U=a[0],this.ctx.beginPath(),this.formatPath([new P(E.end.x,E.end.y),new P(U.start.x,U.start.y)]),this.ctx.stroke()),ye(a[1])&&(E=a[1],U=a[2],this.ctx.beginPath(),this.formatPath([new P(E.end.x,E.end.y),new P(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return oe(this,void 0,void 0,function(){var t;return se(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=$A(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=YC(e),[4,this.renderStack(t)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Qu),lv=function(s){return s instanceof Xh||s instanceof Wh?!0:s instanceof bo&&s.type!==hi&&s.type!==ci},cv=function(s,A){switch(s){case 0:return pi(A);case 2:return zC(A);default:return wi(A)}},hv=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},uv=["-apple-system","system-ui"],fv=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(A){return uv.indexOf(A)===-1}):s},dv=(function(s){Le(A,s);function A(e,t){var r=s.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return A.prototype.render=function(e){return oe(this,void 0,void 0,function(){var t,r;return se(this,function(i){switch(i.label){case 0:return t=mo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Bv(t)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=$A(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(Qu),Bv=function(s){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},gv=(function(){function s(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return s.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Hr([this.id,this.getTime()+"ms"],A))},s.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Hr([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},s.instances={},s})(),pv=(function(){function s(A,e){var t;this.windowBounds=e,this.instanceName="#"+s.instanceCount++,this.logger=new gv({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new _C(this,A)}return s.instanceCount=1,s})(),wv=function(s,A){return A===void 0&&(A={}),mv(s,A)};typeof window<"u"&&du.setContext(window);var mv=function(s,A){return oe(void 0,void 0,void 0,function(){var e,t,r,i,n,o,a,l,c,u,f,g,B,d,p,m,w,v,y,E,T,U,T,k,L,iA,J,hA,aA,Z,Y,I,z,tA,FA,vA,SA,j,rA,mA;return se(this,function(fA){switch(fA.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=s.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(t=e.defaultView,!t)throw new Error("Document is not attached to a Window");return r={allowTaint:(k=A.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(L=A.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:A.proxy,useCORS:(iA=A.useCORS)!==null&&iA!==void 0?iA:!1},i=_n({logging:(J=A.logging)!==null&&J!==void 0?J:!0,cache:A.cache},r),n={windowWidth:(hA=A.windowWidth)!==null&&hA!==void 0?hA:t.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:t.innerHeight,scrollX:(Z=A.scrollX)!==null&&Z!==void 0?Z:t.pageXOffset,scrollY:(Y=A.scrollY)!==null&&Y!==void 0?Y:t.pageYOffset},o=new Ze(n.scrollX,n.scrollY,n.windowWidth,n.windowHeight),a=new pv(i,o),l=(I=A.foreignObjectRendering)!==null&&I!==void 0?I:!1,c={allowTaint:(z=A.allowTaint)!==null&&z!==void 0?z:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:l,copyStyles:l},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),u=new uu(a,s,c),f=u.clonedReferenceElement,f?[4,u.toIFrame(e,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=fA.sent(),B=yo(f)||CC(f)?Zg(f.ownerDocument):Lr(a,f),d=B.width,p=B.height,m=B.left,w=B.top,v=Cv(a,f,A.backgroundColor),y={canvas:A.canvas,backgroundColor:v,scale:(FA=(tA=A.scale)!==null&&tA!==void 0?tA:t.devicePixelRatio)!==null&&FA!==void 0?FA:1,x:((vA=A.x)!==null&&vA!==void 0?vA:0)+m,y:((SA=A.y)!==null&&SA!==void 0?SA:0)+w,width:(j=A.width)!==null&&j!==void 0?j:Math.ceil(d),height:(rA=A.height)!==null&&rA!==void 0?rA:Math.ceil(p)},l?(a.logger.debug("Document cloned, using foreign object rendering"),T=new dv(a,y),[4,T.render(f)]):[3,3];case 2:return E=fA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+m+","+w+" with size "+d+"x"+p+" using computed rendering"),a.logger.debug("Starting DOM parsing"),U=Zh(a,f),v===U.styles.backgroundColor&&(U.styles.backgroundColor=qe.TRANSPARENT),a.logger.debug("Starting renderer for element at "+y.x+","+y.y+" with size "+y.width+"x"+y.height),T=new av(a,y),[4,T.render(U)];case 4:E=fA.sent(),fA.label=5;case 5:return(!((mA=A.removeContainer)!==null&&mA!==void 0)||mA)&&(uu.destroy(g)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,E]}})})},Cv=function(s,A,e){var t=A.ownerDocument,r=t.documentElement?Ds(s,getComputedStyle(t.documentElement).backgroundColor):qe.TRANSPARENT,i=t.body?Ds(s,getComputedStyle(t.body).backgroundColor):qe.TRANSPARENT,n=typeof e=="string"?Ds(s,e):e===null?qe.TRANSPARENT:4294967295;return A===t.documentElement?at(r)?at(i)?n:i:r:n};const vv={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},bv={M1:3,M5:7,M15:14,M30:30,H1:90,H4:180,D1:1095,W1:1825,MN:3650};function yu(s){if(!s)return 7;const A=String(s).toUpperCase();return bv[A]??7}function Qv(s,A){const e=String(s||"").toUpperCase(),t=A||yu(s),r={M1:1440,M5:288,M15:96,M30:48,H1:24,H4:6,D1:1,W1:1/7,MN:1/30}[e]||96,i=Math.ceil(t*(typeof r=="number"?r:96));return Math.min(Math.max(i,500),5e3)}const ie=s=>{if(!Array.isArray(s)||s.length===0)return[];const A=s.map(t=>({...t,time:zA(t.time)})).filter(t=>t.time!=null);A.sort((t,r)=>t.time-r.time);const e=new Map;for(const t of A)e.set(t.time,t);return Array.from(e.values()).sort((t,r)=>t.time-r.time)};function yv(s,A,e,t,r,i){const n=r-e,o=i-t,a=Math.sqrt(n*n+o*o);if(a===0)return Math.hypot(s-e,A-t);let l=((s-e)*n+(A-t)*o)/(a*a);l=Math.max(0,Math.min(1,l));const c=e+l*n,u=t+l*o;return Math.hypot(s-c,A-u)}function Mo(s,A,e,t,r){if(!e||!t||!r)return null;const i=e.time,n=t.time,o=n-i,a=e.price,l=t.price,c=r.price;if(Math.abs(o)<1e-9){const B=c-a;return[{time:i,price:a+B},{time:n+1,price:l+B}]}const u=(l-a)/o,f=c+u*(i-r.time),g=c+u*(n-r.time);return[{time:i,price:f},{time:n,price:g}]}const Fv=b.forwardRef(function({bidPrice:A="113.638",askPrice:e="113.649",showBuySellPanel:t=!0,onBuyClick:r,onSellClick:i},n){const o=b.useRef(null),a=b.useRef(null),l=b.useRef(null),c=b.useRef(null),u=b.useRef([]),f=b.useRef(!1),g=b.useRef(null),B=b.useRef(null),d=b.useRef(null),p=b.useRef(null),m=b.useRef([]),[w,v]=b.useState(null),[y,E]=b.useState([]),U=b.useRef(null),T=b.useRef(null),k=b.useRef(null),L=b.useRef(!1);b.useEffect(()=>{k.current=w},[w]);const iA=b.useRef(new Map),J=b.useRef(null),hA=(C,F)=>`${C}_${F}`,aA=()=>{const C=hA(j,rA);return iA.current.get(C)||null},Z=C=>{if(!C)return;const F=hA(j,rA);iA.current.set(F,C)},{activeTool:Y,setActiveTool:I,showGrid:z,snapToGrid:tA,chartObjects:FA,setChartObjects:vA,orders:SA,selectedSymbol:j,selectedTimeframe:rA,drawingsVisible:mA,chartType:fA,chartLocked:OA,theme:LA,baseUrl:ge,endpoints:Et,endpointParams:xt}=Ae(),Te=b.useRef([]),[qt,uA]=b.useState(!1),[UA,W]=b.useState(null),[D,X]=b.useState([]),[N,dA]=b.useState(!0),QA=b.useRef(null),JA=b.useRef(new Map);b.useRef(null);const pe=b.useRef(0);b.useImperativeHandle(n,()=>({zoomIn:()=>{const C=a.current?.timeScale();if(!C)return;const F=C.getVisibleRange();if(!F||!F.from||!F.to)return;const S=F.to-F.from,M=(F.from+F.to)/2,x=S*.8;try{C.setVisibleRange({from:M-x/2,to:M+x/2}),Z(C.getVisibleRange())}catch{}},zoomOut:()=>{const C=a.current?.timeScale();if(!C)return;const F=C.getVisibleRange();if(!F||!F.from||!F.to)return;const S=F.to-F.from,M=(F.from+F.to)/2,x=S*1.25;try{C.setVisibleRange({from:M-x/2,to:M+x/2}),Z(C.getVisibleRange())}catch{}},downloadChartAsPNG:()=>{const C=o.current;if(!C){typeof window.notify=="function"&&window.notify("Chart not ready","error");return}const F=C.querySelectorAll("canvas"),S=LA==="light"?"#ffffff":"#12161d";let M=null,x=0;if(F.forEach(K=>{if(K.width>0&&K.height>0){const AA=K.width*K.height;AA>x&&(x=AA,M=K)}}),M)try{const K=document.createElement("canvas");K.width=M.width,K.height=M.height;const AA=K.getContext("2d");AA.fillStyle=S,AA.fillRect(0,0,K.width,K.height),AA.drawImage(M,0,0);const V=document.createElement("a");V.download=`chart-${j}-${rA}-${Date.now()}.png`,V.href=K.toDataURL("image/png"),V.click(),typeof window.notify=="function"&&window.notify("Chart saved as PNG","success");return}catch(K){console.warn("Canvas export failed, trying html2canvas",K)}wv(C,{useCORS:!0,allowTaint:!0,backgroundColor:S,scale:2,logging:!1}).then(K=>{const AA=document.createElement("a");AA.download=`chart-${j}-${rA}-${Date.now()}.png`,AA.href=K.toDataURL("image/png"),AA.click(),typeof window.notify=="function"&&window.notify("Chart saved as PNG","success")}).catch(K=>{console.error("Chart screenshot failed",K),typeof window.notify=="function"&&window.notify("Screenshot failed. Try again.","error")})}}),[j,rA,LA]);const ze=b.useMemo(()=>D.length===0?[]:fA==="line"||fA==="area"?D.map(C=>({time:C.time,value:C.close})):D,[D,fA]),Qi=C=>{r?r(C):(W("BUY"),uA(!0))},_o=C=>{i?i(C):(W("SELL"),uA(!0))},Oo=()=>{uA(!1),W(null)};return b.useEffect(()=>{const C=o.current;if(!C)return;const F=C.getBoundingClientRect(),S=G=>{const pA=Math.abs(Number(G));return Number.isFinite(pA)?pA>=1e3?pA.toFixed(2):pA>=1?pA.toFixed(4):pA.toFixed(5):"0"},M=LA==="light",x=l0(C,{width:F.width||C.clientWidth,height:F.height||C.clientHeight,autoSize:!0,localization:{priceFormatter:S},layout:{background:{color:M?"#FFFFFF":"#0d1117",type:"solid"},textColor:M?"#020617":"#e6edf3",fontSize:12,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},grid:{vertLines:{visible:z,color:z?M?"rgba(100, 116, 139, 0.15)":"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0},horzLines:{visible:z,color:z?M?"rgba(100, 116, 139, 0.15)":"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0}},rightPriceScale:{borderColor:M?"#e5e7eb":"#21262d",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0,entireTextOnly:!1,textColor:M?"#64748b":"#8b949e"},leftPriceScale:{visible:!1},timeScale:{borderColor:M?"#e5e7eb":"#21262d",timeVisible:!0,secondsVisible:!1,rightOffset:12,barSpacing:6,minBarSpacing:4,shiftVisibleRangeOnNewBar:!1,fixLeftEdge:!1,fixRightEdge:!1,rightBarStaysOnScroll:!0,allowShiftVisibleRangeOnWhitespaceClick:!0},crosshair:{mode:Y===1?1:0,vertLine:{width:1,color:M?"#3b82f6":"#58a6ff",style:0,labelBackgroundColor:M?"#eff6ff":"#161b22",labelVisible:!0},horzLine:{width:1,color:M?"#3b82f6":"#58a6ff",style:0,labelBackgroundColor:M?"#eff6ff":"#161b22",labelVisible:!0},vertLineVisible:Y===1,horzLineVisible:Y===1},handleScroll:{mouseWheel:!0,pressedMouseMove:Y===null||Y===1,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},axisTouch:{time:!0,price:!0},mouseWheel:!0,pinch:!0}}),K=x.addCandlestickSeries({upColor:M?"#089981":"#26a69a",downColor:M?"#f23645":"#ef5350",wickUpColor:M?"#089981":"#26a69a",wickDownColor:M?"#f23645":"#ef5350",borderUpColor:M?"#089981":"#26a69a",borderDownColor:M?"#f23645":"#ef5350",borderVisible:!0});a.current=x,l.current=K,requestAnimationFrame(()=>{if(C&&x){const G=C.getBoundingClientRect();G.width>0&&G.height>0&&x.resize(G.width,G.height)}});const AA=x.timeScale(),V=()=>{if(L.current&&JA.current.size>0){const G=AA.getVisibleRange();G&&Z(G)}};AA.subscribeVisibleTimeRangeChange(V);const O=new ResizeObserver(G=>{for(const pA of G){const{width:BA,height:_}=pA.contentRect;if(BA>0&&_>0&&x){const nA=AA.getVisibleRange();x.resize(BA,_),nA&&setTimeout(()=>{try{AA.setVisibleRange(nA)}catch{}},0)}}});return O.observe(C),()=>{AA.unsubscribeVisibleTimeRangeChange(V),O.disconnect(),x.remove(),a.current=null,l.current=null,c.current=null,u.current=[]}},[]),b.useEffect(()=>{a.current&&a.current.applyOptions({grid:{vertLines:{visible:z,color:z?"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0},horzLines:{visible:z,color:z?"rgba(110, 118, 129, 0.15)":"transparent",style:z?2:0}}})},[z]),b.useEffect(()=>{const C=a.current;if(!C)return;const F=LA==="light";C.applyOptions({layout:{background:{color:F?"#FFFFFF":"#12161d"},textColor:F?"#020617":"#fff"},grid:{vertLines:{color:z?F?"rgba(100, 116, 139, 0.25)":"rgba(148, 163, 184, 0.2)":"transparent"},horzLines:{color:z?F?"rgba(100, 116, 139, 0.25)":"rgba(148, 163, 184, 0.2)":"transparent"}},rightPriceScale:{borderColor:F?"#e5e7eb":"#1e293b"},timeScale:{borderColor:F?"#e5e7eb":"#1e293b"},crosshair:{vertLine:{color:F?"#3b82f6":"#58a6ff",labelBackgroundColor:F?"#eff6ff":"#161b22",width:1},horzLine:{color:F?"#3b82f6":"#58a6ff",labelBackgroundColor:F?"#eff6ff":"#161b22",width:1}}})},[LA,z]),b.useEffect(()=>{if(!a.current)return;const F=!OA&&!(Y!==null&&Y!==1&&Y!==0),S=!OA;a.current.applyOptions({crosshair:{mode:Y===1?1:0,vertLine:{visible:Y===1,width:1,color:LA==="light"?"#94a3b8":"#64748b",style:0,labelBackgroundColor:LA==="light"?"#e5e7eb":"#1e293b"},horzLine:{visible:Y===1,width:1,color:LA==="light"?"#94a3b8":"#64748b",style:0,labelBackgroundColor:LA==="light"?"#e5e7eb":"#1e293b"}},handleScroll:{mouseWheel:S,pressedMouseMove:F,horzTouchDrag:F,vertTouchDrag:F},handleScale:{axisPressedMouseMove:{time:F,price:F},axisDoubleClickReset:{time:S,price:S},axisTouch:{time:F,price:F},mouseWheel:S,pinch:S}})},[Y,OA]),b.useEffect(()=>{(async()=>{if(!j||!rA){X([]),L.current=!1;return}try{if(dA(!0),X([]),L.current=!1,l.current)try{l.current.setData([])}catch{}console.log(`📊 Fetching candles for ${j} @ ${rA}`);const F=yu(rA),S=Qv(rA,F),M=ge||vv?.VITE_BASE_URL||"ws://localhost:8000",x=Et?.candles||"/api/chart/candles",K=xt?.candles||{},AA={symbol:K.symbol||"symbol",timeframe:K.timeframe||"timeframe",limit:K.limit||"limit",daysBack:K.daysBack||"daysBack"},V={};V[AA.symbol]=j,V[AA.timeframe]=rA,V[AA.limit]=S,K.daysBack!==!1&&(V[AA.daysBack]=F);const O=await MA.get(`${M}${x}`,{params:V,timeout:1e4});let G=[];if(Array.isArray(O.data)?G=O.data:O.data&&O.data.data&&Array.isArray(O.data.data)?G=O.data.data:O.data&&Array.isArray(O.data)&&(G=O.data),G&&G.length>0){console.log(`✅ Loaded ${G.length} raw candles from server`);const{candles:pA,stats:BA}=Cc(G,j,rA);pA.length>0?(X(pA),JA.current=new Map,pA.forEach(_=>{JA.current.set(_.time,_)})):(console.warn(`⚠️ No valid candles after processing for ${j}`),X([]))}else console.warn(`⚠️ No candle data returned for ${j}`),X([])}catch(F){console.error(`❌ Error fetching ${j}:`,F.message),X([])}finally{dA(!1)}})()},[j,rA]),b.useEffect(()=>{console.log("🔧 [CANDLES DEBUG] Setting up WebSocket for candles:",{baseUrl:ge,symbol:j,timeframe:rA}),QA.current=Ur.getSocket();const C=QA.current;console.log("🔌 [CANDLES DEBUG] Socket status for CandlesGateway (ROOT namespace):",{socketId:C.id,connected:C.connected,baseUrl:ge,socketUrl:C.io?.uri||"unknown",namespace:C.nsp?.name||"/",hasAuth:!!C.auth,note:"This socket MUST connect to root namespace for CandlesGateway"});const F=()=>{if(console.log("📡 [CANDLES DEBUG] subscribeToCandles called:",{selectedSymbol:j,selectedTimeframe:rA,connected:C.connected,socketId:C.id}),j&&rA&&C.connected){const V={symbol:j,timeframe:rA};console.log("📡 [CANDLES DEBUG] Emitting subscribeCandles:",V),C.emit("subscribeCandles",V),console.log("✅ [CANDLES DEBUG] subscribeCandles event emitted successfully")}else console.warn("⚠️ [CANDLES DEBUG] Cannot subscribe to candles:",{selectedSymbol:j,selectedTimeframe:rA,connected:C.connected,socketId:C.id,reason:j?rA?"Not connected":"No timeframe":"No symbol"})},S=()=>{console.log("✅ [CANDLES DEBUG] Chart WebSocket connected to backend, socket ID:",C.id),setTimeout(()=>{j&&rA&&(console.log("📡 [CANDLES DEBUG] Backend connected, subscribing to candles..."),F())},200)},M=V=>{console.log("⚠️ [CANDLES DEBUG] Chart WebSocket disconnected:",V)},x=V=>{console.error("❌ [CANDLES DEBUG] Chart WebSocket connection error:",V),console.error("❌ [CANDLES DEBUG] Error details:",{message:V.message,description:V.description,context:V.context,type:V.type})};C.on("connect",S),C.on("disconnect",M),C.on("connect_error",x),C.on("subscription:confirmed",V=>{console.log("✅ [CANDLES DEBUG] Subscription confirmed:",V),V.type==="candles"&&console.log("✅ [CANDLES DEBUG] Candle subscription confirmed for:",{symbol:V.symbol,timeframe:V.timeframe})});const K=V=>{if(console.log("📊 [CANDLES DEBUG] candleUpdate event received:",V),!V||!V.candle||!V.symbol){console.warn("⚠️ [CANDLES DEBUG] Invalid candleUpdate data:",V);return}if(console.log("✅ [CANDLES DEBUG] Valid candleUpdate received:",{symbol:V.symbol,timeframe:V.timeframe,candle:V.candle,selectedSymbol:j,selectedTimeframe:rA}),V.symbol.toUpperCase()!==j?.toUpperCase()){console.log(`⚠️ [CANDLES DEBUG] Symbol mismatch: received ${V.symbol}, selected ${j}`);return}const{candle:O}=V;console.log("✅ [CANDLES DEBUG] Processing candle update:",{symbol:V.symbol,timeframe:V.timeframe,candle:O,candleTime:O.time,candleClose:O.close});const G=vc(O,j,rA);if(!G){console.warn("⚠️ [CANDLES DEBUG] Rejected realtime candle (invalid):",{symbol:V.symbol,candle:O});return}console.log("✅ [CANDLES DEBUG] Processed candle:",{time:G.time,open:G.open,high:G.high,low:G.low,close:G.close});const pA=Date.now();if(pA-pe.current<200)return;pe.current=pA;const BA=a.current?.timeScale(),_=BA?.getVisibleRange(),nA=l.current,$=a.current;if(!nA||!$||!L.current){console.warn("⚠️ [CANDLES DEBUG] Chart not ready for update:",{hasSeries:!!nA,hasChart:!!$,hasInitialized:L.current});return}const sA=nA?.seriesType?.(),eA=fA==="line"?"Line":fA==="area"?"Area":fA==="bars"?"Bar":"Candlestick";if(sA!==eA){console.warn("⚠️ [CANDLES DEBUG] Series type mismatch:",{expected:eA,actual:sA,chartType:fA,note:"Chart type switch might be in progress, skipping update"});return}try{const lA=JA.current.get(G.time),q=lA?{time:G.time,open:lA.open,high:Math.max(lA.high,G.close),low:Math.min(lA.low,G.close),close:G.close}:G;JA.current.set(G.time,q);try{fA==="line"||fA==="area"?nA.update({time:q.time,value:q.close}):nA.update(q),BA&&_&&Z(_),console.log("✅ [CANDLES DEBUG] Candle update completed successfully")}catch(oA){throw console.error("❌ [CANDLES DEBUG] Error in s.update():",oA),console.error("❌ [CANDLES DEBUG] Series type:",nA?.seriesType?.()),console.error("❌ [CANDLES DEBUG] Processed candle:",G),oA}}catch(lA){console.error("❌ [CANDLES DEBUG] Error updating candle:",lA),console.error("❌ [CANDLES DEBUG] Error stack:",lA.stack)}};C.on("candleUpdate",K);const AA=()=>{C.connected&&j&&rA?(console.log("✅ [CANDLES DEBUG] Socket connected, subscribing to backend..."),F()):console.log("⏳ [CANDLES DEBUG] Waiting for socket connection...",{connected:C.connected,hasSymbol:!!j,hasTimeframe:!!rA})};if(C.connected)AA();else{const V=()=>{console.log("✅ [CANDLES DEBUG] Socket connected to backend, subscribing..."),setTimeout(AA,200)};C.once("connect",V),setTimeout(()=>{C.connected&&AA()},500)}return()=>{C.off("candleUpdate",K),C.off("connect",S),C.off("disconnect",M),C.off("connect_error",x),C.off("subscription:confirmed"),j&&rA&&C.connected&&(console.log(`🔌 Unsubscribing from: ${j}@${rA}`),C.emit("unsubscribeCandles",{symbol:j,timeframe:rA}))}},[j,rA,ge]),b.useEffect(()=>{const C=l.current,F=a.current;if(!(!C||!F)&&!(D.length===0&&L.current)){if(D.length===0&&!L.current){if(N)return;const S=F.timeScale();C.setData([]),S.fitContent();return}if(!L.current){const S=F.timeScale(),M=hA(j,rA);J.current,J.current=M,console.log("sorted candles 1");const x=[...D].sort((AA,V)=>AA.time-V.time);if(console.log("📊 [CANDLES DEBUG] Initializing chart with candles:",{candleCount:x?.length,chartType:fA,seriesType:C?.seriesType?.()||"unknown",firstCandle:x[0],lastCandle:x[x?.length-1]}),console.log("sorted candles 2"),fA==="line"||fA==="area"){const AA=x?.map(V=>({time:V.time,value:V.close})).filter(V=>V.time!=null);AA.length>0&&(console.log("📊 [CANDLES DEBUG] Setting line/area data:",AA.length,"points"),C.setData(AA),console.log("✅ [CANDLES DEBUG] Line/area data set successfully"))}else console.log("sorted candles 3"),x?.length>0&&(console.log("📊 [CANDLES DEBUG] Setting candlestick data:",x?.length,"candles"),console.log("📊 [CANDLES DEBUG] First candle sample:",x[0]),console.log("📊 [CANDLES DEBUG] Last candle sample:",x[x?.length-1]),C.setData(x),console.log("✅ [CANDLES DEBUG] Candlestick data set successfully"));if(console.log("sorted candles 4"),x?.length>0){const AA=x[x?.length-1].time,V=Sr(rA)||60,O=rA==="M1"?150:rA==="M5"?120:100,G=AA-O*V;console.log("📊 [CANDLES DEBUG] Setting visible range:",{from:G,to:AA+V*2,visibleBars:O,timeframeSeconds:V});try{S.setVisibleRange({from:G,to:AA+V*2}),console.log("✅ [CANDLES DEBUG] Visible range set successfully")}catch(pA){console.warn("⚠️ [CANDLES DEBUG] Failed to set visible range, using fitContent:",pA),S.fitContent()}}else console.warn("⚠️ [CANDLES DEBUG] No candles to set visible range, using fitContent"),S.fitContent();try{F.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0}),console.log("✅ [CANDLES DEBUG] Price scale configured successfully")}catch{console.warn("⚠️ [CANDLES DEBUG] Failed to configure price scale")}L.current=!0;const K=S.getVisibleRange();Z(K),console.log("sorted candles 5"),console.log("✅ [CANDLES DEBUG] Chart initialization completed:",{hasInitialized:L.current,visibleRange:K,candleCount:x?.length})}}},[D.length,fA,j,rA]),b.useEffect(()=>{const C=a.current;if(!C||!L.current||D.length===0){console.log("⏳ [CANDLES DEBUG] Chart type switch skipped:",{hasChart:!!C,hasInitialized:L.current,candleCount:D.length,chartType:fA});return}console.log("🔄 [CANDLES DEBUG] Switching chart type:",{from:l.current?.seriesType?.()||"unknown",to:fA,candleCount:D.length});const F=C.timeScale(),S=F.getVisibleRange()||aA();if(l.current)try{C.removeSeries(l.current)}catch{}if(c.current)try{C.removeSeries(c.current),c.current=null}catch{}let M;if(fA==="bars"){const x=LA==="light";M=C.addBarSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",scaleMargins:{top:.1,bottom:.1}}),console.log("sorted candles 6");const K=[...D].sort((AA,V)=>AA.time-V.time);K?.length>0&&M.setData(K)}else if(fA==="line"){M=C.addLineSeries({color:"#38bdf8",lineWidth:2,priceLineVisible:!1,lastValueVisible:!0,scaleMargins:{top:.1,bottom:.1}});const x=ie(ze);x.length>0&&M.setData(x)}else if(fA==="area"){M=C.addAreaSeries({lineColor:"#38bdf8",topColor:"rgba(56,189,248,0.4)",bottomColor:"rgba(56,189,248,0.0)",lineWidth:2,priceLineVisible:!1,lastValueVisible:!0,scaleMargins:{top:.1,bottom:.1}});const x=ie(ze);x.length>0&&M.setData(x)}else if(fA==="volume ticks"||fA==="volume"){const x=LA==="light";M=C.addCandlestickSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",wickUpColor:x?"#089981":"#26A69A",wickDownColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",borderVisible:!0,priceScaleId:"right"}),console.log("sorted candles 7");const K=[...D].sort((O,G)=>O.time-G.time);K?.length>0&&M.setData(K);const AA=C.addHistogramSeries({priceFormat:{type:"volume"},priceScaleId:"vol",base:0,priceLineVisible:!1,lastValueVisible:!1,color:"rgba(38,166,154,0.15)"});C.priceScale("right").applyOptions({scaleMargins:{top:.05,bottom:.3}}),C.priceScale("vol").applyOptions({scaleMargins:{top:.75,bottom:0},visible:!1}),console.log("sorted candles 8");const V=K?.map(O=>({time:O.time,value:O.volume||0,color:O.close>=O.open?"rgba(38,166,154,0.25)":"rgba(239,83,80,0.25)"}));V.length>0&&AA.setData(V),c.current=AA}else{const x=LA==="light";M=C.addCandlestickSeries({upColor:x?"#089981":"#26A69A",downColor:x?"#f23645":"#EF5350",wickUpColor:x?"#089981":"#26A69A",wickDownColor:x?"#f23645":"#EF5350",borderUpColor:x?"#089981":"#26A69A",borderDownColor:x?"#f23645":"#EF5350",borderVisible:!0,scaleMargins:{top:.1,bottom:.1}}),console.log("sorted candles 9");const K=[...D].sort((AA,V)=>AA.time-V.time);K?.length>0&&M.setData(K)}if(l.current=M,S&&L.current)setTimeout(()=>{try{F.setVisibleRange(S),Z(S)}catch{if(D.length>0)try{const K=D[D.length-1].time,AA=K-6e3;F.setVisibleRange({from:AA,to:K}),Z(F.getVisibleRange())}catch{F.fitContent(),Z(F.getVisibleRange())}}try{C.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0})}catch{}},0);else if(!L.current){F.fitContent();try{C.priceScale("right").applyOptions({borderColor:"#1e293b",autoScale:!0,scaleMargins:{top:.1,bottom:.1},ticksVisible:!0,ensureEdgeTickMarksVisible:!0})}catch{}L.current=!0,Z(F.getVisibleRange())}},[fA,D.length,ze.length]),b.useEffect(()=>{const C=a.current,F=c.current;if(!C||!F||!L.current||D.length===0||fA!=="volume"&&fA!=="volume ticks")return;console.log("sorted candles 10");const S=[...D].sort((x,K)=>x.time-K.time);console.log("sorted candles 11");const M=S?.map(x=>({time:x.time,value:x.volume||0,color:x.close>=x.open?"rgba(38,166,154,0.25)":"rgba(239,83,80,0.25)"}));M.length>0&&F.setData(M)},[D,fA]),b.useEffect(()=>{const C=a.current,F=l.current,S=o.current;if(!C||!F||!S)return;const x=Y!==null?[null,null,"trendline","parallellines","fibonacci","rectangle","pricelevel","text",null,null,null,null,null,null,null,null,null][Y]:null;if(!x){if(f.current=!1,g.current=null,B.current=null,p.current=null,d.current?.series)try{C.removeSeries(d.current.series)}catch{}d.current=null;return}if(x==="pricelevel"){const O=G=>{const pA=S.getBoundingClientRect(),BA=G.clientX-pA.left,_=G.clientY-pA.top,nA=C.timeScale().coordinateToTime(BA),$=F.coordinateToPrice(_);if(nA==null||$==null)return;const eA={type:"pricelevel",priceLine:F.createPriceLine({price:$,color:"#3b82f6",lineWidth:2,lineStyle:2,axisLabelVisible:!0,title:$.toFixed(5)}),price:$};vA(lA=>[...lA,eA]),u.current.push(eA)};return S.addEventListener("click",O),()=>{S.removeEventListener("click",O)}}if(x==="trendline"){const O=_=>{_.preventDefault(),_.stopPropagation(),_.stopImmediatePropagation();const nA=S.getBoundingClientRect(),$=_.clientX-nA.left,sA=_.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(!(eA==null||lA==null)&&(eA=zA(eA),eA!=null))if(p.current===null){p.current={time:eA,price:lA};const q=C.addLineSeries({color:"#22c55e",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"trendline",series:q},q.setData([{time:eA,value:lA}])}else{const q=p.current,oA={time:eA,price:lA},wA=1,DA=1e-5,EA=Math.abs(oA.time-q.time),NA=Math.abs(oA.price-q.price);if(EA<wA&&NA<DA){try{C.removeSeries(d.current.series)}catch{}p.current=null,d.current=null;return}const We={time:q.time,price:q.price},Xe={time:oA.time,price:oA.price},Ue=ie([{time:We.time,value:We.price},{time:Xe.time,value:Xe.price}]);if(Ue.length>0){d.current.series.setData(Ue);const ut={type:"trendline",series:d.current.series,point1:We,point2:Xe};vA(St=>[...St,ut]),u.current.push(ut)}I(null),p.current=null,d.current=null}},G=_=>{if(p.current===null||d.current?.type!=="trendline")return;_.preventDefault(),_.stopPropagation();const nA=S.getBoundingClientRect(),$=_.clientX-nA.left,sA=_.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(eA==null||lA==null||(eA=zA(eA),eA==null))return;const q=p.current,oA=ie([{time:q.time,value:q.price},{time:eA,value:lA}]);oA.length>0&&d.current.series.setData(oA)},pA=_=>{_.stopPropagation()},BA={capture:!0,passive:!1};return S.addEventListener("click",O,BA),S.addEventListener("mousemove",G,BA),S.addEventListener("mousemove",pA,BA),()=>{if(p.current=null,d.current?.type==="trendline"&&d.current?.series){try{C.removeSeries(d.current.series)}catch{}d.current=null}S.removeEventListener("click",O,BA),S.removeEventListener("mousemove",G,BA),S.removeEventListener("mousemove",pA,BA)}}if(x==="parallellines"){const O={capture:!0,passive:!1},G=$=>{$.preventDefault(),$.stopPropagation(),$.stopImmediatePropagation();const sA=S.getBoundingClientRect(),eA=$.clientX-sA.left,lA=$.clientY-sA.top;let q=C.timeScale().coordinateToTime(eA);const oA=F.coordinateToPrice(lA);if(q==null||oA==null||(q=zA(q),q==null))return;const wA={time:q,price:oA},DA=m.current;if(DA.length===0){m.current=[wA];const EA=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});EA.setData([{time:q,value:oA}]),d.current={type:"parallellines",series:EA,previewLine:null}}else if(DA.length===1){m.current=[DA[0],wA];const EA=ie([{time:DA[0].time,value:DA[0].price},{time:q,value:oA}]);EA.length>0&&d.current.series.setData(EA),d.current.previewLine=C.addLineSeries({color:"#8b5cf6",lineWidth:2,lineStyle:2,priceLineVisible:!1,lastValueVisible:!1});const NA=Mo(C,F,DA[0],wA,wA);NA&&d.current.previewLine.setData(ie([{time:NA[0].time,value:NA[0].price},{time:NA[1].time,value:NA[1].price}]))}else{const[EA,NA]=DA,We=wA;if(d.current?.previewLine){try{C.removeSeries(d.current.previewLine)}catch{}d.current.previewLine=null}const Xe=d.current?.series;if(!Xe)return;const Ue=Mo(C,F,EA,NA,We);if(!Ue)return;const ut=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});Xe.setData(ie([{time:EA.time,value:EA.price},{time:NA.time,value:NA.price}])),ut.setData(ie([{time:Ue[0].time,value:Ue[0].price},{time:Ue[1].time,value:Ue[1].price}]));const St={type:"parallellines",point1:EA,point2:NA,point3:We,baseLine:Xe,parallelLine:ut};vA(Ps=>[...Ps,St]),u.current.push(St),I(null),m.current=[],d.current=null}},pA=$=>{const sA=m.current;if(sA.length!==1||!d.current?.series)return;const eA=S.getBoundingClientRect(),lA=$.clientX-eA.left,q=$.clientY-eA.top;let oA=C.timeScale().coordinateToTime(lA);const wA=F.coordinateToPrice(q);if(oA==null||wA==null||(oA=zA(oA),oA==null))return;const DA=ie([{time:sA[0].time,value:sA[0].price},{time:oA,value:wA}]);DA.length>0&&d.current.series.setData(DA)},BA=$=>{const sA=m.current;if(sA.length!==2||!d.current?.previewLine)return;const eA=S.getBoundingClientRect(),lA=$.clientX-eA.left,q=$.clientY-eA.top;let oA=C.timeScale().coordinateToTime(lA);const wA=F.coordinateToPrice(q);if(oA==null||wA==null||(oA=zA(oA),oA==null))return;const DA={time:oA,price:wA},EA=Mo(C,F,sA[0],sA[1],DA);EA&&d.current.previewLine.setData(ie([{time:EA[0].time,value:EA[0].price},{time:EA[1].time,value:EA[1].price}]))},_=$=>{pA($),BA($)},nA=$=>{$.stopPropagation()};return S.addEventListener("click",G,O),S.addEventListener("mousemove",_,O),S.addEventListener("mousemove",nA,O),()=>{if(m.current=[],d.current?.type==="parallellines"){try{d.current.series&&C.removeSeries(d.current.series),d.current.previewLine&&C.removeSeries(d.current.previewLine)}catch{}d.current=null}S.removeEventListener("click",G,O),S.removeEventListener("mousemove",_,O),S.removeEventListener("mousemove",nA,O)}}if(p.current=null,d.current?.type==="trendline"&&d.current?.series){try{C.removeSeries(d.current.series)}catch{}d.current=null}const K=O=>{if(O.preventDefault(),O.stopPropagation(),O.stopImmediatePropagation(),x==="trendline"||x==="parallellines"||x!=="rectangle"&&x!=="fibonacci")return;const G=S.getBoundingClientRect(),pA=O.clientX-G.left,BA=O.clientY-G.top;let _=C.timeScale().coordinateToTime(pA);const nA=F.coordinateToPrice(BA);if(!(_==null||nA==null)&&(_=zA(_),_!=null)){if(f.current=!0,g.current={time:_,price:nA},B.current=null,x==="rectangle"){const $=C.addBaselineSeries({baseValue:{type:"price",price:nA},topLineColor:"#2563eb",bottomLineColor:"#2563eb",topFillColor1:"rgba(59, 130, 246, 0.38)",topFillColor2:"rgba(59, 130, 246, 0.22)",bottomFillColor1:"rgba(59, 130, 246, 0.22)",bottomFillColor2:"rgba(59, 130, 246, 0.38)",priceLineVisible:!1,lastValueVisible:!1,lineWidth:2,lineStyle:0});d.current={type:"rectangle",series:$}}if(x==="fibonacci"){const $=C.addLineSeries({color:"#f59e0b",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"fibonacci",series:$,priceLines:[]}}if(x==="parallellines"){const $=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});d.current={type:"parallellines",series:$,firstLine:null,secondLine:null}}}},AA=O=>{if(!f.current||!g.current||!d.current)return;O.preventDefault(),O.stopPropagation(),O.stopImmediatePropagation();const G=S.getBoundingClientRect(),pA=O.clientX-G.left,BA=O.clientY-G.top;let _=C.timeScale().coordinateToTime(pA);const nA=F.coordinateToPrice(BA);if(_==null||nA==null||(_=zA(_),_==null))return;B.current={time:_,price:nA};const $=g.current;if(d.current.type==="rectangle"){const sA=Math.max($.price,nA),eA=Math.min($.price,nA),lA=zA(Math.min($.time,_)),q=zA(Math.max($.time,_));if(lA==null||q==null||Math.abs(q-lA)<1||Math.abs(sA-eA)<1e-5)return;const oA=d.current.series;oA.setData(ie([{time:lA,value:sA},{time:q,value:sA}])),oA.applyOptions({baseValue:{type:"price",price:eA}})}if(d.current.type==="fibonacci"){const sA=[{time:$.time,value:$.price},{time:_,value:nA}],eA=ie(sA);eA.length>0&&d.current.series.setData(eA),B.current={time:_,price:nA},d.current.priceLines&&(d.current.priceLines.forEach(lA=>{try{F.removePriceLine(lA)}catch{}}),d.current.priceLines=[])}if(d.current.type==="parallellines")if(d.current.firstLine){const sA=d.current.firstLine;sA.endTime-sA.startTime;const eA=sA.endPrice-sA.startPrice,lA=nA,q=lA+eA;if(d.current.secondLine)d.current.secondLine.setData([{time:$.time,value:lA},{time:_,value:q}]);else{const oA=C.addLineSeries({color:"#8b5cf6",lineWidth:2,priceLineVisible:!1,lastValueVisible:!1});oA.setData([{time:$.time,value:lA},{time:_,value:q}]),d.current.secondLine=oA}}else d.current.series.setData([{time:$.time,value:$.price},{time:_,value:nA}])},V=O=>{if(O&&(O.preventDefault(),O.stopPropagation()),!f.current||!d.current||!g.current)return;const G=g.current,pA=B.current||G;if(d.current.type==="parallellines")if(d.current.firstLine){const BA={type:"parallellines",firstLine:d.current.series,secondLine:d.current.secondLine,firstLineData:d.current.firstLine};vA(_=>[..._,BA]),u.current.push(BA),I(null),d.current=null,f.current=!1,g.current=null,B.current=null;return}else{d.current.firstLine={startTime:G.time,startPrice:G.price,endTime:pA.time,endPrice:pA.price},f.current=!1,g.current=null,B.current=null;return}if(d.current.type==="fibonacci"){const _=(B.current||G).price;if(Math.abs(G.price-_)<1e-4){try{C.removeSeries(d.current.series)}catch{}f.current=!1,g.current=null,B.current=null,d.current=null;return}const nA=Math.max(G.price,_),$=Math.min(G.price,_),sA=nA-$,eA=[{level:0,label:"0.0%"},{level:.236,label:"23.6%"},{level:.382,label:"38.2%"},{level:.5,label:"50.0%"},{level:.618,label:"61.8%"},{level:.786,label:"78.6%"},{level:1,label:"100.0%"}],lA=[],q=d.current.series;try{C.removeSeries(q)}catch{}eA.forEach(({level:wA,label:DA})=>{const EA=nA-sA*wA,NA=F.createPriceLine({price:EA,color:wA===0||wA===1?"#f59e0b":"#fbbf24",lineWidth:wA===0||wA===1?2:1,lineStyle:wA===0||wA===1?0:2,axisLabelVisible:!0,title:`${DA} (${EA.toFixed(5)})`,textColor:wA===0||wA===1?"#f59e0b":"#fbbf24"});lA.push(NA)});const oA={type:"fibonacci",priceLines:lA,startPrice:G.price,endPrice:_,high:nA,low:$};vA(wA=>[...wA,oA]),u.current.push(oA),I(null)}if(d.current.type==="rectangle"){const BA=g.current,_=B.current||BA,nA=Math.max(BA.price,_.price),$=Math.min(BA.price,_.price),sA=zA(Math.min(BA.time,_.time)),eA=zA(Math.max(BA.time,_.time));if(sA!=null&&eA!=null&&Math.abs(eA-sA)>=1&&Math.abs(nA-$)>=1e-5){const lA=d.current.series;lA.setData(ie([{time:sA,value:nA},{time:eA,value:nA}])),lA.applyOptions({baseValue:{type:"price",price:$}});const q={type:"rectangle",timeStart:sA,timeEnd:eA,priceTop:nA,priceBottom:$,series:lA};vA(oA=>[...oA,q]),u.current.push(q),I(null)}else try{C.removeSeries(d.current.series)}catch{}}f.current=!1,g.current=null,B.current=null,d.current=null};if(x==="rectangle"||x==="fibonacci"||x==="parallellines"){const O={capture:!0,passive:!1},G=pA=>{f.current||pA.stopPropagation()};return S.addEventListener("mousedown",K,O),S.addEventListener("mousemove",AA,O),S.addEventListener("mousemove",G,O),S.addEventListener("mouseup",V,O),()=>{S.removeEventListener("mousedown",K,O),S.removeEventListener("mousemove",AA,O),S.removeEventListener("mousemove",G,O),S.removeEventListener("mouseup",V,O)}}},[Y,vA,I]),b.useEffect(()=>{const C=a.current,F=l.current,S=o.current,M=Y===null||Y===1;if(!M||!C||!F||!S){M||(v(null),E([]));return}const x=10,K=8;function AA(BA,_){const nA=FA.filter($=>$.type==="trendline"&&$.point1&&$.point2);for(let $=nA.length-1;$>=0;$--){const sA=nA[$],eA=C.timeScale().timeToCoordinate(sA.point1.time),lA=F.priceToCoordinate(sA.point1.price),q=C.timeScale().timeToCoordinate(sA.point2.time),oA=F.priceToCoordinate(sA.point2.price);if(eA==null||lA==null||q==null||oA==null)continue;const wA=Math.hypot(BA-eA,_-lA),DA=Math.hypot(BA-q,_-oA);if(wA<x)return{object:sA,mode:"handle1"};if(DA<x)return{object:sA,mode:"handle2"};if(yv(BA,_,eA,lA,q,oA)<K)return{object:sA,mode:"line"}}return null}const V=BA=>{const _=S.getBoundingClientRect(),nA=BA.clientX-_.left,$=BA.clientY-_.top,sA=AA(nA,$);sA?(BA.preventDefault(),BA.stopPropagation(),v(sA.object),U.current=sA.mode,sA.mode==="line"&&(T.current={x:nA,y:$,point1:{...sA.object.point1},point2:{...sA.object.point2}})):(v(null),U.current=null)},O=BA=>{if(!U.current)return;const _=k.current;if(!_||!_.point1||!_.point2)return;const nA=S.getBoundingClientRect(),$=BA.clientX-nA.left,sA=BA.clientY-nA.top;let eA=C.timeScale().coordinateToTime($);const lA=F.coordinateToPrice(sA);if(!(eA==null||lA==null)&&(eA=zA(eA),eA!=null)){if(U.current==="handle1"){const q={time:eA,price:lA},oA=ie([{time:q.time,value:q.price},{time:_.point2.time,value:_.point2.price}]);oA.length>0&&_.series.setData(oA);const wA={..._,point1:q};vA(DA=>{const EA=DA.map(NA=>NA===_?wA:NA);return u.current=EA,EA}),v(wA),k.current=wA}else if(U.current==="handle2"){const q={time:eA,price:lA},oA=ie([{time:_.point1.time,value:_.point1.price},{time:q.time,value:q.price}]);oA.length>0&&_.series.setData(oA);const wA={..._,point2:q};vA(DA=>{const EA=DA.map(NA=>NA===_?wA:NA);return u.current=EA,EA}),v(wA),k.current=wA}else if(U.current==="line"){const q=T.current;if(!q)return;const oA=C.timeScale().coordinateToTime(q.x),wA=F.coordinateToPrice(q.y);if(oA==null||wA==null)return;const DA=eA-oA,EA=lA-wA,NA={time:zA(q.point1.time+DA),price:q.point1.price+EA},We={time:zA(q.point2.time+DA),price:q.point2.price+EA},Xe=ie([{time:NA.time,value:NA.price},{time:We.time,value:We.price}]);Xe.length>0&&_.series.setData(Xe);const Ue={..._,point1:NA,point2:We};vA(ut=>{const St=ut.map(Ps=>Ps===_?Ue:Ps);return u.current=St,St}),v(Ue),k.current=Ue}}},G=()=>{U.current=null,T.current=null},pA={capture:!0,passive:!1};return S.addEventListener("mousedown",V,pA),S.addEventListener("mousemove",O,pA),S.addEventListener("mouseup",G,pA),()=>{S.removeEventListener("mousedown",V,pA),S.removeEventListener("mousemove",O,pA),S.removeEventListener("mouseup",G,pA)}},[Y,FA,vA]),b.useEffect(()=>{const C=a.current,F=l.current;if(!C||!F)return;const S=()=>{const x=w;if(!x||x.type!=="trendline"||!x.point1||!x.point2){E([]);return}const K=C.timeScale(),AA=K.timeToCoordinate(x.point1.time),V=F.priceToCoordinate(x.point1.price),O=K.timeToCoordinate(x.point2.time),G=F.priceToCoordinate(x.point2.price);AA!=null&&V!=null&&O!=null&&G!=null?E([{x:AA,y:V},{x:O,y:G}]):E([])};S();const M=C.timeScale();return M.subscribeVisibleTimeRangeChange(S),()=>{M.unsubscribeVisibleTimeRangeChange(S)}},[w]),b.useEffect(()=>{!a.current||!l.current||u.current.forEach(C=>{C.series&&C.series.applyOptions({visible:mA}),C.priceLine&&C.priceLine.applyOptions(mA?{color:"#3b82f6",axisLabelVisible:!0,title:typeof C.price=="number"?C.price.toFixed(5):""}:{color:"rgba(0,0,0,0)",axisLabelVisible:!1,title:""}),C.type==="fibonacci"&&C.priceLines&&C.priceLines.forEach(F=>{try{F.applyOptions({lineVisible:mA,axisLabelVisible:mA})}catch{}}),C.type==="rectangle"&&C.series&&C.series.applyOptions({visible:mA}),C.type==="parallellines"&&(C.baseLine&&C.baseLine.applyOptions({visible:mA}),C.parallelLine&&C.parallelLine.applyOptions({visible:mA}),C.firstLine&&C.firstLine.applyOptions({visible:mA}),C.secondLine&&C.secondLine.applyOptions({visible:mA}))})},[mA,FA]),b.useEffect(()=>{!mA&&w&&(v(null),E([]))},[mA,w]),b.useEffect(()=>{if(u.current.length>FA.length){const C=u.current.filter((F,S)=>!FA.includes(F));w&&C.some(F=>F===w)&&(v(null),E([])),C.forEach(F=>{if(F.series&&a.current?.removeSeries(F.series),F.priceLine&&l.current?.removePriceLine(F.priceLine),F.type==="fibonacci"&&F.priceLines&&F.priceLines.forEach(S=>{try{l.current?.removePriceLine(S)}catch{}}),F.type==="rectangle"&&F.series)try{a.current?.removeSeries(F.series)}catch{}if(F.type==="parallellines")try{F.baseLine&&a.current?.removeSeries(F.baseLine),F.parallelLine&&a.current?.removeSeries(F.parallelLine),F.firstLine&&a.current?.removeSeries(F.firstLine),F.secondLine&&a.current?.removeSeries(F.secondLine)}catch{}}),u.current=FA}},[FA,w]),b.useEffect(()=>{const C=l.current;return C?(Te.current.forEach(S=>{try{C.removePriceLine(S)}catch{}}),Te.current=[],SA.filter(S=>S.symbol===j).forEach(S=>{const M=parseFloat(S.price);if(isNaN(M))return;const K=S.type==="BUY"?"#26A69A":"#EF5350",AA=C.createPriceLine({price:M,color:K,lineWidth:2,lineStyle:0,axisLabelVisible:!0,title:`${S.type} ${S.volume} @ ${S.price}`,textColor:K});Te.current.push(AA)}),()=>{Te.current.forEach(S=>{try{C.removePriceLine(S)}catch{}}),Te.current=[]}):void 0},[SA,j]),h.jsx("div",{className:`flex-1 flex flex-col min-w-0 overflow-hidden ${LA==="light"?"bg-white":"bg-[#12161d]"}`,children:h.jsxs("div",{ref:o,className:"flex-1 w-full h-full relative",style:{cursor:Y===1||Y!==null?"crosshair":"default",minHeight:0,minWidth:0},onDoubleClick:C=>{a.current&&!f.current&&(C.preventDefault(),C.stopPropagation(),a.current.timeScale().fitContent(),Z(a.current.timeScale().getVisibleRange()))},children:[t&&h.jsx("div",{className:"absolute top-3 left-3 z-50",children:h.jsx(uc,{bidPrice:A,askPrice:e,onBuyClick:Qi,onSellClick:_o})}),h.jsx(fc,{isOpen:qt,onClose:Oo,orderType:UA,bidPrice:A,askPrice:e}),mA&&w?.type==="trendline"&&w?.point1&&w?.point2&&y.length===2&&h.jsx("div",{className:"absolute inset-0 z-20 pointer-events-none","aria-hidden":!0,children:y.map((C,F)=>h.jsx("div",{className:"absolute w-[10px] h-[10px] rounded-full border-2 border-white bg-[#22c55e] shadow",style:{left:C.x-5,top:C.y-5}},F))})]})})}),_A={container:{position:"relative",display:"inline-block",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},button:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"6px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,cursor:"pointer",minWidth:"120px",justifyContent:"space-between",transition:"all 0.15s ease"},buttonHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},arrow:{fontSize:"10px",color:"#94a3b8",transition:"transform 0.2s ease"},arrowOpen:{transform:"rotate(180deg)"},dropdown:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.4)",zIndex:1e3,minWidth:"220px",maxHeight:"320px",overflow:"hidden",display:"flex",flexDirection:"column"},searchContainer:{padding:"8px",borderBottom:"1px solid #334155"},searchInput:{width:"100%",padding:"6px 10px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"12px",outline:"none",boxSizing:"border-box"},list:{overflowY:"auto",maxHeight:"260px",padding:"4px 0"},item:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",cursor:"pointer",fontSize:"13px",color:"#cbd5e1",transition:"background-color 0.1s ease"},itemSelected:{backgroundColor:"#1e3a5f",color:"#60a5fa"},symbolName:{fontWeight:600},symbolPrice:{fontSize:"11px",color:"#94a3b8"},priceUp:{color:"#26A69A"},priceDown:{color:"#EF5350"},categoryLabel:{padding:"6px 12px 4px",fontSize:"10px",fontWeight:700,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},empty:{padding:"16px",textAlign:"center",color:"#64748b",fontSize:"12px"}};function Fu({style:s,className:A}){const{selectedSymbol:e,setSelectedSymbol:t,symbols:r,symbolsLoading:i}=Ae(),[n,o]=b.useState(!1),[a,l]=b.useState(""),[c,u]=b.useState(-1),f=b.useRef(null),g=b.useRef(null);b.useEffect(()=>{const w=v=>{f.current&&!f.current.contains(v.target)&&(o(!1),l(""))};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),b.useEffect(()=>{n&&g.current&&g.current.focus()},[n]);const B=r.filter(w=>w.symbol.toLowerCase().includes(a.toLowerCase())),d=B.filter(w=>!w.symbol.endsWith("USDT")),p=B.filter(w=>w.symbol.endsWith("USDT")),m=w=>{t(w),o(!1),l("")};return r.find(w=>w.symbol===e),h.jsxs("div",{ref:f,style:{..._A.container,...s},className:A,children:[h.jsxs("button",{style:_A.button,onClick:()=>o(!n),onMouseEnter:w=>Object.assign(w.currentTarget.style,_A.buttonHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:[h.jsx("span",{children:i?"Loading...":e||"Select Coin"}),h.jsx("span",{style:{..._A.arrow,...n?_A.arrowOpen:{}},children:"▼"})]}),n&&h.jsxs("div",{style:_A.dropdown,children:[h.jsx("div",{style:_A.searchContainer,children:h.jsx("input",{ref:g,style:_A.searchInput,type:"text",placeholder:"Search symbol...",value:a,onChange:w=>l(w.target.value)})}),h.jsx("div",{style:_A.list,children:B.length===0?h.jsx("div",{style:_A.empty,children:"No symbols found"}):h.jsxs(h.Fragment,{children:[d.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{style:_A.categoryLabel,children:"Forex & Metals"}),d.map(w=>h.jsxs("div",{style:{..._A.item,...w.symbol===e?_A.itemSelected:{}},onClick:()=>m(w.symbol),onMouseEnter:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="#334155")},onMouseLeave:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="transparent")},children:[h.jsx("span",{style:_A.symbolName,children:w.symbol}),w.bid&&h.jsx("span",{style:{..._A.symbolPrice,...parseFloat(w.change)>=0?_A.priceUp:_A.priceDown},children:parseFloat(w.bid).toFixed(5)})]},w.symbol))]}),p.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{style:_A.categoryLabel,children:"Crypto"}),p.map(w=>h.jsxs("div",{style:{..._A.item,...w.symbol===e?_A.itemSelected:{}},onClick:()=>m(w.symbol),onMouseEnter:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="#334155")},onMouseLeave:v=>{w.symbol!==e&&(v.currentTarget.style.backgroundColor="transparent")},children:[h.jsx("span",{style:_A.symbolName,children:w.symbol}),w.bid&&h.jsx("span",{style:{..._A.symbolPrice,...parseFloat(w.change)>=0?_A.priceUp:_A.priceDown},children:parseFloat(w.bid).toFixed(2)})]},w.symbol))]})]})})]})]})}const Ge={container:{display:"inline-flex",alignItems:"center",gap:"4px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",color:"#94a3b8",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.03em",marginRight:"4px",whiteSpace:"nowrap"},btn:{display:"flex",alignItems:"center",justifyContent:"center",width:"26px",height:"26px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"14px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",padding:0,lineHeight:1,userSelect:"none"},btnHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},input:{width:"70px",padding:"4px 6px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"center",outline:"none",boxSizing:"border-box"},presets:{display:"inline-flex",gap:"2px",marginLeft:"4px"},preset:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},presetActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}},Uv=[.01,.05,.1,.5,1];function Uu({value:s,onChange:A,min:e=.01,max:t=100,step:r=.01,presets:i=Uv,showPresets:n=!0,showLabel:o=!0,label:a="Vol",style:l,className:c}){const[u,f]=b.useState(.1),g=s!==void 0?s:u,B=b.useCallback(w=>{const v=Math.max(e,Math.min(t,parseFloat(w)||e)),y=Math.round(v/r)*r,E=parseFloat(y.toFixed(8));s!==void 0||f(E),A?.(E)},[e,t,r,s,A]),d=()=>B(g+r),p=()=>B(g-r),m=(g>=1,g.toFixed(2));return h.jsxs("div",{style:{...Ge.container,...l},className:c,children:[o&&h.jsx("span",{style:Ge.label,children:a}),h.jsx("button",{style:Ge.btn,onClick:p,onMouseEnter:w=>Object.assign(w.currentTarget.style,Ge.btnHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:"−"}),h.jsx("input",{style:Ge.input,type:"text",value:m,onChange:w=>{const v=w.target.value;if(v===""||v==="."||v==="0.")return;const y=parseFloat(v);isNaN(y)||B(y)},onBlur:()=>B(g)}),h.jsx("button",{style:Ge.btn,onClick:d,onMouseEnter:w=>Object.assign(w.currentTarget.style,Ge.btnHover),onMouseLeave:w=>{w.currentTarget.style.borderColor="#334155",w.currentTarget.style.backgroundColor="#1e293b"},children:"+"}),n&&i&&i.length>0&&h.jsx("div",{style:Ge.presets,children:i.map(w=>h.jsx("button",{style:{...Ge.preset,...Math.abs(g-w)<1e-4?Ge.presetActive:{}},onClick:()=>B(w),onMouseEnter:v=>{Math.abs(g-w)>=1e-4&&Object.assign(v.currentTarget.style,{borderColor:"#3b82f6"})},onMouseLeave:v=>{Math.abs(g-w)>=1e-4&&(v.currentTarget.style.borderColor="#334155")},children:w},w))})]})}const de={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",fontWeight:700,color:"#EF5350",textTransform:"uppercase",letterSpacing:"0.03em",whiteSpace:"nowrap"},toggle:{position:"relative",width:"32px",height:"18px",borderRadius:"9px",cursor:"pointer",transition:"background-color 0.2s ease",border:"none",padding:0},toggleOff:{backgroundColor:"#334155"},toggleOn:{backgroundColor:"#EF5350"},toggleKnob:{position:"absolute",top:"2px",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#fff",transition:"left 0.2s ease"},knobOff:{left:"2px"},knobOn:{left:"16px"},inputGroup:{display:"inline-flex",alignItems:"center",gap:"4px"},input:{width:"90px",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"right",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease"},modeBtn:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"10px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},modeBtnActive:{backgroundColor:"#3b1515",borderColor:"#EF5350",color:"#EF5350"}};function Eu({value:s,onChange:A,enabled:e,onEnabledChange:t,mode:r,onModeChange:i,showToggle:n=!0,showModeSwitch:o=!0,showLabel:a=!0,label:l="SL",style:c,className:u}){const{currentSymbolData:f}=Ae(),[g,B]=b.useState(""),[d,p]=b.useState(!1),[m,w]=b.useState("price"),v=s!==void 0?s:g,y=e!==void 0?e:d,E=r!==void 0?r:m,U=b.useCallback(J=>{e!==void 0||p(J),t?.(J)},[e,t]),T=b.useCallback(J=>{r!==void 0||w(J),i?.(J)},[r,i]),k=b.useCallback(J=>{s!==void 0||B(J),A?.(J)},[s,A]),L=J=>{const hA=J.target.value;if(hA===""||hA==="."||hA==="0."){k(hA);return}const aA=parseFloat(hA);isNaN(aA)||k(hA)},iA=E==="price"?f?.bid?parseFloat(f.bid).toFixed(5):"0.00000":"50";return h.jsxs("div",{style:{...de.container,...c},className:u,children:[a&&h.jsx("span",{style:de.label,children:l}),n&&h.jsx("button",{style:{...de.toggle,...y?de.toggleOn:de.toggleOff},onClick:()=>U(!y),children:h.jsx("div",{style:{...de.toggleKnob,...y?de.knobOn:de.knobOff}})}),(y||!n)&&h.jsxs("div",{style:de.inputGroup,children:[h.jsx("input",{style:de.input,type:"text",value:v,onChange:L,placeholder:iA,onFocus:J=>J.currentTarget.style.borderColor="#EF5350",onBlur:J=>J.currentTarget.style.borderColor="#334155"}),o&&h.jsxs(h.Fragment,{children:[h.jsx("button",{style:{...de.modeBtn,...E==="price"?de.modeBtnActive:{}},onClick:()=>T("price"),children:"Price"}),h.jsx("button",{style:{...de.modeBtn,...E==="pips"?de.modeBtnActive:{}},onClick:()=>T("pips"),children:"Pips"})]})]})]})}const Be={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",fontWeight:700,color:"#26A69A",textTransform:"uppercase",letterSpacing:"0.03em",whiteSpace:"nowrap"},toggle:{position:"relative",width:"32px",height:"18px",borderRadius:"9px",cursor:"pointer",transition:"background-color 0.2s ease",border:"none",padding:0},toggleOff:{backgroundColor:"#334155"},toggleOn:{backgroundColor:"#26A69A"},toggleKnob:{position:"absolute",top:"2px",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#fff",transition:"left 0.2s ease"},knobOff:{left:"2px"},knobOn:{left:"16px"},inputGroup:{display:"inline-flex",alignItems:"center",gap:"4px"},input:{width:"90px",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"13px",fontWeight:600,textAlign:"right",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease"},modeBtn:{padding:"3px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"10px",cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},modeBtnActive:{backgroundColor:"#0d2e2a",borderColor:"#26A69A",color:"#26A69A"}};function xu({value:s,onChange:A,enabled:e,onEnabledChange:t,mode:r,onModeChange:i,showToggle:n=!0,showModeSwitch:o=!0,showLabel:a=!0,label:l="TP",style:c,className:u}){const{currentSymbolData:f}=Ae(),[g,B]=b.useState(""),[d,p]=b.useState(!1),[m,w]=b.useState("price"),v=s!==void 0?s:g,y=e!==void 0?e:d,E=r!==void 0?r:m,U=b.useCallback(J=>{e!==void 0||p(J),t?.(J)},[e,t]),T=b.useCallback(J=>{r!==void 0||w(J),i?.(J)},[r,i]),k=b.useCallback(J=>{s!==void 0||B(J),A?.(J)},[s,A]),L=J=>{const hA=J.target.value;if(hA===""||hA==="."||hA==="0."){k(hA);return}const aA=parseFloat(hA);isNaN(aA)||k(hA)},iA=E==="price"?f?.ask?parseFloat(f.ask).toFixed(5):"0.00000":"50";return h.jsxs("div",{style:{...Be.container,...c},className:u,children:[a&&h.jsx("span",{style:Be.label,children:l}),n&&h.jsx("button",{style:{...Be.toggle,...y?Be.toggleOn:Be.toggleOff},onClick:()=>U(!y),children:h.jsx("div",{style:{...Be.toggleKnob,...y?Be.knobOn:Be.knobOff}})}),(y||!n)&&h.jsxs("div",{style:Be.inputGroup,children:[h.jsx("input",{style:Be.input,type:"text",value:v,onChange:L,placeholder:iA,onFocus:J=>J.currentTarget.style.borderColor="#26A69A",onBlur:J=>J.currentTarget.style.borderColor="#334155"}),o&&h.jsxs(h.Fragment,{children:[h.jsx("button",{style:{...Be.modeBtn,...E==="price"?Be.modeBtnActive:{}},onClick:()=>T("price"),children:"Price"}),h.jsx("button",{style:{...Be.modeBtn,...E==="pips"?Be.modeBtnActive:{}},onClick:()=>T("pips"),children:"Pips"})]})]})]})}const Ev=[{id:1,name:"Crosshair",icon:"+"},{id:2,name:"Trend Line",icon:"╱"},{id:3,name:"Parallel Channel",icon:"═"},{id:4,name:"Fibonacci",icon:"≡"},{id:5,name:"Rectangle",icon:"▭"},{id:6,name:"Price Level",icon:"─"}],Re={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},label:{fontSize:"11px",color:"#94a3b8",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.03em",marginRight:"4px",whiteSpace:"nowrap"},btn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"14px",cursor:"pointer",transition:"all 0.15s ease",padding:0,position:"relative"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"},btnHover:{borderColor:"#3b82f6",backgroundColor:"#1e3a5f"},tooltip:{position:"absolute",bottom:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",padding:"4px 8px",backgroundColor:"#0f172a",border:"1px solid #334155",borderRadius:"4px",color:"#e2e8f0",fontSize:"11px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:100},divider:{width:"1px",height:"20px",backgroundColor:"#334155",margin:"0 4px"},deleteBtn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease",padding:0},deleteBtnHover:{borderColor:"#EF5350",backgroundColor:"#3b1515",color:"#EF5350"},visibilityBtn:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease",padding:0}};function Su({showLabel:s=!0,showDelete:A=!0,showVisibility:e=!0,tools:t,label:r="Draw",style:i,className:n}){const{activeTool:o,setActiveTool:a,drawingsVisible:l,setDrawingsVisible:c,chartObjects:u,setChartObjects:f}=Ae(),[g,B]=b.useState(null),d=t||Ev,p=v=>{a(o===v?null:v)},m=()=>{f([]),a(null)},w=()=>{c(!l)};return h.jsxs("div",{style:{...Re.container,...i},className:n,children:[s&&h.jsx("span",{style:Re.label,children:r}),d.map(v=>h.jsxs("button",{style:{...Re.btn,...o===v.id?Re.btnActive:{}},onClick:()=>p(v.id),onMouseEnter:y=>{B(v.id),o!==v.id&&Object.assign(y.currentTarget.style,Re.btnHover)},onMouseLeave:y=>{B(null),o!==v.id&&(y.currentTarget.style.borderColor="#334155",y.currentTarget.style.backgroundColor="#1e293b",y.currentTarget.style.color="#94a3b8")},title:v.name,children:[v.icon,g===v.id&&h.jsx("div",{style:Re.tooltip,children:v.name})]},v.id)),(A||e)&&h.jsx("div",{style:Re.divider}),e&&h.jsx("button",{style:{...Re.visibilityBtn,...l?{}:{color:"#64748b",backgroundColor:"#0f172a"}},onClick:w,onMouseEnter:v=>{v.currentTarget.style.borderColor="#3b82f6"},onMouseLeave:v=>{v.currentTarget.style.borderColor="#334155"},title:l?"Hide Drawings":"Show Drawings",children:l?"👁":"○"}),A&&h.jsx("button",{style:Re.deleteBtn,onClick:m,onMouseEnter:v=>Object.assign(v.currentTarget.style,Re.deleteBtnHover),onMouseLeave:v=>{v.currentTarget.style.borderColor="#334155",v.currentTarget.style.backgroundColor="#1e293b",v.currentTarget.style.color="#94a3b8"},title:"Delete All Drawings",children:"🗑"})]})}const Hu={toolbar:{display:"flex",alignItems:"center",gap:"12px",padding:"6px 12px",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",flexWrap:"wrap",minHeight:"42px"},divider:{width:"1px",height:"24px",backgroundColor:"#1e293b",flexShrink:0}};function xv({showCoinSelector:s=!0,showVolumeControl:A=!0,showStopLoss:e=!0,showTakeProfit:t=!0,showDrawingTools:r=!0,showDividers:i=!0,volume:n,onVolumeChange:o,stopLoss:a,onStopLossChange:l,stopLossEnabled:c,onStopLossEnabledChange:u,takeProfit:f,onTakeProfitChange:g,takeProfitEnabled:B,onTakeProfitEnabledChange:d,coinSelectorProps:p={},volumeControlProps:m={},stopLossProps:w={},takeProfitProps:v={},drawingToolsProps:y={},style:E,className:U}){const T=[];s&&T.push(h.jsx(Fu,{...p},"coin")),A&&T.push(h.jsx(Uu,{value:n,onChange:o,...m},"volume")),e&&T.push(h.jsx(Eu,{value:a,onChange:l,enabled:c,onEnabledChange:u,...w},"sl")),t&&T.push(h.jsx(xu,{value:f,onChange:g,enabled:B,onEnabledChange:d,...v},"tp")),r&&T.push(h.jsx(Su,{...y},"draw"));const k=[];return T.forEach((L,iA)=>{k.push(L),i&&iA<T.length-1&&k.push(h.jsx("div",{style:Hu.divider},`div-${iA}`))}),h.jsx("div",{style:{...Hu.toolbar,...E},className:U,children:k})}const Sv=[{label:"M1",value:"M1"},{label:"M5",value:"M5"},{label:"M15",value:"M15"},{label:"M30",value:"M30"},{label:"H1",value:"H1"},{label:"H4",value:"H4"},{label:"D1",value:"D1"},{label:"W1",value:"W1"}],Do={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},btn:{padding:"4px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}};function Hv({style:s,className:A}){const{selectedTimeframe:e,setSelectedTimeframe:t}=Ae();return h.jsx("div",{style:{...Do.container,...s},className:A,children:Sv.map(r=>h.jsx("button",{style:{...Do.btn,...e===r.value?Do.btnActive:{}},onClick:()=>t(r.value),onMouseEnter:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#3b82f6")},onMouseLeave:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#334155")},children:r.label},r.value))})}const Lv=[{label:"Candles",value:"candles",icon:"📊"},{label:"Line",value:"line",icon:"📈"},{label:"Area",value:"area",icon:"▤"},{label:"Bars",value:"bars",icon:"▥"}],ko={container:{display:"inline-flex",alignItems:"center",gap:"2px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},btn:{padding:"4px 8px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"4px",color:"#94a3b8",fontSize:"11px",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"3px"},btnActive:{backgroundColor:"#1e3a5f",borderColor:"#3b82f6",color:"#60a5fa"}};function Iv({style:s,className:A}){const{chartType:e,setChartType:t}=Ae();return h.jsx("div",{style:{...ko.container,...s},className:A,children:Lv.map(r=>h.jsxs("button",{style:{...ko.btn,...e===r.value?ko.btnActive:{}},onClick:()=>t(r.value),onMouseEnter:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#3b82f6")},onMouseLeave:i=>{e!==r.value&&(i.currentTarget.style.borderColor="#334155")},title:r.label,children:[h.jsx("span",{children:r.icon}),h.jsx("span",{children:r.label})]},r.value))})}const ae={container:{display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},priceBox:{display:"flex",flexDirection:"column",alignItems:"center",padding:"4px 10px",backgroundColor:"#0f172a",borderRadius:"4px",minWidth:"80px"},priceLabel:{fontSize:"9px",color:"#64748b",textTransform:"uppercase",fontWeight:600,letterSpacing:"0.05em"},priceValue:{fontSize:"13px",fontWeight:700,fontFamily:"monospace"},spread:{fontSize:"9px",color:"#64748b",padding:"0 4px",display:"flex",flexDirection:"column",alignItems:"center",gap:"1px"},spreadLabel:{fontSize:"8px",textTransform:"uppercase",letterSpacing:"0.05em"},spreadValue:{fontSize:"10px",fontWeight:700,color:"#94a3b8"},sellBtn:{padding:"6px 16px",backgroundColor:"#7f1d1d",border:"1px solid #991b1b",borderRadius:"4px",color:"#fca5a5",fontSize:"12px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",textTransform:"uppercase",letterSpacing:"0.03em",minWidth:"70px"},sellBtnHover:{backgroundColor:"#991b1b",borderColor:"#EF5350"},buyBtn:{padding:"6px 16px",backgroundColor:"#14532d",border:"1px solid #166534",borderRadius:"4px",color:"#86efac",fontSize:"12px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease",textTransform:"uppercase",letterSpacing:"0.03em",minWidth:"70px"},buyBtnHover:{backgroundColor:"#166534",borderColor:"#26A69A"},status:{fontSize:"10px",padding:"2px 8px",borderRadius:"3px",fontWeight:600,whiteSpace:"nowrap"}};function Tv({volume:s=.1,stopLoss:A,takeProfit:e,onTradeExecuted:t,style:r,className:i}){const{selectedSymbol:n,currentSymbolData:o,setOrders:a,setUserBalance:l}=Ae(),[c,u]=b.useState(null),f=parseFloat(o?.bid||0),g=parseFloat(o?.ask||0),B=g>0&&f>0?Math.abs(g-f):0,d=w=>!w||w===0?"-.-----":w>=1e3?w.toFixed(2):w>=1?w.toFixed(4):w.toFixed(5),p=w=>w===0?"-":w>=1?w.toFixed(1):w>=.01?w.toFixed(3):(w*1e4).toFixed(1)+"p",m=b.useCallback(w=>{if(!n)return;const v=w==="BUY"?g:f;if(!v||v<=0){u({type:"error",message:"No price available"});return}const y={id:Date.now().toString(),ticket:Math.floor(Math.random()*9e5)+1e5,symbol:n,type:w,volume:s,price:v,stopLoss:A?parseFloat(A):null,takeProfit:e?parseFloat(e):null,status:"OPEN",profit:0,swap:0,openAt:new Date().toISOString(),time:new Date().toLocaleTimeString()};a(U=>[...U,y]);const E=s*v*.01;l(U=>U-E),u({type:"success",message:`${w} executed`}),t?.(y),setTimeout(()=>u(null),3e3)},[n,g,f,s,A,e,a,l,t]);return h.jsxs("div",{style:{...ae.container,...r},className:i,children:[h.jsx("button",{style:ae.sellBtn,onClick:()=>m("SELL"),onMouseEnter:w=>{Object.assign(w.currentTarget.style,ae.sellBtnHover)},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#7f1d1d",w.currentTarget.style.borderColor="#991b1b"},children:"Sell"}),h.jsxs("div",{style:ae.priceBox,children:[h.jsx("span",{style:ae.priceLabel,children:"Bid"}),h.jsx("span",{style:{...ae.priceValue,color:"#EF5350"},children:d(f)})]}),h.jsxs("div",{style:ae.spread,children:[h.jsx("span",{style:ae.spreadLabel,children:"Spread"}),h.jsx("span",{style:ae.spreadValue,children:p(B)})]}),h.jsxs("div",{style:ae.priceBox,children:[h.jsx("span",{style:ae.priceLabel,children:"Ask"}),h.jsx("span",{style:{...ae.priceValue,color:"#26A69A"},children:d(g)})]}),h.jsx("button",{style:ae.buyBtn,onClick:()=>m("BUY"),onMouseEnter:w=>{Object.assign(w.currentTarget.style,ae.buyBtnHover)},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#14532d",w.currentTarget.style.borderColor="#166534"},children:"Buy"}),c&&h.jsx("span",{style:{...ae.status,backgroundColor:c.type==="success"?"#14532d":"#7f1d1d",color:c.type==="success"?"#86efac":"#fca5a5",border:`1px solid ${c.type==="success"?"#166534":"#991b1b"}`},children:c.message})]})}const CA={container:{fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",backgroundColor:"#0f172a",borderTop:"1px solid #1e293b",fontSize:"11px",overflow:"hidden",display:"flex",flexDirection:"column"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 12px",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b"},headerTitle:{color:"#94a3b8",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},summary:{display:"flex",gap:"16px",fontSize:"11px"},summaryItem:{display:"flex",gap:"4px",alignItems:"center"},summaryLabel:{color:"#64748b",fontWeight:600},summaryValue:{fontWeight:700,fontFamily:"monospace"},table:{width:"100%",borderCollapse:"collapse"},th:{padding:"4px 8px",textAlign:"left",color:"#64748b",fontWeight:700,fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #1e293b",whiteSpace:"nowrap"},td:{padding:"4px 8px",color:"#cbd5e1",borderBottom:"1px solid #1e293b",whiteSpace:"nowrap",fontFamily:"monospace",fontSize:"11px"},closeBtn:{padding:"2px 8px",backgroundColor:"#7f1d1d",border:"1px solid #991b1b",borderRadius:"3px",color:"#fca5a5",fontSize:"10px",fontWeight:700,cursor:"pointer",transition:"all 0.15s ease"},emptyRow:{padding:"16px",textAlign:"center",color:"#475569",fontSize:"12px"},scrollArea:{overflowY:"auto",maxHeight:"200px"},typeBuy:{color:"#26A69A",fontWeight:700},typeSell:{color:"#EF5350",fontWeight:700}};function Mv({style:s,className:A,maxHeight:e=200}){const{orders:t,setOrders:r,symbols:i,accountSummary:n,setUserBalance:o}=Ae(),[a,l]=b.useState(null),c=t.filter(d=>d.status==="OPEN"||!d.closeAt),u=b.useCallback((d,p)=>{const m=i.find(w=>w.symbol===d);return m?parseFloat(p==="BUY"?m.bid||0:m.ask||0):0},[i]),f=b.useCallback(d=>{if(a)return;l(d.id);const p=u(d.symbol,d.type),w=(d.type==="BUY"?p-d.price:d.price-p)*d.volume,v=d.volume*d.price*.01;r(y=>y.filter(E=>E.id!==d.id)),o(y=>y+v+w),l(null)},[a,u,r,o]),g=d=>{const p=parseFloat(d);return!p||isNaN(p)?"-":p>=1e3?p.toFixed(2):p>=1?p.toFixed(4):p.toFixed(5)},B=d=>{const p=parseFloat(d);return isNaN(p)?"-":(p>=0?"+":"")+p.toFixed(2)};return h.jsxs("div",{style:{...CA.container,...s},className:A,children:[h.jsxs("div",{style:CA.header,children:[h.jsxs("span",{style:CA.headerTitle,children:["Positions (",c.length,")"]}),h.jsxs("div",{style:CA.summary,children:[h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Balance:"}),h.jsxs("span",{style:{...CA.summaryValue,color:"#e2e8f0"},children:["$",n?.balance?.toFixed(2)||"0.00"]})]}),h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Equity:"}),h.jsxs("span",{style:{...CA.summaryValue,color:(n?.equity||0)>=(n?.balance||0)?"#26A69A":"#EF5350"},children:["$",n?.equity?.toFixed(2)||"0.00"]})]}),h.jsxs("div",{style:CA.summaryItem,children:[h.jsx("span",{style:CA.summaryLabel,children:"Free:"}),h.jsxs("span",{style:{...CA.summaryValue,color:"#94a3b8"},children:["$",n?.freeMargin?.toFixed(2)||"0.00"]})]})]})]}),h.jsx("div",{style:{...CA.scrollArea,maxHeight:e},children:h.jsxs("table",{style:CA.table,children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{style:CA.th,children:"Symbol"}),h.jsx("th",{style:CA.th,children:"Type"}),h.jsx("th",{style:CA.th,children:"Volume"}),h.jsx("th",{style:CA.th,children:"Open Price"}),h.jsx("th",{style:CA.th,children:"Current"}),h.jsx("th",{style:CA.th,children:"SL"}),h.jsx("th",{style:CA.th,children:"TP"}),h.jsx("th",{style:CA.th,children:"Profit"}),h.jsx("th",{style:CA.th,children:"Action"})]})}),h.jsx("tbody",{children:c.length===0?h.jsx("tr",{children:h.jsx("td",{colSpan:9,style:CA.emptyRow,children:"No open positions"})}):c.map(d=>{const p=u(d.symbol,d.type),m=d.profit||0;return h.jsxs("tr",{children:[h.jsx("td",{style:{...CA.td,fontWeight:700,color:"#e2e8f0"},children:d.symbol}),h.jsx("td",{style:{...CA.td,...d.type==="BUY"?CA.typeBuy:CA.typeSell},children:d.type}),h.jsx("td",{style:CA.td,children:d.volume}),h.jsx("td",{style:CA.td,children:g(d.price)}),h.jsx("td",{style:CA.td,children:g(p)}),h.jsx("td",{style:CA.td,children:d.stopLoss?g(d.stopLoss):"-"}),h.jsx("td",{style:CA.td,children:d.takeProfit?g(d.takeProfit):"-"}),h.jsx("td",{style:{...CA.td,color:m>=0?"#26A69A":"#EF5350",fontWeight:700},children:B(m)}),h.jsx("td",{style:CA.td,children:h.jsx("button",{style:{...CA.closeBtn,...a===d.id?{opacity:.5,cursor:"not-allowed"}:{}},onClick:()=>f(d),disabled:a===d.id,onMouseEnter:w=>{a!==d.id&&(w.currentTarget.style.backgroundColor="#991b1b")},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#7f1d1d"},children:a===d.id?"...":"Close"})})]},d.id)})})]})})]})}function Dv(s){return ms({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(s)}function kv(s){return ms({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5v-2h14v2z"},child:[]}]})(s)}const _v=({selectedSymbol:s,selectedTimeframe:A,onTimeframeChange:e,chartType:t="candles",onChartTypeChange:r,onNewOrder:i,onZoomIn:n,onZoomOut:o,onToggleBuySell:a,onDownloadChartPNG:l,onToggleFullscreen:c,marketWatchOpen:u=!0,onToggleMarketWatch:f,buySellPanelOpen:g,onMove:B})=>{const{theme:d}=Ae(),p=d==="light",m=["M1","M5","M15","M30","H1","H4","D1","W1","MN"],w={bars:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{fillRule:"evenodd",d:"M20.999 15.002H19v3a1 1 0 0 1-2.001 0V8H15a1 1 0 1 1 0-2h1.999v-3A1 1 0 1 1 19 3v10h1.999a1 1 0 0 1 0 2Zm-10.999-4H6.999v10a1 1 0 1 1-1.999 0v-3H3a1 1 0 0 1 0-2h2v-11a1 1 0 1 1 1.999 0V9H10a1 1 0 0 1 0 2Z",clipRule:"evenodd",fill:"currentColor"})]}),candles:h.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M9 3V9H11V18H9V21H7V18H5V9H7V3H9ZM17 3V6H19V16H17V19H15V16H13V6H15V3H17ZM17 8H15V14H17V8Z",fill:"currentColor"})}),area:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{d:"m2.166 16.571 7.013-7.194c.38-.583 1.116-.273 1.707.256l4.14 2.31 5.136-6.692c.277-.425 1.853-.182 1.853-.182v13.952H2.047a7.772 7.772 0 0 1 .119-2.45Z",opacity:".2",fill:"currentColor"}),h.jsx("path",{d:"M3.027 18.011a1 1 0 0 1-.81-1.58c.81-1.128 1.5-2.154 2.113-3.065 1.938-2.887 3.22-4.795 5.234-5.042 1.607-.195 3.364.683 6.28 3.212l4.35-6.086a1 1 0 0 1 1.626 1.16l-4.994 6.99a1 1 0 0 1-1.483.16c-2.824-2.552-4.481-3.587-5.536-3.454-1.108.136-2.186 1.742-3.82 4.173-.621.927-1.323 1.971-2.148 3.117a1.001 1.001 0 0 1-.812.415Z",fill:"currentColor"})]}),line:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{d:"M3.027 18.011a1 1 0 0 1-.81-1.58c.81-1.128 1.5-2.154 2.113-3.065 1.938-2.887 3.22-4.795 5.234-5.042 1.607-.195 3.364.683 6.28 3.212l4.35-6.086a1 1 0 0 1 1.626 1.16l-4.994 6.99a1 1 0 0 1-1.483.16c-2.824-2.552-4.481-3.587-5.536-3.454-1.108.136-2.186 1.742-3.82 4.173-.621.927-1.323 1.971-2.148 3.117a1.001 1.001 0 0 1-.812.415Z",fill:"currentColor"})]}),volume:h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),h.jsx("path",{fillRule:"evenodd",d:"M19.024 17.844H19a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v3.844a1 1 0 0 1-1 1Zm-3 0H16a1 1 0 0 1-1-1v-5.845A1 1 0 0 1 16 10h.024a1 1 0 0 1 1 .999v5.845a1 1 0 0 1-1 1Zm-3 0H13a1 1 0 0 1-1-1V6.999A1 1 0 0 1 13 6h.024a1 1 0 0 1 1 .999v9.845a1 1 0 0 1-1 1Zm-3 0H10a1 1 0 0 1-1-1V12a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v4.844a1 1 0 0 1-1 1Zm-3 0H7a1 1 0 0 1-1-1V9.999A.999.999 0 0 1 7 9h.024a1 1 0 0 1 1 .999v6.845a1 1 0 0 1-1 1Zm-3 0H4a1 1 0 0 1-1-1v-2.845a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v2.845a1 1 0 0 1-1 1Z",clipRule:"evenodd",fill:"currentColor"})]}),"volume ticks":h.jsxs("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),h.jsx("path",{fillRule:"evenodd",d:"M20.009 6.993h-.985v3.985a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1V6.993h-.946c-.565 0-1.023-.441-1.023-.985v-.024c0-.543.458-.984 1.023-.984h3.955c.565 0 1.023.441 1.023.984v.024c0 .544-.458.985-1.023.985Zm-3.985 6.14v5.845a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1v-5.845a1 1 0 0 1 1-.999h.024a1 1 0 0 1 1 .999Zm-4 6.845H12a1 1 0 0 1-1-1V9.133a1 1 0 0 1 1-.999h.024a1 1 0 0 1 1 .999v9.845a1 1 0 0 1-1 1Zm-3 0H9a1 1 0 0 1-1-1v-4.844a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v4.844a1 1 0 0 1-1 1Zm-3 0H6a1 1 0 0 1-1-1v-6.845a.998.998 0 0 1 1-.999h.024a1 1 0 0 1 1 .999v6.845a1 1 0 0 1-1 1Zm-3 0H3a1 1 0 0 1-1-1v-2.845a1 1 0 0 1 1-1h.024a1 1 0 0 1 1 1v2.845a1 1 0 0 1-1 1ZM18 14.134h.024a1 1 0 0 1 1 1v3.844a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-3.844a1 1 0 0 1 1-1Z",clipRule:"evenodd",fill:"currentColor"})]})};return h.jsxs("div",{className:`flex items-center justify-between px-4 py-1 border-b ${p?"bg-white border-slate-200":"bg-[#12161d] border-slate-700"}`,children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("div",{className:`flex items-center gap-1 border-r pr-3 ${p?"border-slate-200":"border-slate-700"}`,children:["bars","candles","line","area"].map(v=>h.jsx("button",{onClick:()=>r(v),className:`px-1 py-1.5 text-[11px] font-medium rounded transition-colors capitalize flex items-center gap-1.5
|
|
11
11
|
${t===v?p?"text-sky-600":"text-sky-400":p?"text-slate-700 hover:text-slate-900 hover:bg-[#E5F4FF]":"text-white hover:text-slate-200 hover:bg-slate-800"}
|
|
12
12
|
`,title:v,children:w[v]},v))}),h.jsx("div",{className:`flex items-center gap-1 border-r ${p?"border-slate-200":"border-slate-700"} pr-1`,children:["volume ticks","volume"].map(v=>h.jsx("button",{onClick:()=>r(v),className:`px-1 py-1.5 text-[11px] font-medium rounded transition-colors capitalize flex items-center gap-1.5
|
|
13
13
|
${t===v?p?"text-sky-600":"text-sky-400":p?"text-slate-700 hover:text-slate-900 hover:bg-[#E5F4FF]":"text-white hover:text-slate-200 hover:bg-slate-800"}
|